ATG dynamosystemresource

15 August 2016

You may have come across this “java.net.MalformedURLException: unknown protocol: dynamosystemresource” in your ATG Deployment and wondered what this is all about .

The dynamosystemresource is a URL protocol offered by the Oracle ATG Web Commerce platform. This protocol can be used to refer to any file in the system CLASSPATH.Just as Nucleus makes components available through a Nucleus address relative to the Oracle ATG Web Commerce configuration path, the dynamosystemresource protocol makes files available through an address relative to the CLASSPATH.

4.If you are not able to access dyn admin pages then add the following snippet to a Java file or a scriptlet in JSP and print its value System.getProperty(“java.protocol.handler.pkgs”)

You should have the java.protocol.handler.pkgs set to atg.net.www.protocol else you will get the java.net.MalformedURLException: unknown protocol: dynamosystemresource exception . If java.protocol.handler.pkgs is not set to atg.net.www.protocol then it means that either :

There is some application code that’s overriding this setting to include its own protocol handler . Instead of correctly appending its protocol handler with the existing one its overwriting it . In this case search for System.setProperty(“java.protocol.handler.pkgs”) Or “java.protocol.handler.pkgs” across your code base . You should most probably find some application code setting this manually but instead of appending to the existing property its overwriting it . The correct way to set this would be to read the property and append your new protocol handler and then set the combination . For example on my ATG Deployment the jboss , atg , axis protocol handlers are set by default and I have appended the sun ssl protocol handler to the end of it for PayPal related integration