Thursday, March 24, 2016

atg.process.ProcessException: Unknown segment "main" in process /Common/commonWorkflow.wdl (ATG Oracle Commerce)

This issue happens for all the workflows, not just for commonWorkflow.wdl atg.process.ProcessException: Unknown segment "main" in process

When this happen BCC will not be able to display the workflows and you BCC home page will be something like this:

This happens due /atg/epub/workflow/process/WorkflowProcessManager/ does not have well defineda Process Editor Server:

this can be done by adding the PES as follows:

Very Important Note: Do not use localhost, use the serverName instead.

This needs to be deployed in the same path, I did it at server layer on my atg installation /opt/ATG/ATG10.1.2/home/servers/bcc/localconfig/atg/epub/workflow/process , do it where it fits best for your project.

 The server-name will contian the host and the drpPort The Drp port can be found at /dyn/admin/nucleus/atg/dynamo/Configuration/?propertyName=drpPort

When the server starts with the correct configuration for the PES (Process Editior Server) the Unknown segment "main" in process /Common/commonWorkflow.wdl Exception will not happen anymore, and BCC home page will work as usual.

 I hope this helps you to fix the issue.
Special Thanks to Andres Martinez who is the BCC King!

Monday, March 7, 2016

How To Know which Oracle version is running (Oracle)

If you want to know which the exact Oracle Database version is running, you can find this by running the following query:


This will give you the installed version details.

Is very useful when you are requesting support from oracle, they will ask for this, or when you are connected to a database but do not know details about it.

The details about this are here.

Friday, March 4, 2016

javac error on /dyn/admin (ATG Oracle Commerce)

Today happened that I was creating a vm and installing atg on it, and I ran into the following issue:

unable to access the dyn/admin homepage

And the solution there is basically make the /dyn/admin use javac inside /dynamo server

I did the steps, which basically are to set the following property:


At the following components:


However the issue changed to be:

08:27:58,803 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/dyn/admin].[AdminProxyServlet]] (http-/ JBWEB000236: Servlet.service() for servlet AdminProxyServlet threw exception: java.lang.NoClassDefFoundError: com/sun/tools/javac/Main

Due using different compiler and jar file was missing:

Oracle gives the solution below at Accessing Dynamo Admin Fails With Error: java.lang.NoClassDefFoundError: com/sun/tools/javac/Main (Doc ID 1943579.1)

Add the JDK's tools.jar library to the CLASSPATH environment variable of your application server's JVM. The tools.jar file can be found in your JDK's lib directory, for example: C:\jdk1.7.0_60\lib\tools.jar.
Refer to your application server documentation for additional information on the steps required to add this library to the CLASSPATH.

As easy as that,  I hope this helps you with this odd issue.