<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;D04ERno5eSp7ImA9WhZQFEk.&quot;"><id>tag:blogger.com,1999:blog-6127056490016048846</id><updated>2011-04-22T16:18:27.421+12:00</updated><category term="logging" /><category term="JCD" /><category term="certification" /><category term="screencasts" /><category term="news" /><category term="eDesigner" /><category term="sles" /><category term="edk" /><category term="vmware" /><category term="repository" /><category term="jar" /><category term="BAPI eWay" /><title>Java CAPS Technical Tips</title><subtitle type="html">A blog about Sun SeeBeyond Java CAPS related technical experiences.</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://jcapsblogger.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://jcapsblogger.blogspot.com/" /><author><name>Sebastian Krueger</name><uri>http://www.blogger.com/profile/05628376122714349985</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>25</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/JavaCapsTechnicalTips" /><feedburner:info uri="javacapstechnicaltips" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by-sa/3.0/" /><entry gd:etag="W/&quot;AkENSHozfSp7ImA9WxRWEkg.&quot;"><id>tag:blogger.com,1999:blog-6127056490016048846.post-6760550572928151676</id><published>2008-10-29T18:33:00.002+13:00</published><updated>2008-10-29T18:38:19.485+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-29T18:38:19.485+13:00</app:edited><title>CommandlineCodeGen Debugging Tricks</title><content type="html">If you need to get debugging level logging for the commandlinecodegen under both Windows or Linux, then change the log4j.properties in this file:&lt;br /&gt;&lt;blockquote&gt;$CODEGEN_HOME/compile/lib/ext/log4jProperties.jar&lt;/blockquote&gt;Then modify the first line to be DEBUG instead of ERROR.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6127056490016048846-6760550572928151676?l=jcapsblogger.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://jcapsblogger.blogspot.com/feeds/6760550572928151676/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6127056490016048846&amp;postID=6760550572928151676" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/6760550572928151676?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/6760550572928151676?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaCapsTechnicalTips/~3/cUZiTnPm5lw/commandlinecodegen-debugging-tricks.html" title="CommandlineCodeGen Debugging Tricks" /><author><name>Sebastian Krueger</name><uri>http://www.blogger.com/profile/05628376122714349985</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://jcapsblogger.blogspot.com/2008/10/commandlinecodegen-debugging-tricks.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEcNRn08fip7ImA9WxRWEk4.&quot;"><id>tag:blogger.com,1999:blog-6127056490016048846.post-3748722109169668770</id><published>2008-10-29T11:05:00.004+13:00</published><updated>2008-10-29T12:21:37.376+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-29T12:21:37.376+13:00</app:edited><title>Activating the debug mode in eDesigner</title><content type="html">Edit the %EDESIGNER_HOME%/bin/runed.bat file and search for the line that contains&lt;br /&gt;&lt;blockquote&gt;-J-Drun.mode=run&lt;/blockquote&gt;And change it to&lt;br /&gt;&lt;blockquote&gt;-J-Drun.mode=debug&lt;/blockquote&gt;&lt;br /&gt;Also, in the same folder edit the log4j.properties rootLogger.&lt;br /&gt;Change it from ERROR to DEBUG.&lt;br /&gt;&lt;br /&gt;Restart your eDesigner.&lt;br /&gt;&lt;br /&gt;You can find the log file in %EDESIGNER_HOME%/userdir/system/ide.log&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6127056490016048846-3748722109169668770?l=jcapsblogger.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://jcapsblogger.blogspot.com/feeds/3748722109169668770/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6127056490016048846&amp;postID=3748722109169668770" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/3748722109169668770?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/3748722109169668770?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaCapsTechnicalTips/~3/frTNI_YmYaU/activating-debug-mode-in-edesigner.html" title="Activating the debug mode in eDesigner" /><author><name>Sebastian Krueger</name><uri>http://www.blogger.com/profile/05628376122714349985</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://jcapsblogger.blogspot.com/2008/10/activating-debug-mode-in-edesigner.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkUBSXw9eSp7ImA9WxRWEEo.&quot;"><id>tag:blogger.com,1999:blog-6127056490016048846.post-3835195050958275646</id><published>2008-09-30T20:59:00.008+13:00</published><updated>2008-10-27T16:30:58.261+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-27T16:30:58.261+13:00</app:edited><title>SAP CommandLinceCodegen in Linux... Oh dear...</title><content type="html">&lt;span style="font-size:130%;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Update: This problem has been fixed in Java CAPS 5.1.3 Update 3&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I'm getting this error in the log when I'm trying to compile my project that makes use of the BAPI eWay:&lt;br /&gt;&lt;br /&gt;&lt;pre class="code-block"&gt;&lt;br /&gt;[CODELET] com.stc.otd.codegen.OtdCodeGenException: javaClass: BapiOtdGenerator.validateSapJars(): The following .jar file(s) need to be part of the JVM environment before source code can be compiled:  sapjco.jar.  See documentation for more information.&lt;br /&gt;[CODELET]     at com.stc.sapbapi.codegen.bapi.BapiOtdGenerator.validateSapJars(BapiOtdGenerator.java:233)&lt;br /&gt;[CODELET]     at com.stc.sapbapi.codegen.bapi.BapiOtdGenerator.compile(BapiOtdGenerator.java:170)&lt;br /&gt;[CODELET]     at com.stc.sapbapi.codegen.bapi.BapiOtdGenerator.generate(BapiOtdGenerator.java:312)&lt;br /&gt;[CODELET]     at com.stc.otd.codegen.BaseGenerator.generate(BaseGenerator.java:255)&lt;br /&gt;[CODELET]     at com.stc.sapbapi.codegen.SAPEWayCodeletBase$OutboundCodelet$SAPOutboundJCECodelet.generateOtdJarFile(SAPEWayCodeletBase.java:873)&lt;br /&gt;[CODELET]     at com.stc.sapbapi.codegen.SAPEWayCodeletBase$OutboundCodelet$SAPOutboundJCECodelet.generateFiles(SAPEWayCodeletBase.java:924)&lt;br /&gt;[CODELET]     at com.stc.codegen.anttaskImpl.driver.CodeletProcessor.execute(CodeletProcessor.java:89)&lt;br /&gt;[CODELET]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;br /&gt;[CODELET]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&lt;br /&gt;[CODELET]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&lt;br /&gt;[CODELET]     at java.lang.reflect.Method.invoke(Method.java:585)&lt;br /&gt;[CODELET]     at com.stc.codegen.anttaskImpl.CodeGenAntTaskImpl.execute(CodeGenAntTaskImpl.java:117)&lt;br /&gt;[CODELET]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)&lt;br /&gt;[CODELET]     at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)&lt;br /&gt;[CODELET]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&lt;br /&gt;[CODELET]     at java.lang.reflect.Method.invoke(Method.java:585)&lt;br /&gt;[CODELET]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)&lt;br /&gt;[CODELET]     at org.apache.tools.ant.Task.perform(Task.java:348)&lt;br /&gt;[CODELET]     at org.apache.tools.ant.Target.execute(Target.java:357)&lt;br /&gt;[CODELET]     at org.apache.tools.ant.Target.performTasks(Target.java:385)&lt;br /&gt;[CODELET]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)&lt;br /&gt;[CODELET]     at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)&lt;br /&gt;[CODELET]     at org.apache.tools.ant.Project.executeTargets(Project.java:1181)&lt;br /&gt;[CODELET]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)&lt;br /&gt;[CODELET]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)&lt;br /&gt;[CODELET]     at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)&lt;br /&gt;[CODELET]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&lt;br /&gt;[CODELET]     at java.lang.reflect.Method.invoke(Method.java:585)&lt;br /&gt;[CODELET]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)&lt;br /&gt;[CODELET]     at org.apache.tools.ant.Task.perform(Task.java:348)&lt;br /&gt;[CODELET]     at org.apache.tools.ant.Target.execute(Target.java:357)&lt;br /&gt;[CODELET]     at org.apache.tools.ant.Target.performTasks(Target.java:385)&lt;br /&gt;[CODELET]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)&lt;br /&gt;[CODELET]     at org.apache.tools.ant.Project.executeTarget(Project.java:1298)&lt;br /&gt;[CODELET]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)&lt;br /&gt;[CODELET]     at org.apache.tools.ant.Project.executeTargets(Project.java:1181)&lt;br /&gt;[CODELET]     at org.apache.tools.ant.Main.runBuild(Main.java:698)&lt;br /&gt;[CODELET]     at org.apache.tools.ant.Main.startAnt(Main.java:199)&lt;br /&gt;[CODELET]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)&lt;br /&gt;[CODELET]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Whenever you have a classpath problem with ant, run the ant command with the -diagnostics flag.&lt;br /&gt;&lt;br /&gt;Here is what I get ("." represents irrelevant stuff that I've removed):&lt;br /&gt;&lt;pre class="code-block"&gt;&lt;br /&gt;$ /export/apache-ant-1.7.0/bin/ant -verbose -lib compile/lib/ext -Dcommandline.dir=. -propertyfile /export/scripts/buildProps/p2pd/build.SEP_CAS_FirstContDate.properties -diagnostics&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;-------------------------------------------&lt;br /&gt;ANT_HOME/lib jar listing&lt;br /&gt;-------------------------------------------&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;sapjco.jar (304078 bytes)&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;-------------------------------------------&lt;br /&gt;USER_HOME/.ant/lib jar listing&lt;br /&gt;-------------------------------------------&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;sapjco.jar (304078 bytes)&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;java.class.path : /export/apache-ant-1.7.0/lib/ant-launcher.jar:/export/commandlinecodegen/compile/lib/ext/ldap.jar:/export/commandlinecodegen/compile/lib/ext/com.stc.antlrimpl.jar:&lt;span style="font-weight: bold;"&gt;/export/commandlinecodegen/compile/lib/ext/sapjco.jar&lt;/span&gt;:/export/commandlinecodegen/compile/lib/ext/openide.jar:/export/commandlinecodegen/compile/lib/ext/log4jProperties.jar:/export/commandlinecodegen/compile/lib/ext/commons-logging.jar:/export/commandlinecodegen/compile/lib/ext/log4j.jar:/export/commandlinecodegen/compile/lib/ext:&lt;span style="font-weight: bold;"&gt;/home/eaiadmin/.ant/lib/sapjco.jar&lt;/span&gt;:/export/apache-ant-1.7.0/lib/ant-jai.jar:/export/apache-ant-1.7.0/lib/ant-antlr.jar:/export/apache-ant-1.7.0/lib/ant-starteam.jar:/export/apache-ant-1.7.0/lib/ant-jdepend.jar:/export/apache-ant-1.7.0/lib/ant-apache-oro.jar:/export/apache-ant-1.7.0/lib/ant-trax.jar:/export/apache-ant-1.7.0/lib/ant-apache-regexp.jar:/export/apache-ant-1.7.0/lib/ant-jmf.jar:/export/apache-ant-1.7.0/lib/ant-jsch.jar:/export/apache-ant-1.7.0/lib/ant-apache-bsf.jar:/export/apache-ant-1.7.0/lib/ant-netrexx.jar:/export/apache-ant-1.7.0/lib/ant-swing.jar:&lt;span style="font-weight: bold;"&gt;/export/apache-ant-1.7.0/lib/sapjco.jar&lt;/span&gt;:/export/apache-ant-1.7.0/lib/xercesImpl.jar:/export/apache-ant-1.7.0/lib/ant-apache-bcel.jar:/export/apache-ant-1.7.0/lib/ant-stylebook.jar:/export/apache-ant-1.7.0/lib/ant-javamail.jar:/export/apache-ant-1.7.0/lib/ant-junit.jar:/export/apache-ant-1.7.0/lib/ant-commons-net.jar:/export/apache-ant-1.7.0/lib/ant-commons-logging.jar:/export/apache-ant-1.7.0/lib/ant-weblogic.jar:/export/apache-ant-1.7.0/lib/ant-apache-log4j.jar:/export/apache-ant-1.7.0/lib/ant.jar:/export/apache-ant-1.7.0/lib/xml-apis.jar:/export/apache-ant-1.7.0/lib/ant-nodeps.jar:/export/apache-ant-1.7.0/lib/ant-testutil.jar:/export/apache-ant-1.7.0/lib/ant-launcher.jar:/export/apache-ant-1.7.0/lib/ant-apache-resolver.jar:/export/jdk1.5.0_15/lib/tools.jar&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;So the sapjco.jar is definitely on the classpath. But why are we getting this error then:&lt;br /&gt;&lt;pre class="code-block"&gt;&lt;br /&gt;com.stc.otd.codegen.OtdCodeGenException: javaClass: BapiOtdGenerator.validateSapJars(): The following .jar file(s) need to be part of the JVM environment before source code can be compiled:  sapjco.jar.  See documentation for more information.&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;In this case we should have a look at the underlying validation mechanism. This is a bit naughty... don't tell your boss. ;)&lt;br /&gt;&lt;br /&gt;I use this command to find the jar that contains the BapiOtdGenerator class.&lt;br /&gt;&lt;br /&gt;&lt;pre class="code-block"&gt;&lt;br /&gt;for jar in $(find /export/commandlinecodegen -name "*jar"); do unzip -l $jar|grep BapiOtdGenerator; if [ $? == 0 ]; then echo $jar; fi; done&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;After that "jad" can be quite helpful.&lt;br /&gt;http://www.kpdus.com/jad.html&lt;br /&gt;&lt;br /&gt;Have a look at the validateSapJars method in the resulting BapiOtdGenerator.jad file.&lt;br /&gt;&lt;br /&gt;A while back I posted about my frustration of not being able to use the eWay Development Kit under Linux. The reason I was not able to use is was that the developer of the eDK has hard coded all directory paths to use "\" instead of "/". Well, really he should have used java.io.File.pathSeparator. Here we have a very similar problem of developers never being exposed to the world of Linux.&lt;br /&gt;&lt;br /&gt;The method in question uses the StringTokenizer class to split the classpatch by ";". Well, that will of course only work on Windows, because Linux uses ":". So no matter where I put the sapjco.jar the validation will never succeed. How unfortunate.&lt;br /&gt;&lt;br /&gt;Since the commandlinecodegen is supported on Linux I have no doubt that this bug will be fixed. It's pretty easy to fix after all. In fact, java.lang.System.getProperties() will give you the right value that is needed.&lt;br /&gt;&lt;br /&gt;The thing that annoys me the most is that Java was meant to be platform neutral.&lt;br /&gt;&lt;br /&gt;So, no commandlinecodegen in Linux for BAPIs then I guess...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6127056490016048846-3835195050958275646?l=jcapsblogger.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://jcapsblogger.blogspot.com/feeds/3835195050958275646/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6127056490016048846&amp;postID=3835195050958275646" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/3835195050958275646?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/3835195050958275646?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaCapsTechnicalTips/~3/kmlZJCu77I8/sap-commandlincecodegen-in-linux-oh.html" title="SAP CommandLinceCodegen in Linux... Oh dear..." /><author><name>Sebastian Krueger</name><uri>http://www.blogger.com/profile/05628376122714349985</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total><feedburner:origLink>http://jcapsblogger.blogspot.com/2008/09/sap-commandlincecodegen-in-linux-oh.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkQCRnY9eSp7ImA9WxRWEEo.&quot;"><id>tag:blogger.com,1999:blog-6127056490016048846.post-3106976567729343358</id><published>2008-09-30T19:31:00.007+13:00</published><updated>2008-10-27T16:32:47.861+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-27T16:32:47.861+13:00</app:edited><title>SAP Enabling the Commandline Codegen (Linux) (5.1.3)</title><content type="html">I had previously posted about debugging JCo problems with Java CAPS here:&lt;br /&gt;http://jcapsblogger.blogspot.com/2007/11/what-to-do-if-you-have-issues-with-jco.html&lt;br /&gt;&lt;br /&gt;Now I will extend this method to include the commandline codegen tool for Java CAPS.&lt;br /&gt;&lt;br /&gt;First of all, a brief refresher on how to get the commandline codegen to work.&lt;br /&gt;You MUST use a JDK that is version 5, otherwise your builds won't succeed.&lt;br /&gt;Your ant version should be version 1.7.&lt;br /&gt;&lt;br /&gt;A sample build.properties file looks like this:&lt;br /&gt;&lt;pre class="code-block"&gt;&lt;br /&gt;commandline.rep.url=http://eaiutil4.ird.govt.nz:12000/rv2&lt;br /&gt;commandline.rep.user=codegen&lt;br /&gt;commandline.rep.pass=codegen&lt;br /&gt;commandline.rep.dir=localrepository&lt;br /&gt;commandline.rep.projectName=CORE/util/PingWebClient/dp&lt;br /&gt;commandline.rep.projectDeployName=dpPingWebClient&lt;br /&gt;commandline.rep.projectDeploymentTag=&lt;br /&gt;commandline.rep.projectBranchName=&lt;br /&gt;commandline.esr.select=&lt;br /&gt;commandline.esr.ignore=&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;No let us install the JCo stuff.&lt;br /&gt;&lt;br /&gt;Copy the sapjco.jar to ~/.ant/lib&lt;br /&gt;Copy the librfccm.so and libsapjcorfc.so into $JDK_HOME/jre/lib/i386.&lt;br /&gt;&lt;br /&gt;WARNING!!! WARNING!!! WARNING!!! WARNING!!! WARNING!!! WARNING!!! WARNING!!!&lt;br /&gt;DOES NOT WORK!!!&lt;br /&gt;WARNING!!! WARNING!!! WARNING!!! WARNING!!! WARNING!!! WARNING!!! WARNING!!!&lt;br /&gt;&lt;br /&gt;Read next blog post to find out why.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Update from Mon, 27 October, 2008: This problem has been fixed in Java CAPS 5.1.3 Update 3, so the above instructions will now work.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6127056490016048846-3106976567729343358?l=jcapsblogger.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://jcapsblogger.blogspot.com/feeds/3106976567729343358/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6127056490016048846&amp;postID=3106976567729343358" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/3106976567729343358?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/3106976567729343358?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaCapsTechnicalTips/~3/oOex_hdJFfQ/sap-enabling-commandline-codegen-linux.html" title="SAP Enabling the Commandline Codegen (Linux) (5.1.3)" /><author><name>Sebastian Krueger</name><uri>http://www.blogger.com/profile/05628376122714349985</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://jcapsblogger.blogspot.com/2008/09/sap-enabling-commandline-codegen-linux.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0EBSXYzeSp7ImA9WxRRF0g.&quot;"><id>tag:blogger.com,1999:blog-6127056490016048846.post-3338744089817156800</id><published>2008-09-29T13:24:00.005+13:00</published><updated>2008-09-30T19:20:58.881+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-09-30T19:20:58.881+13:00</app:edited><title>stop_domain1.sh enhancement</title><content type="html">Sometimes it happens that the stop_domain1.sh script fails because some JVM setting was not done right.&lt;br /&gt;&lt;br /&gt;It is then necessary to kill -9 all processes belonging to the Java CAPS Domain.&lt;br /&gt;&lt;br /&gt;This script will automatically kill the domain if the default shutdown command fails.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;#&lt;FONT COLOR=BLUE SIZE=+1&gt;!&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;/&lt;/FONT&gt;bin&lt;FONT COLOR=BLUE SIZE=+1&gt;/&lt;/FONT&gt;sh&lt;br /&gt;&lt;br /&gt;INSTALL_DIR&lt;FONT COLOR=BLUE SIZE=+1&gt;=&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;/&lt;/FONT&gt;home&lt;FONT COLOR=BLUE SIZE=+1&gt;/&lt;/FONT&gt;syk4&lt;FONT COLOR=BLUE SIZE=+1&gt;/&lt;/FONT&gt;JavaCAPS513&lt;FONT COLOR=BLUE SIZE=+1&gt;/&lt;/FONT&gt;logicalhost&lt;FONT COLOR=BLUE SIZE=+1&gt;/&lt;/FONT&gt;is&lt;br /&gt;DOMAIN_NAME&lt;FONT COLOR=BLUE SIZE=+1&gt;=&lt;/FONT&gt;domain1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;FONT COLOR=PURPLE&gt;"$INSTALL_DIR/bin/isadmin"&lt;/FONT&gt; stop&lt;FONT COLOR=BLUE SIZE=+1&gt;-&lt;/FONT&gt;domain $&lt;FONT COLOR=BLUE SIZE=+1&gt;*&lt;/FONT&gt; $DOMAIN_NAME&lt;br /&gt;&lt;br /&gt;# Added by sebastian&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;.&lt;/B&gt;&lt;/FONT&gt;krueger@ird&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;.&lt;/B&gt;&lt;/FONT&gt;govt&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;.&lt;/B&gt;&lt;/FONT&gt;nz&lt;br /&gt;# &lt;FONT COLOR=BROWN&gt;0&lt;/FONT&gt; &lt;FONT COLOR=BLUE SIZE=+1&gt;=&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;=&lt;/FONT&gt; ok&lt;br /&gt;# &lt;FONT COLOR=BROWN&gt;1&lt;/FONT&gt; &lt;FONT COLOR=BLUE SIZE=+1&gt;=&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;=&lt;/FONT&gt; broken&lt;br /&gt;&lt;br /&gt;&lt;FONT COLOR=RED&gt;&lt;B&gt;if&lt;/B&gt;&lt;/FONT&gt; &lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;[&lt;/B&gt;&lt;/FONT&gt; $&lt;FONT COLOR=BLUE SIZE=+1&gt;?&lt;/FONT&gt; &lt;FONT COLOR=BLUE SIZE=+1&gt;=&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;=&lt;/FONT&gt; &lt;FONT COLOR=BROWN&gt;1&lt;/FONT&gt; &lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;]&lt;/B&gt;&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;;&lt;/B&gt;&lt;/FONT&gt; then&lt;br /&gt;        echo&lt;br /&gt;        echo &lt;FONT COLOR=PURPLE&gt;"Killing the Domain by force!!"&lt;/FONT&gt;&lt;br /&gt;&lt;br /&gt;        &lt;FONT COLOR=RED&gt;&lt;B&gt;for&lt;/B&gt;&lt;/FONT&gt; job in `ps ax&lt;FONT COLOR=BLUE SIZE=+1&gt;|&lt;/FONT&gt;egrep 'isprocmgr_domain1&lt;FONT COLOR=BLUE SIZE=+1&gt;|&lt;/FONT&gt;is_domain1&lt;FONT COLOR=BLUE SIZE=+1&gt;|&lt;/FONT&gt;domain1.&lt;FONT COLOR=BLUE SIZE=+1&gt;*&lt;/FONT&gt;stcms&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;.&lt;/B&gt;&lt;/FONT&gt;exe'&lt;FONT COLOR=BLUE SIZE=+1&gt;|&lt;/FONT&gt;grep &lt;FONT COLOR=BLUE SIZE=+1&gt;-&lt;/FONT&gt;v grep&lt;FONT COLOR=BLUE SIZE=+1&gt;|&lt;/FONT&gt;awk '&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;{&lt;/B&gt;&lt;/FONT&gt;print $&lt;FONT COLOR=BROWN&gt;1&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;}&lt;/B&gt;&lt;/FONT&gt;'`&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;;&lt;/B&gt;&lt;/FONT&gt; &lt;FONT COLOR=RED&gt;&lt;B&gt;do&lt;/B&gt;&lt;/FONT&gt; kill &lt;FONT COLOR=BLUE SIZE=+1&gt;-&lt;/FONT&gt;&lt;FONT COLOR=BROWN&gt;9&lt;/FONT&gt; $job&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;;&lt;/B&gt;&lt;/FONT&gt; done&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To install this script edit the $DOMAIN_HOME/lib/stopdomain.sh.template to look like this:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;#&lt;FONT COLOR=BLUE SIZE=+1&gt;!&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;/&lt;/FONT&gt;bin&lt;FONT COLOR=BLUE SIZE=+1&gt;/&lt;/FONT&gt;sh&lt;br /&gt;&lt;br /&gt;INSTALL_DIR&lt;FONT COLOR=BLUE SIZE=+1&gt;=&lt;/FONT&gt;$INSTALL_DIR$&lt;br /&gt;DOMAIN_NAME&lt;FONT COLOR=BLUE SIZE=+1&gt;=&lt;/FONT&gt;$DOMAIN_NAME$&lt;br /&gt;&lt;br /&gt;&lt;FONT COLOR=PURPLE&gt;"$INSTALL_DIR/bin/isadmin"&lt;/FONT&gt; stop&lt;FONT COLOR=BLUE SIZE=+1&gt;-&lt;/FONT&gt;domain $&lt;FONT COLOR=BLUE SIZE=+1&gt;*&lt;/FONT&gt; $DOMAIN_NAME&lt;br /&gt;&lt;br /&gt;# &lt;FONT COLOR=BROWN&gt;0&lt;/FONT&gt; &lt;FONT COLOR=BLUE SIZE=+1&gt;=&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;=&lt;/FONT&gt; ok&lt;br /&gt;# &lt;FONT COLOR=BROWN&gt;1&lt;/FONT&gt; &lt;FONT COLOR=BLUE SIZE=+1&gt;=&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;=&lt;/FONT&gt; broken&lt;br /&gt;&lt;br /&gt;&lt;FONT COLOR=RED&gt;&lt;B&gt;if&lt;/B&gt;&lt;/FONT&gt; &lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;[&lt;/B&gt;&lt;/FONT&gt; $&lt;FONT COLOR=BLUE SIZE=+1&gt;?&lt;/FONT&gt; &lt;FONT COLOR=BLUE SIZE=+1&gt;=&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;=&lt;/FONT&gt; &lt;FONT COLOR=BROWN&gt;1&lt;/FONT&gt; &lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;]&lt;/B&gt;&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;;&lt;/B&gt;&lt;/FONT&gt; then&lt;br /&gt;       echo&lt;br /&gt;       echo &lt;FONT COLOR=PURPLE&gt;"Killing the Domain by force!!"&lt;/FONT&gt;&lt;br /&gt;&lt;br /&gt;       &lt;FONT COLOR=RED&gt;&lt;B&gt;for&lt;/B&gt;&lt;/FONT&gt; job in `ps ax&lt;FONT COLOR=BLUE SIZE=+1&gt;|&lt;/FONT&gt;egrep 'isprocmgr_$DOMAIN_NAME$&lt;FONT COLOR=BLUE SIZE=+1&gt;|&lt;/FONT&gt;is_$DOMAIN_NAME$&lt;FONT COLOR=BLUE SIZE=+1&gt;|&lt;/FONT&gt;$DOMAIN_NAME$&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;.&lt;/B&gt;&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;*&lt;/FONT&gt;stcms&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;.&lt;/B&gt;&lt;/FONT&gt;exe'&lt;FONT COLOR=BLUE SIZE=+1&gt;|&lt;/FONT&gt;grep &lt;FONT COLOR=BLUE SIZE=+1&gt;-&lt;/FONT&gt;v grep&lt;FONT COLOR=BLUE SIZE=+1&gt;|&lt;/FONT&gt;awk '&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;{&lt;/B&gt;&lt;/FONT&gt;print $&lt;FONT COLOR=BROWN&gt;1&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;}&lt;/B&gt;&lt;/FONT&gt;'`&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;;&lt;/B&gt;&lt;/FONT&gt; &lt;FONT COLOR=RED&gt;&lt;B&gt;do&lt;/B&gt;&lt;/FONT&gt; kill &lt;FONT COLOR=BLUE SIZE=+1&gt;-&lt;/FONT&gt;&lt;FONT COLOR=BROWN&gt;9&lt;/FONT&gt; $job&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;;&lt;/B&gt;&lt;/FONT&gt; done&lt;br /&gt;fi&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6127056490016048846-3338744089817156800?l=jcapsblogger.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://jcapsblogger.blogspot.com/feeds/3338744089817156800/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6127056490016048846&amp;postID=3338744089817156800" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/3338744089817156800?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/3338744089817156800?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaCapsTechnicalTips/~3/p9_SuAGwveI/stopdomain1sh-enhancement.html" title="stop_domain1.sh enhancement" /><author><name>Sebastian Krueger</name><uri>http://www.blogger.com/profile/05628376122714349985</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>2</thr:total><feedburner:origLink>http://jcapsblogger.blogspot.com/2008/09/stopdomain1sh-enhancement.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUIBQH8yeSp7ImA9WxRWEEo.&quot;"><id>tag:blogger.com,1999:blog-6127056490016048846.post-1834741342407491658</id><published>2008-09-29T12:20:00.003+13:00</published><updated>2008-10-27T15:12:31.191+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-27T15:12:31.191+13:00</app:edited><title>Java CAPS TimeZone Update for JVM</title><content type="html">In New Zealand we changed to Summer Time yesterday.&lt;br /&gt;&lt;br /&gt;After this change I found that several of our SUSE Linux Enterprise Servers had incorrect time (when using the "date" command).&lt;br /&gt;&lt;br /&gt;After applying a patch from novell.com to fix this issue I found that the date command was now returning the correct time, but my Java CAPS logs were still on Winter Time.&lt;br /&gt;&lt;br /&gt;I then found that this is a bug with the JVM.&lt;br /&gt;For more info on this look here:&lt;br /&gt;http://sunsolve.sun.com/search/document.do?assetkey=1-26-102836-1&lt;br /&gt;&lt;br /&gt;You can fix it by downloading the Timezone Updater Tool from here:&lt;br /&gt;http://java.sun.com/javase/tzupdater_README.html&lt;br /&gt;&lt;br /&gt;Run the tzupdater.jar with the jre that is supplied with the domain. This will then update the timezone data for your domain and your logs will show the correct time.&lt;br /&gt;&lt;br /&gt;Use the following one-liner in bash to apply the patch to all local jvm's:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;for java in `find . -name java -type f -perm /+x`; do echo $java; $java -jar ~/tzupdater.jar -t; done&lt;br /&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6127056490016048846-1834741342407491658?l=jcapsblogger.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://jcapsblogger.blogspot.com/feeds/1834741342407491658/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6127056490016048846&amp;postID=1834741342407491658" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/1834741342407491658?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/1834741342407491658?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaCapsTechnicalTips/~3/q2WWNNSnGJk/java-caps-timezone-update-for-jvm.html" title="Java CAPS TimeZone Update for JVM" /><author><name>Sebastian Krueger</name><uri>http://www.blogger.com/profile/05628376122714349985</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://jcapsblogger.blogspot.com/2008/09/java-caps-timezone-update-for-jvm.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkANRXg_eyp7ImA9WxRSEE4.&quot;"><id>tag:blogger.com,1999:blog-6127056490016048846.post-2326400598933973217</id><published>2008-09-10T20:10:00.002+12:00</published><updated>2008-09-10T20:19:54.643+12:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-09-10T20:19:54.643+12:00</app:edited><title>projectExport/Import Trap for young players</title><content type="html">In Linux, if you run the exportProject.sh script (tested in 5.1.3 and 6.0.0) you get the following documentation:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;./exportProject.sh&lt;br /&gt;Usage: To export Projects/Environments, type in&lt;br /&gt;&lt;br /&gt;exportProject.sh {username} {password} {branch name} {export file} {project paths} {environment paths}&lt;br /&gt;&lt;br /&gt;To export both projects and environments:&lt;br /&gt;eg. exportProject.sh user pwd "" /usr/jcaps/export.zip "Project1+Project2/SubProject" "Env1+Env2"&lt;br /&gt;&lt;br /&gt;To export only projects:&lt;br /&gt;eg. exportProject.sh user pwd "" /usr/jcaps/export.exp "Project1+Project2/SubProject" ""&lt;br /&gt;&lt;br /&gt;To export a project from a given version control branch:&lt;br /&gt;eg. exportProject.sh user pwd "BranchName" /usr/jcaps/export.exp "Project1" "Env1"&lt;/blockquote&gt;So you would then expect that the following should work:&lt;br /&gt;&lt;br /&gt;./exportProject.sh Administrator STC "" /export/backup.zip "Project1" ""&lt;br /&gt;&lt;br /&gt;However, that will just return an error message. You need to specify the "Branch". If you want to use the default branch, then you need to specify "HEAD" as the branch name.&lt;br /&gt;&lt;br /&gt;Like so:&lt;br /&gt;&lt;br /&gt;./exportProject.sh Administrator STC &lt;span style="font-weight: bold;"&gt;"HEAD"&lt;/span&gt; /export/backup.zip "Project1" ""&lt;br /&gt;&lt;br /&gt;Then it will work.&lt;br /&gt;&lt;br /&gt;When you to the importProject.sh you don't need to specify the "HEAD" though. Strange.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6127056490016048846-2326400598933973217?l=jcapsblogger.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://jcapsblogger.blogspot.com/feeds/2326400598933973217/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6127056490016048846&amp;postID=2326400598933973217" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/2326400598933973217?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/2326400598933973217?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaCapsTechnicalTips/~3/O2VT95MXUZ0/projectexportimport-trap-for-young.html" title="projectExport/Import Trap for young players" /><author><name>Sebastian Krueger</name><uri>http://www.blogger.com/profile/05628376122714349985</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://jcapsblogger.blogspot.com/2008/09/projectexportimport-trap-for-young.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkUCR3c-eyp7ImA9WxRTGEg.&quot;"><id>tag:blogger.com,1999:blog-6127056490016048846.post-6948757031654697141</id><published>2008-09-08T19:07:00.000+12:00</published><updated>2008-09-08T19:17:46.953+12:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-09-08T19:17:46.953+12:00</app:edited><title>Recurring tasks after installing a new logicalhost in 5.1.3</title><content type="html">Often I've found myself having to apply the same JVM settings to all my domains that I create. This I looked for a way to change the JMV settings via commandline tools. The solutions that I found was to use the isadmin command that is part of the Java CAPS 5.1 Logicalhost.&lt;br /&gt;&lt;br /&gt;The script below takes care of my classpath settings, my JVM settings, changing my Administrator password to something less well known than "STC", and ensures that duplicate stack traces are printed in the server.log.&lt;br /&gt;&lt;br /&gt;Maybe it's useful to you.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;setupDomain.sh&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;font color="0000ff"&gt;&lt;strong&gt;#!/bin/bash&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;function&lt;/font&gt; &lt;font color="#2040a0"&gt;displayHelp&lt;/font&gt;&lt;font color="4444FF"&gt;(&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt; &lt;font color="4444FF"&gt;&lt;strong&gt;{&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;Usage: setupDomain.sh -s &amp;lt;server&amp;gt; -p &amp;lt;basePort&amp;gt; -d &amp;lt;domainName&amp;gt;&amp;quot;&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;This script will setup a running domain. The following configurations will be made:&amp;quot;&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;  - set server.java-config.classpath-suffix=/some/directory:/some/directory/someFile.jar&amp;quot;&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;  - set server.log-service.property.print-dup-stack-trace=true&amp;quot;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;  - delete-jvm-options -- -Xmx512m&amp;quot;&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;  - create-jvm-options -- -Xmx1536m&amp;quot;&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;  - create-jvm-options -- -Xmn256m&amp;quot;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;  - create-jvm-options -XX:+UseParallelGC&amp;quot;&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;  - create-jvm-options -XX:PerfDataSamplingInterval=500&amp;quot;&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;  - create-jvm-options -XX:+DisableExplicitGC&amp;quot;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;  - create-jvm-options -XX:MaxPermSize=512m&amp;quot;&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;  - update-file-user --userpassword foo --groups asadmin Administrator&amp;quot;&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;  - bounce the domain&amp;quot;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;exit&lt;/font&gt;&lt;br /&gt;&lt;font color="4444FF"&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;lhHome&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt;/&lt;font color="#2040a0"&gt;export&lt;/font&gt;/&lt;font color="#2040a0"&gt;logicalhost&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;if&lt;/strong&gt; &lt;font color="4444FF"&gt;[&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;$1&amp;quot;&lt;/font&gt; &lt;font color="4444FF"&gt;=&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;&amp;quot;&lt;/font&gt; &lt;font color="4444FF"&gt;]&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt; &lt;font color="#2040a0"&gt;then&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;displayHelp&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;fi&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;while&lt;/strong&gt; &lt;font color="#2040a0"&gt;getopts&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;:s:d:p:&amp;quot;&lt;/font&gt; &lt;font color="#2040a0"&gt;optname&lt;/font&gt;&lt;br /&gt;&lt;strong&gt;do&lt;/strong&gt;&lt;br /&gt;        &lt;strong&gt;case&lt;/strong&gt; &lt;font color="#008000"&gt;&amp;quot;$optname&amp;quot;&lt;/font&gt; &lt;font color="#2040a0"&gt;in&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;s&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;&lt;br /&gt;                &lt;font color="#2040a0"&gt;server&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt;$&lt;font color="#2040a0"&gt;OPTARG&lt;/font&gt;&lt;br /&gt;                &lt;font color="4444FF"&gt;;&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;d&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;                &lt;font color="#2040a0"&gt;domainName&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt;$&lt;font color="#2040a0"&gt;OPTARG&lt;/font&gt;&lt;br /&gt;                &lt;font color="4444FF"&gt;;&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;p&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;&lt;br /&gt;                &lt;font color="#2040a0"&gt;port&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt;$&lt;font color="#2040a0"&gt;OPTARG&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;                &lt;font color="4444FF"&gt;;&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt;&lt;br /&gt;        &lt;font color="4444FF"&gt;*&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;&lt;br /&gt;                &lt;font color="#2040a0"&gt;displayHelp&lt;/font&gt;&lt;br /&gt;                &lt;font color="4444FF"&gt;;&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;esac&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;done&lt;/font&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;shift&lt;/font&gt; $&lt;font color="4444FF"&gt;(&lt;/font&gt;&lt;font color="4444FF"&gt;(&lt;/font&gt;$&lt;font color="#2040a0"&gt;OPTIND&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#FF0000"&gt;1&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;echo&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;Setting CLASSPATH-SUFFIX for $server $domainName on port $port&amp;quot;&lt;/font&gt;&lt;br /&gt;$&lt;font color="#2040a0"&gt;lhHome&lt;/font&gt;/&lt;font color="#2040a0"&gt;is&lt;/font&gt;/&lt;font color="#2040a0"&gt;bin&lt;/font&gt;/&lt;font color="#2040a0"&gt;isadmin&lt;/font&gt; &lt;font color="#2040a0"&gt;set&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;host&lt;/font&gt; $&lt;font color="#2040a0"&gt;server&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;port&lt;/font&gt; $&lt;font color="#2040a0"&gt;port&lt;/font&gt; &lt;font color="#2040a0"&gt;server&lt;/font&gt;.&lt;font color="#2040a0"&gt;java&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;config&lt;/font&gt;.&lt;font color="#2040a0"&gt;classpath&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;suffix&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt;/&lt;font color="#2040a0"&gt;some&lt;/font&gt;/&lt;font color="#2040a0"&gt;directory&lt;/font&gt;&lt;font color="4444FF"&gt;:&lt;/font&gt;/&lt;font color="#2040a0"&gt;some&lt;/font&gt;/&lt;font color="#2040a0"&gt;directory&lt;/font&gt;/&lt;font color="#2040a0"&gt;someFile&lt;/font&gt;.&lt;font color="#2040a0"&gt;jar&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;echo&lt;/font&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;Setting print-dup-stack-trace for $server $domainName on port $port&amp;quot;&lt;/font&gt;&lt;br /&gt;$&lt;font color="#2040a0"&gt;lhHome&lt;/font&gt;/&lt;font color="#2040a0"&gt;is&lt;/font&gt;/&lt;font color="#2040a0"&gt;bin&lt;/font&gt;/&lt;font color="#2040a0"&gt;isadmin&lt;/font&gt; &lt;font color="#2040a0"&gt;set&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;host&lt;/font&gt; $&lt;font color="#2040a0"&gt;server&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;port&lt;/font&gt; $&lt;font color="#2040a0"&gt;port&lt;/font&gt; &lt;font color="#2040a0"&gt;server&lt;/font&gt;.&lt;font color="#2040a0"&gt;log&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;service&lt;/font&gt;.&lt;font color="#2040a0"&gt;property&lt;/font&gt;.&lt;font color="#2040a0"&gt;print&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;dup&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;stack&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;trace&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt;&lt;font color="#2040a0"&gt;true&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;echo&lt;/font&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;Setting jvm options&amp;quot;&lt;/font&gt;&lt;br /&gt;$&lt;font color="#2040a0"&gt;lhHome&lt;/font&gt;/&lt;font color="#2040a0"&gt;is&lt;/font&gt;/&lt;font color="#2040a0"&gt;bin&lt;/font&gt;/&lt;font color="#2040a0"&gt;isadmin&lt;/font&gt; &lt;font color="#2040a0"&gt;delete&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;jvm&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;options&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;host&lt;/font&gt; $&lt;font color="#2040a0"&gt;server&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;port&lt;/font&gt; $&lt;font color="#2040a0"&gt;port&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;Xmx512m&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;$&lt;font color="#2040a0"&gt;lhHome&lt;/font&gt;/&lt;font color="#2040a0"&gt;is&lt;/font&gt;/&lt;font color="#2040a0"&gt;bin&lt;/font&gt;/&lt;font color="#2040a0"&gt;isadmin&lt;/font&gt; &lt;font color="#2040a0"&gt;create&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;jvm&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;options&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;host&lt;/font&gt; $&lt;font color="#2040a0"&gt;server&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;port&lt;/font&gt; $&lt;font color="#2040a0"&gt;port&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;Xmx1536m&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;$&lt;font color="#2040a0"&gt;lhHome&lt;/font&gt;/&lt;font color="#2040a0"&gt;is&lt;/font&gt;/&lt;font color="#2040a0"&gt;bin&lt;/font&gt;/&lt;font color="#2040a0"&gt;isadmin&lt;/font&gt; &lt;font color="#2040a0"&gt;create&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;jvm&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;options&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;host&lt;/font&gt; $&lt;font color="#2040a0"&gt;server&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;port&lt;/font&gt; $&lt;font color="#2040a0"&gt;port&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;Xmn256m&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;$&lt;font color="#2040a0"&gt;lhHome&lt;/font&gt;/&lt;font color="#2040a0"&gt;is&lt;/font&gt;/&lt;font color="#2040a0"&gt;bin&lt;/font&gt;/&lt;font color="#2040a0"&gt;isadmin&lt;/font&gt; &lt;font color="#2040a0"&gt;create&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;jvm&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;options&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;host&lt;/font&gt; $&lt;font color="#2040a0"&gt;server&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;port&lt;/font&gt; $&lt;font color="#2040a0"&gt;port&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;XX&lt;/font&gt;\\&lt;font color="4444FF"&gt;:&lt;/font&gt;&lt;font color="4444FF"&gt;+&lt;/font&gt;&lt;font color="#2040a0"&gt;UseParallelGC&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;$&lt;font color="#2040a0"&gt;lhHome&lt;/font&gt;/&lt;font color="#2040a0"&gt;is&lt;/font&gt;/&lt;font color="#2040a0"&gt;bin&lt;/font&gt;/&lt;font color="#2040a0"&gt;isadmin&lt;/font&gt; &lt;font color="#2040a0"&gt;create&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;jvm&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;options&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;host&lt;/font&gt; $&lt;font color="#2040a0"&gt;server&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;port&lt;/font&gt; $&lt;font color="#2040a0"&gt;port&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;XX&lt;/font&gt;\\&lt;font color="4444FF"&gt;:&lt;/font&gt;&lt;font color="#2040a0"&gt;PerfDataSamplingInterval&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt;&lt;font color="#FF0000"&gt;500&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;$&lt;font color="#2040a0"&gt;lhHome&lt;/font&gt;/&lt;font color="#2040a0"&gt;is&lt;/font&gt;/&lt;font color="#2040a0"&gt;bin&lt;/font&gt;/&lt;font color="#2040a0"&gt;isadmin&lt;/font&gt; &lt;font color="#2040a0"&gt;create&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;jvm&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;options&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;host&lt;/font&gt; $&lt;font color="#2040a0"&gt;server&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;port&lt;/font&gt; $&lt;font color="#2040a0"&gt;port&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;XX&lt;/font&gt;\\&lt;font color="4444FF"&gt;:&lt;/font&gt;&lt;font color="4444FF"&gt;+&lt;/font&gt;&lt;font color="#2040a0"&gt;DisableExplicitGC&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;$&lt;font color="#2040a0"&gt;lhHome&lt;/font&gt;/&lt;font color="#2040a0"&gt;is&lt;/font&gt;/&lt;font color="#2040a0"&gt;bin&lt;/font&gt;/&lt;font color="#2040a0"&gt;isadmin&lt;/font&gt; &lt;font color="#2040a0"&gt;create&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;jvm&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;options&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;host&lt;/font&gt; $&lt;font color="#2040a0"&gt;server&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;port&lt;/font&gt; $&lt;font color="#2040a0"&gt;port&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;XX&lt;/font&gt;\\&lt;font color="4444FF"&gt;:&lt;/font&gt;&lt;font color="#2040a0"&gt;MaxPermSize&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt;512&lt;font color="#2040a0"&gt;m&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;echo&lt;/font&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;Changeing Administrator password&amp;quot;&lt;/font&gt;&lt;br /&gt;$&lt;font color="#2040a0"&gt;lhHome&lt;/font&gt;/&lt;font color="#2040a0"&gt;is&lt;/font&gt;/&lt;font color="#2040a0"&gt;bin&lt;/font&gt;/&lt;font color="#2040a0"&gt;isadmin&lt;/font&gt; &lt;font color="#2040a0"&gt;update&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;file&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;user&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;host&lt;/font&gt; $&lt;font color="#2040a0"&gt;server&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;port&lt;/font&gt; $&lt;font color="#2040a0"&gt;port&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;userpassword&lt;/font&gt; &lt;font color="#2040a0"&gt;foo&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;groups&lt;/font&gt; &lt;font color="#2040a0"&gt;asadmin&lt;/font&gt; &lt;font color="#2040a0"&gt;Administrator&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;echo&lt;/font&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;Bouncing $server $domainName&amp;quot;&lt;/font&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;ssh&lt;/font&gt; $&lt;font color="#2040a0"&gt;server&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;/export/entlh/logicalhost/stop_${domainName}.sh &amp;amp;&amp;amp; /export/entlh/logicalhost/start_${domainName}.sh&amp;quot;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6127056490016048846-6948757031654697141?l=jcapsblogger.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://jcapsblogger.blogspot.com/feeds/6948757031654697141/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6127056490016048846&amp;postID=6948757031654697141" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/6948757031654697141?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/6948757031654697141?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaCapsTechnicalTips/~3/v3W4HNi0XDA/recurring-tasks-after-installing-new.html" title="Recurring tasks after installing a new logicalhost in 5.1.3" /><author><name>Sebastian Krueger</name><uri>http://www.blogger.com/profile/05628376122714349985</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>3</thr:total><feedburner:origLink>http://jcapsblogger.blogspot.com/2008/09/recurring-tasks-after-installing-new.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkQBQnk9fip7ImA9WxRTGEg.&quot;"><id>tag:blogger.com,1999:blog-6127056490016048846.post-5240099733003824375</id><published>2008-09-08T18:22:00.000+12:00</published><updated>2008-09-08T19:19:13.766+12:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-09-08T19:19:13.766+12:00</app:edited><title>Why is there no deleteDomain.sh in a 5.1.3 Linux Logicalhost?</title><content type="html">Put this script in the same directory where the createdomain.sh script is (ie, the folder where you have untarred the logicalhost.tar.gz).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;deleteDomain.sh&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;font color="0000ff"&gt;&lt;strong&gt;#!/bin/bash&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;help&lt;/font&gt;&lt;font color="4444FF"&gt;(&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt; &lt;font color="4444FF"&gt;&lt;strong&gt;{&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;Usage: $(basename $0) [--dname &amp;lt;domain_name&amp;gt;] [--help]&amp;quot;&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;where:&amp;quot;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;  --dname         domain name, default &lt;font color="#77dd77"&gt;\&amp;quot;&lt;/font&gt;domain1&lt;font color="#77dd77"&gt;\&amp;quot;&lt;/font&gt;&amp;quot;&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;  --help          prints this help message&amp;quot;&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;exit&lt;/font&gt;&lt;br /&gt;&lt;font color="4444FF"&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;if&lt;/strong&gt; &lt;font color="4444FF"&gt;[&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;$1&amp;quot;&lt;/font&gt; &lt;font color="4444FF"&gt;=&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;--help&amp;quot;&lt;/font&gt; &lt;font color="4444FF"&gt;]&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt; &lt;font color="#2040a0"&gt;then&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;help&lt;/font&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;fi&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;if&lt;/strong&gt; &lt;font color="4444FF"&gt;[&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;$1&amp;quot;&lt;/font&gt; &lt;font color="4444FF"&gt;=&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;--dname&amp;quot;&lt;/font&gt; &lt;font color="4444FF"&gt;]&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt; &lt;font color="#2040a0"&gt;then&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;        &lt;strong&gt;if&lt;/strong&gt; &lt;font color="4444FF"&gt;[&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;$2&amp;quot;&lt;/font&gt; &lt;font color="4444FF"&gt;=&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;&amp;quot;&lt;/font&gt; &lt;font color="4444FF"&gt;]&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt; &lt;font color="#2040a0"&gt;then&lt;/font&gt;&lt;br /&gt;                &lt;font color="#2040a0"&gt;help&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;        &lt;strong&gt;else&lt;/strong&gt;&lt;br /&gt;                &lt;font color="#2040a0"&gt;domainName&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt;$&lt;font color="#FF0000"&gt;2&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;fi&lt;/font&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;fi&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;if&lt;/strong&gt; &lt;font color="4444FF"&gt;[&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;$1&amp;quot;&lt;/font&gt; &lt;font color="4444FF"&gt;=&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;&amp;quot;&lt;/font&gt; &lt;font color="4444FF"&gt;]&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt; &lt;font color="#2040a0"&gt;then&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;domainName&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt;&lt;font color="#2040a0"&gt;domain1&lt;/font&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;fi&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;$&lt;font color="4444FF"&gt;(&lt;/font&gt;&lt;font color="#2040a0"&gt;ps&lt;/font&gt; &lt;font color="#2040a0"&gt;ax&lt;/font&gt;&lt;font color="4444FF"&gt;|&lt;/font&gt;&lt;font color="#2040a0"&gt;grep&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;E&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;[i]sprocmgr_$domainName|[i]s_$domainName|$domainName.*[s]tcms.exe&amp;quot;&lt;/font&gt;&lt;font color="4444FF"&gt;&amp;gt;&lt;/font&gt;/&lt;font color="#2040a0"&gt;dev&lt;/font&gt;/&lt;font color="#2040a0"&gt;null&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;if&lt;/strong&gt; &lt;font color="4444FF"&gt;[&lt;/font&gt; $? &lt;font color="4444FF"&gt;=&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt; &lt;font color="#FF0000"&gt;0&lt;/font&gt; &lt;font color="4444FF"&gt;]&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt; &lt;font color="#2040a0"&gt;then&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;Please shutdown the Domain first.&amp;quot;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;exit&lt;/font&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;fi&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;dir&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt;$&lt;font color="4444FF"&gt;(&lt;/font&gt;&lt;font color="#2040a0"&gt;dirname&lt;/font&gt; $&lt;font color="#FF0000"&gt;0&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;Removing start_$domainName.sh&amp;quot;&lt;/font&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;rm&lt;/font&gt; $&lt;font color="#2040a0"&gt;dir&lt;/font&gt;/&lt;font color="#2040a0"&gt;start_&lt;/font&gt;$&lt;font color="#2040a0"&gt;domainName&lt;/font&gt;.&lt;font color="#2040a0"&gt;sh&lt;/font&gt; &lt;font color="4444FF"&gt;&amp;gt;&lt;/font&gt; /&lt;font color="#2040a0"&gt;dev&lt;/font&gt;/&lt;font color="#2040a0"&gt;null&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;Removing stop_$domainName.sh&amp;quot;&lt;/font&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;rm&lt;/font&gt; $&lt;font color="#2040a0"&gt;dir&lt;/font&gt;/&lt;font color="#2040a0"&gt;stop_&lt;/font&gt;$&lt;font color="#2040a0"&gt;domainName&lt;/font&gt;.&lt;font color="#2040a0"&gt;sh&lt;/font&gt; &lt;font color="4444FF"&gt;&amp;gt;&lt;/font&gt; /&lt;font color="#2040a0"&gt;dev&lt;/font&gt;/&lt;font color="#2040a0"&gt;null&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;Removing is/domains/$domainName directory&amp;quot;&lt;/font&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;rm&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;r&lt;/font&gt; $&lt;font color="#2040a0"&gt;dir&lt;/font&gt;/&lt;font color="#2040a0"&gt;is&lt;/font&gt;/&lt;font color="#2040a0"&gt;domains&lt;/font&gt;/$&lt;font color="#2040a0"&gt;domainName&lt;/font&gt; &lt;font color="4444FF"&gt;&amp;gt;&lt;/font&gt; /&lt;font color="#2040a0"&gt;dev&lt;/font&gt;/&lt;font color="#2040a0"&gt;null&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6127056490016048846-5240099733003824375?l=jcapsblogger.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://jcapsblogger.blogspot.com/feeds/5240099733003824375/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6127056490016048846&amp;postID=5240099733003824375" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/5240099733003824375?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/5240099733003824375?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaCapsTechnicalTips/~3/H9qQUMDzQe8/why-is-there-no-deletedomainsh-in-513.html" title="Why is there no deleteDomain.sh in a 5.1.3 Linux Logicalhost?" /><author><name>Sebastian Krueger</name><uri>http://www.blogger.com/profile/05628376122714349985</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total><feedburner:origLink>http://jcapsblogger.blogspot.com/2008/09/why-is-there-no-deletedomainsh-in-513.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0UGSXoyfip7ImA9WxRTGEg.&quot;"><id>tag:blogger.com,1999:blog-6127056490016048846.post-8631594671495692846</id><published>2008-08-28T16:25:00.000+12:00</published><updated>2008-09-08T18:27:08.496+12:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-09-08T18:27:08.496+12:00</app:edited><title>when was that ear file built?</title><content type="html">I often ask myself when a particular deployed ear file was build, ie what version of code has been deployed. Luckily, every EAR file that is build in JavaCAPS 5.1.3/6 contains various useful details.&lt;br /&gt;&lt;br /&gt;Here an example of the MANIFEST.MF:&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;Manifest-Version: 1.0&lt;br /&gt;Ant-Version: Apache Ant 1.7.0&lt;br /&gt;Created-By: 1.5.0_15-b04 (Sun Microsystems Inc.)&lt;br /&gt;CAPS-Version: 5.1.3&lt;br /&gt;&lt;br /&gt;Name: Application Information&lt;br /&gt;CAPS-Build-Time: 2008-08-26T02:09:23 +1200&lt;br /&gt;CAPS-Deployment-Profile-Name: dpPingWebClient, Version 1.4&lt;br /&gt;CAPS-Project-Name: CORE/util/PingWebClient/dp&lt;br /&gt;CAPS-Integration-Server-Name: is192.168.1.1&lt;br /&gt;CAPS-Logical-Host-Name: lh192.168.1.1&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;The CAPS-Build-Time is particularly useful and I wrote a script which will extract these values for me. I use ssh-keys so that I am not prompted for passwords when I log onto any server via ssh.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;font color="0000ff"&gt;&lt;strong&gt;#!/bin/bash&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;function&lt;/font&gt; &lt;font color="#2040a0"&gt;displayHelp&lt;/font&gt;&lt;font color="4444FF"&gt;(&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt; &lt;font color="4444FF"&gt;&lt;strong&gt;{&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;Usage: checkManifest.sh -s &amp;lt;server&amp;gt; [-d &amp;lt;domainName&amp;gt;] [-p &amp;lt;dpName&amp;gt;]&amp;quot;&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;This script will disply the manifest files for deployed projects.&amp;quot;&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;if only -s &amp;lt;server&amp;gt; is provided, ever deployed manifest file is displayed&amp;quot;&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;exit&lt;/font&gt;&lt;br /&gt;&lt;font color="4444FF"&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="0000ff"&gt;&lt;strong&gt;# modify if you didn't install the logicalhost in the default locations&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;basePath&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt;/&lt;font color="#2040a0"&gt;export&lt;/font&gt;/&lt;font color="#2040a0"&gt;entlh&lt;/font&gt;/&lt;font color="#2040a0"&gt;logicalhost&lt;/font&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;deploycli&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt;/&lt;font color="#2040a0"&gt;export&lt;/font&gt;/&lt;font color="#2040a0"&gt;deploycli&lt;/font&gt;/&lt;font color="#2040a0"&gt;deploycli&lt;/font&gt;.&lt;font color="#2040a0"&gt;sh&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;sshkey&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt;&lt;font color="#2040a0"&gt;id_rsa&lt;/font&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;JAVA_HOME&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt;/&lt;font color="#2040a0"&gt;export&lt;/font&gt;/&lt;font color="#2040a0"&gt;jdk1&lt;/font&gt;&lt;font color="#FF0000"&gt;.5&lt;/font&gt;.0&lt;font color="#2040a0"&gt;_15&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;export&lt;/font&gt; &lt;font color="#2040a0"&gt;JAVA_HOME&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="0000ff"&gt;&lt;strong&gt;# if no arguments, print help&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;&lt;strong&gt;if&lt;/strong&gt; &lt;font color="4444FF"&gt;[&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;$1&amp;quot;&lt;/font&gt; &lt;font color="4444FF"&gt;=&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;&amp;quot;&lt;/font&gt; &lt;font color="4444FF"&gt;]&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt; &lt;font color="#2040a0"&gt;then&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;displayHelp&lt;/font&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;fi&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;while&lt;/strong&gt; &lt;font color="#2040a0"&gt;getopts&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;:s:d:p:&amp;quot;&lt;/font&gt; &lt;font color="#2040a0"&gt;optname&lt;/font&gt;&lt;br /&gt;&lt;strong&gt;do&lt;/strong&gt;&lt;br /&gt;        &lt;strong&gt;case&lt;/strong&gt; &lt;font color="#008000"&gt;&amp;quot;$optname&amp;quot;&lt;/font&gt; &lt;font color="#2040a0"&gt;in&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;s&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;&lt;br /&gt;                &lt;font color="#2040a0"&gt;server&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt;$&lt;font color="#2040a0"&gt;OPTARG&lt;/font&gt;&lt;br /&gt;                &lt;font color="4444FF"&gt;;&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;d&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;                &lt;font color="#2040a0"&gt;domainName&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt;$&lt;font color="#2040a0"&gt;OPTARG&lt;/font&gt;&lt;br /&gt;                &lt;font color="4444FF"&gt;;&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;p&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;&lt;br /&gt;                &lt;font color="#2040a0"&gt;dpName&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt;$&lt;font color="#2040a0"&gt;OPTARG&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;                &lt;font color="4444FF"&gt;;&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt;&lt;br /&gt;        &lt;font color="4444FF"&gt;*&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;&lt;br /&gt;                &lt;font color="#2040a0"&gt;displayHelp&lt;/font&gt;&lt;br /&gt;                &lt;font color="4444FF"&gt;;&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;esac&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;done&lt;/font&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;shift&lt;/font&gt; $&lt;font color="4444FF"&gt;(&lt;/font&gt;&lt;font color="4444FF"&gt;(&lt;/font&gt;$&lt;font color="#2040a0"&gt;OPTIND&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#FF0000"&gt;1&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="0000ff"&gt;&lt;strong&gt;# if domain name is empty, use default domain name&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;if&lt;/strong&gt; &lt;font color="4444FF"&gt;[&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;$domainName&amp;quot;&lt;/font&gt; &lt;font color="4444FF"&gt;=&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;&amp;quot;&lt;/font&gt; &lt;font color="4444FF"&gt;]&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt; &lt;font color="#2040a0"&gt;then&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;domainName&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt;&lt;font color="#2040a0"&gt;domain1&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;fi&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;if&lt;/strong&gt; &lt;font color="4444FF"&gt;[&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;$dpName&amp;quot;&lt;/font&gt; &lt;font color="4444FF"&gt;=&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;&amp;quot;&lt;/font&gt; &lt;font color="4444FF"&gt;]&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt; &lt;font color="#2040a0"&gt;then&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;        &lt;strong&gt;for&lt;/strong&gt; &lt;font color="#2040a0"&gt;dpName&lt;/font&gt; &lt;font color="#2040a0"&gt;in&lt;/font&gt; `$&lt;font color="#2040a0"&gt;deploycli&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;host&lt;/font&gt; $&lt;font color="#2040a0"&gt;server&lt;/font&gt; &lt;font color="#2040a0"&gt;list&lt;/font&gt;&lt;font color="4444FF"&gt;|&lt;/font&gt;&lt;font color="#2040a0"&gt;grep&lt;/font&gt; ^&lt;font color="#2040a0"&gt;EAR&lt;/font&gt;&lt;font color="4444FF"&gt;|&lt;/font&gt;&lt;font color="#2040a0"&gt;awk&lt;/font&gt; '&lt;font color="4444FF"&gt;&lt;strong&gt;{&lt;/strong&gt;&lt;/font&gt;&lt;font color="#2040a0"&gt;print&lt;/font&gt; $&lt;font color="#FF0000"&gt;2&lt;/font&gt;&lt;font color="4444FF"&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;/font&gt;'`&lt;br /&gt;        &lt;strong&gt;do&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;                &lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;----------------------------------------------------------&amp;quot;&lt;/font&gt;&lt;br /&gt;                &lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;Manifest for deployment profile $dpName&amp;quot;&lt;/font&gt;&lt;br /&gt;                &lt;font color="#2040a0"&gt;echo&lt;/font&gt;&lt;br /&gt;                &lt;font color="#2040a0"&gt;ssh&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;i&lt;/font&gt; ~/.&lt;font color="#2040a0"&gt;ssh&lt;/font&gt;/$&lt;font color="#2040a0"&gt;sshkey&lt;/font&gt; $&lt;font color="#2040a0"&gt;server&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;cat $basePath/is/domains/$domainName/applications/j2ee-apps/$dpName/META-INF/MANIFEST.MF&amp;quot;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="0000ff"&gt;&lt;strong&gt;                #echo -n &lt;font color="#008000"&gt;&amp;quot;Press &amp;lt;ENTER&amp;gt; to continue, &amp;lt;CTRL-C&amp;gt; to quit&amp;quot;&lt;/font&gt;&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;&lt;font color="0000ff"&gt;&lt;strong&gt;                #read&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;                &lt;font color="#2040a0"&gt;echo&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;done&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;else&lt;/strong&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;----------------------------------------------------------&amp;quot;&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;Manifest for deployment profile $dpName&amp;quot;&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;echo&lt;/font&gt;&lt;br /&gt;        &lt;font color="#2040a0"&gt;ssh&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;i&lt;/font&gt; ~/.&lt;font color="#2040a0"&gt;ssh&lt;/font&gt;/$&lt;font color="#2040a0"&gt;sshkey&lt;/font&gt; $&lt;font color="#2040a0"&gt;server&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;cat $basePath/is/domains/$domainName/applications/j2ee-apps/$dpName/META-INF/MANIFEST.MF&amp;quot;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;fi&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6127056490016048846-8631594671495692846?l=jcapsblogger.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://jcapsblogger.blogspot.com/feeds/8631594671495692846/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6127056490016048846&amp;postID=8631594671495692846" title="4 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/8631594671495692846?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/8631594671495692846?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaCapsTechnicalTips/~3/F8Odd_mxAqA/when-was-that-ear-file-built.html" title="when was that ear file built?" /><author><name>Sebastian Krueger</name><uri>http://www.blogger.com/profile/05628376122714349985</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>4</thr:total><feedburner:origLink>http://jcapsblogger.blogspot.com/2008/08/when-was-that-ear-file-built.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkMCRn85fip7ImA9WxRTGEg.&quot;"><id>tag:blogger.com,1999:blog-6127056490016048846.post-959900751046130104</id><published>2008-08-02T14:29:00.000+12:00</published><updated>2008-09-08T19:21:07.126+12:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-09-08T19:21:07.126+12:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="repository" /><title>Maintaining a Java CAPS Repository Server</title><content type="html">As Java CAPS repositories grow in size, they become more unstable and are prone to corruptions. &lt;br /&gt;&lt;br /&gt;It is best practice to do regular backups of your repository.&lt;br /&gt;&lt;br /&gt;JavaCAPS provides several useful tools in order to automate a regular backup regime.&lt;br /&gt;&lt;br /&gt;$REPOSITORY_HOME/repository/util/backup.sh&lt;br /&gt;&lt;br /&gt;This script will make a complete backup of your repository. This includes all your source history as well. However, if you do a restore, then you need to restore the entire repository.&lt;br /&gt;&lt;br /&gt;$REPOSITORY_HOME/repository/util/exportProject.sh&lt;br /&gt;&lt;br /&gt;This script will make a shallow backup of the latest source code for selected projects only. If you do a restore, you loose all your source history, but for that you do not have to rollback the entire repository.&lt;br /&gt;&lt;br /&gt;I recommend a combination of both the backup.sh as well as the exportProject.sh.&lt;br /&gt;&lt;br /&gt;Here is a script that I use to backup several repositories ever midnight via cron.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;font color="0000ff"&gt;&lt;strong&gt;#!/bin/bash&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;date2stamp&lt;/font&gt; &lt;font color="4444FF"&gt;(&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt; &lt;font color="4444FF"&gt;&lt;strong&gt;{&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;    &lt;font color="#2040a0"&gt;date&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;utc&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;date&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;$1&amp;quot;&lt;/font&gt; &lt;font color="4444FF"&gt;+&lt;/font&gt;&lt;font color="4444FF"&gt;%&lt;/font&gt;&lt;font color="#2040a0"&gt;s&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="4444FF"&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;stamp2date&lt;/font&gt; &lt;font color="4444FF"&gt;(&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;&lt;font color="4444FF"&gt;&lt;strong&gt;{&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;    &lt;font color="#2040a0"&gt;date&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;utc&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;date&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;1970-01-01 $1 sec&amp;quot;&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;+%Y-%m-%d %T&amp;quot;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="4444FF"&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;dateDiff&lt;/font&gt; &lt;font color="4444FF"&gt;(&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;&lt;font color="4444FF"&gt;&lt;strong&gt;{&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;    &lt;strong&gt;case&lt;/strong&gt; $&lt;font color="#FF0000"&gt;1&lt;/font&gt; &lt;font color="#2040a0"&gt;in&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;        &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;s&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;   &lt;font color="#2040a0"&gt;sec&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt;&lt;font color="#FF0000"&gt;1&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt;      &lt;font color="#2040a0"&gt;shift&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt;&lt;br /&gt;        &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;m&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;   &lt;font color="#2040a0"&gt;sec&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt;&lt;font color="#FF0000"&gt;60&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt;     &lt;font color="#2040a0"&gt;shift&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;        &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;h&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;   &lt;font color="#2040a0"&gt;sec&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt;&lt;font color="#FF0000"&gt;3600&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt;   &lt;font color="#2040a0"&gt;shift&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt;&lt;br /&gt;        &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;d&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;   &lt;font color="#2040a0"&gt;sec&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt;&lt;font color="#FF0000"&gt;86400&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt;  &lt;font color="#2040a0"&gt;shift&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;        &lt;font color="4444FF"&gt;*&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;    &lt;font color="#2040a0"&gt;sec&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt;&lt;font color="#FF0000"&gt;86400&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt;&lt;br /&gt;    &lt;font color="#2040a0"&gt;esac&lt;/font&gt;&lt;br /&gt;    &lt;font color="#2040a0"&gt;dte1&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt;$&lt;font color="4444FF"&gt;(&lt;/font&gt;&lt;font color="#2040a0"&gt;date2stamp&lt;/font&gt; $&lt;font color="#FF0000"&gt;1&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;    &lt;font color="#2040a0"&gt;dte2&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt;$&lt;font color="4444FF"&gt;(&lt;/font&gt;&lt;font color="#2040a0"&gt;date2stamp&lt;/font&gt; $&lt;font color="#FF0000"&gt;2&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;&lt;br /&gt;    &lt;font color="#2040a0"&gt;diffSec&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt;$&lt;font color="4444FF"&gt;(&lt;/font&gt;&lt;font color="4444FF"&gt;(&lt;/font&gt;&lt;font color="#2040a0"&gt;dte2&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;dte1&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;    &lt;strong&gt;if&lt;/strong&gt; &lt;font color="4444FF"&gt;(&lt;/font&gt;&lt;font color="4444FF"&gt;(&lt;/font&gt;&lt;font color="#2040a0"&gt;diffSec&lt;/font&gt; &lt;font color="4444FF"&gt;&amp;lt;&lt;/font&gt; &lt;font color="#FF0000"&gt;0&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt; &lt;font color="#2040a0"&gt;then&lt;/font&gt; &lt;font color="#2040a0"&gt;abs&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#FF0000"&gt;1&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt; &lt;strong&gt;else&lt;/strong&gt; &lt;font color="#2040a0"&gt;abs&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt;&lt;font color="#FF0000"&gt;1&lt;/font&gt;&lt;font color="4444FF"&gt;;&lt;/font&gt; &lt;font color="#2040a0"&gt;fi&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;    &lt;font color="#2040a0"&gt;echo&lt;/font&gt; $&lt;font color="4444FF"&gt;(&lt;/font&gt;&lt;font color="4444FF"&gt;(&lt;/font&gt;&lt;font color="#2040a0"&gt;diffSec&lt;/font&gt;/&lt;font color="#2040a0"&gt;sec&lt;/font&gt;&lt;font color="4444FF"&gt;*&lt;/font&gt;&lt;font color="#2040a0"&gt;abs&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;&lt;br /&gt;&lt;font color="4444FF"&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;echo&lt;/font&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;----------------------------------------------------------&amp;quot;&lt;/font&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;Script started at: $(date)&amp;quot;&lt;/font&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;----------------------------------------------------------&amp;quot;&lt;/font&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;start&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt;$&lt;font color="4444FF"&gt;(&lt;/font&gt;&lt;font color="#2040a0"&gt;date&lt;/font&gt; &lt;font color="4444FF"&gt;+&lt;/font&gt;&lt;font color="4444FF"&gt;%&lt;/font&gt;&lt;font color="#2040a0"&gt;T&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;echo&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="0000ff"&gt;&lt;strong&gt;# run backups&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;Starting backups&amp;quot;&lt;/font&gt;&lt;br /&gt;/&lt;font color="#2040a0"&gt;export&lt;/font&gt;/&lt;font color="#2040a0"&gt;JavaCAPS513&lt;/font&gt;/&lt;font color="#2040a0"&gt;p2p&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;repository&lt;/font&gt;/&lt;font color="#2040a0"&gt;repository&lt;/font&gt;/&lt;font color="#2040a0"&gt;util&lt;/font&gt;/&lt;font color="#2040a0"&gt;backup&lt;/font&gt;.&lt;font color="#2040a0"&gt;sh&lt;/font&gt; &lt;font color="#2040a0"&gt;Administrator&lt;/font&gt; &lt;font color="#2040a0"&gt;STC&lt;/font&gt; /&lt;font color="#2040a0"&gt;export&lt;/font&gt;/&lt;font color="#2040a0"&gt;JavaCAPS513&lt;/font&gt;/&lt;font color="#2040a0"&gt;p2p&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;repository&lt;/font&gt;/&lt;font color="#2040a0"&gt;backups&lt;/font&gt;/&lt;font color="#2040a0"&gt;p2p&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;backup&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;$&lt;font color="4444FF"&gt;(&lt;/font&gt;&lt;font color="#2040a0"&gt;date&lt;/font&gt; &lt;font color="4444FF"&gt;+&lt;/font&gt;&lt;font color="4444FF"&gt;%&lt;/font&gt;&lt;font color="#2040a0"&gt;Y_&lt;/font&gt;&lt;font color="4444FF"&gt;%&lt;/font&gt;&lt;font color="#2040a0"&gt;m_&lt;/font&gt;&lt;font color="4444FF"&gt;%&lt;/font&gt;&lt;font color="#2040a0"&gt;d_&lt;/font&gt;&lt;font color="4444FF"&gt;%&lt;/font&gt;&lt;font color="#2040a0"&gt;H_&lt;/font&gt;&lt;font color="4444FF"&gt;%&lt;/font&gt;&lt;font color="#2040a0"&gt;M_&lt;/font&gt;&lt;font color="4444FF"&gt;%&lt;/font&gt;&lt;font color="#2040a0"&gt;S&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;.&lt;font color="#2040a0"&gt;zip&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;/&lt;font color="#2040a0"&gt;export&lt;/font&gt;/&lt;font color="#2040a0"&gt;JavaCAPS513&lt;/font&gt;/&lt;font color="#2040a0"&gt;rv2&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;repository&lt;/font&gt;/&lt;font color="#2040a0"&gt;repository&lt;/font&gt;/&lt;font color="#2040a0"&gt;util&lt;/font&gt;/&lt;font color="#2040a0"&gt;backup&lt;/font&gt;.&lt;font color="#2040a0"&gt;sh&lt;/font&gt; &lt;font color="#2040a0"&gt;Administrator&lt;/font&gt; &lt;font color="#2040a0"&gt;STC&lt;/font&gt; /&lt;font color="#2040a0"&gt;export&lt;/font&gt;/&lt;font color="#2040a0"&gt;JavaCAPS513&lt;/font&gt;/&lt;font color="#2040a0"&gt;rv2&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;repository&lt;/font&gt;/&lt;font color="#2040a0"&gt;backups&lt;/font&gt;/&lt;font color="#2040a0"&gt;rv2&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;backup&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;$&lt;font color="4444FF"&gt;(&lt;/font&gt;&lt;font color="#2040a0"&gt;date&lt;/font&gt; &lt;font color="4444FF"&gt;+&lt;/font&gt;&lt;font color="4444FF"&gt;%&lt;/font&gt;&lt;font color="#2040a0"&gt;Y_&lt;/font&gt;&lt;font color="4444FF"&gt;%&lt;/font&gt;&lt;font color="#2040a0"&gt;m_&lt;/font&gt;&lt;font color="4444FF"&gt;%&lt;/font&gt;&lt;font color="#2040a0"&gt;d_&lt;/font&gt;&lt;font color="4444FF"&gt;%&lt;/font&gt;&lt;font color="#2040a0"&gt;H_&lt;/font&gt;&lt;font color="4444FF"&gt;%&lt;/font&gt;&lt;font color="#2040a0"&gt;M_&lt;/font&gt;&lt;font color="4444FF"&gt;%&lt;/font&gt;&lt;font color="#2040a0"&gt;S&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;.&lt;font color="#2040a0"&gt;zip&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;/&lt;font color="#2040a0"&gt;export&lt;/font&gt;/&lt;font color="#2040a0"&gt;JavaCAPS6&lt;/font&gt;/&lt;font color="#2040a0"&gt;repository&lt;/font&gt;/&lt;font color="#2040a0"&gt;repository&lt;/font&gt;/&lt;font color="#2040a0"&gt;util&lt;/font&gt;/&lt;font color="#2040a0"&gt;backup&lt;/font&gt;.&lt;font color="#2040a0"&gt;sh&lt;/font&gt; &lt;font color="#2040a0"&gt;Administrator&lt;/font&gt; &lt;font color="#2040a0"&gt;STC&lt;/font&gt; /&lt;font color="#2040a0"&gt;export&lt;/font&gt;/&lt;font color="#2040a0"&gt;JavaCAPS6&lt;/font&gt;/&lt;font color="#2040a0"&gt;repository&lt;/font&gt;/&lt;font color="#2040a0"&gt;backups&lt;/font&gt;/&lt;font color="#2040a0"&gt;jcaps6&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;backup&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;$&lt;font color="4444FF"&gt;(&lt;/font&gt;&lt;font color="#2040a0"&gt;date&lt;/font&gt; &lt;font color="4444FF"&gt;+&lt;/font&gt;&lt;font color="4444FF"&gt;%&lt;/font&gt;&lt;font color="#2040a0"&gt;Y_&lt;/font&gt;&lt;font color="4444FF"&gt;%&lt;/font&gt;&lt;font color="#2040a0"&gt;m_&lt;/font&gt;&lt;font color="4444FF"&gt;%&lt;/font&gt;&lt;font color="#2040a0"&gt;d_&lt;/font&gt;&lt;font color="4444FF"&gt;%&lt;/font&gt;&lt;font color="#2040a0"&gt;H_&lt;/font&gt;&lt;font color="4444FF"&gt;%&lt;/font&gt;&lt;font color="#2040a0"&gt;M_&lt;/font&gt;&lt;font color="4444FF"&gt;%&lt;/font&gt;&lt;font color="#2040a0"&gt;S&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;.&lt;font color="#2040a0"&gt;zip&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;echo&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="0000ff"&gt;&lt;strong&gt;# run project exports&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;Starting project exports&amp;quot;&lt;/font&gt;&lt;br /&gt;/&lt;font color="#2040a0"&gt;export&lt;/font&gt;/&lt;font color="#2040a0"&gt;JavaCAPS513&lt;/font&gt;/&lt;font color="#2040a0"&gt;rv2&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;repository&lt;/font&gt;/&lt;font color="#2040a0"&gt;repository&lt;/font&gt;/&lt;font color="#2040a0"&gt;util&lt;/font&gt;/&lt;font color="#2040a0"&gt;exportProject&lt;/font&gt;.&lt;font color="#2040a0"&gt;sh&lt;/font&gt; &lt;font color="#2040a0"&gt;Administrator&lt;/font&gt; &lt;font color="#2040a0"&gt;STC&lt;/font&gt; &lt;font color="#2040a0"&gt;HEAD&lt;/font&gt; /&lt;font color="#2040a0"&gt;export&lt;/font&gt;/&lt;font color="#2040a0"&gt;JavaCAPS513&lt;/font&gt;/&lt;font color="#2040a0"&gt;rv2&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;repository&lt;/font&gt;/&lt;font color="#2040a0"&gt;backups&lt;/font&gt;/&lt;font color="#2040a0"&gt;rv2ProjectExport&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;$&lt;font color="4444FF"&gt;(&lt;/font&gt;&lt;font color="#2040a0"&gt;date&lt;/font&gt; &lt;font color="4444FF"&gt;+&lt;/font&gt;&lt;font color="4444FF"&gt;%&lt;/font&gt;&lt;font color="#2040a0"&gt;Y_&lt;/font&gt;&lt;font color="4444FF"&gt;%&lt;/font&gt;&lt;font color="#2040a0"&gt;m_&lt;/font&gt;&lt;font color="4444FF"&gt;%&lt;/font&gt;&lt;font color="#2040a0"&gt;d_&lt;/font&gt;&lt;font color="4444FF"&gt;%&lt;/font&gt;&lt;font color="#2040a0"&gt;H_&lt;/font&gt;&lt;font color="4444FF"&gt;%&lt;/font&gt;&lt;font color="#2040a0"&gt;M_&lt;/font&gt;&lt;font color="4444FF"&gt;%&lt;/font&gt;&lt;font color="#2040a0"&gt;S&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;.&lt;font color="#2040a0"&gt;zip&lt;/font&gt; &lt;font color="#2040a0"&gt;CORE&lt;/font&gt;&lt;font color="4444FF"&gt;+&lt;/font&gt;&lt;font color="#2040a0"&gt;EBP&lt;/font&gt;&lt;font color="4444FF"&gt;+&lt;/font&gt;&lt;font color="#2040a0"&gt;EP&lt;/font&gt; &lt;font color="#2040a0"&gt;envArchipelago&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;echo&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="0000ff"&gt;&lt;strong&gt;# validate repositories&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;&lt;font color="0000ff"&gt;&lt;strong&gt;# Note by Sebastian: This appears not to be worth anything...&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;&lt;font color="0000ff"&gt;&lt;strong&gt;#echo &lt;font color="#008000"&gt;&amp;quot;Starting Repository validation&amp;quot;&lt;/font&gt;&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;&lt;font color="0000ff"&gt;&lt;strong&gt;#/export/JavaCAPS513/p2p-repository/repository/util/validate.sh Administrator STC&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;&lt;font color="0000ff"&gt;&lt;strong&gt;#/export/JavaCAPS513/rv2-repository/repository/util/validate.sh Administrator STC&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;&lt;font color="0000ff"&gt;&lt;strong&gt;#/export/JavaCAPS6/repository/repository/util/validate.sh Administrator STC&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;&lt;font color="0000ff"&gt;&lt;strong&gt;#echo&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="0000ff"&gt;&lt;strong&gt;# cleaup old backups&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;Starting cleaup of old backups&amp;quot;&lt;/font&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;find&lt;/font&gt; /&lt;font color="#2040a0"&gt;export&lt;/font&gt;/&lt;font color="#2040a0"&gt;JavaCAPS513&lt;/font&gt;/&lt;font color="#2040a0"&gt;p2p&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;repository&lt;/font&gt;/&lt;font color="#2040a0"&gt;backups&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;name&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;p2p-backup-*.zip&amp;quot;&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;ctime&lt;/font&gt; &lt;font color="#FF0000"&gt;30&lt;/font&gt;&lt;font color="4444FF"&gt;|&lt;/font&gt;&lt;font color="#2040a0"&gt;xargs&lt;/font&gt; &lt;font color="#2040a0"&gt;rm&lt;/font&gt; &lt;font color="#FF0000"&gt;2&lt;/font&gt;&lt;font color="4444FF"&gt;&amp;gt;&lt;/font&gt;/&lt;font color="#2040a0"&gt;dev&lt;/font&gt;/&lt;font color="#2040a0"&gt;null&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;find&lt;/font&gt; /&lt;font color="#2040a0"&gt;export&lt;/font&gt;/&lt;font color="#2040a0"&gt;JavaCAPS513&lt;/font&gt;/&lt;font color="#2040a0"&gt;rv2&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;repository&lt;/font&gt;/&lt;font color="#2040a0"&gt;backups&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;name&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;rv2-backup-*.zip&amp;quot;&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;ctime&lt;/font&gt; &lt;font color="#FF0000"&gt;30&lt;/font&gt;&lt;font color="4444FF"&gt;|&lt;/font&gt;&lt;font color="#2040a0"&gt;xargs&lt;/font&gt; &lt;font color="#2040a0"&gt;rm&lt;/font&gt; &lt;font color="#FF0000"&gt;2&lt;/font&gt;&lt;font color="4444FF"&gt;&amp;gt;&lt;/font&gt;/&lt;font color="#2040a0"&gt;dev&lt;/font&gt;/&lt;font color="#2040a0"&gt;null&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;find&lt;/font&gt; /&lt;font color="#2040a0"&gt;export&lt;/font&gt;/&lt;font color="#2040a0"&gt;JavaCAPS513&lt;/font&gt;/&lt;font color="#2040a0"&gt;rv2&lt;/font&gt;&lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;repository&lt;/font&gt;/&lt;font color="#2040a0"&gt;backups&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;name&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;rv2ProjectExport-*.zip&amp;quot;&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;ctime&lt;/font&gt; &lt;font color="#FF0000"&gt;30&lt;/font&gt;&lt;font color="4444FF"&gt;|&lt;/font&gt;&lt;font color="#2040a0"&gt;xargs&lt;/font&gt; &lt;font color="#2040a0"&gt;rm&lt;/font&gt; &lt;font color="#FF0000"&gt;2&lt;/font&gt;&lt;font color="4444FF"&gt;&amp;gt;&lt;/font&gt;/&lt;font color="#2040a0"&gt;dev&lt;/font&gt;/&lt;font color="#2040a0"&gt;null&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;find&lt;/font&gt; /&lt;font color="#2040a0"&gt;export&lt;/font&gt;/&lt;font color="#2040a0"&gt;JavaCAPS6&lt;/font&gt;/&lt;font color="#2040a0"&gt;repository&lt;/font&gt;/&lt;font color="#2040a0"&gt;backups&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;name&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;jcaps6-backup-*.zip&amp;quot;&lt;/font&gt; &lt;font color="4444FF"&gt;-&lt;/font&gt;&lt;font color="#2040a0"&gt;ctime&lt;/font&gt; &lt;font color="#FF0000"&gt;30&lt;/font&gt;&lt;font color="4444FF"&gt;|&lt;/font&gt;&lt;font color="#2040a0"&gt;xargs&lt;/font&gt; &lt;font color="#2040a0"&gt;rm&lt;/font&gt; &lt;font color="#FF0000"&gt;2&lt;/font&gt;&lt;font color="4444FF"&gt;&amp;gt;&lt;/font&gt;/&lt;font color="#2040a0"&gt;dev&lt;/font&gt;/&lt;font color="#2040a0"&gt;null&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;echo&lt;/font&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;stop&lt;/font&gt;&lt;font color="4444FF"&gt;=&lt;/font&gt;$&lt;font color="4444FF"&gt;(&lt;/font&gt;&lt;font color="#2040a0"&gt;date&lt;/font&gt; &lt;font color="4444FF"&gt;+&lt;/font&gt;&lt;font color="4444FF"&gt;%&lt;/font&gt;&lt;font color="#2040a0"&gt;T&lt;/font&gt;&lt;font color="4444FF"&gt;)&lt;/font&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;echo&lt;/font&gt; &lt;font color="#008000"&gt;&amp;quot;Elapsed total time is $(dateDiff -m $start $stop) in minutes&amp;quot;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#2040a0"&gt;echo&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This script is then triggered every midnight via cron like so:&lt;br /&gt;&lt;br /&gt;0 0 * * * /export/scripts/maintainServer.sh &gt; /export/scripts/maintainServer.log&lt;br /&gt;&lt;br /&gt;I hope to add some email functionality later to alert me of any failures.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6127056490016048846-959900751046130104?l=jcapsblogger.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://jcapsblogger.blogspot.com/feeds/959900751046130104/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6127056490016048846&amp;postID=959900751046130104" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/959900751046130104?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/959900751046130104?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaCapsTechnicalTips/~3/w5i6_TalBs0/maintaining-java-caps-repository-server.html" title="Maintaining a Java CAPS Repository Server" /><author><name>Sebastian Krueger</name><uri>http://www.blogger.com/profile/05628376122714349985</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://jcapsblogger.blogspot.com/2008/08/maintaining-java-caps-repository-server.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkcCQHo5fyp7ImA9WxdSFEw.&quot;"><id>tag:blogger.com,1999:blog-6127056490016048846.post-2861051470312042543</id><published>2008-05-22T10:38:00.000+12:00</published><updated>2008-05-22T11:54:21.427+12:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-05-22T11:54:21.427+12:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="certification" /><title>Passed the Sun Certified JavaCAPS Integrator</title><content type="html">I just got back from taking the JavaCAPS Integrator Exam (yes, I passed. ;-).&lt;br /&gt;&lt;br /&gt;60 Questions, 2 hours, passing score at 70%.&lt;br /&gt;&lt;br /&gt;According to the exam results page, the exam covers the following topics:&lt;br /&gt;&lt;br /&gt;- ICAN&lt;br /&gt;- eGate (weighting: 40%)&lt;br /&gt;- eInsight (weighting: 40%)&lt;br /&gt;- eVision (weighting: 20%)&lt;br /&gt;Note: I invented the weighting myself, based on the exam I just took. Your exam might be a little different.&lt;br /&gt;&lt;br /&gt;I do not recall a single ICAN specific question, so am confused about what an ICAN question is. &lt;br /&gt;&lt;br /&gt;Overall, everyone that has used Java CAPS for 6 months or more "full-time" and has used eGate and eInsight should be able to pass the exam.&lt;br /&gt;&lt;br /&gt;What the exam does not cover: &lt;br /&gt;- Worklist Manager&lt;br /&gt;- eBAM&lt;br /&gt;- JMS Grid&lt;br /&gt;- Java CAPS security&lt;br /&gt;- specific knowledge of WSDLs&lt;br /&gt;- Java specific questions. Questions are on usage of JCDs.&lt;br /&gt;- BPEL specific questions. Questions are on usage of eInsight.&lt;br /&gt;- eInsight persistence&lt;br /&gt;- performance tuning questions&lt;br /&gt;- eWay specifics (just know that they are provided as OTDs). Only the JMS OTD is covered in the exam. General Database OTD questions are covered. But nothing specific to Oracle or SQL Server eWay.&lt;br /&gt;&lt;br /&gt;There were particularly no particularly difficult questions on eVision. If you know what a Page Flow, Page Layout, and Page Link is then that is enough to get 100% for that topic. There were no questions on charts, dynamic tables, and eVision security.&lt;br /&gt;&lt;br /&gt;My tip for passing this section is to create a few basic page layouts before the exam and you should have no trouble. Know how to link pages together with the event-based decision modeling component. Read the first half of the eVision User Guide and you'll be sorted. &lt;br /&gt;&lt;br /&gt;There were several difficult questions in the eInsight topic. This topic covered:&lt;br /&gt;- exception handling&lt;br /&gt;&lt;br /&gt;Know the different types of exception handlers. How they are attached to scopes (Note: Process Level Exception Handlers are not!).&lt;br /&gt;&lt;br /&gt;- compensation handling&lt;br /&gt;&lt;br /&gt;Know how to create compensation handlers, and how to use the Compensate Activity.&lt;br /&gt;&lt;br /&gt;- correlations&lt;br /&gt;&lt;br /&gt;There were no detailed questions here, but an understanding of correlations and how to create them is important.&lt;br /&gt;&lt;br /&gt;- business rules&lt;br /&gt;&lt;br /&gt;Two different types. Inline, and as separate Business Rule Activity.&lt;br /&gt;&lt;br /&gt;- timer events&lt;br /&gt;- event-based decisions&lt;br /&gt;&lt;br /&gt;Know when and how to use these in eInsight. How do you use these in combination with correlations?&lt;br /&gt;&lt;br /&gt;Finally, the eGate topic required knowledge of all Java CAPS architectural components. That is:&lt;br /&gt;- Repository&lt;br /&gt;- eDesigner&lt;br /&gt;- LogicalHost/Domain/JMS Server&lt;br /&gt;- UDDI Server&lt;br /&gt;- Enterprise Manager&lt;br /&gt;- Various commandline tools such as em-cmdline-tool, deploycli, commandlinecodegen&lt;br /&gt;- eGate API Kit (just know what it is used for, not necessarily "how" to use it)&lt;br /&gt;- eWays specifics&lt;br /&gt;&lt;br /&gt;Of the top of my head, the following might be useful: &lt;br /&gt;Understand the function of the Repository. All different ways to create and use OTDs. There are two different types of OTDs. How to access documentation. How use the marshall/unmarshall functions in JCDs and BPs. The function of the "Sun Seebeyond" folder in eDesigner. All means for monitoring a domain. The difference between an External Application and an External System. How to change configuration of a domain. Know the difference between Logicalhosts/Domains. What is the Product_List.sar used for? Understand the relationship between Connectivity Map and Deployment Profile. Know the the methods used for the JMS OTD and how to use them.&lt;br /&gt;&lt;br /&gt;Hope this is of use to people. This exam is not very hard, but one should be prepared.&lt;br /&gt;&lt;br /&gt;Disclaimer: I have taken this exam once, so there are probably 100s of questions that I did not see, so don't know about. I don't guarantee anything. Any information provided in this posting is at your own risk. Take the exam at your own risk. &lt;br /&gt;&lt;br /&gt;Good luck. :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6127056490016048846-2861051470312042543?l=jcapsblogger.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://jcapsblogger.blogspot.com/feeds/2861051470312042543/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6127056490016048846&amp;postID=2861051470312042543" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/2861051470312042543?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/2861051470312042543?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaCapsTechnicalTips/~3/oqlPp6SovIE/passed-sun-certified-javacaps.html" title="Passed the Sun Certified JavaCAPS Integrator" /><author><name>Sebastian Krueger</name><uri>http://www.blogger.com/profile/05628376122714349985</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>2</thr:total><feedburner:origLink>http://jcapsblogger.blogspot.com/2008/05/passed-sun-certified-javacaps.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkAFR3k5eip7ImA9WxdTFU0.&quot;"><id>tag:blogger.com,1999:blog-6127056490016048846.post-3442908995086282844</id><published>2008-05-11T23:11:00.000+12:00</published><updated>2008-05-11T23:18:36.722+12:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-05-11T23:18:36.722+12:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="edk" /><title>eWay Development Kit Problems</title><content type="html">I was just trying to get the eWay Development Kit (version 5.1.1) going the other day. And was rather disappointed.&lt;br /&gt;&lt;br /&gt;The GUI only saves the eWay configuration once, and after that any changes are lost, even if you hit save again and again. Somehow, they are not written to the xml configuration. Also, when choosing the data types for input and outputs of the eWay from the gui and navigate to a different tab in the gui, the data type is lost. I haven't been able to determine the reason for this, but if i try it repeatedly it will work at some point. But developing an eWay that you then can't save, is not much use.&lt;br /&gt;&lt;br /&gt;If the XML configuration is not saved, then the method templates are not completed in the generated code.&lt;br /&gt;&lt;br /&gt;Also, I use Linux as my primary OS and try to do as much as possible under it. The eWay Dev Kit is written in Java, so there should be no reason why it doesn't work under Linux. However, the developer of the GUI decided to hard code path strings like this: "foo\bar\baz.xml". Thereby totally removing any form of portability. Apart from the fact that Windows also works with "/" as a path separator (and not to mention the java.io.File.pathSeparator static field). Somehow the whole point of Java was missed somewhere along the lines.&lt;br /&gt;&lt;br /&gt;I have a ticket open with support on the eWay dev kit, but was told that so far, no one has reported the bug of not being able to save to the xml configuration file. So I am left with two options:&lt;br /&gt;1. My computer has something wrong. Although it can save the first time you hit the save button. Just not again.&lt;br /&gt;2. The eway dev kit has a bug. And there are no other customer out there that use the eway dev kit version 5.1.1 (hence the bug is unknown to support).&lt;br /&gt;&lt;br /&gt;We wrote a few connectors ourselves as jar files and I was curious to see if they could be converted to integrate better with eDesigner.&lt;br /&gt;&lt;br /&gt;I would recommend writing your connector in Eclipse or Netbeans and exporting it as a jar file.&lt;br /&gt;&lt;br /&gt;That jar file can then be imported into a JCD. That JCD could be triggered by a JMS message for example. You could also include this JCD into your business process (eInsight). This will work for outbound messages.&lt;br /&gt;&lt;br /&gt;For inbound messages you may have to improvise. You could consider pooling on a specified interval (use the Java CAPS Scheduler as a trigger for a JCD or BP).&lt;br /&gt;For more esoteric requirements, consider the eGate API Kit (Documentation &lt;a href="http://dlc.sun.com/pdf/820-0947/820-0947.pdf"&gt;here&lt;/a&gt;). Or consider receiving messages through the TCP/IP eWay and develop a custom protocol that suits your needs.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6127056490016048846-3442908995086282844?l=jcapsblogger.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://jcapsblogger.blogspot.com/feeds/3442908995086282844/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6127056490016048846&amp;postID=3442908995086282844" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/3442908995086282844?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/3442908995086282844?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaCapsTechnicalTips/~3/7ZiI_Z4VETw/eway-development-kit-problems.html" title="eWay Development Kit Problems" /><author><name>Sebastian Krueger</name><uri>http://www.blogger.com/profile/05628376122714349985</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://jcapsblogger.blogspot.com/2008/05/eway-development-kit-problems.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Dk8CQX89eSp7ImA9WxdTFU0.&quot;"><id>tag:blogger.com,1999:blog-6127056490016048846.post-7914920553106704514</id><published>2008-05-09T23:47:00.000+12:00</published><updated>2008-05-11T23:21:00.161+12:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-05-11T23:21:00.161+12:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="screencasts" /><title>Screencast on Application Configuration in Java CAPS 6</title><content type="html">Excellent screencast by Frank Kieviet.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://developers.sun.com/docs/javacaps/tutorials/demos/application-configuration/launch.html"&gt;watch it here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;A review of the configuration models in Java CAPS 5.1, EJB 3, pure JBI, and repository-based projects in Java CAPS 6.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6127056490016048846-7914920553106704514?l=jcapsblogger.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://jcapsblogger.blogspot.com/feeds/7914920553106704514/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6127056490016048846&amp;postID=7914920553106704514" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/7914920553106704514?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/7914920553106704514?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaCapsTechnicalTips/~3/CefUXk2rcns/screencast-on-application-configuration.html" title="Screencast on Application Configuration in Java CAPS 6" /><author><name>Sebastian Krueger</name><uri>http://www.blogger.com/profile/05628376122714349985</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://jcapsblogger.blogspot.com/2008/05/screencast-on-application-configuration.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkAMRncyfSp7ImA9WxdTFU0.&quot;"><id>tag:blogger.com,1999:blog-6127056490016048846.post-6730121828590694089</id><published>2008-05-09T08:37:00.000+12:00</published><updated>2008-05-11T23:19:47.995+12:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-05-11T23:19:47.995+12:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="news" /><title>Java CAPS book is available</title><content type="html">The Java CAPS book that Michael Czapski and friends wrote is now available for order/delivery.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.amazon.com/Java-CAPS-Basics-Implementing-Patterns/dp/0137130716/ref=pd_bbs_sr_1?ie=UTF8&amp;amp;s=books&amp;amp;qid=1210279197&amp;amp;sr=8-1"&gt;by it on amazon&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6127056490016048846-6730121828590694089?l=jcapsblogger.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://jcapsblogger.blogspot.com/feeds/6730121828590694089/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6127056490016048846&amp;postID=6730121828590694089" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/6730121828590694089?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/6730121828590694089?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaCapsTechnicalTips/~3/EYnM3Ob0GAE/java-caps-book-is-available.html" title="Java CAPS book is available" /><author><name>Sebastian Krueger</name><uri>http://www.blogger.com/profile/05628376122714349985</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://jcapsblogger.blogspot.com/2008/05/java-caps-book-is-available.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Dk8ERnY9fip7ImA9WxdTFU0.&quot;"><id>tag:blogger.com,1999:blog-6127056490016048846.post-3088848852442424909</id><published>2008-04-14T14:29:00.000+12:00</published><updated>2008-05-11T23:20:07.866+12:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-05-11T23:20:07.866+12:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="news" /><title>Some Tips on Following Java CAPS News</title><content type="html">I use Google Reader to follow Java CAPS related info on the web. I thought I might share a few feeds that I follow.&lt;br /&gt;&lt;br /&gt;Blogs that mention Java CAPS:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;http://blogs.sun.com/lerognon/&lt;br /&gt;http://blogs.sun.com/jcapsuser/&lt;br /&gt;http://blogs.sun.com/javacapsfieldtech/&lt;br /&gt;http://camelcase.blogspot.com/&lt;br /&gt;http://blogs.sun.com/cye/&lt;br /&gt;http://vincentfazio.blogspot.com/&lt;br /&gt;http://blogs.sun.com/fkieviet/&lt;br /&gt;http://blogs.sun.com/fredaabedi/&lt;br /&gt;http://blogs.sun.com/kkranz/&lt;br /&gt;http://blogs.sun.com/gopalan/&lt;br /&gt;http://blogs.sun.com/kevinschmidt/&lt;br /&gt;http://blogs.sun.com/openmessagequeue/&lt;br /&gt;http://blogs.sun.com/sweber/&lt;br /&gt;http://soa4real.blogspot.com/&lt;br /&gt;http://blogs.sun.com/toxophily/&lt;br /&gt;http://blogs.sun.com/catalysts/&lt;br /&gt;http://planets.sun.com/SOABI/group/blogs/&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;A while back Sun created project containers for some of the Java CAPS components. Not much happening on these sites really, but it doesn't harm to follow them in an rss reader.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;https://jcaps-b2b.dev.java.net/servlets/ProjectNewsRSS&lt;br /&gt;https://jcaps-rfid.dev.java.net/servlets/ProjectNewsRSS&lt;br /&gt;https://open-b2b.dev.java.net/servlets/ProjectNewsRSS&lt;br /&gt;https://jmsjca.dev.java.net/&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;A great way of knowing about good links is to follow del.icio.us tag feeds.&lt;br /&gt;&lt;blockquote&gt;http://del.icio.us/tag/jcaps&lt;br /&gt;http://del.icio.us/tag/seebeyond&lt;br /&gt;http://del.icio.us/tag/suncaps&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Any recommended Java CAPS related blog posts?&lt;br /&gt;&lt;blockquote&gt;http://technorati.com/tag/Java+CAPS&lt;br /&gt;http://technorati.com/tag/JCAPS&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;Anyone twittering on Java CAPS? (You wouldn't believe it, but it does happen...)&lt;br /&gt;&lt;blockquote&gt;http://tweetscan.com/rss.php?s=java+caps&lt;br /&gt;http://tweetscan.com/rss.php?s=jcaps&lt;/blockquote&gt;&lt;br /&gt;Forums:&lt;br /&gt;&lt;blockquote&gt;http://eai.ittoolbox.com/groups/technical-functional/seebeyond-l&lt;br /&gt;http://forum.java.sun.com/forum.jspa?forumID=882&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;You can also configure Google Alerts if you are interested in specific topics.&lt;br /&gt;&lt;blockquote&gt;http://www.google.co.nz/alerts&lt;/blockquote&gt;Update: I forgot to mention that there are is a Facebook group that is Java CAPS related.&lt;br /&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;http://www.facebook.com/group.php?gid=17757823536 (Sun CAPS Champions)&lt;br /&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6127056490016048846-3088848852442424909?l=jcapsblogger.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://jcapsblogger.blogspot.com/feeds/3088848852442424909/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6127056490016048846&amp;postID=3088848852442424909" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/3088848852442424909?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/3088848852442424909?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaCapsTechnicalTips/~3/KYJIZT56ZX0/some-tips-on-following-java-caps-news.html" title="Some Tips on Following Java CAPS News" /><author><name>Sebastian Krueger</name><uri>http://www.blogger.com/profile/05628376122714349985</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>2</thr:total><feedburner:origLink>http://jcapsblogger.blogspot.com/2008/04/some-tips-on-following-java-caps-news.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A04DRHs4cCp7ImA9WxZUEU0.&quot;"><id>tag:blogger.com,1999:blog-6127056490016048846.post-2640676304266790735</id><published>2008-04-02T16:57:00.000+13:00</published><updated>2008-04-02T17:19:35.538+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-04-02T17:19:35.538+13:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="vmware" /><category scheme="http://www.blogger.com/atom/ns#" term="sles" /><title>Java CAPS on Linux on VMWare and the Evil Timing Problems</title><content type="html">We use VMWare ESX 3.5 and Suse Linux Enterprise Server 10.1 x86 for the guests.&lt;br /&gt;&lt;br /&gt;If you find that your clock is going way out of sync with reality, then you may want to consider the following as a solution.&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Upgrade to SLES 10.2. I've tested a beta of this and found that the timing issue has been resolved. Novell backported some kernel code that resolves the VMWare timing issue. You'll have to wait until it gets released though. I think next month sometime?&lt;/li&gt;&lt;br /&gt;&lt;li&gt; If you are stuck on SLES 10.1, then do the following:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt; ensure you have VMWare Tools installed and make sure you have VMWare Tools Host Clock Synchronization turned on.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_CiN5Z6xGhXU/R_MHYCs_vwI/AAAAAAAAAnU/fQC5eTj7gNA/s1600-h/snapshot4.png"&gt;&lt;img style="cursor: pointer;" src="http://bp0.blogger.com/_CiN5Z6xGhXU/R_MHYCs_vwI/AAAAAAAAAnU/fQC5eTj7gNA/s320/snapshot4.png" alt="" id="BLOGGER_PHOTO_ID_5184495705657425666" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt; install NTP as well.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;if you are in New Zealand, you'll want the latest patches for the daylight-savings changes.&lt;br /&gt;https://secure-support.novell.com/KanisaPlatform/Publishing/931/3094409_f.SAL_Public.html&lt;/li&gt;&lt;br /&gt;&lt;li&gt;You'll also have to set the following kernel parameters in your /boot/grub/menu.lst&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;eaivdir1-SP1-x86:/etc/ha.d # cat /proc/cmdline&lt;br /&gt;root=/dev/sda2 vga=0x32b    resume=/dev/sda3 splash=silent &lt;font color="red"&gt;clock=pit nosmp noapic nolapic&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt;Now all your timeing troubles should be sorted. :)&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6127056490016048846-2640676304266790735?l=jcapsblogger.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://jcapsblogger.blogspot.com/feeds/2640676304266790735/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6127056490016048846&amp;postID=2640676304266790735" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/2640676304266790735?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/2640676304266790735?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaCapsTechnicalTips/~3/BmI8OP8CWXU/java-caps-on-vmware-and-evil-timing.html" title="Java CAPS on Linux on VMWare and the Evil Timing Problems" /><author><name>Sebastian Krueger</name><uri>http://www.blogger.com/profile/05628376122714349985</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://bp0.blogger.com/_CiN5Z6xGhXU/R_MHYCs_vwI/AAAAAAAAAnU/fQC5eTj7gNA/s72-c/snapshot4.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://jcapsblogger.blogspot.com/2008/04/java-caps-on-vmware-and-evil-timing.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0YCRHk7eip7ImA9WxZVFko.&quot;"><id>tag:blogger.com,1999:blog-6127056490016048846.post-8863933842801178166</id><published>2008-03-28T16:31:00.000+13:00</published><updated>2008-03-28T16:32:45.702+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-03-28T16:32:45.702+13:00</app:edited><title>The Geek Quiz</title><content type="html">Ha! How much do you have?&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.justsayhi.com/bb/geek" style="text-decoration: none; background: url('http://assets.justsayhi.com/badges/71/620/geek_badge1_green.3o6jjlc0mk.jpg') no-repeat; display: block; width: 268px; height: 82px;"&gt;&lt;span style="display: block; padding-left: 125px; padding-top: 28px; color: #000; font-family: Arial; font-size: 22px;"&gt;100% Geek&lt;/span&gt;&lt;/a&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6127056490016048846-8863933842801178166?l=jcapsblogger.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://jcapsblogger.blogspot.com/feeds/8863933842801178166/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6127056490016048846&amp;postID=8863933842801178166" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/8863933842801178166?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/8863933842801178166?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaCapsTechnicalTips/~3/YLhcSnPPKEI/geek-quiz.html" title="The Geek Quiz" /><author><name>Sebastian Krueger</name><uri>http://www.blogger.com/profile/05628376122714349985</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total><feedburner:origLink>http://jcapsblogger.blogspot.com/2008/03/geek-quiz.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEYHQXY8eip7ImA9WxZVFEQ.&quot;"><id>tag:blogger.com,1999:blog-6127056490016048846.post-5412072281074224914</id><published>2008-03-26T14:46:00.001+13:00</published><updated>2008-03-26T14:48:50.872+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-03-26T14:48:50.872+13:00</app:edited><title>JavaCAPS 6 On Linux</title><content type="html">Finally we have a version of Java CAPS that will work under Linux.&lt;br /&gt;&lt;br /&gt;See snapshots:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_CiN5Z6xGhXU/R-mrSCs_vtI/AAAAAAAAAm8/EbTi-z70DLk/s1600-h/snapshot1.png"&gt;&lt;img style="cursor: pointer;" src="http://bp2.blogger.com/_CiN5Z6xGhXU/R-mrSCs_vtI/AAAAAAAAAm8/EbTi-z70DLk/s320/snapshot1.png" alt="" id="BLOGGER_PHOTO_ID_5181861172718059218" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_CiN5Z6xGhXU/R-mrSys_vuI/AAAAAAAAAnE/QxkQM9qH83I/s1600-h/snapshot2.png"&gt;&lt;img style="cursor: pointer;" src="http://bp1.blogger.com/_CiN5Z6xGhXU/R-mrSys_vuI/AAAAAAAAAnE/QxkQM9qH83I/s320/snapshot2.png" alt="" id="BLOGGER_PHOTO_ID_5181861185602961122" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_CiN5Z6xGhXU/R-mrTSs_vvI/AAAAAAAAAnM/h7sSSBwlAeM/s1600-h/snapshot3.png"&gt;&lt;img style="cursor: pointer;" src="http://bp3.blogger.com/_CiN5Z6xGhXU/R-mrTSs_vvI/AAAAAAAAAnM/h7sSSBwlAeM/s320/snapshot3.png" alt="" id="BLOGGER_PHOTO_ID_5181861194192895730" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6127056490016048846-5412072281074224914?l=jcapsblogger.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://jcapsblogger.blogspot.com/feeds/5412072281074224914/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6127056490016048846&amp;postID=5412072281074224914" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/5412072281074224914?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/5412072281074224914?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaCapsTechnicalTips/~3/8DMo5Ut4JCM/javacaps-6-on-linux.html" title="JavaCAPS 6 On Linux" /><author><name>Sebastian Krueger</name><uri>http://www.blogger.com/profile/05628376122714349985</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://bp2.blogger.com/_CiN5Z6xGhXU/R-mrSCs_vtI/AAAAAAAAAm8/EbTi-z70DLk/s72-c/snapshot1.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://jcapsblogger.blogspot.com/2008/03/javacaps-6-on-linux.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DE8FSHs8cSp7ImA9WxRbF00.&quot;"><id>tag:blogger.com,1999:blog-6127056490016048846.post-2242381385935108687</id><published>2008-03-25T02:44:00.002+13:00</published><updated>2008-12-08T16:26:59.579+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-12-08T16:26:59.579+13:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="JCD" /><category scheme="http://www.blogger.com/atom/ns#" term="logging" /><title>A note about log levels</title><content type="html">It is generally best practice to set development related log messages to a "debug" level.&lt;br /&gt;&lt;br /&gt;Java CAPS as of version 5.1 has switched logging form log4j (from the old SeeBeyond ICAN days) to java.util.logging. This means that the following log level are available:&lt;br /&gt;&lt;br /&gt;Finest, Finer, Fine, Config, Info, Warning, Severe, Off&lt;br /&gt;&lt;br /&gt;However, the com.stc.codegen.logger.Logger class that is available in a JCD for logging still makes use of the old log4j levels which are:&lt;br /&gt;&lt;br /&gt;debug, info, warn, error, fatal&lt;br /&gt;&lt;br /&gt;The mappings are as follows:&lt;br /&gt;&lt;br /&gt;debug -&gt; Fine&lt;br /&gt;info  -&gt; Info&lt;br /&gt;warn  -&gt; Warning&lt;br /&gt;fatal -&gt; Severe&lt;br /&gt;&lt;br /&gt;If you make use of the logger.debug method in a JCD, you would then have to add a log level like such:&lt;br /&gt;&lt;br /&gt;STC.eGate.CMap.Collabs -&gt; Fine&lt;br /&gt;or&lt;br /&gt;STC.eGate.CMap.Collabs.baseProjectFolderOfDeploymentProfile.svcNameFromCM -&gt; Fine&lt;br /&gt;&lt;br /&gt;The former being a generic definition, and the latter being a more specific definition.&lt;br /&gt;So if your deployment project is in /Foo/Bar/Project1/dep then the "baseProjectFolderOfDeploymentProfile" would be "dep".&lt;br /&gt;&lt;br /&gt;For BPEL, set the com.stc.bpms.bpelImpl.runtime.Interpreter level to Fine.&lt;br /&gt;&lt;br /&gt;This can be set either by editing the log level in the domain.xml and then restarting the Domain, or you can set the log levels in the Domain Web Administration Interface (Default: http://localhost:18000)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6127056490016048846-2242381385935108687?l=jcapsblogger.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://jcapsblogger.blogspot.com/feeds/2242381385935108687/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6127056490016048846&amp;postID=2242381385935108687" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/2242381385935108687?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/2242381385935108687?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaCapsTechnicalTips/~3/x5Gxn7DG-kU/note-about-log-levels.html" title="A note about log levels" /><author><name>Sebastian Krueger</name><uri>http://www.blogger.com/profile/05628376122714349985</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>2</thr:total><feedburner:origLink>http://jcapsblogger.blogspot.com/2008/03/note-about-log-levels.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUUGSHszeSp7ImA9WxZWGUU.&quot;"><id>tag:blogger.com,1999:blog-6127056490016048846.post-1555627389505952208</id><published>2008-03-20T16:34:00.000+13:00</published><updated>2008-03-20T17:27:09.581+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-03-20T17:27:09.581+13:00</app:edited><title>Script to change JVM Flags for Java CAPS 5.1.2</title><content type="html">Here an extract from a Linux BASH script that will set up some JVM parameters from the commandline. I've found these flags work quite well for an Linux Intel box with 2 GB of RAM.&lt;br /&gt;&lt;br /&gt;&lt;pre class="code-block"&gt;# append generated CLASSPATH to domain&lt;br /&gt;for i in host01 host02 host03&lt;br /&gt;do&lt;br /&gt;   echo "Resetting CLASSPATH for domain $server"&lt;br /&gt;   # Note: to find other configs available:&lt;br /&gt;   # get server.java-config.*&lt;br /&gt;   ssh $server "$logicalhostPath/is/bin/isadmin set server.java-config.server-classpath=$cpDefault$cpAppend"&lt;br /&gt;   ssh $server "$logicalhostPath/is/bin/isadmin delete-jvm-options -- -Xmx512m"&lt;br /&gt;   ssh $server "$logicalhostPath/is/bin/isadmin create-jvm-options -- -Xmx1536m"&lt;br /&gt;   ssh $server "$logicalhostPath/is/bin/isadmin create-jvm-options -- -Xmn256m"&lt;br /&gt;   # Note: This is bizarre.&lt;br /&gt;   # isadmin needs to escape the : with a \, so -&gt; \:&lt;br /&gt;   # isadmin needs escaping for the \, so -&gt; \\:&lt;br /&gt;   # the shell that runns the isadmin command needs escaping as well, so -&gt; \\\\:&lt;br /&gt;   # the shell that runns the ssh command needs escaping as well, so -&gt; \\\\\\:&lt;br /&gt;   ssh $server "$logicalhostPath/is/bin/isadmin create-jvm-options -XX\\\\\\:+UseParallelGC"&lt;br /&gt;   ssh $server "$logicalhostPath/is/bin/isadmin create-jvm-options -XX\\\\\\:PerfDataSamplingInterval=500"&lt;br /&gt;   ssh $server "$logicalhostPath/is/bin/isadmin create-jvm-options -XX\\\\\\:+DisableExplicitGC"&lt;br /&gt;done&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6127056490016048846-1555627389505952208?l=jcapsblogger.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://jcapsblogger.blogspot.com/feeds/1555627389505952208/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6127056490016048846&amp;postID=1555627389505952208" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/1555627389505952208?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/1555627389505952208?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaCapsTechnicalTips/~3/aeAz8zAZoIs/script-to-change-jvm-flags-for-java.html" title="Script to change JVM Flags for Java CAPS 5.1.2" /><author><name>Sebastian Krueger</name><uri>http://www.blogger.com/profile/05628376122714349985</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://jcapsblogger.blogspot.com/2008/03/script-to-change-jvm-flags-for-java.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUIERn88fCp7ImA9WxZWGU8.&quot;"><id>tag:blogger.com,1999:blog-6127056490016048846.post-8666215140081318589</id><published>2008-03-20T00:37:00.000+13:00</published><updated>2008-03-20T00:51:47.174+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-03-20T00:51:47.174+13:00</app:edited><title>eDesigner on Linux</title><content type="html">&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_CiN5Z6xGhXU/R-D7yHxxBUI/AAAAAAAAAm0/JLLgPPWcBqA/s1600-h/jcaps513OnLinux.png"&gt;&lt;img style="cursor: pointer;" src="http://bp3.blogger.com/_CiN5Z6xGhXU/R-D7yHxxBUI/AAAAAAAAAm0/JLLgPPWcBqA/s400/jcaps513OnLinux.png" alt="" id="BLOGGER_PHOTO_ID_5179416409975883074" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;I spent several hours a few years back trying to get eDesigner working on Linux and found that it was either not possible, or exceedingly hard to achieve.&lt;br /&gt;&lt;br /&gt;I've tried eDesigner in VMWare and found that it works, albeit a bit slow, but it works. However, I was never able to get used to running MS-Windows in a window of it's own, so I was much pleased to hear that VirtualBox (http://www.virtualbox.org/) has a "Seamless Integration" mode which lets you integrate MS-Windows with Linux as shown in the screenshot above.&lt;br /&gt;&lt;br /&gt;I've been using this mode for a few weeks now and have had no problems at all.&lt;br /&gt;&lt;br /&gt;If you're a Linux user, is something that I definitely recommend trying out.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6127056490016048846-8666215140081318589?l=jcapsblogger.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://jcapsblogger.blogspot.com/feeds/8666215140081318589/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6127056490016048846&amp;postID=8666215140081318589" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/8666215140081318589?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/8666215140081318589?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaCapsTechnicalTips/~3/A1oFRcH2oh8/edesigner-on-linux.html" title="eDesigner on Linux" /><author><name>Sebastian Krueger</name><uri>http://www.blogger.com/profile/05628376122714349985</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://bp3.blogger.com/_CiN5Z6xGhXU/R-D7yHxxBUI/AAAAAAAAAm0/JLLgPPWcBqA/s72-c/jcaps513OnLinux.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://jcapsblogger.blogspot.com/2008/03/edesigner-on-linux.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0QEQ3g_eip7ImA9WB9aF0Q.&quot;"><id>tag:blogger.com,1999:blog-6127056490016048846.post-7744833509808242897</id><published>2008-01-08T23:37:00.000+13:00</published><updated>2008-01-09T00:21:42.642+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-01-09T00:21:42.642+13:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="logging" /><title>JCAPS Log Server</title><content type="html">In JCAPS each project is packaged as an EAR file which then gets deployed to a JCAPS Domain (Sun Application Server). As these EAR files contain a full set of referenced jars they can be 10MB or more. This leads to a limitation on the number of EARs that can be run in a single Domain due to JVM memory restrictions. A team with a huge number of EAR files will have a large number of Domains running.&lt;br /&gt;&lt;br /&gt;Often this problem is created also by configuring the JCAPS Domains in replicated clusters for increased throughput (scalability) or high availability.&lt;br /&gt;&lt;br /&gt;As a message passes through the various stages in an application it may traverse multiple Domains, requiring the developer to search through many log files in order to piece back together a complete EAI transaction.&lt;br /&gt;&lt;br /&gt;Searching through many log files is further complicated as they are scattered across many different directories and hosts.&lt;br /&gt;&lt;br /&gt;It would be very handy to only have to look in a single well known directory on a well known host and find all logs from all Domains. However, JCAPS often generates vast amounts of logging and would easily saturate the network with non-critical logging messages.&lt;br /&gt;&lt;br /&gt;Two approaches come to mind in order to get all log files into one well known location. Note: These are all Unix-based approaches. I can't imagine why anyone would want to run Windows on a server. ;-)&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Use cron to periodically move log files to the Log Servers logging directory.&lt;/li&gt;&lt;li&gt;Use NFS to remotely mount the Domain's .....is/domains/domainName/logs directory into the Log Servers logging directory.&lt;/li&gt;&lt;/ol&gt;The second approach appears to be the best solutions as this generates the least network traffic and give a "near" real-time view of the log file, ie. "tail -f server.log" will work on the Log Server.&lt;br /&gt;&lt;br /&gt;Having all files in a single directory tree we could use&lt;br /&gt;&lt;ul&gt;&lt;li&gt;tail -f server.log&lt;/li&gt;&lt;li&gt;less server.log&lt;/li&gt;&lt;li&gt;grep -r someRegEx *.log&lt;/li&gt;&lt;li&gt;Use a basic web application to view the log files similar to the way the JCAPS Enterprise Manager lets you brows log files. This would have to be custom built, but should not be very difficult to do.&lt;/li&gt;&lt;/ul&gt;If each application level log message would be prefixed with a unique transaction ID, then it should be trivial to do a "grep -r UUID *.log" and be able to track a transaction that spans multiple JCAPS Domains.&lt;br /&gt;&lt;br /&gt;A "tail -f" over NFS will not be as fast as executed locally (not over the network), but one needs to ask the question why people are can't live with viewing production log files with a few seconds delay.&lt;br /&gt;&lt;br /&gt;Such a Log Server, as described above, would be used for a production system only. Developers would deploy a single application's EAR files do a dedicated development Domain and can run a "tail -f server.log" locally.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6127056490016048846-7744833509808242897?l=jcapsblogger.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://jcapsblogger.blogspot.com/feeds/7744833509808242897/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6127056490016048846&amp;postID=7744833509808242897" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/7744833509808242897?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/7744833509808242897?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaCapsTechnicalTips/~3/gt4OG3fjV58/jcaps-log-server.html" title="JCAPS Log Server" /><author><name>Sebastian Krueger</name><uri>http://www.blogger.com/profile/05628376122714349985</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://jcapsblogger.blogspot.com/2008/01/jcaps-log-server.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkcMQX86fSp7ImA9WxZWGUU.&quot;"><id>tag:blogger.com,1999:blog-6127056490016048846.post-1582061965516252277</id><published>2007-11-24T01:31:00.000+13:00</published><updated>2008-03-20T16:34:40.115+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-03-20T16:34:40.115+13:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="BAPI eWay" /><title>What to do if you have issues with the JCo libs</title><content type="html">In eDesigner:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;check that sapjcorfc.dll and librfc32.dll are in C:/WIN/SYSTEM32&lt;/li&gt;&lt;li&gt;check that sapjco.jar is in edesigner\lib\ext&lt;/li&gt;&lt;/ol&gt;In Domain:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;check that the sapjco.jar is in logicalhost/is/domains/domainname/lib/ext/sapjco.jar or logicalhost/is/lib&lt;br /&gt;&lt;/li&gt;&lt;li&gt;check that libsapjcorfc.so and librfccm.so are in logicalhost/is/lib&lt;/li&gt;&lt;/ol&gt;If you find that you still can't connect, try the following:&lt;br /&gt;&lt;br /&gt;Are you using the correct JCo for your architecture? Check your architecture and then make sure your JCo libraries conform to this architecture. You could do something like this:&lt;br /&gt;&lt;pre class="code-block"&gt;$&gt; uname -a&lt;br /&gt;Linux b2b01vstk11 2.6.16.46-0.12-default #1 Thu May 17 14:00:09 UTC 2007 i686 i686 i386 GNU/Linux&lt;br /&gt;$&gt;file librfccm.so libsapjcorfc.so&lt;br /&gt;librfccm.so:     ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped&lt;br /&gt;libsapjcorfc.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;Ensure the JCo is installed correctly through the following command:&lt;br /&gt;&lt;pre class="code-block"&gt;logicalhost/jre/bin/java -jar logicalhost/is/domains/domainname/lib/ext/sapjco.jar -stdout&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;If you get the following error on Unix when running the above command:&lt;br /&gt;&lt;pre class="code-block"&gt;java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'&lt;br /&gt;JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [&lt;logicalhost&gt;/jre/lib/i386/libsapjcorfc.so: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory]. java.library.path [&lt;logicalhost&gt;/jre/lib/i386/client:/&lt;logicalhost&gt;/jre/lib/i386:&lt;logicalhost&gt;/jre/../lib/i386]&lt;br /&gt;  at com.sap.mw.jco.JCO.&lt;clinit&gt;(JCO.java:776)&lt;br /&gt;  at java.lang.Class.forName0(Native Method)&lt;br /&gt;  at java.lang.Class.forName(Class.java:164)&lt;br /&gt;  at com.sap.mw.jco.About.&lt;init&gt;(About.java:33)&lt;br /&gt;  at com.sap.mw.jco.About.main(About.java:93)&lt;br /&gt;--------------------------------------------------------------------------------------&lt;br /&gt;|                              SAP Java Connector (JCo)                              |&lt;br /&gt;|                Copyright (c) 2000-2005 SAP AG. All rights reserved.                |&lt;br /&gt;|                                Version Information                                 |&lt;br /&gt;--------------------------------------------------------------------------------------&lt;br /&gt;Java Runtime:&lt;br /&gt;Operating System:    Linux 2.6.18-5-686 for i386&lt;br /&gt;Java VM:             1.5.0_06 Sun Microsystems Inc.&lt;br /&gt;Java Codepage:       UTF8&lt;br /&gt;Versions:&lt;br /&gt;JCo API:             2.1.7 (2006-06-12)&lt;br /&gt;JCo middleware:      Library not found&lt;br /&gt;JCo library:         Library not found&lt;br /&gt;RFC library:         Library not found&lt;br /&gt;Paths:&lt;br /&gt;JCo classes:         /home/username/sapjco.jar&lt;br /&gt;JCo library:         Library not found&lt;br /&gt;RFC library:         System-defined path&lt;/init&gt;&lt;/clinit&gt;&lt;/logicalhost&gt;&lt;/logicalhost&gt;&lt;/logicalhost&gt;&lt;/logicalhost&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;You know that the jco isn't installed correctly.&lt;br /&gt;&lt;br /&gt;The problem lies here: libstdc++-libc6.2-2.so.3 is not found.&lt;br /&gt;&lt;br /&gt;You can verify this with this command as well:&lt;br /&gt;&lt;pre class="code-block"&gt;$ ldd librfccm.so&lt;br /&gt;  linux-gate.so.1 =&gt;  (0xffffe000)&lt;br /&gt;  libdl.so.2 =&gt; /lib/tls/i686/cmov/libdl.so.2 (0xb7a83000)&lt;br /&gt;  librt.so.1 =&gt; /lib/tls/i686/cmov/librt.so.1 (0xb7a7a000)&lt;br /&gt;  libpthread.so.0 =&gt; /lib/tls/i686/cmov/libpthread.so.0 (0xb7a68000)&lt;br /&gt;  libc.so.6 =&gt; /lib/tls/i686/cmov/libc.so.6 (0xb7937000)&lt;br /&gt;  libstdc++-libc6.2-2.so.3 =&gt; not found&lt;br /&gt;  libm.so.6 =&gt; /lib/tls/i686/cmov/libm.so.6 (0xb7911000)&lt;br /&gt;  /lib/ld-linux.so.2 (0x80000000)&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Now install the missing package "libstdc++2.10-glibc2.2".&lt;br /&gt;For example on Debian do:&lt;br /&gt;&lt;pre class="code-block"&gt;$sudo apt-get install libstdc++2.10-glibc2.2&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Then:&lt;br /&gt;&lt;pre class="code-block"&gt;$ ldd librfccm.so&lt;br /&gt;  linux-gate.so.1 =&gt;  (0xffffe000)&lt;br /&gt;  libdl.so.2 =&gt; /lib/tls/i686/cmov/libdl.so.2 (0xb7a4e000)&lt;br /&gt;  librt.so.1 =&gt; /lib/tls/i686/cmov/librt.so.1 (0xb7a45000)&lt;br /&gt;  libpthread.so.0 =&gt; /lib/tls/i686/cmov/libpthread.so.0 (0xb7a33000)&lt;br /&gt;  libc.so.6 =&gt; /lib/tls/i686/cmov/libc.so.6 (0xb7902000)&lt;br /&gt;  libstdc++-libc6.2-2.so.3 =&gt; /usr/lib/libstdc++-libc6.2-2.so.3 (0xb78ba000)&lt;br /&gt;  libm.so.6 =&gt; /lib/tls/i686/cmov/libm.so.6 (0xb7895000)&lt;br /&gt;  /lib/ld-linux.so.2 (0x80000000)&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Problem solved. :-)&lt;br /&gt;&lt;br /&gt;Still not working?&lt;br /&gt;&lt;br /&gt;Check your network connectivity by pinging the SAP host from your logicalhost machine.&lt;br /&gt;&lt;br /&gt;Still find you can't connect, then ensure that there are no firewalls blocking your traffic.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6127056490016048846-1582061965516252277?l=jcapsblogger.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://jcapsblogger.blogspot.com/feeds/1582061965516252277/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6127056490016048846&amp;postID=1582061965516252277" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/1582061965516252277?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/1582061965516252277?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaCapsTechnicalTips/~3/yCS_v8H-qSQ/what-to-do-if-you-have-issues-with-jco.html" title="What to do if you have issues with the JCo libs" /><author><name>Sebastian Krueger</name><uri>http://www.blogger.com/profile/05628376122714349985</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total><feedburner:origLink>http://jcapsblogger.blogspot.com/2007/11/what-to-do-if-you-have-issues-with-jco.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0AARXc_fip7ImA9WB9WGE8.&quot;"><id>tag:blogger.com,1999:blog-6127056490016048846.post-2437226881177534149</id><published>2007-11-24T01:12:00.000+13:00</published><updated>2007-11-24T01:42:24.946+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-11-24T01:42:24.946+13:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="jar" /><category scheme="http://www.blogger.com/atom/ns#" term="JCD" /><category scheme="http://www.blogger.com/atom/ns#" term="eDesigner" /><title>jar's in a JCD not being updated in eDesigner</title><content type="html">What to do if the jar file in eDesigner does not update:&lt;br /&gt;&lt;br /&gt;Are you using the correct JDK for compiling your java files?&lt;br /&gt;&lt;ol&gt;&lt;li&gt;ensure the correct jdk is selected in your Java IDE (try C:\_jcaps\edesigner\jdk).&lt;/li&gt;&lt;li&gt;clean the workspace so that no old .class files are lying around.&lt;/li&gt;&lt;li&gt;export the eclipse project to a jar file.&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;Still not working? Maybe eDesigner has cached an old version of the jar in a local cache. Try this:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;delete the temporary build directory in the C:\Documents and Settings\&lt;username&gt;\Local Settings\Temp\builds directory.&lt;/username&gt;&lt;/li&gt;&lt;li&gt;delete the build directory in C:\_jcaps\edesigner\builds.&lt;/li&gt;&lt;li&gt;try to build the ear file in eDesigner.&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;Sill not working? Maybe eDesigner is using an old version from the repository. Try this:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;remove the jar file from the jcd.&lt;/li&gt;&lt;li&gt;remove the jar file from the repository.&lt;/li&gt;&lt;li&gt;search in C:\_jcaps\edesigner for the jar file in question and remove the files in the search result.&lt;/li&gt;&lt;li&gt;reimport the jar into eDesigner.&lt;/li&gt;&lt;li&gt;add jar to jcd.&lt;/li&gt;&lt;li&gt;rebuild ear file.&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;Still broken?&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Delete the C:\_jcaps\edesigner\userdir and reinstall the eDesigner.&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;Still broken??? Oh dear... Let's hope it doesn't get this far.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6127056490016048846-2437226881177534149?l=jcapsblogger.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://jcapsblogger.blogspot.com/feeds/2437226881177534149/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6127056490016048846&amp;postID=2437226881177534149" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/2437226881177534149?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6127056490016048846/posts/default/2437226881177534149?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaCapsTechnicalTips/~3/wypkMxXc_D0/jars-in-jcd-not-being-updated-in.html" title="jar's in a JCD not being updated in eDesigner" /><author><name>Sebastian Krueger</name><uri>http://www.blogger.com/profile/05628376122714349985</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://jcapsblogger.blogspot.com/2007/11/jars-in-jcd-not-being-updated-in.html</feedburner:origLink></entry></feed>

