talk@lists.collectionspace.org

WE HAVE SUNSET THIS LISTSERV - Join us at collectionspace@lyrasislists.org

View all threads

error running mvn clean install -DskipTests

AB
Al Bersch
Wed, Jul 31, 2013 9:04 PM

Hello all,

I am creating new tenant in CollectionSpace 3.3, and am at the stage of pushing the Applications layer to the CollectionSpace server. I have two issues that might be related. I'm running into an error when I run mvn clean install -DskipTests:

[INFO] --- exec-maven-plugin:1.1:exec (default) @ war-entry ---
[INFO] Error: JAVA_HOME is not defined correctly.
[INFO] We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Root .............................................. SUCCESS [0.890s]
[INFO] CSP: General Utils ................................ SUCCESS [3.037s]
[INFO] Collection-Space CSP API .......................... SUCCESS [1.154s]
[INFO] CSP: Impl ......................................... SUCCESS [2.650s]
[INFO] Collection-Space CSP Helper ....................... SUCCESS [1.098s]
[INFO] CSP: Schema ....................................... SUCCESS [3.249s]
[INFO] JXUtils ........................................... SUCCESS [1.311s]
[INFO] CSP: Web UI ....................................... SUCCESS [5.630s]
[INFO] CSP: File ......................................... SUCCESS [0.946s]
[INFO] CSP: Services ..................................... SUCCESS [4.590s]
[INFO] JXUtils ........................................... SUCCESS [1.831s]
[INFO] Core .............................................. SUCCESS [9.068s]
[INFO] Core .............................................. FAILURE [8.250s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 44.183s
[INFO] Finished at: Wed Jul 31 20:58:10 UTC 2013
[INFO] Final Memory: 102M/339M

It appears that I have the environment variable set up correctly:

root@li551-203:~# echo $JAVA_HOME
/usr/lib/jvm/java-7-oracle

I thought I'd double check that I shut down the servers correctly. when I ran $CSPACE_JEESERVER_HOME/bin/shutdown.sh -force, I got the message :

"$CATALINA_PID was set but the specified file does not exist. Is Tomcat running? Stop aborted."

So I looked for the tomcat.pid in /usr/local/share/apache-tomcat-6.0.33/bin and didn't find it there. Any ideas what's going on? I know it was there before, because I successfully started up the server.

Many thanks!

Al

Al Bersch
Digital Project Coordinator
Oakland Museum of California
1000 Oak Street, Oakland, CA 94607
abersch@museumca.org
510-318-8468

Hello all, I am creating new tenant in CollectionSpace 3.3, and am at the stage of pushing the Applications layer to the CollectionSpace server. I have two issues that might be related. I'm running into an error when I run mvn clean install -DskipTests: [INFO] --- exec-maven-plugin:1.1:exec (default) @ war-entry --- [INFO] Error: JAVA_HOME is not defined correctly. [INFO] We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Root .............................................. SUCCESS [0.890s] [INFO] CSP: General Utils ................................ SUCCESS [3.037s] [INFO] Collection-Space CSP API .......................... SUCCESS [1.154s] [INFO] CSP: Impl ......................................... SUCCESS [2.650s] [INFO] Collection-Space CSP Helper ....................... SUCCESS [1.098s] [INFO] CSP: Schema ....................................... SUCCESS [3.249s] [INFO] JXUtils ........................................... SUCCESS [1.311s] [INFO] CSP: Web UI ....................................... SUCCESS [5.630s] [INFO] CSP: File ......................................... SUCCESS [0.946s] [INFO] CSP: Services ..................................... SUCCESS [4.590s] [INFO] JXUtils ........................................... SUCCESS [1.831s] [INFO] Core .............................................. SUCCESS [9.068s] [INFO] Core .............................................. FAILURE [8.250s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 44.183s [INFO] Finished at: Wed Jul 31 20:58:10 UTC 2013 [INFO] Final Memory: 102M/339M It appears that I have the environment variable set up correctly: root@li551-203:~# echo $JAVA_HOME /usr/lib/jvm/java-7-oracle I thought I'd double check that I shut down the servers correctly. when I ran $CSPACE_JEESERVER_HOME/bin/shutdown.sh -force, I got the message : "$CATALINA_PID was set but the specified file does not exist. Is Tomcat running? Stop aborted." So I looked for the tomcat.pid in /usr/local/share/apache-tomcat-6.0.33/bin and didn't find it there. Any ideas what's going on? I know it was there before, because I successfully started up the server. Many thanks! Al Al Bersch Digital Project Coordinator Oakland Museum of California 1000 Oak Street, Oakland, CA 94607 abersch@museumca.org 510-318-8468
AR
Aron Roberts
Wed, Jul 31, 2013 9:28 PM

Hi Al,

  1. An off the cuff thought, possibly erroneous, but quick :-): It's
    conceivable that there is a second place from which the value of the
    JAVA_HOME environment variable is being read, other than from your own
    user environment.  It could conceivably be getting this value from
    another user's environment, or from some system configuration file.

a. Is Tomcat running under your own user account, or another
account? (Check this via 'ps -ef | grep catalina'; the first item in
the relevant entry will be the username under which Tomcat is running,
while the second item will be its process ID, relevant to response 2,
below.)

If it's running under another user account, you can log into that
user's account (or 'sudo su actual_username_here' to it) and check the
value of JAVA_HOME there ('echo $JAVA_HOME', much as you've done in
your account).

b. Is a value set for JAVA_HOME in any of the files in /etc/profile.d?

c. (You can skip this third point, as this is NOT relevant to the
issue you reported, which involved building CollectionSpace's
Application layer, but is mentioned here for completeness ... as a
different set of problems could result from it: Is a value explicitly
set for JAVA_HOME in any of the files in $CATALINA_HOME/bin, such as
setenv.sh or nuxeo.conf?  First, look in those two files; then 'grep
JAVA_HOME $CATALINA_HOME/bin', and ignore any comments or uses of
$JAVA_HOME as a variable name, etc.)

  1. I've encountered this (a missing tomcat.pid file) on occasion,
    without having investigated its cause.

When that happens, as a fix, I've just killed the Tomcat process
('sudo kill actual_pid_here', where 'actual_pid_here' is the process
ID of that process, then restarted Tomcat, which re-creates that file.
(The tomcat.pid file itself is just a text file containing a process
ID.)

Aron

On Wed, Jul 31, 2013 at 2:04 PM, Al Bersch abersch@museumca.org wrote:

Hello all,

I am creating new tenant in CollectionSpace 3.3, and am at the stage of
pushing the Applications layer to the CollectionSpace server. I have two
issues that might be related. I'm running into an error when I run mvn clean
install -DskipTests:

[INFO] --- exec-maven-plugin:1.1:exec (default) @ war-entry ---
[INFO] Error: JAVA_HOME is not defined correctly.
[INFO]  We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java
[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] Root .............................................. SUCCESS [0.890s]
[INFO] CSP: General Utils ................................ SUCCESS [3.037s]
[INFO] Collection-Space CSP API .......................... SUCCESS [1.154s]
[INFO] CSP: Impl ......................................... SUCCESS [2.650s]
[INFO] Collection-Space CSP Helper ....................... SUCCESS [1.098s]
[INFO] CSP: Schema ....................................... SUCCESS [3.249s]
[INFO] JXUtils ........................................... SUCCESS [1.311s]
[INFO] CSP: Web UI ....................................... SUCCESS [5.630s]
[INFO] CSP: File ......................................... SUCCESS [0.946s]
[INFO] CSP: Services ..................................... SUCCESS [4.590s]
[INFO] JXUtils ........................................... SUCCESS [1.831s]
[INFO] Core .............................................. SUCCESS [9.068s]
[INFO] Core .............................................. FAILURE [8.250s]
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 44.183s
[INFO] Finished at: Wed Jul 31 20:58:10 UTC 2013
[INFO] Final Memory: 102M/339M

It appears that I have the environment variable set up correctly:

root@li551-203:~# echo $JAVA_HOME
/usr/lib/jvm/java-7-oracle

I thought I'd double check that I shut down the servers correctly. when I
ran $CSPACE_JEESERVER_HOME/bin/shutdown.sh -force, I got the message :

"$CATALINA_PID was set but the specified file does not exist. Is Tomcat
running? Stop aborted."

So I looked for the tomcat.pid in /usr/local/share/apache-tomcat-6.0.33/bin
and didn't find it there. Any ideas what's going on? I know it was there
before, because I successfully started up the server.

Many thanks!

Al

Al Bersch
Digital Project Coordinator
Oakland Museum of California
1000 Oak Street, Oakland, CA 94607
abersch@museumca.org
510-318-8468


Talk mailing list
Talk@lists.collectionspace.org
http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org

Hi Al, 1. An off the cuff thought, possibly erroneous, but quick :-): It's conceivable that there is a second place from which the value of the JAVA_HOME environment variable is being read, other than from your own user environment. It could conceivably be getting this value from another user's environment, or from some system configuration file. a. Is Tomcat running under your own user account, or another account? (Check this via 'ps -ef | grep catalina'; the first item in the relevant entry will be the username under which Tomcat is running, while the second item will be its process ID, relevant to response 2, below.) If it's running under another user account, you can log into that user's account (or 'sudo su actual_username_here' to it) and check the value of JAVA_HOME there ('echo $JAVA_HOME', much as you've done in your account). b. Is a value set for JAVA_HOME in any of the files in /etc/profile.d? c. (You can skip this third point, as this is NOT relevant to the issue you reported, which involved building CollectionSpace's Application layer, but is mentioned here for completeness ... as a different set of problems could result from it: Is a value explicitly set for JAVA_HOME in any of the files in $CATALINA_HOME/bin, such as setenv.sh or nuxeo.conf? First, look in those two files; then 'grep JAVA_HOME $CATALINA_HOME/bin', and ignore any comments or uses of $JAVA_HOME as a variable name, etc.) 2. I've encountered this (a missing tomcat.pid file) on occasion, without having investigated its cause. When that happens, as a fix, I've just killed the Tomcat process ('sudo kill actual_pid_here', where 'actual_pid_here' is the process ID of that process, then restarted Tomcat, which re-creates that file. (The tomcat.pid file itself is just a text file containing a process ID.) Aron On Wed, Jul 31, 2013 at 2:04 PM, Al Bersch <abersch@museumca.org> wrote: > Hello all, > > I am creating new tenant in CollectionSpace 3.3, and am at the stage of > pushing the Applications layer to the CollectionSpace server. I have two > issues that might be related. I'm running into an error when I run mvn clean > install -DskipTests: > > [INFO] --- exec-maven-plugin:1.1:exec (default) @ war-entry --- > [INFO] Error: JAVA_HOME is not defined correctly. > [INFO] We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java > [INFO] > ------------------------------------------------------------------------ > [INFO] Reactor Summary: > [INFO] > [INFO] Root .............................................. SUCCESS [0.890s] > [INFO] CSP: General Utils ................................ SUCCESS [3.037s] > [INFO] Collection-Space CSP API .......................... SUCCESS [1.154s] > [INFO] CSP: Impl ......................................... SUCCESS [2.650s] > [INFO] Collection-Space CSP Helper ....................... SUCCESS [1.098s] > [INFO] CSP: Schema ....................................... SUCCESS [3.249s] > [INFO] JXUtils ........................................... SUCCESS [1.311s] > [INFO] CSP: Web UI ....................................... SUCCESS [5.630s] > [INFO] CSP: File ......................................... SUCCESS [0.946s] > [INFO] CSP: Services ..................................... SUCCESS [4.590s] > [INFO] JXUtils ........................................... SUCCESS [1.831s] > [INFO] Core .............................................. SUCCESS [9.068s] > [INFO] Core .............................................. FAILURE [8.250s] > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 44.183s > [INFO] Finished at: Wed Jul 31 20:58:10 UTC 2013 > [INFO] Final Memory: 102M/339M > > > It appears that I have the environment variable set up correctly: > > root@li551-203:~# echo $JAVA_HOME > /usr/lib/jvm/java-7-oracle > > I thought I'd double check that I shut down the servers correctly. when I > ran $CSPACE_JEESERVER_HOME/bin/shutdown.sh -force, I got the message : > > "$CATALINA_PID was set but the specified file does not exist. Is Tomcat > running? Stop aborted." > > So I looked for the tomcat.pid in /usr/local/share/apache-tomcat-6.0.33/bin > and didn't find it there. Any ideas what's going on? I know it was there > before, because I successfully started up the server. > > Many thanks! > > Al > > Al Bersch > Digital Project Coordinator > Oakland Museum of California > 1000 Oak Street, Oakland, CA 94607 > abersch@museumca.org > 510-318-8468 > > _______________________________________________ > Talk mailing list > Talk@lists.collectionspace.org > http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org >
JM
Jesse Martinez
Wed, Jul 31, 2013 9:31 PM

Hi Al,

The info line that says
[INFO]  We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java
is interesting because it shows a malformed path to the java executable,
i.e. .../bin/java/bin/java. It should only be .../bin/java  AFAIK.
Your $JAVA_HOME env var looks correct. Nonetheless, could you print out the
JAVA_HOME variable you set in your environmental variables (maybe in
~/.bashrc if on a Linux OS)
I assume you were able to run the maven and ant commands on the services
layer code before running the application layer code?

I believe the message you got when attempting to shut down the app is fine.
It just means the Tomcat service was already shut down (force shutdown or
killed in some way) and behind a small file containing the ID of the
process running.

  • Jesse

On Wed, Jul 31, 2013 at 5:04 PM, Al Bersch abersch@museumca.org wrote:

Hello all,

I am creating new tenant in CollectionSpace 3.3, and am at the stage of
pushing the Applications layer to the CollectionSpace server. I have two
issues that might be related. I'm running into an error when I run mvn
clean install -DskipTests:

[INFO] --- exec-maven-plugin:1.1:exec (default) @ war-entry ---
[INFO] Error: JAVA_HOME is not defined correctly.
[INFO]  We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java
[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] Root .............................................. SUCCESS [0.890s]
[INFO] CSP: General Utils ................................ SUCCESS [3.037s]
[INFO] Collection-Space CSP API .......................... SUCCESS [1.154s]
[INFO] CSP: Impl ......................................... SUCCESS [2.650s]
[INFO] Collection-Space CSP Helper ....................... SUCCESS [1.098s]
[INFO] CSP: Schema ....................................... SUCCESS [3.249s]
[INFO] JXUtils ........................................... SUCCESS [1.311s]
[INFO] CSP: Web UI ....................................... SUCCESS [5.630s]
[INFO] CSP: File ......................................... SUCCESS [0.946s]
[INFO] CSP: Services ..................................... SUCCESS [4.590s]
[INFO] JXUtils ........................................... SUCCESS [1.831s]
[INFO] Core .............................................. SUCCESS [9.068s]
[INFO] Core .............................................. FAILURE [8.250s]
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 44.183s
[INFO] Finished at: Wed Jul 31 20:58:10 UTC 2013
[INFO] Final Memory: 102M/339M

It appears that I have the environment variable set up correctly:

root@li551-203:~# echo $JAVA_HOME
/usr/lib/jvm/java-7-oracle

I thought I'd double check that I shut down the servers correctly. when I
ran $CSPACE_JEESERVER_HOME/bin/shutdown.sh -force, I got the message :

"$CATALINA_PID was set but the specified file does not exist. Is Tomcat
running? Stop aborted."

So I looked for the tomcat.pid in
/usr/local/share/apache-tomcat-6.0.33/bin and didn't find it there. Any
ideas what's going on? I know it was there before, because I successfully
started up the server.

Many thanks!

Al

Al Bersch
Digital Project Coordinator
Oakland Museum of California
1000 Oak Street, Oakland, CA 94607
abersch@museumca.org
510-318-8468


Talk mailing list
Talk@lists.collectionspace.org

http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org

Hi Al, The info line that says [INFO] We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java is interesting because it shows a malformed path to the java executable, i.e. .../bin/java/bin/java. It should only be .../bin/java AFAIK. Your $JAVA_HOME env var looks correct. Nonetheless, could you print out the JAVA_HOME variable you set in your environmental variables (maybe in ~/.bashrc if on a Linux OS) I assume you were able to run the maven and ant commands on the services layer code before running the application layer code? I believe the message you got when attempting to shut down the app is fine. It just means the Tomcat service was already shut down (force shutdown or killed in some way) and behind a small file containing the ID of the process running. - Jesse On Wed, Jul 31, 2013 at 5:04 PM, Al Bersch <abersch@museumca.org> wrote: > Hello all, > > I am creating new tenant in CollectionSpace 3.3, and am at the stage of > pushing the Applications layer to the CollectionSpace server. I have two > issues that might be related. I'm running into an error when I run mvn > clean install -DskipTests: > > [INFO] --- exec-maven-plugin:1.1:exec (default) @ war-entry --- > [INFO] Error: JAVA_HOME is not defined correctly. > [INFO] We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java > [INFO] > ------------------------------------------------------------------------ > [INFO] Reactor Summary: > [INFO] > [INFO] Root .............................................. SUCCESS [0.890s] > [INFO] CSP: General Utils ................................ SUCCESS [3.037s] > [INFO] Collection-Space CSP API .......................... SUCCESS [1.154s] > [INFO] CSP: Impl ......................................... SUCCESS [2.650s] > [INFO] Collection-Space CSP Helper ....................... SUCCESS [1.098s] > [INFO] CSP: Schema ....................................... SUCCESS [3.249s] > [INFO] JXUtils ........................................... SUCCESS [1.311s] > [INFO] CSP: Web UI ....................................... SUCCESS [5.630s] > [INFO] CSP: File ......................................... SUCCESS [0.946s] > [INFO] CSP: Services ..................................... SUCCESS [4.590s] > [INFO] JXUtils ........................................... SUCCESS [1.831s] > [INFO] Core .............................................. SUCCESS [9.068s] > [INFO] Core .............................................. FAILURE [8.250s] > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 44.183s > [INFO] Finished at: Wed Jul 31 20:58:10 UTC 2013 > [INFO] Final Memory: 102M/339M > > > It appears that I have the environment variable set up correctly: > > root@li551-203:~# echo $JAVA_HOME > /usr/lib/jvm/java-7-oracle > > I thought I'd double check that I shut down the servers correctly. when I > ran $CSPACE_JEESERVER_HOME/bin/shutdown.sh -force, I got the message : > > "$CATALINA_PID was set but the specified file does not exist. Is Tomcat > running? Stop aborted." > > So I looked for the tomcat.pid in > /usr/local/share/apache-tomcat-6.0.33/bin and didn't find it there. Any > ideas what's going on? I know it was there before, because I successfully > started up the server. > > Many thanks! > > Al > > Al Bersch > Digital Project Coordinator > Oakland Museum of California > 1000 Oak Street, Oakland, CA 94607 > abersch@museumca.org > 510-318-8468 > > _______________________________________________ > Talk mailing list > Talk@lists.collectionspace.org > > http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org > >
AR
Aron Roberts
Wed, Jul 31, 2013 9:31 PM

Having said this about 1.c, below, it's likely that 1.a. is also
irrelevant to your issue ... 1.b. might be worth looking into,
however.

From the error message, it looks like Maven might be using have a

different value for JAVA_HOME ... so check 1.b (whether a value for
JAVA_HOME is set in any files in /etc/profile.d), and then you can
report back, if that doesn't seem to be relevant.

On Wed, Jul 31, 2013 at 2:28 PM, Aron Roberts
aron@socrates.berkeley.edu wrote:

Hi Al,

  1. An off the cuff thought, possibly erroneous, but quick :-): It's
    conceivable that there is a second place from which the value of the
    JAVA_HOME environment variable is being read, other than from your own
    user environment.  It could conceivably be getting this value from
    another user's environment, or from some system configuration file.

a. Is Tomcat running under your own user account, or another
account? (Check this via 'ps -ef | grep catalina'; the first item in
the relevant entry will be the username under which Tomcat is running,
while the second item will be its process ID, relevant to response 2,
below.)

If it's running under another user account, you can log into that
user's account (or 'sudo su actual_username_here' to it) and check the
value of JAVA_HOME there ('echo $JAVA_HOME', much as you've done in
your account).

b. Is a value set for JAVA_HOME in any of the files in /etc/profile.d?

c. (You can skip this third point, as this is NOT relevant to the
issue you reported, which involved building CollectionSpace's
Application layer, but is mentioned here for completeness ... as a
different set of problems could result from it: Is a value explicitly
set for JAVA_HOME in any of the files in $CATALINA_HOME/bin, such as
setenv.sh or nuxeo.conf?  First, look in those two files; then 'grep
JAVA_HOME $CATALINA_HOME/bin', and ignore any comments or uses of
$JAVA_HOME as a variable name, etc.)

  1. I've encountered this (a missing tomcat.pid file) on occasion,
    without having investigated its cause.

When that happens, as a fix, I've just killed the Tomcat process
('sudo kill actual_pid_here', where 'actual_pid_here' is the process
ID of that process, then restarted Tomcat, which re-creates that file.
(The tomcat.pid file itself is just a text file containing a process
ID.)

Aron

On Wed, Jul 31, 2013 at 2:04 PM, Al Bersch abersch@museumca.org wrote:

Hello all,

I am creating new tenant in CollectionSpace 3.3, and am at the stage of
pushing the Applications layer to the CollectionSpace server. I have two
issues that might be related. I'm running into an error when I run mvn clean
install -DskipTests:

[INFO] --- exec-maven-plugin:1.1:exec (default) @ war-entry ---
[INFO] Error: JAVA_HOME is not defined correctly.
[INFO]  We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java
[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] Root .............................................. SUCCESS [0.890s]
[INFO] CSP: General Utils ................................ SUCCESS [3.037s]
[INFO] Collection-Space CSP API .......................... SUCCESS [1.154s]
[INFO] CSP: Impl ......................................... SUCCESS [2.650s]
[INFO] Collection-Space CSP Helper ....................... SUCCESS [1.098s]
[INFO] CSP: Schema ....................................... SUCCESS [3.249s]
[INFO] JXUtils ........................................... SUCCESS [1.311s]
[INFO] CSP: Web UI ....................................... SUCCESS [5.630s]
[INFO] CSP: File ......................................... SUCCESS [0.946s]
[INFO] CSP: Services ..................................... SUCCESS [4.590s]
[INFO] JXUtils ........................................... SUCCESS [1.831s]
[INFO] Core .............................................. SUCCESS [9.068s]
[INFO] Core .............................................. FAILURE [8.250s]
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 44.183s
[INFO] Finished at: Wed Jul 31 20:58:10 UTC 2013
[INFO] Final Memory: 102M/339M

It appears that I have the environment variable set up correctly:

root@li551-203:~# echo $JAVA_HOME
/usr/lib/jvm/java-7-oracle

I thought I'd double check that I shut down the servers correctly. when I
ran $CSPACE_JEESERVER_HOME/bin/shutdown.sh -force, I got the message :

"$CATALINA_PID was set but the specified file does not exist. Is Tomcat
running? Stop aborted."

So I looked for the tomcat.pid in /usr/local/share/apache-tomcat-6.0.33/bin
and didn't find it there. Any ideas what's going on? I know it was there
before, because I successfully started up the server.

Many thanks!

Al

Al Bersch
Digital Project Coordinator
Oakland Museum of California
1000 Oak Street, Oakland, CA 94607
abersch@museumca.org
510-318-8468


Talk mailing list
Talk@lists.collectionspace.org
http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org

Having said this about 1.c, below, it's likely that 1.a. is also irrelevant to your issue ... 1.b. might be worth looking into, however. >From the error message, it looks like Maven might be using have a different value for JAVA_HOME ... so check 1.b (whether a value for JAVA_HOME is set in any files in /etc/profile.d), and then you can report back, if that doesn't seem to be relevant. On Wed, Jul 31, 2013 at 2:28 PM, Aron Roberts <aron@socrates.berkeley.edu> wrote: > Hi Al, > > 1. An off the cuff thought, possibly erroneous, but quick :-): It's > conceivable that there is a second place from which the value of the > JAVA_HOME environment variable is being read, other than from your own > user environment. It could conceivably be getting this value from > another user's environment, or from some system configuration file. > > a. Is Tomcat running under your own user account, or another > account? (Check this via 'ps -ef | grep catalina'; the first item in > the relevant entry will be the username under which Tomcat is running, > while the second item will be its process ID, relevant to response 2, > below.) > > If it's running under another user account, you can log into that > user's account (or 'sudo su actual_username_here' to it) and check the > value of JAVA_HOME there ('echo $JAVA_HOME', much as you've done in > your account). > > b. Is a value set for JAVA_HOME in any of the files in /etc/profile.d? > > c. (You can skip this third point, as this is NOT relevant to the > issue you reported, which involved building CollectionSpace's > Application layer, but is mentioned here for completeness ... as a > different set of problems could result from it: Is a value explicitly > set for JAVA_HOME in any of the files in $CATALINA_HOME/bin, such as > setenv.sh or nuxeo.conf? First, look in those two files; then 'grep > JAVA_HOME $CATALINA_HOME/bin', and ignore any comments or uses of > $JAVA_HOME as a variable name, etc.) > > 2. I've encountered this (a missing tomcat.pid file) on occasion, > without having investigated its cause. > > When that happens, as a fix, I've just killed the Tomcat process > ('sudo kill actual_pid_here', where 'actual_pid_here' is the process > ID of that process, then restarted Tomcat, which re-creates that file. > (The tomcat.pid file itself is just a text file containing a process > ID.) > > Aron > > On Wed, Jul 31, 2013 at 2:04 PM, Al Bersch <abersch@museumca.org> wrote: >> Hello all, >> >> I am creating new tenant in CollectionSpace 3.3, and am at the stage of >> pushing the Applications layer to the CollectionSpace server. I have two >> issues that might be related. I'm running into an error when I run mvn clean >> install -DskipTests: >> >> [INFO] --- exec-maven-plugin:1.1:exec (default) @ war-entry --- >> [INFO] Error: JAVA_HOME is not defined correctly. >> [INFO] We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Reactor Summary: >> [INFO] >> [INFO] Root .............................................. SUCCESS [0.890s] >> [INFO] CSP: General Utils ................................ SUCCESS [3.037s] >> [INFO] Collection-Space CSP API .......................... SUCCESS [1.154s] >> [INFO] CSP: Impl ......................................... SUCCESS [2.650s] >> [INFO] Collection-Space CSP Helper ....................... SUCCESS [1.098s] >> [INFO] CSP: Schema ....................................... SUCCESS [3.249s] >> [INFO] JXUtils ........................................... SUCCESS [1.311s] >> [INFO] CSP: Web UI ....................................... SUCCESS [5.630s] >> [INFO] CSP: File ......................................... SUCCESS [0.946s] >> [INFO] CSP: Services ..................................... SUCCESS [4.590s] >> [INFO] JXUtils ........................................... SUCCESS [1.831s] >> [INFO] Core .............................................. SUCCESS [9.068s] >> [INFO] Core .............................................. FAILURE [8.250s] >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] BUILD FAILURE >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Total time: 44.183s >> [INFO] Finished at: Wed Jul 31 20:58:10 UTC 2013 >> [INFO] Final Memory: 102M/339M >> >> >> It appears that I have the environment variable set up correctly: >> >> root@li551-203:~# echo $JAVA_HOME >> /usr/lib/jvm/java-7-oracle >> >> I thought I'd double check that I shut down the servers correctly. when I >> ran $CSPACE_JEESERVER_HOME/bin/shutdown.sh -force, I got the message : >> >> "$CATALINA_PID was set but the specified file does not exist. Is Tomcat >> running? Stop aborted." >> >> So I looked for the tomcat.pid in /usr/local/share/apache-tomcat-6.0.33/bin >> and didn't find it there. Any ideas what's going on? I know it was there >> before, because I successfully started up the server. >> >> Many thanks! >> >> Al >> >> Al Bersch >> Digital Project Coordinator >> Oakland Museum of California >> 1000 Oak Street, Oakland, CA 94607 >> abersch@museumca.org >> 510-318-8468 >> >> _______________________________________________ >> Talk mailing list >> Talk@lists.collectionspace.org >> http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org >>
AR
Aron Roberts
Wed, Jul 31, 2013 9:44 PM

The info line that says
[INFO]  We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java
is interesting because it shows a malformed path to the java executable,
i.e. .../bin/java/bin/java. It should only be .../bin/java

Thanks, Jesse!

It'd definitely be useful to see any and all JAVA_HOME entries in your
$HOME/.bashrc and/or $HOME/.bash_profile file(s); e.g.

cd
grep JAVA_HOME .*

(The full files might likely have passwords, etc. so that you may not
want to send those entire files.)

Also: what do you get when you run the following?

  • java -version
  • ls -al which java    (note the 'backticks')

On Wed, Jul 31, 2013 at 2:31 PM, Jesse Martinez mjesse@gmail.com wrote:

Hi Al,

The info line that says
[INFO]  We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java
is interesting because it shows a malformed path to the java executable,
i.e. .../bin/java/bin/java. It should only be .../bin/java  AFAIK.
Your $JAVA_HOME env var looks correct. Nonetheless, could you print out the
JAVA_HOME variable you set in your environmental variables (maybe in
~/.bashrc if on a Linux OS)
I assume you were able to run the maven and ant commands on the services
layer code before running the application layer code?

I believe the message you got when attempting to shut down the app is fine.
It just means the Tomcat service was already shut down (force shutdown or
killed in some way) and behind a small file containing the ID of the process
running.

  • Jesse

On Wed, Jul 31, 2013 at 5:04 PM, Al Bersch abersch@museumca.org wrote:

Hello all,

I am creating new tenant in CollectionSpace 3.3, and am at the stage of
pushing the Applications layer to the CollectionSpace server. I have two
issues that might be related. I'm running into an error when I run mvn clean
install -DskipTests:

[INFO] --- exec-maven-plugin:1.1:exec (default) @ war-entry ---
[INFO] Error: JAVA_HOME is not defined correctly.
[INFO]  We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java
[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] Root .............................................. SUCCESS
[0.890s]
[INFO] CSP: General Utils ................................ SUCCESS
[3.037s]
[INFO] Collection-Space CSP API .......................... SUCCESS
[1.154s]
[INFO] CSP: Impl ......................................... SUCCESS
[2.650s]
[INFO] Collection-Space CSP Helper ....................... SUCCESS
[1.098s]
[INFO] CSP: Schema ....................................... SUCCESS
[3.249s]
[INFO] JXUtils ........................................... SUCCESS
[1.311s]
[INFO] CSP: Web UI ....................................... SUCCESS
[5.630s]
[INFO] CSP: File ......................................... SUCCESS
[0.946s]
[INFO] CSP: Services ..................................... SUCCESS
[4.590s]
[INFO] JXUtils ........................................... SUCCESS
[1.831s]
[INFO] Core .............................................. SUCCESS
[9.068s]
[INFO] Core .............................................. FAILURE
[8.250s]
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 44.183s
[INFO] Finished at: Wed Jul 31 20:58:10 UTC 2013
[INFO] Final Memory: 102M/339M

It appears that I have the environment variable set up correctly:

root@li551-203:~# echo $JAVA_HOME
/usr/lib/jvm/java-7-oracle

I thought I'd double check that I shut down the servers correctly. when I
ran $CSPACE_JEESERVER_HOME/bin/shutdown.sh -force, I got the message :

"$CATALINA_PID was set but the specified file does not exist. Is Tomcat
running? Stop aborted."

So I looked for the tomcat.pid in
/usr/local/share/apache-tomcat-6.0.33/bin and didn't find it there. Any
ideas what's going on? I know it was there before, because I successfully
started up the server.

Many thanks!

Al

Al Bersch
Digital Project Coordinator
Oakland Museum of California
1000 Oak Street, Oakland, CA 94607
abersch@museumca.org
510-318-8468


Talk mailing list
Talk@lists.collectionspace.org

http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org

> The info line that says > [INFO] We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java > is interesting because it shows a malformed path to the java executable, > i.e. .../bin/java/bin/java. It should only be .../bin/java Thanks, Jesse! It'd definitely be useful to see any and all JAVA_HOME entries in your $HOME/.bashrc and/or $HOME/.bash_profile file(s); e.g. cd grep JAVA_HOME .* (The full files might likely have passwords, etc. so that you may not want to send those entire files.) Also: what do you get when you run the following? * java -version * ls -al `which java` (note the 'backticks') On Wed, Jul 31, 2013 at 2:31 PM, Jesse Martinez <mjesse@gmail.com> wrote: > Hi Al, > > The info line that says > [INFO] We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java > is interesting because it shows a malformed path to the java executable, > i.e. .../bin/java/bin/java. It should only be .../bin/java AFAIK. > Your $JAVA_HOME env var looks correct. Nonetheless, could you print out the > JAVA_HOME variable you set in your environmental variables (maybe in > ~/.bashrc if on a Linux OS) > I assume you were able to run the maven and ant commands on the services > layer code before running the application layer code? > > I believe the message you got when attempting to shut down the app is fine. > It just means the Tomcat service was already shut down (force shutdown or > killed in some way) and behind a small file containing the ID of the process > running. > > > - Jesse > > > On Wed, Jul 31, 2013 at 5:04 PM, Al Bersch <abersch@museumca.org> wrote: >> >> Hello all, >> >> I am creating new tenant in CollectionSpace 3.3, and am at the stage of >> pushing the Applications layer to the CollectionSpace server. I have two >> issues that might be related. I'm running into an error when I run mvn clean >> install -DskipTests: >> >> [INFO] --- exec-maven-plugin:1.1:exec (default) @ war-entry --- >> [INFO] Error: JAVA_HOME is not defined correctly. >> [INFO] We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Reactor Summary: >> [INFO] >> [INFO] Root .............................................. SUCCESS >> [0.890s] >> [INFO] CSP: General Utils ................................ SUCCESS >> [3.037s] >> [INFO] Collection-Space CSP API .......................... SUCCESS >> [1.154s] >> [INFO] CSP: Impl ......................................... SUCCESS >> [2.650s] >> [INFO] Collection-Space CSP Helper ....................... SUCCESS >> [1.098s] >> [INFO] CSP: Schema ....................................... SUCCESS >> [3.249s] >> [INFO] JXUtils ........................................... SUCCESS >> [1.311s] >> [INFO] CSP: Web UI ....................................... SUCCESS >> [5.630s] >> [INFO] CSP: File ......................................... SUCCESS >> [0.946s] >> [INFO] CSP: Services ..................................... SUCCESS >> [4.590s] >> [INFO] JXUtils ........................................... SUCCESS >> [1.831s] >> [INFO] Core .............................................. SUCCESS >> [9.068s] >> [INFO] Core .............................................. FAILURE >> [8.250s] >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] BUILD FAILURE >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Total time: 44.183s >> [INFO] Finished at: Wed Jul 31 20:58:10 UTC 2013 >> [INFO] Final Memory: 102M/339M >> >> >> It appears that I have the environment variable set up correctly: >> >> root@li551-203:~# echo $JAVA_HOME >> /usr/lib/jvm/java-7-oracle >> >> I thought I'd double check that I shut down the servers correctly. when I >> ran $CSPACE_JEESERVER_HOME/bin/shutdown.sh -force, I got the message : >> >> "$CATALINA_PID was set but the specified file does not exist. Is Tomcat >> running? Stop aborted." >> >> So I looked for the tomcat.pid in >> /usr/local/share/apache-tomcat-6.0.33/bin and didn't find it there. Any >> ideas what's going on? I know it was there before, because I successfully >> started up the server. >> >> Many thanks! >> >> Al >> >> Al Bersch >> Digital Project Coordinator >> Oakland Museum of California >> 1000 Oak Street, Oakland, CA 94607 >> abersch@museumca.org >> 510-318-8468 >> >> _______________________________________________ >> Talk mailing list >> Talk@lists.collectionspace.org >> >> http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org >> > > > _______________________________________________ > Talk mailing list > Talk@lists.collectionspace.org > http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org >
AB
Al Bersch
Wed, Jul 31, 2013 10:00 PM

Hi Aron, Jesse,

Thanks so much for your responses.

Aron, in answer to 1b, no, there is no value set for JAVA_HOME in /etc/profile.d files (the files in there are bash_completion.sh and Z97-byobu.sh and JAVA_HOME is not mentioned in either one).

Jesse, the JAVA_HOME variable set in ~/.bashrc is: export JAVA_HOME='/usr/lib/jvm/java-7-oracle'

(I used single quotes because double quotes didn't work in Maven3. Let me know if I'm out of line here...)

As for the question of running maven and ant commands on the services layer, yes, I ran both those commands successfully after following the instructions in the documentation for Installing 3.3 on Aptitude Compatible Linux Distributions . I then moved on to "Creating Your Tenant," which brings me to another question - does it matter where I put the source code for the Application and UI layers? And do I need to check out the services layer source code, even though I already installed it during the Installation phase (right?)?

And just in case it matters:
in answer to 1a, Tomcat is running under the user root, which I was using to check out the layers, and perform the installation steps. Should I have done that differently?
and as for 1c, JAVA_HOME is commented out for java 6 in nuxeo.conf, but no other variable is set there.
Thanks again!
Al

Al Bersch
Digital Project Coordinator
Oakland Museum of California
1000 Oak Street, Oakland, CA 94607
abersch@museumca.org
510-318-8468
----- Original Message -----

From: "Aron Roberts" aron@socrates.berkeley.edu
To: "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Wednesday, July 31, 2013 2:31:48 PM
Subject: Re: [Talk] error running mvn clean install -DskipTests

Having said this about 1.c, below, it's likely that 1.a. is also
irrelevant to your issue ... 1.b. might be worth looking into,
however.

From the error message, it looks like Maven might be using have a

different value for JAVA_HOME ... so check 1.b (whether a value for
JAVA_HOME is set in any files in /etc/profile.d), and then you can
report back, if that doesn't seem to be relevant.

On Wed, Jul 31, 2013 at 2:28 PM, Aron Roberts
aron@socrates.berkeley.edu wrote:

Hi Al,

  1. An off the cuff thought, possibly erroneous, but quick :-): It's
    conceivable that there is a second place from which the value of the
    JAVA_HOME environment variable is being read, other than from your own
    user environment. It could conceivably be getting this value from
    another user's environment, or from some system configuration file.

a. Is Tomcat running under your own user account, or another
account? (Check this via 'ps -ef | grep catalina'; the first item in
the relevant entry will be the username under which Tomcat is running,
while the second item will be its process ID, relevant to response 2,
below.)

If it's running under another user account, you can log into that
user's account (or 'sudo su actual_username_here' to it) and check the
value of JAVA_HOME there ('echo $JAVA_HOME', much as you've done in
your account).

b. Is a value set for JAVA_HOME in any of the files in /etc/profile.d?

c. (You can skip this third point, as this is NOT relevant to the
issue you reported, which involved building CollectionSpace's
Application layer, but is mentioned here for completeness ... as a
different set of problems could result from it: Is a value explicitly
set for JAVA_HOME in any of the files in $CATALINA_HOME/bin, such as
setenv.sh or nuxeo.conf? First, look in those two files; then 'grep
JAVA_HOME $CATALINA_HOME/bin', and ignore any comments or uses of
$JAVA_HOME as a variable name, etc.)

  1. I've encountered this (a missing tomcat.pid file) on occasion,
    without having investigated its cause.

When that happens, as a fix, I've just killed the Tomcat process
('sudo kill actual_pid_here', where 'actual_pid_here' is the process
ID of that process, then restarted Tomcat, which re-creates that file.
(The tomcat.pid file itself is just a text file containing a process
ID.)

Aron

On Wed, Jul 31, 2013 at 2:04 PM, Al Bersch abersch@museumca.org wrote:

Hello all,

I am creating new tenant in CollectionSpace 3.3, and am at the stage of
pushing the Applications layer to the CollectionSpace server. I have two
issues that might be related. I'm running into an error when I run mvn clean
install -DskipTests:

[INFO] --- exec-maven-plugin:1.1:exec (default) @ war-entry ---
[INFO] Error: JAVA_HOME is not defined correctly.
[INFO] We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java
[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] Root .............................................. SUCCESS [0.890s]
[INFO] CSP: General Utils ................................ SUCCESS [3.037s]
[INFO] Collection-Space CSP API .......................... SUCCESS [1.154s]
[INFO] CSP: Impl ......................................... SUCCESS [2.650s]
[INFO] Collection-Space CSP Helper ....................... SUCCESS [1.098s]
[INFO] CSP: Schema ....................................... SUCCESS [3.249s]
[INFO] JXUtils ........................................... SUCCESS [1.311s]
[INFO] CSP: Web UI ....................................... SUCCESS [5.630s]
[INFO] CSP: File ......................................... SUCCESS [0.946s]
[INFO] CSP: Services ..................................... SUCCESS [4.590s]
[INFO] JXUtils ........................................... SUCCESS [1.831s]
[INFO] Core .............................................. SUCCESS [9.068s]
[INFO] Core .............................................. FAILURE [8.250s]
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 44.183s
[INFO] Finished at: Wed Jul 31 20:58:10 UTC 2013
[INFO] Final Memory: 102M/339M

It appears that I have the environment variable set up correctly:

root@li551-203:~# echo $JAVA_HOME
/usr/lib/jvm/java-7-oracle

I thought I'd double check that I shut down the servers correctly. when I
ran $CSPACE_JEESERVER_HOME/bin/shutdown.sh -force, I got the message :

"$CATALINA_PID was set but the specified file does not exist. Is Tomcat
running? Stop aborted."

So I looked for the tomcat.pid in /usr/local/share/apache-tomcat-6.0.33/bin
and didn't find it there. Any ideas what's going on? I know it was there
before, because I successfully started up the server.

Many thanks!

Al

Al Bersch
Digital Project Coordinator
Oakland Museum of California
1000 Oak Street, Oakland, CA 94607
abersch@museumca.org
510-318-8468


Talk mailing list
Talk@lists.collectionspace.org
http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org

Hi Aron, Jesse, Thanks so much for your responses. Aron, in answer to 1b, no, there is no value set for JAVA_HOME in /etc/profile.d files (the files in there are bash_completion.sh and Z97-byobu.sh and JAVA_HOME is not mentioned in either one). Jesse, the JAVA_HOME variable set in ~/.bashrc is: export JAVA_HOME='/usr/lib/jvm/java-7-oracle' (I used single quotes because double quotes didn't work in Maven3. Let me know if I'm out of line here...) As for the question of running maven and ant commands on the services layer, yes, I ran both those commands successfully after following the instructions in the documentation for Installing 3.3 on Aptitude Compatible Linux Distributions . I then moved on to "Creating Your Tenant," which brings me to another question - does it matter where I put the source code for the Application and UI layers? And do I need to check out the services layer source code, even though I already installed it during the Installation phase (right?)? And just in case it matters: in answer to 1a, Tomcat is running under the user root, which I was using to check out the layers, and perform the installation steps. Should I have done that differently? and as for 1c, JAVA_HOME is commented out for java 6 in nuxeo.conf, but no other variable is set there. Thanks again! Al Al Bersch Digital Project Coordinator Oakland Museum of California 1000 Oak Street, Oakland, CA 94607 abersch@museumca.org 510-318-8468 ----- Original Message ----- From: "Aron Roberts" <aron@socrates.berkeley.edu> To: "Al Bersch" <abersch@museumca.org> Cc: "talk" <talk@lists.collectionspace.org> Sent: Wednesday, July 31, 2013 2:31:48 PM Subject: Re: [Talk] error running mvn clean install -DskipTests Having said this about 1.c, below, it's likely that 1.a. is also irrelevant to your issue ... 1.b. might be worth looking into, however. >From the error message, it looks like Maven might be using have a different value for JAVA_HOME ... so check 1.b (whether a value for JAVA_HOME is set in any files in /etc/profile.d), and then you can report back, if that doesn't seem to be relevant. On Wed, Jul 31, 2013 at 2:28 PM, Aron Roberts <aron@socrates.berkeley.edu> wrote: > Hi Al, > > 1. An off the cuff thought, possibly erroneous, but quick :-): It's > conceivable that there is a second place from which the value of the > JAVA_HOME environment variable is being read, other than from your own > user environment. It could conceivably be getting this value from > another user's environment, or from some system configuration file. > > a. Is Tomcat running under your own user account, or another > account? (Check this via 'ps -ef | grep catalina'; the first item in > the relevant entry will be the username under which Tomcat is running, > while the second item will be its process ID, relevant to response 2, > below.) > > If it's running under another user account, you can log into that > user's account (or 'sudo su actual_username_here' to it) and check the > value of JAVA_HOME there ('echo $JAVA_HOME', much as you've done in > your account). > > b. Is a value set for JAVA_HOME in any of the files in /etc/profile.d? > > c. (You can skip this third point, as this is NOT relevant to the > issue you reported, which involved building CollectionSpace's > Application layer, but is mentioned here for completeness ... as a > different set of problems could result from it: Is a value explicitly > set for JAVA_HOME in any of the files in $CATALINA_HOME/bin, such as > setenv.sh or nuxeo.conf? First, look in those two files; then 'grep > JAVA_HOME $CATALINA_HOME/bin', and ignore any comments or uses of > $JAVA_HOME as a variable name, etc.) > > 2. I've encountered this (a missing tomcat.pid file) on occasion, > without having investigated its cause. > > When that happens, as a fix, I've just killed the Tomcat process > ('sudo kill actual_pid_here', where 'actual_pid_here' is the process > ID of that process, then restarted Tomcat, which re-creates that file. > (The tomcat.pid file itself is just a text file containing a process > ID.) > > Aron > > On Wed, Jul 31, 2013 at 2:04 PM, Al Bersch <abersch@museumca.org> wrote: >> Hello all, >> >> I am creating new tenant in CollectionSpace 3.3, and am at the stage of >> pushing the Applications layer to the CollectionSpace server. I have two >> issues that might be related. I'm running into an error when I run mvn clean >> install -DskipTests: >> >> [INFO] --- exec-maven-plugin:1.1:exec (default) @ war-entry --- >> [INFO] Error: JAVA_HOME is not defined correctly. >> [INFO] We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Reactor Summary: >> [INFO] >> [INFO] Root .............................................. SUCCESS [0.890s] >> [INFO] CSP: General Utils ................................ SUCCESS [3.037s] >> [INFO] Collection-Space CSP API .......................... SUCCESS [1.154s] >> [INFO] CSP: Impl ......................................... SUCCESS [2.650s] >> [INFO] Collection-Space CSP Helper ....................... SUCCESS [1.098s] >> [INFO] CSP: Schema ....................................... SUCCESS [3.249s] >> [INFO] JXUtils ........................................... SUCCESS [1.311s] >> [INFO] CSP: Web UI ....................................... SUCCESS [5.630s] >> [INFO] CSP: File ......................................... SUCCESS [0.946s] >> [INFO] CSP: Services ..................................... SUCCESS [4.590s] >> [INFO] JXUtils ........................................... SUCCESS [1.831s] >> [INFO] Core .............................................. SUCCESS [9.068s] >> [INFO] Core .............................................. FAILURE [8.250s] >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] BUILD FAILURE >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Total time: 44.183s >> [INFO] Finished at: Wed Jul 31 20:58:10 UTC 2013 >> [INFO] Final Memory: 102M/339M >> >> >> It appears that I have the environment variable set up correctly: >> >> root@li551-203:~# echo $JAVA_HOME >> /usr/lib/jvm/java-7-oracle >> >> I thought I'd double check that I shut down the servers correctly. when I >> ran $CSPACE_JEESERVER_HOME/bin/shutdown.sh -force, I got the message : >> >> "$CATALINA_PID was set but the specified file does not exist. Is Tomcat >> running? Stop aborted." >> >> So I looked for the tomcat.pid in /usr/local/share/apache-tomcat-6.0.33/bin >> and didn't find it there. Any ideas what's going on? I know it was there >> before, because I successfully started up the server. >> >> Many thanks! >> >> Al >> >> Al Bersch >> Digital Project Coordinator >> Oakland Museum of California >> 1000 Oak Street, Oakland, CA 94607 >> abersch@museumca.org >> 510-318-8468 >> >> _______________________________________________ >> Talk mailing list >> Talk@lists.collectionspace.org >> http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org >>
AB
Al Bersch
Wed, Jul 31, 2013 10:06 PM

Hi all, thanks again.

Here's the response from
cd
grep JAVA_HOME.*

root@li551-203:~# grep JAVA_HOME .*
.bash_history:export JAVA_HOME="/usr/lib/jvm/java-7-oracle"
.bash_history:echo $JAVA_HOME
.bash_history:echo $JAVA_HOME
.bash_history:history | grep JAVA_HOME
.bashrc:export JAVA_HOME='/usr/lib/jvm/java-7-oracle'
.viminfo:~MSle0~/JAVA_HOME
.viminfo:?/JAVA_HOME

and

root@li551-203:~# *java -version
No command '*java' found, did you mean:
Command 'java' from package 'gcj-4.6-jre-headless' (main)
Command 'java' from package 'openjdk-6-jre-headless' (main)
Command 'java' from package 'openjdk-7-jre-headless' (universe)
Command 'java' from package 'default-jre' (main)
Command 'java' from package 'gcj-4.5-jre-headless' (universe)
*java: command not found
root@li551-203:~# *ls -al which java
No command '*ls' found, did you mean:
Command 'als' from package 'atool' (universe)
Command 'ls' from package 'coreutils' (main)
Command 'jls' from package 'sleuthkit' (universe)
Command 'hls' from package 'hfsutils' (main)
Command 'ols' from package 'speech-tools' (universe)
Command 'bls' from package 'bacula-sd' (main)
Command 'tls' from package 'python-tlslite' (universe)
Command 'fls' from package 'sleuthkit' (universe)
Command 'ils' from package 'sleuthkit' (universe)
*ls: command not found

thanks!

Al Bersch
Digital Project Coordinator
Oakland Museum of California
1000 Oak Street, Oakland, CA 94607
abersch@museumca.org
510-318-8468
----- Original Message -----

From: "Aron Roberts" aron@socrates.berkeley.edu
To: "Jesse Martinez" mjesse@gmail.com, "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Wednesday, July 31, 2013 2:44:17 PM
Subject: Re: [Talk] error running mvn clean install -DskipTests

The info line that says
[INFO] We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java
is interesting because it shows a malformed path to the java executable,
i.e. .../bin/java/bin/java. It should only be .../bin/java

Thanks, Jesse!

It'd definitely be useful to see any and all JAVA_HOME entries in your
$HOME/.bashrc and/or $HOME/.bash_profile file(s); e.g.

cd
grep JAVA_HOME .*

(The full files might likely have passwords, etc. so that you may not
want to send those entire files.)

Also: what do you get when you run the following?

  • java -version
  • ls -al which java (note the 'backticks')

On Wed, Jul 31, 2013 at 2:31 PM, Jesse Martinez mjesse@gmail.com wrote:

Hi Al,

The info line that says
[INFO] We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java
is interesting because it shows a malformed path to the java executable,
i.e. .../bin/java/bin/java. It should only be .../bin/java AFAIK.
Your $JAVA_HOME env var looks correct. Nonetheless, could you print out the
JAVA_HOME variable you set in your environmental variables (maybe in
~/.bashrc if on a Linux OS)
I assume you were able to run the maven and ant commands on the services
layer code before running the application layer code?

I believe the message you got when attempting to shut down the app is fine.
It just means the Tomcat service was already shut down (force shutdown or
killed in some way) and behind a small file containing the ID of the process
running.

  • Jesse

On Wed, Jul 31, 2013 at 5:04 PM, Al Bersch abersch@museumca.org wrote:

Hello all,

I am creating new tenant in CollectionSpace 3.3, and am at the stage of
pushing the Applications layer to the CollectionSpace server. I have two
issues that might be related. I'm running into an error when I run mvn clean
install -DskipTests:

[INFO] --- exec-maven-plugin:1.1:exec (default) @ war-entry ---
[INFO] Error: JAVA_HOME is not defined correctly.
[INFO] We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java
[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] Root .............................................. SUCCESS
[0.890s]
[INFO] CSP: General Utils ................................ SUCCESS
[3.037s]
[INFO] Collection-Space CSP API .......................... SUCCESS
[1.154s]
[INFO] CSP: Impl ......................................... SUCCESS
[2.650s]
[INFO] Collection-Space CSP Helper ....................... SUCCESS
[1.098s]
[INFO] CSP: Schema ....................................... SUCCESS
[3.249s]
[INFO] JXUtils ........................................... SUCCESS
[1.311s]
[INFO] CSP: Web UI ....................................... SUCCESS
[5.630s]
[INFO] CSP: File ......................................... SUCCESS
[0.946s]
[INFO] CSP: Services ..................................... SUCCESS
[4.590s]
[INFO] JXUtils ........................................... SUCCESS
[1.831s]
[INFO] Core .............................................. SUCCESS
[9.068s]
[INFO] Core .............................................. FAILURE
[8.250s]
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 44.183s
[INFO] Finished at: Wed Jul 31 20:58:10 UTC 2013
[INFO] Final Memory: 102M/339M

It appears that I have the environment variable set up correctly:

root@li551-203:~# echo $JAVA_HOME
/usr/lib/jvm/java-7-oracle

I thought I'd double check that I shut down the servers correctly. when I
ran $CSPACE_JEESERVER_HOME/bin/shutdown.sh -force, I got the message :

"$CATALINA_PID was set but the specified file does not exist. Is Tomcat
running? Stop aborted."

So I looked for the tomcat.pid in
/usr/local/share/apache-tomcat-6.0.33/bin and didn't find it there. Any
ideas what's going on? I know it was there before, because I successfully
started up the server.

Many thanks!

Al

Al Bersch
Digital Project Coordinator
Oakland Museum of California
1000 Oak Street, Oakland, CA 94607
abersch@museumca.org
510-318-8468


Talk mailing list
Talk@lists.collectionspace.org

http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org

Hi all, thanks again. Here's the response from cd grep JAVA_HOME.* root@li551-203:~# grep JAVA_HOME .* .bash_history:export JAVA_HOME="/usr/lib/jvm/java-7-oracle" .bash_history:echo $JAVA_HOME .bash_history:echo $JAVA_HOME .bash_history:history | grep JAVA_HOME .bashrc:export JAVA_HOME='/usr/lib/jvm/java-7-oracle' .viminfo:~MSle0~/JAVA_HOME .viminfo:?/JAVA_HOME and root@li551-203:~# *java -version No command '*java' found, did you mean: Command 'java' from package 'gcj-4.6-jre-headless' (main) Command 'java' from package 'openjdk-6-jre-headless' (main) Command 'java' from package 'openjdk-7-jre-headless' (universe) Command 'java' from package 'default-jre' (main) Command 'java' from package 'gcj-4.5-jre-headless' (universe) *java: command not found root@li551-203:~# *ls -al `which java` No command '*ls' found, did you mean: Command 'als' from package 'atool' (universe) Command 'ls' from package 'coreutils' (main) Command 'jls' from package 'sleuthkit' (universe) Command 'hls' from package 'hfsutils' (main) Command 'ols' from package 'speech-tools' (universe) Command 'bls' from package 'bacula-sd' (main) Command 'tls' from package 'python-tlslite' (universe) Command 'fls' from package 'sleuthkit' (universe) Command 'ils' from package 'sleuthkit' (universe) *ls: command not found thanks! Al Bersch Digital Project Coordinator Oakland Museum of California 1000 Oak Street, Oakland, CA 94607 abersch@museumca.org 510-318-8468 ----- Original Message ----- From: "Aron Roberts" <aron@socrates.berkeley.edu> To: "Jesse Martinez" <mjesse@gmail.com>, "Al Bersch" <abersch@museumca.org> Cc: "talk" <talk@lists.collectionspace.org> Sent: Wednesday, July 31, 2013 2:44:17 PM Subject: Re: [Talk] error running mvn clean install -DskipTests > The info line that says > [INFO] We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java > is interesting because it shows a malformed path to the java executable, > i.e. .../bin/java/bin/java. It should only be .../bin/java Thanks, Jesse! It'd definitely be useful to see any and all JAVA_HOME entries in your $HOME/.bashrc and/or $HOME/.bash_profile file(s); e.g. cd grep JAVA_HOME .* (The full files might likely have passwords, etc. so that you may not want to send those entire files.) Also: what do you get when you run the following? * java -version * ls -al `which java` (note the 'backticks') On Wed, Jul 31, 2013 at 2:31 PM, Jesse Martinez <mjesse@gmail.com> wrote: > Hi Al, > > The info line that says > [INFO] We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java > is interesting because it shows a malformed path to the java executable, > i.e. .../bin/java/bin/java. It should only be .../bin/java AFAIK. > Your $JAVA_HOME env var looks correct. Nonetheless, could you print out the > JAVA_HOME variable you set in your environmental variables (maybe in > ~/.bashrc if on a Linux OS) > I assume you were able to run the maven and ant commands on the services > layer code before running the application layer code? > > I believe the message you got when attempting to shut down the app is fine. > It just means the Tomcat service was already shut down (force shutdown or > killed in some way) and behind a small file containing the ID of the process > running. > > > - Jesse > > > On Wed, Jul 31, 2013 at 5:04 PM, Al Bersch <abersch@museumca.org> wrote: >> >> Hello all, >> >> I am creating new tenant in CollectionSpace 3.3, and am at the stage of >> pushing the Applications layer to the CollectionSpace server. I have two >> issues that might be related. I'm running into an error when I run mvn clean >> install -DskipTests: >> >> [INFO] --- exec-maven-plugin:1.1:exec (default) @ war-entry --- >> [INFO] Error: JAVA_HOME is not defined correctly. >> [INFO] We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Reactor Summary: >> [INFO] >> [INFO] Root .............................................. SUCCESS >> [0.890s] >> [INFO] CSP: General Utils ................................ SUCCESS >> [3.037s] >> [INFO] Collection-Space CSP API .......................... SUCCESS >> [1.154s] >> [INFO] CSP: Impl ......................................... SUCCESS >> [2.650s] >> [INFO] Collection-Space CSP Helper ....................... SUCCESS >> [1.098s] >> [INFO] CSP: Schema ....................................... SUCCESS >> [3.249s] >> [INFO] JXUtils ........................................... SUCCESS >> [1.311s] >> [INFO] CSP: Web UI ....................................... SUCCESS >> [5.630s] >> [INFO] CSP: File ......................................... SUCCESS >> [0.946s] >> [INFO] CSP: Services ..................................... SUCCESS >> [4.590s] >> [INFO] JXUtils ........................................... SUCCESS >> [1.831s] >> [INFO] Core .............................................. SUCCESS >> [9.068s] >> [INFO] Core .............................................. FAILURE >> [8.250s] >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] BUILD FAILURE >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Total time: 44.183s >> [INFO] Finished at: Wed Jul 31 20:58:10 UTC 2013 >> [INFO] Final Memory: 102M/339M >> >> >> It appears that I have the environment variable set up correctly: >> >> root@li551-203:~# echo $JAVA_HOME >> /usr/lib/jvm/java-7-oracle >> >> I thought I'd double check that I shut down the servers correctly. when I >> ran $CSPACE_JEESERVER_HOME/bin/shutdown.sh -force, I got the message : >> >> "$CATALINA_PID was set but the specified file does not exist. Is Tomcat >> running? Stop aborted." >> >> So I looked for the tomcat.pid in >> /usr/local/share/apache-tomcat-6.0.33/bin and didn't find it there. Any >> ideas what's going on? I know it was there before, because I successfully >> started up the server. >> >> Many thanks! >> >> Al >> >> Al Bersch >> Digital Project Coordinator >> Oakland Museum of California >> 1000 Oak Street, Oakland, CA 94607 >> abersch@museumca.org >> 510-318-8468 >> >> _______________________________________________ >> Talk mailing list >> Talk@lists.collectionspace.org >> >> http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org >> > > > _______________________________________________ > Talk mailing list > Talk@lists.collectionspace.org > http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org >
AR
Aron Roberts
Thu, Aug 1, 2013 1:15 AM

Thanks again, Al.

Installing 3.3 on Aptitude Compatible Linux Distributions. I then moved on
to "Creating Your Tenant," which brings me to another question - does it
matter where I put the source code for the Application and UI layers?

You can put these source code trees anywhere that works for you.

And do I need to check out the services layer source code, even
though I already installed it during the Installation phase (right?)?

Since you've already checked it out, you don't need to do so again,
as you correctly inferred.

Regarding the original error, you might try this:

  • cd to the 'war-entry' directory within the Application source code tree

  • Then run this command
    ant -v -Dconfig_destination=$CATALINA_HOME
    and sending the output from that.

That Ant command appears to be what's actually run
"under the hood" when doing a 'mvn install' - including
'mvn clean install -DskipTests' - within the war-entry module.

By running it with the -v (verbose) flag, hopefully it will
spit out enough information that we can figure out how
that erroneous value:
'/usr/lib/jvm/java-7-oracle/bin/java/bin/java'
is being constructed.

As well, you might try running this, again inside that war-entry module:

  • mvn clean install -DskipTests -X

Once again, the '-X' will help show whether

Aron

P.S. One more thing I'm noticing in the output from running
that 'Ant' command - which runs successfully on my system -
this appears:

parsing buildfile
jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml
with
URI = jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml
from a zip file

While nearly all of what Ant is doing is simple file copying,
this stood out.

Maybe this could be Ant trying to read a JAR file - possibly a file
that contains code for one of its external tasks, 'hostinfo' - and failing,
because its path to the 'jar' command (one of the many command
line utilities included with Java) is incorrect, possibly due to that
JAVA_HOME snafu.  That's the best I can come up with so far.

If we can't get this quickly solved any other way, you might try opening
war-entry/build.xml, and in the following block:

<target name="post_build_tasks"
    description="Various post-build tasks"
    depends="deploy_cspace_config, deploy_nightly_config, retrieve_jar">
</target>

delete 'deploy_nightly_config,' (including the trailing comma) from the
'depends' line above, and see if the error persists.  That should remove
Ant's need for the 'hostinfo' task.

On Wed, Jul 31, 2013 at 3:00 PM, Al Bersch abersch@museumca.org wrote:

Hi Aron, Jesse,

Thanks so much for your responses.

Aron, in answer to 1b, no, there is no value set for JAVA_HOME in
/etc/profile.d files (the files in there are bash_completion.sh and
Z97-byobu.sh and JAVA_HOME is not mentioned in either one).

Jesse, the JAVA_HOME variable set in ~/.bashrc is:    export
JAVA_HOME='/usr/lib/jvm/java-7-oracle'

(I used single quotes because double quotes didn't work in Maven3. Let me
know if I'm out of line here...)

As for the question of running maven and ant commands on the services layer,
yes, I ran both those commands successfully after following the instructions
in the documentation for

Installing 3.3 on Aptitude Compatible Linux Distributions. I then moved on
to "Creating Your Tenant," which brings me to another question - does it
matter where I put the source code for the Application and UI layers? And do
I need to check out the services layer source code, even though I already
installed it during the Installation phase (right?)?

And just in case it matters:
in answer to 1a, Tomcat is running under the user root, which I was using
to check out the layers, and perform the installation steps. Should I have
done that differently?
and as for 1c, JAVA_HOME is commented out for java 6 in nuxeo.conf, but no
other variable is set there.
Thanks again!
Al

Al Bersch
Digital Project Coordinator
Oakland Museum of California
1000 Oak Street, Oakland, CA 94607
abersch@museumca.org
510-318-8468


From: "Aron Roberts" aron@socrates.berkeley.edu
To: "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Wednesday, July 31, 2013 2:31:48 PM
Subject: Re: [Talk] error running mvn clean install -DskipTests

Having said this about 1.c, below, it's likely that 1.a. is also
irrelevant to your issue ... 1.b. might be worth looking into,
however.

From the error message, it looks like Maven might be using have a
different value for JAVA_HOME ... so check 1.b (whether a value for
JAVA_HOME is set in any files in /etc/profile.d), and then you can
report back, if that doesn't seem to be relevant.

On Wed, Jul 31, 2013 at 2:28 PM, Aron Roberts
aron@socrates.berkeley.edu wrote:

Hi Al,

  1. An off the cuff thought, possibly erroneous, but quick :-): It's
    conceivable that there is a second place from which the value of the
    JAVA_HOME environment variable is being read, other than from your own
    user environment.  It could conceivably be getting this value from
    another user's environment, or from some system configuration file.

a. Is Tomcat running under your own user account, or another
account? (Check this via 'ps -ef | grep catalina'; the first item in
the relevant entry will be the username under which Tomcat is running,
while the second item will be its process ID, relevant to response 2,
below.)

If it's running under another user account, you can log into that
user's account (or 'sudo su actual_username_here' to it) and check the
value of JAVA_HOME there ('echo $JAVA_HOME', much as you've done in
your account).

b. Is a value set for JAVA_HOME in any of the files in /etc/profile.d?

c. (You can skip this third point, as this is NOT relevant to the
issue you reported, which involved building CollectionSpace's
Application layer, but is mentioned here for completeness ... as a
different set of problems could result from it: Is a value explicitly
set for JAVA_HOME in any of the files in $CATALINA_HOME/bin, such as
setenv.sh or nuxeo.conf?  First, look in those two files; then 'grep
JAVA_HOME $CATALINA_HOME/bin', and ignore any comments or uses of
$JAVA_HOME as a variable name, etc.)

  1. I've encountered this (a missing tomcat.pid file) on occasion,
    without having investigated its cause.

When that happens, as a fix, I've just killed the Tomcat process
('sudo kill actual_pid_here', where 'actual_pid_here' is the process
ID of that process, then restarted Tomcat, which re-creates that file.
(The tomcat.pid file itself is just a text file containing a process
ID.)

Aron

On Wed, Jul 31, 2013 at 2:04 PM, Al Bersch abersch@museumca.org wrote:

Hello all,

I am creating new tenant in CollectionSpace 3.3, and am at the stage of
pushing the Applications layer to the CollectionSpace server. I have two
issues that might be related. I'm running into an error when I run mvn
clean
install -DskipTests:

[INFO] --- exec-maven-plugin:1.1:exec (default) @ war-entry ---
[INFO] Error: JAVA_HOME is not defined correctly.
[INFO]  We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java
[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] Root .............................................. SUCCESS
[0.890s]
[INFO] CSP: General Utils ................................ SUCCESS
[3.037s]
[INFO] Collection-Space CSP API .......................... SUCCESS
[1.154s]
[INFO] CSP: Impl ......................................... SUCCESS
[2.650s]
[INFO] Collection-Space CSP Helper ....................... SUCCESS
[1.098s]
[INFO] CSP: Schema ....................................... SUCCESS
[3.249s]
[INFO] JXUtils ........................................... SUCCESS
[1.311s]
[INFO] CSP: Web UI ....................................... SUCCESS
[5.630s]
[INFO] CSP: File ......................................... SUCCESS
[0.946s]
[INFO] CSP: Services ..................................... SUCCESS
[4.590s]
[INFO] JXUtils ........................................... SUCCESS
[1.831s]
[INFO] Core .............................................. SUCCESS
[9.068s]
[INFO] Core .............................................. FAILURE
[8.250s]
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 44.183s
[INFO] Finished at: Wed Jul 31 20:58:10 UTC 2013
[INFO] Final Memory: 102M/339M

It appears that I have the environment variable set up correctly:

root@li551-203:~# echo $JAVA_HOME
/usr/lib/jvm/java-7-oracle

I thought I'd double check that I shut down the servers correctly. when I
ran $CSPACE_JEESERVER_HOME/bin/shutdown.sh -force, I got the message :

"$CATALINA_PID was set but the specified file does not exist. Is Tomcat
running? Stop aborted."

So I looked for the tomcat.pid in
/usr/local/share/apache-tomcat-6.0.33/bin
and didn't find it there. Any ideas what's going on? I know it was there
before, because I successfully started up the server.

Many thanks!

Al

Al Bersch
Digital Project Coordinator
Oakland Museum of California
1000 Oak Street, Oakland, CA 94607
abersch@museumca.org
510-318-8468


Talk mailing list
Talk@lists.collectionspace.org

http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org

Thanks again, Al. > Installing 3.3 on Aptitude Compatible Linux Distributions. I then moved on > to "Creating Your Tenant," which brings me to another question - does it > matter where I put the source code for the Application and UI layers? You can put these source code trees anywhere that works for you. > And do I need to check out the services layer source code, even > though I already installed it during the Installation phase (right?)? Since you've already checked it out, you don't need to do so again, as you correctly inferred. Regarding the original error, you might try this: * cd to the 'war-entry' directory within the Application source code tree * Then run this command ant -v -Dconfig_destination=$CATALINA_HOME and sending the output from that. That Ant command appears to be what's actually run "under the hood" when doing a 'mvn install' - including 'mvn clean install -DskipTests' - within the war-entry module. By running it with the -v (verbose) flag, hopefully it will spit out enough information that we can figure out how that erroneous value: '/usr/lib/jvm/java-7-oracle/bin/java/bin/java' is being constructed. As well, you might try running this, again inside that war-entry module: * mvn clean install -DskipTests -X Once again, the '-X' will help show whether Aron P.S. One more thing I'm noticing in the output from running that 'Ant' command - which runs successfully on my system - this appears: parsing buildfile jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file While nearly all of what Ant is doing is simple file copying, this stood out. Maybe this could be Ant trying to read a JAR file - possibly a file that contains code for one of its external tasks, 'hostinfo' - and failing, because its path to the 'jar' command (one of the many command line utilities included with Java) is incorrect, possibly due to that JAVA_HOME snafu. That's the best I can come up with so far. If we can't get this quickly solved any other way, you might try opening war-entry/build.xml, and in the following block: <target name="post_build_tasks" description="Various post-build tasks" depends="deploy_cspace_config, deploy_nightly_config, retrieve_jar"> </target> delete 'deploy_nightly_config,' (including the trailing comma) from the 'depends' line above, and see if the error persists. That should remove Ant's need for the 'hostinfo' task. On Wed, Jul 31, 2013 at 3:00 PM, Al Bersch <abersch@museumca.org> wrote: > Hi Aron, Jesse, > > Thanks so much for your responses. > > Aron, in answer to 1b, no, there is no value set for JAVA_HOME in > /etc/profile.d files (the files in there are bash_completion.sh and > Z97-byobu.sh and JAVA_HOME is not mentioned in either one). > > > Jesse, the JAVA_HOME variable set in ~/.bashrc is: export > JAVA_HOME='/usr/lib/jvm/java-7-oracle' > > (I used single quotes because double quotes didn't work in Maven3. Let me > know if I'm out of line here...) > > > As for the question of running maven and ant commands on the services layer, > yes, I ran both those commands successfully after following the instructions > in the documentation for > > Installing 3.3 on Aptitude Compatible Linux Distributions. I then moved on > to "Creating Your Tenant," which brings me to another question - does it > matter where I put the source code for the Application and UI layers? And do > I need to check out the services layer source code, even though I already > installed it during the Installation phase (right?)? > > And just in case it matters: > in answer to 1a, Tomcat is running under the user root, which I was using > to check out the layers, and perform the installation steps. Should I have > done that differently? > and as for 1c, JAVA_HOME is commented out for java 6 in nuxeo.conf, but no > other variable is set there. > Thanks again! > Al > > > Al Bersch > Digital Project Coordinator > Oakland Museum of California > 1000 Oak Street, Oakland, CA 94607 > abersch@museumca.org > 510-318-8468 > ________________________________ > From: "Aron Roberts" <aron@socrates.berkeley.edu> > To: "Al Bersch" <abersch@museumca.org> > Cc: "talk" <talk@lists.collectionspace.org> > Sent: Wednesday, July 31, 2013 2:31:48 PM > Subject: Re: [Talk] error running mvn clean install -DskipTests > > > Having said this about 1.c, below, it's likely that 1.a. is also > irrelevant to your issue ... 1.b. might be worth looking into, > however. > > From the error message, it looks like Maven might be using have a > different value for JAVA_HOME ... so check 1.b (whether a value for > JAVA_HOME is set in any files in /etc/profile.d), and then you can > report back, if that doesn't seem to be relevant. > > On Wed, Jul 31, 2013 at 2:28 PM, Aron Roberts > <aron@socrates.berkeley.edu> wrote: >> Hi Al, >> >> 1. An off the cuff thought, possibly erroneous, but quick :-): It's >> conceivable that there is a second place from which the value of the >> JAVA_HOME environment variable is being read, other than from your own >> user environment. It could conceivably be getting this value from >> another user's environment, or from some system configuration file. >> >> a. Is Tomcat running under your own user account, or another >> account? (Check this via 'ps -ef | grep catalina'; the first item in >> the relevant entry will be the username under which Tomcat is running, >> while the second item will be its process ID, relevant to response 2, >> below.) >> >> If it's running under another user account, you can log into that >> user's account (or 'sudo su actual_username_here' to it) and check the >> value of JAVA_HOME there ('echo $JAVA_HOME', much as you've done in >> your account). >> >> b. Is a value set for JAVA_HOME in any of the files in /etc/profile.d? >> >> c. (You can skip this third point, as this is NOT relevant to the >> issue you reported, which involved building CollectionSpace's >> Application layer, but is mentioned here for completeness ... as a >> different set of problems could result from it: Is a value explicitly >> set for JAVA_HOME in any of the files in $CATALINA_HOME/bin, such as >> setenv.sh or nuxeo.conf? First, look in those two files; then 'grep >> JAVA_HOME $CATALINA_HOME/bin', and ignore any comments or uses of >> $JAVA_HOME as a variable name, etc.) >> >> 2. I've encountered this (a missing tomcat.pid file) on occasion, >> without having investigated its cause. >> >> When that happens, as a fix, I've just killed the Tomcat process >> ('sudo kill actual_pid_here', where 'actual_pid_here' is the process >> ID of that process, then restarted Tomcat, which re-creates that file. >> (The tomcat.pid file itself is just a text file containing a process >> ID.) >> >> Aron >> >> On Wed, Jul 31, 2013 at 2:04 PM, Al Bersch <abersch@museumca.org> wrote: >>> Hello all, >>> >>> I am creating new tenant in CollectionSpace 3.3, and am at the stage of >>> pushing the Applications layer to the CollectionSpace server. I have two >>> issues that might be related. I'm running into an error when I run mvn >>> clean >>> install -DskipTests: >>> >>> [INFO] --- exec-maven-plugin:1.1:exec (default) @ war-entry --- >>> [INFO] Error: JAVA_HOME is not defined correctly. >>> [INFO] We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Reactor Summary: >>> [INFO] >>> [INFO] Root .............................................. SUCCESS >>> [0.890s] >>> [INFO] CSP: General Utils ................................ SUCCESS >>> [3.037s] >>> [INFO] Collection-Space CSP API .......................... SUCCESS >>> [1.154s] >>> [INFO] CSP: Impl ......................................... SUCCESS >>> [2.650s] >>> [INFO] Collection-Space CSP Helper ....................... SUCCESS >>> [1.098s] >>> [INFO] CSP: Schema ....................................... SUCCESS >>> [3.249s] >>> [INFO] JXUtils ........................................... SUCCESS >>> [1.311s] >>> [INFO] CSP: Web UI ....................................... SUCCESS >>> [5.630s] >>> [INFO] CSP: File ......................................... SUCCESS >>> [0.946s] >>> [INFO] CSP: Services ..................................... SUCCESS >>> [4.590s] >>> [INFO] JXUtils ........................................... SUCCESS >>> [1.831s] >>> [INFO] Core .............................................. SUCCESS >>> [9.068s] >>> [INFO] Core .............................................. FAILURE >>> [8.250s] >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] BUILD FAILURE >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Total time: 44.183s >>> [INFO] Finished at: Wed Jul 31 20:58:10 UTC 2013 >>> [INFO] Final Memory: 102M/339M >>> >>> >>> It appears that I have the environment variable set up correctly: >>> >>> root@li551-203:~# echo $JAVA_HOME >>> /usr/lib/jvm/java-7-oracle >>> >>> I thought I'd double check that I shut down the servers correctly. when I >>> ran $CSPACE_JEESERVER_HOME/bin/shutdown.sh -force, I got the message : >>> >>> "$CATALINA_PID was set but the specified file does not exist. Is Tomcat >>> running? Stop aborted." >>> >>> So I looked for the tomcat.pid in >>> /usr/local/share/apache-tomcat-6.0.33/bin >>> and didn't find it there. Any ideas what's going on? I know it was there >>> before, because I successfully started up the server. >>> >>> Many thanks! >>> >>> Al >>> >>> Al Bersch >>> Digital Project Coordinator >>> Oakland Museum of California >>> 1000 Oak Street, Oakland, CA 94607 >>> abersch@museumca.org >>> 510-318-8468 >>> >>> _______________________________________________ >>> Talk mailing list >>> Talk@lists.collectionspace.org >>> >>> http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org >>> >
AR
Aron Roberts
Thu, Aug 1, 2013 1:18 AM

The grep'ping results are good: there's only one declaration of JAVA_HOME
in these 'dotfiles' (the configuration files for the 'root' Unix account) and
its setting looks correct.

My apologies re the second command; I was using '*' for bullet points
at some point in my earlier response; the actual command is simply

java -version

And while you're at it, you might try this as well:

jar -version
and
ls -al which jar  (including the backticks)

On Wed, Jul 31, 2013 at 3:06 PM, Al Bersch abersch@museumca.org wrote:

Hi all, thanks again.

Here's the response from
cd
grep JAVA_HOME.*

root@li551-203:~# grep JAVA_HOME .*
.bash_history:export JAVA_HOME="/usr/lib/jvm/java-7-oracle"
.bash_history:echo $JAVA_HOME
.bash_history:echo $JAVA_HOME
.bash_history:history | grep JAVA_HOME
.bashrc:export JAVA_HOME='/usr/lib/jvm/java-7-oracle'
.viminfo:~MSle0~/JAVA_HOME
.viminfo:?/JAVA_HOME

and

root@li551-203:~# *java -version
No command '*java' found, did you mean:
Command 'java' from package 'gcj-4.6-jre-headless' (main)
Command 'java' from package 'openjdk-6-jre-headless' (main)
Command 'java' from package 'openjdk-7-jre-headless' (universe)
Command 'java' from package 'default-jre' (main)
Command 'java' from package 'gcj-4.5-jre-headless' (universe)
*java: command not found
root@li551-203:~# *ls -al which java
No command '*ls' found, did you mean:
Command 'als' from package 'atool' (universe)
Command 'ls' from package 'coreutils' (main)
Command 'jls' from package 'sleuthkit' (universe)
Command 'hls' from package 'hfsutils' (main)
Command 'ols' from package 'speech-tools' (universe)
Command 'bls' from package 'bacula-sd' (main)
Command 'tls' from package 'python-tlslite' (universe)
Command 'fls' from package 'sleuthkit' (universe)
Command 'ils' from package 'sleuthkit' (universe)
*ls: command not found

thanks!

Al Bersch
Digital Project Coordinator
Oakland Museum of California
1000 Oak Street, Oakland, CA 94607
abersch@museumca.org
510-318-8468


From: "Aron Roberts" aron@socrates.berkeley.edu
To: "Jesse Martinez" mjesse@gmail.com, "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Wednesday, July 31, 2013 2:44:17 PM

Subject: Re: [Talk] error running mvn clean install -DskipTests

The info line that says
[INFO]  We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java
is interesting because it shows a malformed path to the java executable,
i.e. .../bin/java/bin/java. It should only be .../bin/java

Thanks, Jesse!

It'd definitely be useful to see any and all JAVA_HOME entries in your
$HOME/.bashrc and/or $HOME/.bash_profile file(s); e.g.

cd
grep JAVA_HOME .*

(The full files might likely have passwords, etc. so that you may not
want to send those entire files.)

Also: what do you get when you run the following?

  • java -version
  • ls -al which java    (note the 'backticks')

On Wed, Jul 31, 2013 at 2:31 PM, Jesse Martinez mjesse@gmail.com wrote:

Hi Al,

The info line that says
[INFO]  We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java
is interesting because it shows a malformed path to the java executable,
i.e. .../bin/java/bin/java. It should only be .../bin/java  AFAIK.
Your $JAVA_HOME env var looks correct. Nonetheless, could you print out
the
JAVA_HOME variable you set in your environmental variables (maybe in
~/.bashrc if on a Linux OS)
I assume you were able to run the maven and ant commands on the services
layer code before running the application layer code?

I believe the message you got when attempting to shut down the app is
fine.
It just means the Tomcat service was already shut down (force shutdown or
killed in some way) and behind a small file containing the ID of the
process
running.

  • Jesse

On Wed, Jul 31, 2013 at 5:04 PM, Al Bersch abersch@museumca.org wrote:

Hello all,

I am creating new tenant in CollectionSpace 3.3, and am at the stage of
pushing the Applications layer to the CollectionSpace server. I have two
issues that might be related. I'm running into an error when I run mvn
clean
install -DskipTests:

[INFO] --- exec-maven-plugin:1.1:exec (default) @ war-entry ---
[INFO] Error: JAVA_HOME is not defined correctly.
[INFO]  We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java
[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] Root .............................................. SUCCESS
[0.890s]
[INFO] CSP: General Utils ................................ SUCCESS
[3.037s]
[INFO] Collection-Space CSP API .......................... SUCCESS
[1.154s]
[INFO] CSP: Impl ......................................... SUCCESS
[2.650s]
[INFO] Collection-Space CSP Helper ....................... SUCCESS
[1.098s]
[INFO] CSP: Schema ....................................... SUCCESS
[3.249s]
[INFO] JXUtils ........................................... SUCCESS
[1.311s]
[INFO] CSP: Web UI ....................................... SUCCESS
[5.630s]
[INFO] CSP: File ......................................... SUCCESS
[0.946s]
[INFO] CSP: Services ..................................... SUCCESS
[4.590s]
[INFO] JXUtils ........................................... SUCCESS
[1.831s]
[INFO] Core .............................................. SUCCESS
[9.068s]
[INFO] Core .............................................. FAILURE
[8.250s]
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 44.183s
[INFO] Finished at: Wed Jul 31 20:58:10 UTC 2013
[INFO] Final Memory: 102M/339M

It appears that I have the environment variable set up correctly:

root@li551-203:~# echo $JAVA_HOME
/usr/lib/jvm/java-7-oracle

I thought I'd double check that I shut down the servers correctly. when I
ran $CSPACE_JEESERVER_HOME/bin/shutdown.sh -force, I got the message :

"$CATALINA_PID was set but the specified file does not exist. Is Tomcat
running? Stop aborted."

So I looked for the tomcat.pid in
/usr/local/share/apache-tomcat-6.0.33/bin and didn't find it there. Any
ideas what's going on? I know it was there before, because I successfully
started up the server.

Many thanks!

Al

Al Bersch
Digital Project Coordinator
Oakland Museum of California
1000 Oak Street, Oakland, CA 94607
abersch@museumca.org
510-318-8468


Talk mailing list
Talk@lists.collectionspace.org

http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org

The grep'ping results are good: there's only one declaration of JAVA_HOME in these 'dotfiles' (the configuration files for the 'root' Unix account) and its setting looks correct. My apologies re the second command; I was using '*' for bullet points at some point in my earlier response; the actual command is simply java -version And while you're at it, you might try this as well: jar -version and ls -al `which jar` (including the backticks) On Wed, Jul 31, 2013 at 3:06 PM, Al Bersch <abersch@museumca.org> wrote: > Hi all, thanks again. > > Here's the response from > cd > grep JAVA_HOME.* > > root@li551-203:~# grep JAVA_HOME .* > .bash_history:export JAVA_HOME="/usr/lib/jvm/java-7-oracle" > .bash_history:echo $JAVA_HOME > .bash_history:echo $JAVA_HOME > .bash_history:history | grep JAVA_HOME > .bashrc:export JAVA_HOME='/usr/lib/jvm/java-7-oracle' > .viminfo:~MSle0~/JAVA_HOME > .viminfo:?/JAVA_HOME > > and > > root@li551-203:~# *java -version > No command '*java' found, did you mean: > Command 'java' from package 'gcj-4.6-jre-headless' (main) > Command 'java' from package 'openjdk-6-jre-headless' (main) > Command 'java' from package 'openjdk-7-jre-headless' (universe) > Command 'java' from package 'default-jre' (main) > Command 'java' from package 'gcj-4.5-jre-headless' (universe) > *java: command not found > root@li551-203:~# *ls -al `which java` > No command '*ls' found, did you mean: > Command 'als' from package 'atool' (universe) > Command 'ls' from package 'coreutils' (main) > Command 'jls' from package 'sleuthkit' (universe) > Command 'hls' from package 'hfsutils' (main) > Command 'ols' from package 'speech-tools' (universe) > Command 'bls' from package 'bacula-sd' (main) > Command 'tls' from package 'python-tlslite' (universe) > Command 'fls' from package 'sleuthkit' (universe) > Command 'ils' from package 'sleuthkit' (universe) > *ls: command not found > > thanks! > > > Al Bersch > Digital Project Coordinator > Oakland Museum of California > 1000 Oak Street, Oakland, CA 94607 > abersch@museumca.org > 510-318-8468 > ________________________________ > From: "Aron Roberts" <aron@socrates.berkeley.edu> > To: "Jesse Martinez" <mjesse@gmail.com>, "Al Bersch" <abersch@museumca.org> > Cc: "talk" <talk@lists.collectionspace.org> > Sent: Wednesday, July 31, 2013 2:44:17 PM > > Subject: Re: [Talk] error running mvn clean install -DskipTests > >> The info line that says >> [INFO] We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java >> is interesting because it shows a malformed path to the java executable, >> i.e. .../bin/java/bin/java. It should only be .../bin/java > > Thanks, Jesse! > > It'd definitely be useful to see any and all JAVA_HOME entries in your > $HOME/.bashrc and/or $HOME/.bash_profile file(s); e.g. > > cd > grep JAVA_HOME .* > > (The full files might likely have passwords, etc. so that you may not > want to send those entire files.) > > Also: what do you get when you run the following? > * java -version > * ls -al `which java` (note the 'backticks') > > On Wed, Jul 31, 2013 at 2:31 PM, Jesse Martinez <mjesse@gmail.com> wrote: >> Hi Al, >> >> The info line that says >> [INFO] We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java >> is interesting because it shows a malformed path to the java executable, >> i.e. .../bin/java/bin/java. It should only be .../bin/java AFAIK. >> Your $JAVA_HOME env var looks correct. Nonetheless, could you print out >> the >> JAVA_HOME variable you set in your environmental variables (maybe in >> ~/.bashrc if on a Linux OS) >> I assume you were able to run the maven and ant commands on the services >> layer code before running the application layer code? >> >> I believe the message you got when attempting to shut down the app is >> fine. >> It just means the Tomcat service was already shut down (force shutdown or >> killed in some way) and behind a small file containing the ID of the >> process >> running. >> >> >> - Jesse >> >> >> On Wed, Jul 31, 2013 at 5:04 PM, Al Bersch <abersch@museumca.org> wrote: >>> >>> Hello all, >>> >>> I am creating new tenant in CollectionSpace 3.3, and am at the stage of >>> pushing the Applications layer to the CollectionSpace server. I have two >>> issues that might be related. I'm running into an error when I run mvn >>> clean >>> install -DskipTests: >>> >>> [INFO] --- exec-maven-plugin:1.1:exec (default) @ war-entry --- >>> [INFO] Error: JAVA_HOME is not defined correctly. >>> [INFO] We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Reactor Summary: >>> [INFO] >>> [INFO] Root .............................................. SUCCESS >>> [0.890s] >>> [INFO] CSP: General Utils ................................ SUCCESS >>> [3.037s] >>> [INFO] Collection-Space CSP API .......................... SUCCESS >>> [1.154s] >>> [INFO] CSP: Impl ......................................... SUCCESS >>> [2.650s] >>> [INFO] Collection-Space CSP Helper ....................... SUCCESS >>> [1.098s] >>> [INFO] CSP: Schema ....................................... SUCCESS >>> [3.249s] >>> [INFO] JXUtils ........................................... SUCCESS >>> [1.311s] >>> [INFO] CSP: Web UI ....................................... SUCCESS >>> [5.630s] >>> [INFO] CSP: File ......................................... SUCCESS >>> [0.946s] >>> [INFO] CSP: Services ..................................... SUCCESS >>> [4.590s] >>> [INFO] JXUtils ........................................... SUCCESS >>> [1.831s] >>> [INFO] Core .............................................. SUCCESS >>> [9.068s] >>> [INFO] Core .............................................. FAILURE >>> [8.250s] >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] BUILD FAILURE >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Total time: 44.183s >>> [INFO] Finished at: Wed Jul 31 20:58:10 UTC 2013 >>> [INFO] Final Memory: 102M/339M >>> >>> >>> It appears that I have the environment variable set up correctly: >>> >>> root@li551-203:~# echo $JAVA_HOME >>> /usr/lib/jvm/java-7-oracle >>> >>> I thought I'd double check that I shut down the servers correctly. when I >>> ran $CSPACE_JEESERVER_HOME/bin/shutdown.sh -force, I got the message : >>> >>> "$CATALINA_PID was set but the specified file does not exist. Is Tomcat >>> running? Stop aborted." >>> >>> So I looked for the tomcat.pid in >>> /usr/local/share/apache-tomcat-6.0.33/bin and didn't find it there. Any >>> ideas what's going on? I know it was there before, because I successfully >>> started up the server. >>> >>> Many thanks! >>> >>> Al >>> >>> Al Bersch >>> Digital Project Coordinator >>> Oakland Museum of California >>> 1000 Oak Street, Oakland, CA 94607 >>> abersch@museumca.org >>> 510-318-8468 >>> >>> _______________________________________________ >>> Talk mailing list >>> Talk@lists.collectionspace.org >>> >>> >>> http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org >>> >> >> >> _______________________________________________ >> Talk mailing list >> Talk@lists.collectionspace.org >> >> http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org >> > > > _______________________________________________ > Talk mailing list > Talk@lists.collectionspace.org > http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org >
AR
Aron Roberts
Thu, Aug 1, 2013 1:20 AM

On Wed, Jul 31, 2013 at 6:15 PM, Aron Roberts
aron@socrates.berkeley.edu wrote:

As well, you might try running this, again inside that war-entry module:

  • mvn clean install -DskipTests -X

Once again, the '-X' will help show whether

I left that thought unfinished.  Actually, we likely don't need to do that;
it seems likely at this point that this is a problem where 'Ant' might not
be finding a working 'jar' command.  Let's proceed on that assumption
until we find out otherwise.  (See the P.S. in my two-emails-ago note.)

Aron

P.S. One more thing I'm noticing in the output from running
that 'Ant' command - which runs successfully on my system -
this appears:

parsing buildfile
jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml
with
URI = jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml
from a zip file

While nearly all of what Ant is doing is simple file copying,
this stood out.

Maybe this could be Ant trying to read a JAR file - possibly a file
that contains code for one of its external tasks, 'hostinfo' - and failing,
because its path to the 'jar' command (one of the many command
line utilities included with Java) is incorrect, possibly due to that
JAVA_HOME snafu.  That's the best I can come up with so far.

If we can't get this quickly solved any other way, you might try opening
war-entry/build.xml, and in the following block:

 <target name="post_build_tasks"
     description="Various post-build tasks"
     depends="deploy_cspace_config, deploy_nightly_config, retrieve_jar">
 </target>

delete 'deploy_nightly_config,' (including the trailing comma) from the
'depends' line above, and see if the error persists.  That should remove
Ant's need for the 'hostinfo' task.

On Wed, Jul 31, 2013 at 3:00 PM, Al Bersch abersch@museumca.org wrote:

Hi Aron, Jesse,

Thanks so much for your responses.

Aron, in answer to 1b, no, there is no value set for JAVA_HOME in
/etc/profile.d files (the files in there are bash_completion.sh and
Z97-byobu.sh and JAVA_HOME is not mentioned in either one).

Jesse, the JAVA_HOME variable set in ~/.bashrc is:    export
JAVA_HOME='/usr/lib/jvm/java-7-oracle'

(I used single quotes because double quotes didn't work in Maven3. Let me
know if I'm out of line here...)

As for the question of running maven and ant commands on the services layer,
yes, I ran both those commands successfully after following the instructions
in the documentation for

Installing 3.3 on Aptitude Compatible Linux Distributions. I then moved on
to "Creating Your Tenant," which brings me to another question - does it
matter where I put the source code for the Application and UI layers? And do
I need to check out the services layer source code, even though I already
installed it during the Installation phase (right?)?

And just in case it matters:
in answer to 1a, Tomcat is running under the user root, which I was using
to check out the layers, and perform the installation steps. Should I have
done that differently?
and as for 1c, JAVA_HOME is commented out for java 6 in nuxeo.conf, but no
other variable is set there.
Thanks again!
Al

Al Bersch
Digital Project Coordinator
Oakland Museum of California
1000 Oak Street, Oakland, CA 94607
abersch@museumca.org
510-318-8468


From: "Aron Roberts" aron@socrates.berkeley.edu
To: "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Wednesday, July 31, 2013 2:31:48 PM
Subject: Re: [Talk] error running mvn clean install -DskipTests

Having said this about 1.c, below, it's likely that 1.a. is also
irrelevant to your issue ... 1.b. might be worth looking into,
however.

From the error message, it looks like Maven might be using have a
different value for JAVA_HOME ... so check 1.b (whether a value for
JAVA_HOME is set in any files in /etc/profile.d), and then you can
report back, if that doesn't seem to be relevant.

On Wed, Jul 31, 2013 at 2:28 PM, Aron Roberts
aron@socrates.berkeley.edu wrote:

Hi Al,

  1. An off the cuff thought, possibly erroneous, but quick :-): It's
    conceivable that there is a second place from which the value of the
    JAVA_HOME environment variable is being read, other than from your own
    user environment.  It could conceivably be getting this value from
    another user's environment, or from some system configuration file.

a. Is Tomcat running under your own user account, or another
account? (Check this via 'ps -ef | grep catalina'; the first item in
the relevant entry will be the username under which Tomcat is running,
while the second item will be its process ID, relevant to response 2,
below.)

If it's running under another user account, you can log into that
user's account (or 'sudo su actual_username_here' to it) and check the
value of JAVA_HOME there ('echo $JAVA_HOME', much as you've done in
your account).

b. Is a value set for JAVA_HOME in any of the files in /etc/profile.d?

c. (You can skip this third point, as this is NOT relevant to the
issue you reported, which involved building CollectionSpace's
Application layer, but is mentioned here for completeness ... as a
different set of problems could result from it: Is a value explicitly
set for JAVA_HOME in any of the files in $CATALINA_HOME/bin, such as
setenv.sh or nuxeo.conf?  First, look in those two files; then 'grep
JAVA_HOME $CATALINA_HOME/bin', and ignore any comments or uses of
$JAVA_HOME as a variable name, etc.)

  1. I've encountered this (a missing tomcat.pid file) on occasion,
    without having investigated its cause.

When that happens, as a fix, I've just killed the Tomcat process
('sudo kill actual_pid_here', where 'actual_pid_here' is the process
ID of that process, then restarted Tomcat, which re-creates that file.
(The tomcat.pid file itself is just a text file containing a process
ID.)

Aron

On Wed, Jul 31, 2013 at 2:04 PM, Al Bersch abersch@museumca.org wrote:

Hello all,

I am creating new tenant in CollectionSpace 3.3, and am at the stage of
pushing the Applications layer to the CollectionSpace server. I have two
issues that might be related. I'm running into an error when I run mvn
clean
install -DskipTests:

[INFO] --- exec-maven-plugin:1.1:exec (default) @ war-entry ---
[INFO] Error: JAVA_HOME is not defined correctly.
[INFO]  We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java
[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] Root .............................................. SUCCESS
[0.890s]
[INFO] CSP: General Utils ................................ SUCCESS
[3.037s]
[INFO] Collection-Space CSP API .......................... SUCCESS
[1.154s]
[INFO] CSP: Impl ......................................... SUCCESS
[2.650s]
[INFO] Collection-Space CSP Helper ....................... SUCCESS
[1.098s]
[INFO] CSP: Schema ....................................... SUCCESS
[3.249s]
[INFO] JXUtils ........................................... SUCCESS
[1.311s]
[INFO] CSP: Web UI ....................................... SUCCESS
[5.630s]
[INFO] CSP: File ......................................... SUCCESS
[0.946s]
[INFO] CSP: Services ..................................... SUCCESS
[4.590s]
[INFO] JXUtils ........................................... SUCCESS
[1.831s]
[INFO] Core .............................................. SUCCESS
[9.068s]
[INFO] Core .............................................. FAILURE
[8.250s]
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 44.183s
[INFO] Finished at: Wed Jul 31 20:58:10 UTC 2013
[INFO] Final Memory: 102M/339M

It appears that I have the environment variable set up correctly:

root@li551-203:~# echo $JAVA_HOME
/usr/lib/jvm/java-7-oracle

I thought I'd double check that I shut down the servers correctly. when I
ran $CSPACE_JEESERVER_HOME/bin/shutdown.sh -force, I got the message :

"$CATALINA_PID was set but the specified file does not exist. Is Tomcat
running? Stop aborted."

So I looked for the tomcat.pid in
/usr/local/share/apache-tomcat-6.0.33/bin
and didn't find it there. Any ideas what's going on? I know it was there
before, because I successfully started up the server.

Many thanks!

Al

Al Bersch
Digital Project Coordinator
Oakland Museum of California
1000 Oak Street, Oakland, CA 94607
abersch@museumca.org
510-318-8468


Talk mailing list
Talk@lists.collectionspace.org

http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org

On Wed, Jul 31, 2013 at 6:15 PM, Aron Roberts <aron@socrates.berkeley.edu> wrote: > As well, you might try running this, again inside that war-entry module: > > * mvn clean install -DskipTests -X > > Once again, the '-X' will help show whether I left that thought unfinished. Actually, we likely don't need to do that; it seems likely at this point that this is a problem where 'Ant' might not be finding a working 'jar' command. Let's proceed on that assumption until we find out otherwise. (See the P.S. in my two-emails-ago note.) > > Aron > > P.S. One more thing I'm noticing in the output from running > that 'Ant' command - which runs successfully on my system - > this appears: > > parsing buildfile > jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml > with > URI = jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml > from a zip file > > While nearly all of what Ant is doing is simple file copying, > this stood out. > > Maybe this could be Ant trying to read a JAR file - possibly a file > that contains code for one of its external tasks, 'hostinfo' - and failing, > because its path to the 'jar' command (one of the many command > line utilities included with Java) is incorrect, possibly due to that > JAVA_HOME snafu. That's the best I can come up with so far. > > If we can't get this quickly solved any other way, you might try opening > war-entry/build.xml, and in the following block: > > <target name="post_build_tasks" > description="Various post-build tasks" > depends="deploy_cspace_config, deploy_nightly_config, retrieve_jar"> > </target> > > delete 'deploy_nightly_config,' (including the trailing comma) from the > 'depends' line above, and see if the error persists. That should remove > Ant's need for the 'hostinfo' task. > > On Wed, Jul 31, 2013 at 3:00 PM, Al Bersch <abersch@museumca.org> wrote: >> Hi Aron, Jesse, >> >> Thanks so much for your responses. >> >> Aron, in answer to 1b, no, there is no value set for JAVA_HOME in >> /etc/profile.d files (the files in there are bash_completion.sh and >> Z97-byobu.sh and JAVA_HOME is not mentioned in either one). >> >> >> Jesse, the JAVA_HOME variable set in ~/.bashrc is: export >> JAVA_HOME='/usr/lib/jvm/java-7-oracle' >> >> (I used single quotes because double quotes didn't work in Maven3. Let me >> know if I'm out of line here...) >> >> >> As for the question of running maven and ant commands on the services layer, >> yes, I ran both those commands successfully after following the instructions >> in the documentation for >> >> Installing 3.3 on Aptitude Compatible Linux Distributions. I then moved on >> to "Creating Your Tenant," which brings me to another question - does it >> matter where I put the source code for the Application and UI layers? And do >> I need to check out the services layer source code, even though I already >> installed it during the Installation phase (right?)? >> >> And just in case it matters: >> in answer to 1a, Tomcat is running under the user root, which I was using >> to check out the layers, and perform the installation steps. Should I have >> done that differently? >> and as for 1c, JAVA_HOME is commented out for java 6 in nuxeo.conf, but no >> other variable is set there. >> Thanks again! >> Al >> >> >> Al Bersch >> Digital Project Coordinator >> Oakland Museum of California >> 1000 Oak Street, Oakland, CA 94607 >> abersch@museumca.org >> 510-318-8468 >> ________________________________ >> From: "Aron Roberts" <aron@socrates.berkeley.edu> >> To: "Al Bersch" <abersch@museumca.org> >> Cc: "talk" <talk@lists.collectionspace.org> >> Sent: Wednesday, July 31, 2013 2:31:48 PM >> Subject: Re: [Talk] error running mvn clean install -DskipTests >> >> >> Having said this about 1.c, below, it's likely that 1.a. is also >> irrelevant to your issue ... 1.b. might be worth looking into, >> however. >> >> From the error message, it looks like Maven might be using have a >> different value for JAVA_HOME ... so check 1.b (whether a value for >> JAVA_HOME is set in any files in /etc/profile.d), and then you can >> report back, if that doesn't seem to be relevant. >> >> On Wed, Jul 31, 2013 at 2:28 PM, Aron Roberts >> <aron@socrates.berkeley.edu> wrote: >>> Hi Al, >>> >>> 1. An off the cuff thought, possibly erroneous, but quick :-): It's >>> conceivable that there is a second place from which the value of the >>> JAVA_HOME environment variable is being read, other than from your own >>> user environment. It could conceivably be getting this value from >>> another user's environment, or from some system configuration file. >>> >>> a. Is Tomcat running under your own user account, or another >>> account? (Check this via 'ps -ef | grep catalina'; the first item in >>> the relevant entry will be the username under which Tomcat is running, >>> while the second item will be its process ID, relevant to response 2, >>> below.) >>> >>> If it's running under another user account, you can log into that >>> user's account (or 'sudo su actual_username_here' to it) and check the >>> value of JAVA_HOME there ('echo $JAVA_HOME', much as you've done in >>> your account). >>> >>> b. Is a value set for JAVA_HOME in any of the files in /etc/profile.d? >>> >>> c. (You can skip this third point, as this is NOT relevant to the >>> issue you reported, which involved building CollectionSpace's >>> Application layer, but is mentioned here for completeness ... as a >>> different set of problems could result from it: Is a value explicitly >>> set for JAVA_HOME in any of the files in $CATALINA_HOME/bin, such as >>> setenv.sh or nuxeo.conf? First, look in those two files; then 'grep >>> JAVA_HOME $CATALINA_HOME/bin', and ignore any comments or uses of >>> $JAVA_HOME as a variable name, etc.) >>> >>> 2. I've encountered this (a missing tomcat.pid file) on occasion, >>> without having investigated its cause. >>> >>> When that happens, as a fix, I've just killed the Tomcat process >>> ('sudo kill actual_pid_here', where 'actual_pid_here' is the process >>> ID of that process, then restarted Tomcat, which re-creates that file. >>> (The tomcat.pid file itself is just a text file containing a process >>> ID.) >>> >>> Aron >>> >>> On Wed, Jul 31, 2013 at 2:04 PM, Al Bersch <abersch@museumca.org> wrote: >>>> Hello all, >>>> >>>> I am creating new tenant in CollectionSpace 3.3, and am at the stage of >>>> pushing the Applications layer to the CollectionSpace server. I have two >>>> issues that might be related. I'm running into an error when I run mvn >>>> clean >>>> install -DskipTests: >>>> >>>> [INFO] --- exec-maven-plugin:1.1:exec (default) @ war-entry --- >>>> [INFO] Error: JAVA_HOME is not defined correctly. >>>> [INFO] We cannot execute /usr/lib/jvm/java-7-oracle/bin/java/bin/java >>>> [INFO] >>>> ------------------------------------------------------------------------ >>>> [INFO] Reactor Summary: >>>> [INFO] >>>> [INFO] Root .............................................. SUCCESS >>>> [0.890s] >>>> [INFO] CSP: General Utils ................................ SUCCESS >>>> [3.037s] >>>> [INFO] Collection-Space CSP API .......................... SUCCESS >>>> [1.154s] >>>> [INFO] CSP: Impl ......................................... SUCCESS >>>> [2.650s] >>>> [INFO] Collection-Space CSP Helper ....................... SUCCESS >>>> [1.098s] >>>> [INFO] CSP: Schema ....................................... SUCCESS >>>> [3.249s] >>>> [INFO] JXUtils ........................................... SUCCESS >>>> [1.311s] >>>> [INFO] CSP: Web UI ....................................... SUCCESS >>>> [5.630s] >>>> [INFO] CSP: File ......................................... SUCCESS >>>> [0.946s] >>>> [INFO] CSP: Services ..................................... SUCCESS >>>> [4.590s] >>>> [INFO] JXUtils ........................................... SUCCESS >>>> [1.831s] >>>> [INFO] Core .............................................. SUCCESS >>>> [9.068s] >>>> [INFO] Core .............................................. FAILURE >>>> [8.250s] >>>> [INFO] >>>> ------------------------------------------------------------------------ >>>> [INFO] BUILD FAILURE >>>> [INFO] >>>> ------------------------------------------------------------------------ >>>> [INFO] Total time: 44.183s >>>> [INFO] Finished at: Wed Jul 31 20:58:10 UTC 2013 >>>> [INFO] Final Memory: 102M/339M >>>> >>>> >>>> It appears that I have the environment variable set up correctly: >>>> >>>> root@li551-203:~# echo $JAVA_HOME >>>> /usr/lib/jvm/java-7-oracle >>>> >>>> I thought I'd double check that I shut down the servers correctly. when I >>>> ran $CSPACE_JEESERVER_HOME/bin/shutdown.sh -force, I got the message : >>>> >>>> "$CATALINA_PID was set but the specified file does not exist. Is Tomcat >>>> running? Stop aborted." >>>> >>>> So I looked for the tomcat.pid in >>>> /usr/local/share/apache-tomcat-6.0.33/bin >>>> and didn't find it there. Any ideas what's going on? I know it was there >>>> before, because I successfully started up the server. >>>> >>>> Many thanks! >>>> >>>> Al >>>> >>>> Al Bersch >>>> Digital Project Coordinator >>>> Oakland Museum of California >>>> 1000 Oak Street, Oakland, CA 94607 >>>> abersch@museumca.org >>>> 510-318-8468 >>>> >>>> _______________________________________________ >>>> Talk mailing list >>>> Talk@lists.collectionspace.org >>>> >>>> http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org >>>> >>