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:
javaCompilerClassName=atg.servlet.pagecompile.SunJavaSourceCompiler
At the following components:
/atg/dynamo/servlet/pagecompile/ExtendedJhtmlPageProcessor
/atg/dynamo/servlet/pagecompile/PageProcessor
However the issue changed to be:
08:27:58,803 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/dyn/admin].[AdminProxyServlet]] (http-/10.10.10.10:8080-1) 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.
Comments