Methods to Integrate Axis and CXF Webservices in our Code

Axis
Download and Unzip the Axis Standard Distribution.Get all the required Axis libraries for generating java files from WSDL.

set the Classpath to these libraries from the command prompt.The libraries list are given below


axis.jar,org.apache.commons.logging_1.0.4.v200904062259.jar,
org.apache.commons.logging_1.0.4.v201005080501.jar,
commons-discovery-0.2.jar,jaxrpc.jar,jaxws-rt.jar,jaxws-tools.jar,
saaj.jar,resources.jar,javax.wsdl_1.5.1.v200806030408.jar,
javax.wsdl_1.5.1.v200806030408.jar

use the command from Command Prompt for Eg: java org.apache.axis.wsdl.WSDL2Java mywebservice.WSDL to generate the Java Stub Files.

Either write a build script or set the classpath and using javac compile the entire Java Files

This will generate required stub classes for you to invoke the actual Service.

Configure the WebService EndPoints in your Custom Classes and create an instance of the Stub and pass the URl.

Create the Necessary Input which will be passed as the request to the WebService Call.

Invoke a Call and Configure the Response based on your Requirements.


CXF

Download and Unzip the CXF Standard Distribution.Get all the required CXF libraries for generating java files from WSDL.

Get any of the sample build.xml and build.properties from the sample projects under the CXF home folder.Make the necessary modification for the WSDL name,Jar file name then run the ant prepare task.This will generate the required client and gen folder by default and other additional folders based on your WSDL and XSD's.Configure Endpoints,Ports,Input and Output and you are all set.

Generate Stubs from SoapUI
Here i am using soapUI4.0.0.
Create a Webservice Project from the WSDL file given,After Creating Go to the Services,Right Click the Services,there is an option to Generate Code.Choose appropriate framework from the list.For Example,here we can choose Apache CXF,Select the appropriate check boxes based on your requirement.Below are the five checkboxes.
Client -  Generates Starting point code  for a Client mainline.
Server -  Generates Starting point code  for a Server mainline.
Implementation -  Generates Starting point code  for a Implementation Object.
Build.xml - Generates the Ant build.xml file.
All Code - Generate all starting point code types.Service Proxy,Service Interface,Server Mainline,Client Mainline,Implementation Object and Build.xml file.

Click on the tools button point the CXF 2.X field to the Binary location.Eg:  CXF2.X - C:\apache-cxf-2.2.7\bin (where the cxf folder is the one which you downloaded and unzip from the distribution).Now all set specify the output folder and click the Generate button.The soapUI will resolve all the dependancies and generate your Stubs.Use build.xml to compile your classes.

Configure Endpoints,Ports,Input and Output and you are all set.



ATG Customize and Enhance your CRS Module easily

Firstly we need to create a folder and give the name of your choice,For example i have given Wirelessstore, inside that folder you create a META-INF folder,and create a MANIFEST.MF file,once this is done then modify the Manifest file property to ATG-Install-Unit:MyWirelessStore(MyWirelessStore is the name i have given instead of the name Store in CRS module) and create a folder with the same name MyWirelessStore under Wirelessstore,after this copy all  CRS-Store folders under this folder.

You can Refer the CommerceReferenceStore Manifest file for this.

Now configure your eclipse and import the necessary folders to your workspace.Resolve the classpath by importing required Jars and Classes to your Buildpath and do a clean build of your Project.

Now create a runAssembler command so that it will pick modules from your newly created folder structure.

runAssembler -m ATGProduction.ear -m DafEar.Admin DPS DSS  DSS DCS.PublishingAgent MyWirelessStore.EStore MyWirelessStore.Recommendations MyWirelessStore.Storefront.NoPublishing    MyWirelessStore.Fulfillment

so now you have the ATGProduction.ear ready to deploy in your Application Server.Deploy it and run the Server with correct datasources you can see the CRS running exactly same way similiar to the one installed through CIM or other ways.

Now modify your JSPs,Java,Components and do a clean build and deploy your changes will appear in the CRS Application.

Similiarly create a runAssembler for the Publishing modules and do the necessary configurations in BCC and do a full deployment.


Issues Faced during creation of CRS Module

If you are customising the CRS Module you need to take care of the reference to absolute path of certain components,one such issue i faced is the application is not able to find the exact keystore location.This happens even adding an item to Cart and further flows.

the keystore location is mentioned in the component /atg/store/security/crypto/SecretKeyStoreManager  with the property 'file'.You need to modify the entry so that it will point to your modified structure.


The actual entry in CRS will be like
file = {appModuleResource?moduleID=Store.EStore&resourceURI=keystore/store-crypto.jks} ,you have to modify this so that it point to MyWirelessStore.

For example in my application the absolute path will be C:\ATG\ATG10.2\Wirelessstore\MyWirelessStore\EStore\keystore\store-crypto.jks

ATG dos and donts with Weblogic

1. Use single and Double quotes alternatively.
       
    <dsp:param name='<%="abc"%>' value = "12" /> - Correct
    <dsp:param name="<%="abc"%>" value = "12" /> - Wrong

2. Proper String Concatenation
    <dsp:param name='"xxx" + <%="abc"%>' value = "12" /> -  
    Correct
    <dsp:param name="xxx"<%="abc"%> value = "12" /> - Wrong

3. Use DynamoHttpServletRequest instead of HttpServletRequest
   DynamoHttpServletRequest drequest = 
   ServletUtil.getDynamoRequest(request); 

4. Always Specify encoding type in JSP Pages
   <%@ page contentType  = "text/html" %>

   Below are few best practices for developers

1. Always use Generics.
2. Use String Builder instead of String Buffer in logging.
3. Always use Enhanced For Loop.
4. Use annotations(@override).
5. While using BigDecimal try to use toPlainString() instead of
   toString().
   eg:
   BigDecimal productPrice = new BigDecimal(pPrice);
   objRequest.setParameter
   (PRICE,productPrice.toPlainString()); - Correct
   objRequest.setParameter(PRICE,productPrice.toString()); -
   Wrong

Endeca Set Of Questions and Answers to test your Knowledge

What  are the components that  make up the ITL transformation layer ?

a: Forge Dgidx
b: CAS MDEX
c: CAS Experience Manager
d: CAS Workbench

Ans: a

What is the component  which convert document and files to endeca souce property ?

a: Experience  Manager

b: MDEX
c: Deveoloper Studio
d: CAS


Ans: d

Source Data can come from Text files,Database,Filesystems and Websites

true
false 


Ans: true

You can update the index by one of the following

a: fraction update
b: modular update
c: baseline update
d: input update


Ans: c

Which process assigns auto generated dimension values

a: workbench
b: forge
c: mdex
d: application server


Ans: b

What are the possible data types of endeca property

a: Date Time

b: Integer
c: Alpha
d: Floating Point
e: All The Above 


Ans:e

How many data sources a record can map

a: One
b: One or Many
c: Upto 5
d: It cannot be possible to map

Ans: e

which one of the following is not a match mode

a: Generic
b: Normal
c: Must Match
d: Auto Generate 



Ans: a

A Synonym groups multiple source field values into a single dimension value so that navigation on any of the Synonyms return all records associated with those Synonyms

a: True
b: False

Ans: a

Dimensions hierarchies are limited to five nested levels

a: True
b: False

Ans: b

What is the purpose of a promote button in the Developer Studio

a: It converts the AutoGen DimVals to Manual DimVals
b: It converts the Manual DimVals to AutoGen DimVals
c: It enable you to convert both ways(from Manual DimVals to AutoGen DimVals and also AutoGen DimVals to Manual DimVals
d: None of the above(Promote is used for property values only.)

Ans: a 

For the same dimension,you can have both manual and auto-generated dimension values.

a: true
b: false

Ans: a 

In a given dimension ,you can assign different bound(data)types to range
dimension values.

a: True
b: False

Ans: a 

What are not manual dimensions in the list given below

a: Sift
b: Limited Lists
c:
Synonyms 
d: Range

Ans: a 

You must be cautious while editing the Stemming.xml  File,because this is a File which is Global in  Endeca directory  ,it affects all applications running on that Machine

a: True
b: False


Ans: a 

What are all the  Spell Correct Options

a: Did You Mean
b: Dictionary Pruning
c: Auto Correct

Customize to start Nucleus manually inside your java class

There is  a  simple approach to Initiate nucleus manually.Knowing this may help to customize Nucleus,like Override the default behavior,writing a custom junit test for testing profiles,repositories, etc.

ATG has tools which Initiate Nucleus as a standalone to perform  some of their tasks.You might have used StartSqlRepository,the StartSqlRepositoy
Initiate the nucleus as standalone.You need to take care of mapping the Repositories to appropriate Datasources.This is generally achieved through FakeXAComponents.All this are already available OOTB,but you can also start Nucleus manually doing some simple customization.


Below are the customizations you need to do to start Nucleus manually,the modules given here are OOTB,additionally you need to include your respective modules and custom modules to resolve the necessary components.

Define a component mynucleus and configure it in your build path.

atg.dynamo.home=C:\\ATG\\ATG10.2\\home
atg.dynamo.root=C:\\ATG\\ATG10.2
atg.dynamo.modules=DafEar.Admin;DAS;DPS;DSS;
atg.dynamo.display=
atg.dynamo.modulepath=C:\\ATG\\ATG10.2
atg.dynamo.layers=
atg.config.path=C:\\ATG\\ATG10.2\\DAS\\config\\config.jar;\
C:\\ATG\\ATG10.2\\DafEar\\base\\config\\dafconfig.jar;\
C:\\ATG\\ATG10.2\\DPS\\config\\userprofiling.jar;\
C:\\ATG\\ATG10.2\\DPS\\config\\profile.jar;\
C:\\ATG\\ATG10.2\\DPS\\config\\targeting.jar;\
C:\\ATG\\ATG10.2\\DSS\\config\\config.jar;\
C:\\ATG\\ATG10.2\\home\\localconfig;\
C:\\ATG\\ATG10.2\\home\\servers\\myserver\\localconfig
dataDir=C:\\ATG\\ATG10.2\\home\\data
atg.dynamo.server.home=C:\\ATG\\ATG10.2\\home\\servers\\myserver
serverName=myserver
java.protocol.handler.pkgs=atg.net.www.protocol
java.naming.factory.url.pkgs=atg.jndi.url
java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory


Do the below Imports in your file.

import atg.applauncher.dynamo.DynamoServerLauncher;
import atg.naming.NameResolver;
import atg.nucleus.Nucleus;
import atg.servlet.*;
import atg.servlet.pipeline.HeadPipelineServlet;
import java.io.PrintStream;
import java.util.Enumeration;
import java.util.ResourceBundle;


Give Below the code for Class,you need to implements the interface NameResolver and write the implementation for the method resolvename in your code.


public class mynucleus implements NameResolver{


    public mynucleus()
    {
    }


public DynamoHttpServletRequest getRequest()
    {
        return request;
    }
 public DynamoHttpServletResponse getResponse()
    {
        return response;
    }
 public static Nucleus getTestNucleus()
    {
        return testNucleus;
    }

 private static void loadNucleusPath()
        {
            String key;
            for(Enumeration em = RESOURCE_BUNDLE.getKeys(); em.hasMoreElements(); System.setProperty(key,

RESOURCE_BUNDLE.getString(key)))
            {
                key = (String)em.nextElement();
                System.out.println((new StringBuilder(String.valueOf(key))).append(":").append

(RESOURCE_BUNDLE.getString(key)).toString());
            }

        }

        private static void startNucleus()
        {
            String as[] = {
                System.getProperty("atg.dynamo.modules"), System.getProperty("atg.config.path"), "-

prefix", System.getProperty("serverName")
            };
            DynamoServerLauncher.main(as);
            HeadPipelineServlet headpipelineservlet = (HeadPipelineServlet)Nucleus.getGlobalNucleus

().resolveName("/atg/dynamo/servlet/dafpipeline/DynamoHandler");
            request = headpipelineservlet.getRequest(null);
            testNucleus = Nucleus.getGlobalNucleus();
            response = new DynamoHttpServletResponse();
            response.setResponse(new GenericHttpServletResponse());
            response.setOutputStream(new ByteArrayServletOutputStream());
        }

        private static Nucleus testNucleus = null;
        private static LoggerUtil loggerInstance;
        private static DynamoHttpServletRequest request = null;
        private static DynamoHttpServletResponse response = null;
        private static final String BUNDLE_NAME = "com.atg.MyConfig";
        private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle

("com.atg.MyConfig");

        static
        {
            loggerInstance = LoggerUtil.getInstance();
            loadNucleusPath();
            startNucleus();
            loggerInstance.setLoggingDebug(true);
        }

 public Object resolveName(String s)
    {
        return getRequest().resolveName(s);
    }
}

Finally from your test class call the method to resolve the component
eg:
Profile profile = (Profile) resolveName("/atg/userprofiling/Profile");

ATG-Class-Path Usage and Duplicate Class Files in JARS

I came across a situation in which i have two Class Files of the same name in different JARs but with some methods similar and other methods entirely different , these two JARS are required for the same Project with different Modules and i want to access the one which is compatible with my Code and Module,The other Module obviously dont want this Class file but requires other Classes,now the issue is you  have both the jars in CLASSPATH.How will you make sure you are pointing to the correct Class files in this situation, you need the Class Files from one JAR which has your updated method for a new functionality,

You may experience the same issue while organizing imports or resolving a Java component.

Here you need to do two things,first one is to resolve the component at Compile time in Eclipse or other IDEs,the second part is to resolve the runtime conflicts in the Application Server

So for Compile time,Assume if you are using Eclipse and you have both  JAR added to your build path ,you need to go to "Order and Export" tab and move your  updated jar above the other one,after this  you may able to build your Project smoothly without any issues.Second is to resolve the runtime conflicts

ATG has provided a beautiful way of handling this scenario,we have in ATG a better way of loading the CLASSPATHS,ATG looks for  MANIFEST.MF file,this file will specify which oder your Application Server has to load the CLASSPATHs.So put your updated JAR files before the other one in this Property.

Below is the example

ATG-Class-Path: lib/updated.jar lib/old.jar

Here its generally not that tough to resolve the issue by either finding the Class and the dependant Files , but there are situations in which we might face the similiar issues in OOTB Classes of different Vendors which need to be resolved.So this will be a good reference for the Beginners.

MANIFEST.MF
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.0
Created-By: 16.0-b13 (Sun Microsystems Inc.)
ATG-Product: The Commerce Reference Store
ATG-Class-Path: classes lib/
lib/updated.jar lib/old.jar
ATG-Config-Path: config
ATG-Required:Store.EStore

After Configuring the Manifest File and Deploying the Application you can verify the Application Server Startup logs.You may see the updated.jar will be loaded first then the old.jar will be loaded.

ATG Implementation Developer Essential Certifications Reference

I have taken the Certification and cleared it ,Following are the few questions and answers i can recollect.Hope this would help you to prepare for the Certifications to some Extend.All the best for the Certifications.

Which two ASE tasks can be performed by ACC but not BCC

Ans :Scenarios,Slots,Workflow


Role of allocateItemRelQuantitychain


Ans :To purchase item from Preorder Backorder and the Avaialble Stock Ininvetory
 

How many current and saved orders does ATG allows fora User Profile
Ans :One current Order and Collection of Saved Orders

What is a Reanimated Order
Ans :Previously Abandoned Order in which user has added items or modified the item quantities

What are the properties we need to add in the Versioned schema for Primary tables and Auxiliary tables
Ans :asset_version in both Primary and Auxiliary tables,other 7 columns in Primary tables

What component should a shareable component register with
Ans :sitegroup

If you want to update the Computed Catalogs and Parent Catalogs properties of a Product which Service should you use
Ans :AncestorGeneratorService

How to Disable ATG OOTB funcitionality  of Persisting Cart
Ans :ShoppingCart.persistOrders = false

What does childproduct property of an item category contain
Ans :fixedChildProducts and computedChildProducts

What will happen if addItem() has never called afer createItem()
Ans :Item will be in memory and  not persisted

Which component are the different stages of ShoppingProcess in ATG is defined
Ans :ShoppingOrderConfiguration

What are the three methods in ItemPriceCalculator
Ans :priceitem,priceitems,priceeachitem

What are the three methods of ATG OOTB RepositoryFormHandler
Ans :create,update and delete

If there is a Business Requirement to show only three items in Slot,how will we do that
Ans :Limit the number of items in the Slot,Define the Limit property in the Targeter

What is the purpose of TabletInfo Component
Ans :Layout of the table,get information about Headers

What is the propety in Customer Profile which contains the list PromotionStatus Repository Items
Ans :activePromotions

What xmls laoded by Product Catalog
Ans :All xmls sepecified in the xml definition of ProductCatalog component will be loaded

How does a  developer preserve request scope
Ans : a_request parameter as hidden variable

Which 3 pricing engines shold set the Qualifier class to determine which object should do discount
Ans :Item,Order and Shipping

Best Option to display content of Open Parameter in Droplet
Ans :request.serviceParameter



Item Descriptors which are subtypes of Media Item


Ans :media external,media internal text,media internal binary

Repository stores information about converted Orders


Ans :abandlonedOrderLogRepository

Share Gift List across sites


Ans :gifltListManager.sitescope=all


When a Stock level reaches a threshold 


Ans :an event is generated

Which FormHandler and Droplet is used to Approve or Reject an order in pendng_approval State
Ans :ApprovaFormHandler,ApprovalRequiredDroplet

Two ways in which Nucleus can be configured
Ans :Through Property Files or through Component Configuration in ACC

Each daatabase operation is automatically wrapped in a transacation type of

Ans :supports


What are the different Component Scopes
Ans :Request,Session,Global,Window,Protocol

How do we prevent Inventory Deadlocks in database



Ans :From the InventoryManager Component we have a acquireInventoryLock() and releaseInventoryLock () methods to prevent the Deadlocks

If both siteScope and SiteIds are defined 


Ans :siteScope property is ignored

Scope of GiftList Search Component

Ans :GiftList Search Component is Session scoped

Defaults Sharing behaviour of userProfiles 


Ans : It is shared across all Sites
Orderfullfuller and Hardgood FullFiller uses Client Lock Manager

Ans :To prevent one component for processing messages for two different Orders at same time

Remove a Profile Marker from Profile


Ans :Use scenario with tin- "Remove markers from profile" action

Full Deployment in Production 
 
Ans :Full deployment will flush the Data/Assets ,Deploy it  in a passive database, Switch, then to other database

Multisite how to determine request is associated

Ans :Sticky Site Parameter,Domain,Path
 
Best options to  implement a custom FormHandler is to extend

Ans :GenericFormhandler,EmptyFormHandler,TansactionFormHandler



Querty types not supported in SQLRepository

Ans :includesAll,indexof,elementAt


/atg/epub/DeploymentServer error encountered reading in persisted status java.io.EOFException

 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer      error encountered

reading in persisted status   java.io.EOFException
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2553)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1296)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.deployment.common.Status.read(Status.java:2736)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.deployment.common.StatusUtil.read(StatusUtil.java:439)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.deployment.server.DeploymentServer.recoverDeployments(DeploymentServer.java:2105)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.deployment.server.DeploymentServer.reinitializeTopology(DeploymentServer.java:1759)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.deployment.server.DeploymentServer.doStartService(DeploymentServer.java:1232)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.GenericService.startService(GenericService.java:561)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.NucleusNameResolver.startService(NucleusNameResolver.java:1726)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.NucleusNameResolver.configureAndStartService(NucleusNameResolver.java:1397)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:928)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:667)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:648)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.NucleusNameResolver.resolveName(NucleusNameResolver.java:493)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.ConfigurationRefArray.getValue(ConfigurationRefArray.java:183)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.SimpleComponentState.setBeanProperty(SimpleComponentState.java:403)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.SimpleConfigurationState.saveToBean(SimpleConfigurationState.java:240)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.SimpleConfigurationState.configureBean(SimpleConfigurationState.java:263)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.BeanConfigurator.configureBean(BeanConfigurator.java:297)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.PropertyConfiguration.configureService(PropertyConfiguration.java:984)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.SingleNucleusConfigurator.configureService(SingleNucleusConfigurator.java:84)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.NucleusNameResolver.configureService(NucleusNameResolver.java:1643)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.NucleusNameResolver.configureAndStartService(NucleusNameResolver.java:1368)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:928)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:667)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:648)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.NucleusNameResolver.resolveName(NucleusNameResolver.java:493)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.ConfigurationRefArray.getValue(ConfigurationRefArray.java:183)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.SimpleComponentState.setBeanProperty(SimpleComponentState.java:403)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.SimpleConfigurationState.saveToBean(SimpleConfigurationState.java:240)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.SimpleConfigurationState.configureBean(SimpleConfigurationState.java:263)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.BeanConfigurator.configureBean(BeanConfigurator.java:297)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.PropertyConfiguration.configureService(PropertyConfiguration.java:984)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.SingleNucleusConfigurator.configureService(SingleNucleusConfigurator.java:84)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.NucleusNameResolver.configureService(NucleusNameResolver.java:1643)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.NucleusNameResolver.configureAndStartService(NucleusNameResolver.java:1368)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:928)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:667)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:648)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.NucleusNameResolver.resolveName(NucleusNameResolver.java:493)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.ConfigurationRefArray.getValue(ConfigurationRefArray.java:183)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.SimpleComponentState.setBeanProperty(SimpleComponentState.java:403)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.SimpleConfigurationState.saveToBean(SimpleConfigurationState.java:240)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.SimpleConfigurationState.configureBean(SimpleConfigurationState.java:263)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.BeanConfigurator.configureBean(BeanConfigurator.java:297)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.PropertyConfiguration.configureService(PropertyConfiguration.java:984)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.SingleNucleusConfigurator.configureService(SingleNucleusConfigurator.java:84)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.NucleusNameResolver.configureService(NucleusNameResolver.java:1643)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.NucleusNameResolver.configureAndStartService(NucleusNameResolver.java:1368)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:928)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:667)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:648)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.NucleusNameResolver.resolveName(NucleusNameResolver.java:493)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.ConfigurationRefArray.getValue(ConfigurationRefArray.java:183)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.SimpleComponentState.setBeanProperty(SimpleComponentState.java:403)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.SimpleConfigurationState.saveToBean(SimpleConfigurationState.java:240)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.SimpleConfigurationState.configureBean(SimpleConfigurationState.java:263)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.BeanConfigurator.configureBean(BeanConfigurator.java:297)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.PropertyConfiguration.configureService(PropertyConfiguration.java:984)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.SingleNucleusConfigurator.configureService(SingleNucleusConfigurator.java:84)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.NucleusNameResolver.configureService(NucleusNameResolver.java:1643)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.NucleusNameResolver.configureAndStartService(NucleusNameResolver.java:1368)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:928)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:667)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:648)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.NucleusNameResolver.resolveName(NucleusNameResolver.java:493)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.Nucleus.resolveName(Nucleus.java:2645)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.GenericService.resolveName(GenericService.java:378)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.GenericService.resolveName(GenericService.java:430)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.Nucleus.<init>(Nucleus.java:1021)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.Nucleus.<init>(Nucleus.java:790)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.Nucleus.<init>(Nucleus.java:771)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.Nucleus.startNucleusCheckLicense(Nucleus.java:4300)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.servlet.NucleusServlet.initBigEarNucleus(NucleusServlet.java:1297)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

atg.nucleus.servlet.NucleusServlet.init(NucleusServlet.java:465)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:539)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1985)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:19
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1878)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.ja
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:1
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at

weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer
 Mon Jul 08 22:07:25 IST 2013    1373301445849   /atg/epub/deployment/DeploymentManager  Resolving

reference to /atg/deployment/DeploymentManager
 Mon Jul 08 22:07:26 IST 2013    1373301446851 

/atg/remote/assetmanager/common/service/PropertyManager Resolving reference to

/atg/userprofiling/InternalPropertyManager
 Mon Jul 08 22:07:26 IST 2013    1373301446924   /atg/seo/SEORepository_production       SQL Repository

startup complete
 Mon Jul 08 22:07:26 IST 2013    1373301446949 

/atg/userprofiling/PersonalizationRepository_production SQL Repository startup complete
 Mon Jul 08 22:07:26 IST 2013    1373301446996   /atg/store/stores/StoreTextRepository_production     

 SQL Repository startup complete
 Mon Jul 08 22:07:27 IST 2013    1373301447789   /atg/commerce/catalog/MerchandisingProductCatalog    

 Resolving reference to /atg/commerce/catalog/SecureProductCatalog
 Mon Jul 08 22:07:28 IST 2013    1373301448548   /atg/search/repository/IncrementalItemQueueRepository

 SQL Repository startup complete
 Mon Jul 08 22:07:33 IST 2013    1373301453185   /atg/commerce/endeca/index/CategoryTreeService

service started.
 Mon Jul 08 22:07:33 IST 2013    1373301453365 

/atg/commerce/promotion/template/PromotionTemplateManager       Promotion Template scheduler started
 Mon Jul 08 22:07:35 IST 2013    1373301455801   /atg/commerce/catalog/CatalogChangesListener  

Resolving reference to /atg/commerce/catalog/custom/CatalogChangesListener


 running, app server startup continuing


Solution
This issue is happening when i am starting my Publishing Server Instance.
The common root cause  will be  your dep-stat files  are corrupted due to that its throwing EOFException,to resolve this issue you have to navigate to the Folder eg: C:\ATG\ATG10.2\home\servers\ATGPublishing\Publishing\deployment\data in your Windows/Linux Box, rename the dep-stat file to some other name, i have done like this, for eg:dep-stat-1371662649154 to bkupdep-stat-1371662649154,After that uou have to bounce your Publishing Server and this issue will not come again ,other places you may want to try this is in Production Server Navigate to eg: C:\ATG\ATG10.2\home\servers\ATGProduction\PublishingAgent\data.Modify the dep-stat file similiar way but only in case if you are seeing  similiar startup issues in Production Server.

Weblogic Issues during EAR Deployment Exception in AppMerge flows progression

Unable to access the selected application

Exception in AppMerge flows progression

Bean already exists "weblogic.j2ee.descriptor.ModuleBeanImpl@..../Modules[weblogic.descriptor.internal.Descriptor.Beankey@....]



This issue can happen in many scenarios, may be you need to check your deployment descriptors based on Application Servers used, this generally happens due to issue in XML files related to deployment. I got this issue when i mistakenly added the modules twice in the Manifest file, the module 'Store.Storefront' is added more than once in  'ATG-Required'  of my Manifest.MF file,due to this i am seeing the module 'storedocroot.war' is added twice in my application.xml which is located in the  path ATGProd.ear\META-INF\application.xml.Due to this i am not able to deploy my EAR file. I have removed the duplicate entry and deployed the application and everything working fine.


.......
<module>
        <web>
            <web-uri>atg_bootstrap.war</web-uri>
            <context-root>/dyn</context-root>
        </web>
    </module>   
    <module>
        <web>
            <web-uri>storedocroot.war</web-uri>
            <context-root>crsdocroot</context-root>
        </web>
    </module>
    <module>
        <web>
            <web-uri>storedocroot.war</web-uri>
            <context-root>crsdocroot</context-root>
        </web>
    </module>

</application> 

But as a permanent solution you need to remove the duplicate entry 'Store.Storefront' from the Manifest.MF file.
 ....
<module>
        <web>
            <web-uri>atg_bootstrap.war</web-uri>
            <context-root>/dyn</context-root>
        </web>
    </module>   
    <module>
        <web>
            <web-uri>storedocroot.war</web-uri>
            <context-root>crsdocroot</context-root>
        </web>
    </module>
 

</application> 


Related Posts Plugin for WordPress, Blogger...