I'm looking into this more. The problem seems to be that the archetype isn't using the same source as trunk. Take a look at
https://github.com/apache/oodt/blob/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/filemgr/src/main/resources/bin/filemgr-client The archetype filemgr-client. Compare that to https://github.com/apache/oodt/blob/trunk/filemgr/src/main/bin/filemgr-client the trunk filemgr-client. Shouldn't these two be the same? Is there a way to keep the archetype up to date with trunk/the archetype version? Tyler On Sun, Oct 26, 2014 at 10:07 PM, Tyler Palsulich <[email protected]> wrote: > I just tried the same steps with some trouble. In particular, here are the > commands I ran: > > curl -s > http://svn.apache.org/repos/asf/oodt/trunk/mvn/archetypes/radix/src/main/resources/bin/radix > | bash > cd oodt > mvn package > mkdir ../deploy > tar -xzvf filemgr/target/oodt-filemgr-0.1-bin.tar.gz -C ../deploy > cd ../deploy/filemgr/bin > ./filemgr start > > ./filemgr: line 95: [: -eq: unary operator expected > ./filemgr: line 83: : command not found > > Both problems are caused by undefined variables. Can fix line 95 by > switching it to be [[ ... ]] and switching the shebang to /bin/bash. But, > that doesn't fix the underlying issue that $have_tty isn't defined. From > googling, it looks to be an artifact from [0]. Thoughts? > > Line 83 is caused by $_RUNJAVA not being defined. That can be fixed by, > well, defining it. ;) Add this right below the definition of OODT_HOME: > [ -z "$_RUNJAVA" ] && _RUNJAVA="$JAVA_HOME/bin/java" > > After applying both of those fixes, I get the following error: > Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1 > at > org.apache.oodt.cas.filemgr.system.XmlRpcFileManager.main(XmlRpcFileManager.java:996) > > But, that's another thread. I haven't looked into it yet. > > So, I tried just running filemgr-client and got the same error as > Vishal... Looking at line 71, it's the same problem as with filemgr. > $_RUNJAVA$ isn't defined, so we get a command not found. I added the same > _RUNJAVA definition from above... and it worked! > > Can you try adding that line to filemgr-client, Vashal? Did you have any > issues running `filemgr start`? > > Tyler > > [0] - https://svn.apache.org/repos/asf/tomcat/trunk/bin/catalina.sh > > On Sun, Oct 26, 2014 at 7:07 PM, Mattmann, Chris A (3980) < > [email protected]> wrote: > >> Is your java_home env variable set? >> >> Sent from my iPhone >> >> > On Oct 26, 2014, at 12:26 PM, "Vishal Hemnani" <[email protected]> wrote: >> > >> > Hello, >> > >> > We installed OODT using Radix and followed steps given on wiki ( >> > >> https://cwiki.apache.org/confluence/display/OODT/OODT+Filemgr+User+Guide) >> > >> > But while executing filemgr-client, it fails to execute due to a >> > "Permission denied" error on line 71. The snippet where it fails is- >> > >> > "$_RUNJAVA" $JAVA_OPTS $OODT_OPTS \ -Djava.ext.dirs="$FILEMGR_HOME"/lib >> \ >> > >> -Dorg.apache.oodt.cas.filemgr.properties="$FILEMGR_HOME"/etc/filemgr.properties >> > \ >> -Djava.util.logging.config.file="$FILEMGR_HOME"/etc/logging.properties \ >> > >> -Dorg.apache.oodt.cas.cli.action.spring.config=file:"$FILEMGR_HOME"/policy/cmd-line-actions.xml >> > \ >> > >> -Dorg.apache.oodt.cas.cli.option.spring.config=file:"$FILEMGR_HOME"/policy/cmd-line-options.xml >> > \ org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient "$@" >> > >> > We tried chmod on this script but didn't help. >> > Also, tried setting JAVA_HOME and other env variables, but that didn't >> help >> > either. >> > >> > Appreciate if someone could help troubleshoot this issue. >> > >> > *Environment details-* >> > Ubuntu 14.04 >> > 64-bit >> > Radix installation >> > >> > Thanks & Best, >> > Vishal Hemnani >> > Graduate Student, MS Computer Science >> > University of Southern California, Los Angeles >> > >
