JS
Joe Slag
Tue, May 24, 2011 10:24 PM
Hello CollectionSpacers,
Today I've been looking into modifying a few of the controlled lists
in CollectionSpace, and I'm wondering if the wiki might be running
behind on related changes.
I've been going off of
http://wiki.collectionspace.org/display/collectionspace/How+to+add+a+term+to+a+controlled+list,
and have tried both of the two described options.
The JSON approach sounded simpler, and I was successful in requesting
URL:http://localhost:8180/collectionspace/chain/vocabularies/currency
with my browser and getting the list of currencies. However, I didn't
have any luck sending updates via POST; when I try, I get this:
URL:http://localhost:8180/cspace-services//vocabularies/fa864d81-65b7-4491-bef8/items:
STATUS:0:Connection exceptionUsername may not be null
Since we're ultimately going to need to change and remove options in
addition to adding them, the JSON option doesn't look like it'd be the
comprehensive solution anyhow , so I next turned to the cspace-config
path. The steps listed on the wiki page were a little unclear to me,
but here's what I tried:
-
modifying the jboss/server/cspace/conf/cspace-config.xml file
directly, and accessing
http://localhost:8180/collectionspace/chain/vocabularies/currency/refresh/
in my browser. This produced no error, but also no new currency (I
added <option>Gold Piece</option> in cspace-config) in the server log,
the UI, or when listed via
http://localhost:8180/collectionspace/chain/vocabularies/currency/
-
I noticed that there was an intermediate step, "redeploy the
chain.war". Some searching suggests that chain.war is now known as
collectionspace.war. According to
http://wiki.collectionspace.org/display/collectionspace/Application+Build
the process for generating collectionspace.war involves checking out
the application code, and running mvn clean install -DskipTests
.
Before running mvn I made my same change in
tomcat-main/src/main/resources/default.xml. After the mvn run, my Gold
Pieces option was present in the server cspace-config.xml. I
restarted, and visited
collectionspace/chain/authorities/vocab/initialize in my browser. No
errors, but again no changes in the UI or via
http://localhost:8180/collectionspace/chain/vocabularies/currency/
Has this all changed in intervening releases, or am I just missing something?
thanks,
Joe
Hello CollectionSpacers,
Today I've been looking into modifying a few of the controlled lists
in CollectionSpace, and I'm wondering if the wiki might be running
behind on related changes.
I've been going off of
http://wiki.collectionspace.org/display/collectionspace/How+to+add+a+term+to+a+controlled+list,
and have tried both of the two described options.
The JSON approach sounded simpler, and I was successful in requesting
URL:http://localhost:8180/collectionspace/chain/vocabularies/currency
with my browser and getting the list of currencies. However, I didn't
have any luck sending updates via POST; when I try, I get this:
URL:http://localhost:8180/cspace-services//vocabularies/fa864d81-65b7-4491-bef8/items:
STATUS:0:Connection exceptionUsername may not be null
Since we're ultimately going to need to change and remove options in
addition to adding them, the JSON option doesn't look like it'd be the
comprehensive solution anyhow , so I next turned to the cspace-config
path. The steps listed on the wiki page were a little unclear to me,
but here's what I tried:
1. modifying the jboss/server/cspace/conf/cspace-config.xml file
directly, and accessing
http://localhost:8180/collectionspace/chain/vocabularies/currency/refresh/
in my browser. This produced no error, but also no new currency (I
added <option>Gold Piece</option> in cspace-config) in the server log,
the UI, or when listed via
http://localhost:8180/collectionspace/chain/vocabularies/currency/
2. I noticed that there was an intermediate step, "redeploy the
chain.war". Some searching suggests that chain.war is now known as
collectionspace.war. According to
http://wiki.collectionspace.org/display/collectionspace/Application+Build
the process for generating collectionspace.war involves checking out
the application code, and running `mvn clean install -DskipTests`.
Before running mvn I made my same change in
tomcat-main/src/main/resources/default.xml. After the mvn run, my Gold
Pieces option was present in the server cspace-config.xml. I
restarted, and visited
collectionspace/chain/authorities/vocab/initialize in my browser. No
errors, but again no changes in the UI or via
http://localhost:8180/collectionspace/chain/vocabularies/currency/
Has this all changed in intervening releases, or am I just missing something?
thanks,
Joe
PS
Patrick Schmitz
Tue, May 24, 2011 10:26 PM
Hi Joe -
You just have to login to the stack once, to get your credentials
established, and then you can use the JSON route through the chain services.
If you'd like, we could also easily expose JSON payloads in and out of the
back-end services. We've talked about it often enough, but we need someone
advocating for this as a priority to give it attention.
Patrick
-----Original Message-----
From: talk-bounces@lists.collectionspace.org
[mailto:talk-bounces@lists.collectionspace.org] On Behalf Of Joe Slag
Sent: Tuesday, May 24, 2011 3:24 PM
To: talk@lists.collectionspace.org
Subject: [Talk] changes in controlled list update procedure?
Hello CollectionSpacers,
Today I've been looking into modifying a few of the
controlled lists in CollectionSpace, and I'm wondering if the
wiki might be running behind on related changes.
I've been going off of
http://wiki.collectionspace.org/display/collectionspace/How+to
+add+a+term+to+a+controlled+list,
and have tried both of the two described options.
The JSON approach sounded simpler, and I was successful in
requesting
URL:http://localhost:8180/collectionspace/chain/vocabularies/currency
with my browser and getting the list of currencies. However,
I didn't have any luck sending updates via POST; when I try,
I get this:
URL:http://localhost:8180/cspace-services//vocabularies/fa864d
STATUS:0:Connection exceptionUsername may not be null
Since we're ultimately going to need to change and remove
options in addition to adding them, the JSON option doesn't
look like it'd be the comprehensive solution anyhow , so I
next turned to the cspace-config path. The steps listed on
the wiki page were a little unclear to me, but here's what I tried:
-
modifying the jboss/server/cspace/conf/cspace-config.xml
file directly, and accessing
http://localhost:8180/collectionspace/chain/vocabularies/curre
ncy/refresh/
in my browser. This produced no error, but also no new
currency (I added <option>Gold Piece</option> in
cspace-config) in the server log, the UI, or when listed via
http://localhost:8180/collectionspace/chain/vocabularies/currency/
-
I noticed that there was an intermediate step, "redeploy
the chain.war". Some searching suggests that chain.war is now
known as collectionspace.war. According to
http://wiki.collectionspace.org/display/collectionspace/Applic
ation+Build
the process for generating collectionspace.war involves
checking out the application code, and running mvn clean install -DskipTests
.
Before running mvn I made my same change in
tomcat-main/src/main/resources/default.xml. After the mvn
run, my Gold Pieces option was present in the server
cspace-config.xml. I restarted, and visited
collectionspace/chain/authorities/vocab/initialize in my
browser. No errors, but again no changes in the UI or via
http://localhost:8180/collectionspace/chain/vocabularies/currency/
Has this all changed in intervening releases, or am I just
missing something?
thanks,
Joe
Talk mailing list
Talk@lists.collectionspace.org
http://lists.collectionspace.org/mailman/listinfo/talk_lists.c
ollectionspace.org
Hi Joe -
You just have to login to the stack once, to get your credentials
established, and then you can use the JSON route through the chain services.
If you'd like, we could also easily expose JSON payloads in and out of the
back-end services. We've talked about it often enough, but we need someone
advocating for this as a priority to give it attention.
Patrick
> -----Original Message-----
> From: talk-bounces@lists.collectionspace.org
> [mailto:talk-bounces@lists.collectionspace.org] On Behalf Of Joe Slag
> Sent: Tuesday, May 24, 2011 3:24 PM
> To: talk@lists.collectionspace.org
> Subject: [Talk] changes in controlled list update procedure?
>
> Hello CollectionSpacers,
>
> Today I've been looking into modifying a few of the
> controlled lists in CollectionSpace, and I'm wondering if the
> wiki might be running behind on related changes.
>
> I've been going off of
> http://wiki.collectionspace.org/display/collectionspace/How+to
> +add+a+term+to+a+controlled+list,
> and have tried both of the two described options.
>
> The JSON approach sounded simpler, and I was successful in
> requesting
> URL:http://localhost:8180/collectionspace/chain/vocabularies/currency
> with my browser and getting the list of currencies. However,
> I didn't have any luck sending updates via POST; when I try,
> I get this:
>
>
> URL:http://localhost:8180/cspace-services//vocabularies/fa864d
81-65b7-4491-bef8/items:
> STATUS:0:Connection exceptionUsername may not be null
>
> Since we're ultimately going to need to change and remove
> options in addition to adding them, the JSON option doesn't
> look like it'd be the comprehensive solution anyhow , so I
> next turned to the cspace-config path. The steps listed on
> the wiki page were a little unclear to me, but here's what I tried:
>
> 1. modifying the jboss/server/cspace/conf/cspace-config.xml
> file directly, and accessing
> http://localhost:8180/collectionspace/chain/vocabularies/curre
> ncy/refresh/
> in my browser. This produced no error, but also no new
> currency (I added <option>Gold Piece</option> in
> cspace-config) in the server log, the UI, or when listed via
> http://localhost:8180/collectionspace/chain/vocabularies/currency/
>
> 2. I noticed that there was an intermediate step, "redeploy
> the chain.war". Some searching suggests that chain.war is now
> known as collectionspace.war. According to
> http://wiki.collectionspace.org/display/collectionspace/Applic
> ation+Build
> the process for generating collectionspace.war involves
> checking out the application code, and running `mvn clean
> install -DskipTests`.
> Before running mvn I made my same change in
> tomcat-main/src/main/resources/default.xml. After the mvn
> run, my Gold Pieces option was present in the server
> cspace-config.xml. I restarted, and visited
> collectionspace/chain/authorities/vocab/initialize in my
> browser. No errors, but again no changes in the UI or via
> http://localhost:8180/collectionspace/chain/vocabularies/currency/
>
> Has this all changed in intervening releases, or am I just
> missing something?
>
> thanks,
> Joe
>
> _______________________________________________
> Talk mailing list
> Talk@lists.collectionspace.org
> http://lists.collectionspace.org/mailman/listinfo/talk_lists.c
> ollectionspace.org
>
CM
Chris Martin
Wed, May 25, 2011 10:04 AM
sorry about the documentation - I will get onto that as soon as possible
- however on point 2. You only need to redeploy the war file you don't
need to rebuild it. If you rebuild it, the mvn command will probably
overwrite your cspace-config.xml file.
Depending how you system is set up - sometimes just running the command
"touch" on the war file - which you correctly noted is now called
collectionspace.war is enough to announce to the server that it needs to
refresh itself and effectively restart the war. It all depends how you
have set up your instances
Chris
On 24/05/2011 23:24, Joe Slag wrote:
Hello CollectionSpacers,
Today I've been looking into modifying a few of the controlled lists
in CollectionSpace, and I'm wondering if the wiki might be running
behind on related changes.
I've been going off of
http://wiki.collectionspace.org/display/collectionspace/How+to+add+a+term+to+a+controlled+list,
and have tried both of the two described options.
The JSON approach sounded simpler, and I was successful in requesting
URL:http://localhost:8180/collectionspace/chain/vocabularies/currency
with my browser and getting the list of currencies. However, I didn't
have any luck sending updates via POST; when I try, I get this:
URL:http://localhost:8180/cspace-services//vocabularies/fa864d81-65b7-4491-bef8/items:
STATUS:0:Connection exceptionUsername may not be null
Since we're ultimately going to need to change and remove options in
addition to adding them, the JSON option doesn't look like it'd be the
comprehensive solution anyhow , so I next turned to the cspace-config
path. The steps listed on the wiki page were a little unclear to me,
but here's what I tried:
-
modifying the jboss/server/cspace/conf/cspace-config.xml file
directly, and accessing
http://localhost:8180/collectionspace/chain/vocabularies/currency/refresh/
in my browser. This produced no error, but also no new currency (I
added<option>Gold Piece</option> in cspace-config) in the server log,
the UI, or when listed via
http://localhost:8180/collectionspace/chain/vocabularies/currency/
-
I noticed that there was an intermediate step, "redeploy the
chain.war". Some searching suggests that chain.war is now known as
collectionspace.war. According to
http://wiki.collectionspace.org/display/collectionspace/Application+Build
the process for generating collectionspace.war involves checking out
the application code, and running mvn clean install -DskipTests
.
Before running mvn I made my same change in
tomcat-main/src/main/resources/default.xml. After the mvn run, my Gold
Pieces option was present in the server cspace-config.xml. I
restarted, and visited
collectionspace/chain/authorities/vocab/initialize in my browser. No
errors, but again no changes in the UI or via
http://localhost:8180/collectionspace/chain/vocabularies/currency/
Has this all changed in intervening releases, or am I just missing something?
thanks,
Joe
Talk mailing list
Talk@lists.collectionspace.org
http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org
sorry about the documentation - I will get onto that as soon as possible
- however on point 2. You only need to redeploy the war file you don't
need to rebuild it. If you rebuild it, the mvn command will probably
overwrite your cspace-config.xml file.
Depending how you system is set up - sometimes just running the command
"touch" on the war file - which you correctly noted is now called
collectionspace.war is enough to announce to the server that it needs to
refresh itself and effectively restart the war. It all depends how you
have set up your instances
Chris
On 24/05/2011 23:24, Joe Slag wrote:
> Hello CollectionSpacers,
>
> Today I've been looking into modifying a few of the controlled lists
> in CollectionSpace, and I'm wondering if the wiki might be running
> behind on related changes.
>
> I've been going off of
> http://wiki.collectionspace.org/display/collectionspace/How+to+add+a+term+to+a+controlled+list,
> and have tried both of the two described options.
>
> The JSON approach sounded simpler, and I was successful in requesting
> URL:http://localhost:8180/collectionspace/chain/vocabularies/currency
> with my browser and getting the list of currencies. However, I didn't
> have any luck sending updates via POST; when I try, I get this:
>
> URL:http://localhost:8180/cspace-services//vocabularies/fa864d81-65b7-4491-bef8/items:
> STATUS:0:Connection exceptionUsername may not be null
>
> Since we're ultimately going to need to change and remove options in
> addition to adding them, the JSON option doesn't look like it'd be the
> comprehensive solution anyhow , so I next turned to the cspace-config
> path. The steps listed on the wiki page were a little unclear to me,
> but here's what I tried:
>
> 1. modifying the jboss/server/cspace/conf/cspace-config.xml file
> directly, and accessing
> http://localhost:8180/collectionspace/chain/vocabularies/currency/refresh/
> in my browser. This produced no error, but also no new currency (I
> added<option>Gold Piece</option> in cspace-config) in the server log,
> the UI, or when listed via
> http://localhost:8180/collectionspace/chain/vocabularies/currency/
>
> 2. I noticed that there was an intermediate step, "redeploy the
> chain.war". Some searching suggests that chain.war is now known as
> collectionspace.war. According to
> http://wiki.collectionspace.org/display/collectionspace/Application+Build
> the process for generating collectionspace.war involves checking out
> the application code, and running `mvn clean install -DskipTests`.
> Before running mvn I made my same change in
> tomcat-main/src/main/resources/default.xml. After the mvn run, my Gold
> Pieces option was present in the server cspace-config.xml. I
> restarted, and visited
> collectionspace/chain/authorities/vocab/initialize in my browser. No
> errors, but again no changes in the UI or via
> http://localhost:8180/collectionspace/chain/vocabularies/currency/
>
> Has this all changed in intervening releases, or am I just missing something?
>
> thanks,
> Joe
>
> _______________________________________________
> Talk mailing list
> Talk@lists.collectionspace.org
> http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org
JS
Joe Slag
Wed, May 25, 2011 3:46 PM
To clarify -- this JSON route isn't using the same authorization code
as the REST services, right? I've figured out how to add credentials
to REST requests, but that doesn't seem to work here. If I POST the
username and password to collectionspace/chain/login, my script does
get directed to collectionspace/ui/html/myCollectionSpace.html, but I
don't see a cookie in the response so I'm not having any luck getting
subsequent requests authorized.
Any time there's a chance to produce or consume JSON, that would be my
preference over XML -- chalk me up as a JSON advocate!
cheers,
Joe
On Tue, May 24, 2011 at 5:26 PM, Patrick Schmitz pschmitz@berkeley.edu wrote:
Hi Joe -
You just have to login to the stack once, to get your credentials
established, and then you can use the JSON route through the chain services.
If you'd like, we could also easily expose JSON payloads in and out of the
back-end services. We've talked about it often enough, but we need someone
advocating for this as a priority to give it attention.
Patrick
-----Original Message-----
From: talk-bounces@lists.collectionspace.org
[mailto:talk-bounces@lists.collectionspace.org] On Behalf Of Joe Slag
Sent: Tuesday, May 24, 2011 3:24 PM
To: talk@lists.collectionspace.org
Subject: [Talk] changes in controlled list update procedure?
Hello CollectionSpacers,
Today I've been looking into modifying a few of the
controlled lists in CollectionSpace, and I'm wondering if the
wiki might be running behind on related changes.
I've been going off of
http://wiki.collectionspace.org/display/collectionspace/How+to
+add+a+term+to+a+controlled+list,
and have tried both of the two described options.
The JSON approach sounded simpler, and I was successful in
requesting
URL:http://localhost:8180/collectionspace/chain/vocabularies/currency
with my browser and getting the list of currencies. However,
I didn't have any luck sending updates via POST; when I try,
I get this:
URL:http://localhost:8180/cspace-services//vocabularies/fa864d
STATUS:0:Connection exceptionUsername may not be null
Since we're ultimately going to need to change and remove
options in addition to adding them, the JSON option doesn't
look like it'd be the comprehensive solution anyhow , so I
next turned to the cspace-config path. The steps listed on
the wiki page were a little unclear to me, but here's what I tried:
-
modifying the jboss/server/cspace/conf/cspace-config.xml
file directly, and accessing
http://localhost:8180/collectionspace/chain/vocabularies/curre
ncy/refresh/
in my browser. This produced no error, but also no new
currency (I added <option>Gold Piece</option> in
cspace-config) in the server log, the UI, or when listed via
http://localhost:8180/collectionspace/chain/vocabularies/currency/
-
I noticed that there was an intermediate step, "redeploy
the chain.war". Some searching suggests that chain.war is now
known as collectionspace.war. According to
http://wiki.collectionspace.org/display/collectionspace/Applic
ation+Build
the process for generating collectionspace.war involves
checking out the application code, and running mvn clean install -DskipTests
.
Before running mvn I made my same change in
tomcat-main/src/main/resources/default.xml. After the mvn
run, my Gold Pieces option was present in the server
cspace-config.xml. I restarted, and visited
collectionspace/chain/authorities/vocab/initialize in my
browser. No errors, but again no changes in the UI or via
http://localhost:8180/collectionspace/chain/vocabularies/currency/
Has this all changed in intervening releases, or am I just
missing something?
thanks,
Joe
Talk mailing list
Talk@lists.collectionspace.org
http://lists.collectionspace.org/mailman/listinfo/talk_lists.c
ollectionspace.org
To clarify -- this JSON route isn't using the same authorization code
as the REST services, right? I've figured out how to add credentials
to REST requests, but that doesn't seem to work here. If I POST the
username and password to collectionspace/chain/login, my script does
get directed to collectionspace/ui/html/myCollectionSpace.html, but I
don't see a cookie in the response so I'm not having any luck getting
subsequent requests authorized.
Any time there's a chance to produce or consume JSON, that would be my
preference over XML -- chalk me up as a JSON advocate!
cheers,
Joe
On Tue, May 24, 2011 at 5:26 PM, Patrick Schmitz <pschmitz@berkeley.edu> wrote:
> Hi Joe -
>
> You just have to login to the stack once, to get your credentials
> established, and then you can use the JSON route through the chain services.
>
>
> If you'd like, we could also easily expose JSON payloads in and out of the
> back-end services. We've talked about it often enough, but we need someone
> advocating for this as a priority to give it attention.
>
> Patrick
>
>> -----Original Message-----
>> From: talk-bounces@lists.collectionspace.org
>> [mailto:talk-bounces@lists.collectionspace.org] On Behalf Of Joe Slag
>> Sent: Tuesday, May 24, 2011 3:24 PM
>> To: talk@lists.collectionspace.org
>> Subject: [Talk] changes in controlled list update procedure?
>>
>> Hello CollectionSpacers,
>>
>> Today I've been looking into modifying a few of the
>> controlled lists in CollectionSpace, and I'm wondering if the
>> wiki might be running behind on related changes.
>>
>> I've been going off of
>> http://wiki.collectionspace.org/display/collectionspace/How+to
>> +add+a+term+to+a+controlled+list,
>> and have tried both of the two described options.
>>
>> The JSON approach sounded simpler, and I was successful in
>> requesting
>> URL:http://localhost:8180/collectionspace/chain/vocabularies/currency
>> with my browser and getting the list of currencies. However,
>> I didn't have any luck sending updates via POST; when I try,
>> I get this:
>>
>>
>> URL:http://localhost:8180/cspace-services//vocabularies/fa864d
> 81-65b7-4491-bef8/items:
>> STATUS:0:Connection exceptionUsername may not be null
>>
>> Since we're ultimately going to need to change and remove
>> options in addition to adding them, the JSON option doesn't
>> look like it'd be the comprehensive solution anyhow , so I
>> next turned to the cspace-config path. The steps listed on
>> the wiki page were a little unclear to me, but here's what I tried:
>>
>> 1. modifying the jboss/server/cspace/conf/cspace-config.xml
>> file directly, and accessing
>> http://localhost:8180/collectionspace/chain/vocabularies/curre
>> ncy/refresh/
>> in my browser. This produced no error, but also no new
>> currency (I added <option>Gold Piece</option> in
>> cspace-config) in the server log, the UI, or when listed via
>> http://localhost:8180/collectionspace/chain/vocabularies/currency/
>>
>> 2. I noticed that there was an intermediate step, "redeploy
>> the chain.war". Some searching suggests that chain.war is now
>> known as collectionspace.war. According to
>> http://wiki.collectionspace.org/display/collectionspace/Applic
>> ation+Build
>> the process for generating collectionspace.war involves
>> checking out the application code, and running `mvn clean
>> install -DskipTests`.
>> Before running mvn I made my same change in
>> tomcat-main/src/main/resources/default.xml. After the mvn
>> run, my Gold Pieces option was present in the server
>> cspace-config.xml. I restarted, and visited
>> collectionspace/chain/authorities/vocab/initialize in my
>> browser. No errors, but again no changes in the UI or via
>> http://localhost:8180/collectionspace/chain/vocabularies/currency/
>>
>> Has this all changed in intervening releases, or am I just
>> missing something?
>>
>> thanks,
>> Joe
>>
>> _______________________________________________
>> Talk mailing list
>> Talk@lists.collectionspace.org
>> http://lists.collectionspace.org/mailman/listinfo/talk_lists.c
>> ollectionspace.org
>>
>
>
JS
Joe Slag
Wed, May 25, 2011 4:18 PM
sorry about the documentation - I will get onto that as soon as possible -
however on point 2. You only need to redeploy the war file you don't need to
rebuild it. If you rebuild it, the mvn command will probably overwrite your
cspace-config.xml file.
Depending how you system is set up - sometimes just running the command
"touch" on the war file - which you correctly noted is now called
collectionspace.war is enough to announce to the server that it needs to
refresh itself and effectively restart the war. It all depends how you have
set up your instances
Chris
On 24/05/2011 23:24, Joe Slag wrote:
Hello CollectionSpacers,
Today I've been looking into modifying a few of the controlled lists
in CollectionSpace, and I'm wondering if the wiki might be running
behind on related changes.
I've been going off of
http://wiki.collectionspace.org/display/collectionspace/How+to+add+a+term+to+a+controlled+list,
and have tried both of the two described options.
The JSON approach sounded simpler, and I was successful in requesting
URL:http://localhost:8180/collectionspace/chain/vocabularies/currency
with my browser and getting the list of currencies. However, I didn't
have any luck sending updates via POST; when I try, I get this:
URL:http://localhost:8180/cspace-services//vocabularies/fa864d81-65b7-4491-bef8/items:
STATUS:0:Connection exceptionUsername may not be null
Since we're ultimately going to need to change and remove options in
addition to adding them, the JSON option doesn't look like it'd be the
comprehensive solution anyhow , so I next turned to the cspace-config
path. The steps listed on the wiki page were a little unclear to me,
but here's what I tried:
-
modifying the jboss/server/cspace/conf/cspace-config.xml file
directly, and accessing
http://localhost:8180/collectionspace/chain/vocabularies/currency/refresh/
in my browser. This produced no error, but also no new currency (I
added<option>Gold Piece</option> in cspace-config) in the server log,
the UI, or when listed via
http://localhost:8180/collectionspace/chain/vocabularies/currency/
-
I noticed that there was an intermediate step, "redeploy the
chain.war". Some searching suggests that chain.war is now known as
collectionspace.war. According to
http://wiki.collectionspace.org/display/collectionspace/Application+Build
the process for generating collectionspace.war involves checking out
the application code, and running mvn clean install -DskipTests
.
Before running mvn I made my same change in
tomcat-main/src/main/resources/default.xml. After the mvn run, my Gold
Pieces option was present in the server cspace-config.xml. I
restarted, and visited
collectionspace/chain/authorities/vocab/initialize in my browser. No
errors, but again no changes in the UI or via
http://localhost:8180/collectionspace/chain/vocabularies/currency/
Has this all changed in intervening releases, or am I just missing
something?
thanks,
Joe
Talk mailing list
Talk@lists.collectionspace.org
http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org
Our server is installed as described in
http://wiki.collectionspace.org/display/DOC/Installing+1.6+on+Generic+Unix-like+or+Windows+Systems
(running on ubuntu 10.04 server).
With that config, `touch deploy/collectionspace.war` isn't causing my
added currency to show up in the web UI.
cheers,
Joe
On Wed, May 25, 2011 at 5:04 AM, Chris Martin <csm22@caret.cam.ac.uk> wrote:
> sorry about the documentation - I will get onto that as soon as possible -
> however on point 2. You only need to redeploy the war file you don't need to
> rebuild it. If you rebuild it, the mvn command will probably overwrite your
> cspace-config.xml file.
>
> Depending how you system is set up - sometimes just running the command
> "touch" on the war file - which you correctly noted is now called
> collectionspace.war is enough to announce to the server that it needs to
> refresh itself and effectively restart the war. It all depends how you have
> set up your instances
>
> Chris
>
> On 24/05/2011 23:24, Joe Slag wrote:
>>
>> Hello CollectionSpacers,
>>
>> Today I've been looking into modifying a few of the controlled lists
>> in CollectionSpace, and I'm wondering if the wiki might be running
>> behind on related changes.
>>
>> I've been going off of
>>
>> http://wiki.collectionspace.org/display/collectionspace/How+to+add+a+term+to+a+controlled+list,
>> and have tried both of the two described options.
>>
>> The JSON approach sounded simpler, and I was successful in requesting
>> URL:http://localhost:8180/collectionspace/chain/vocabularies/currency
>> with my browser and getting the list of currencies. However, I didn't
>> have any luck sending updates via POST; when I try, I get this:
>>
>>
>> URL:http://localhost:8180/cspace-services//vocabularies/fa864d81-65b7-4491-bef8/items:
>> STATUS:0:Connection exceptionUsername may not be null
>>
>> Since we're ultimately going to need to change and remove options in
>> addition to adding them, the JSON option doesn't look like it'd be the
>> comprehensive solution anyhow , so I next turned to the cspace-config
>> path. The steps listed on the wiki page were a little unclear to me,
>> but here's what I tried:
>>
>> 1. modifying the jboss/server/cspace/conf/cspace-config.xml file
>> directly, and accessing
>> http://localhost:8180/collectionspace/chain/vocabularies/currency/refresh/
>> in my browser. This produced no error, but also no new currency (I
>> added<option>Gold Piece</option> in cspace-config) in the server log,
>> the UI, or when listed via
>> http://localhost:8180/collectionspace/chain/vocabularies/currency/
>>
>> 2. I noticed that there was an intermediate step, "redeploy the
>> chain.war". Some searching suggests that chain.war is now known as
>> collectionspace.war. According to
>> http://wiki.collectionspace.org/display/collectionspace/Application+Build
>> the process for generating collectionspace.war involves checking out
>> the application code, and running `mvn clean install -DskipTests`.
>> Before running mvn I made my same change in
>> tomcat-main/src/main/resources/default.xml. After the mvn run, my Gold
>> Pieces option was present in the server cspace-config.xml. I
>> restarted, and visited
>> collectionspace/chain/authorities/vocab/initialize in my browser. No
>> errors, but again no changes in the UI or via
>> http://localhost:8180/collectionspace/chain/vocabularies/currency/
>>
>> Has this all changed in intervening releases, or am I just missing
>> something?
>>
>> thanks,
>> Joe
>>
>> _______________________________________________
>> Talk mailing list
>> Talk@lists.collectionspace.org
>>
>> http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org
>
PS
Patrick Schmitz
Wed, May 25, 2011 4:22 PM
Right - the current json route at .../collectionspace/chain/... is hitting
the application layer services. The back-end services are provided at
.../cspace-services/...
I'll look into enabling JSON on the services side.
When I want to hit the application services through the browser, I usually
log into the app via the UI, and that sets the cookie I need. I have not
tried to hit the app layer from an app outside the browser.
Patrick
-----Original Message-----
From: joe.slag@gmail.com [mailto:joe.slag@gmail.com] On
Behalf Of Joe Slag
Sent: Wednesday, May 25, 2011 8:46 AM
To: Patrick Schmitz
Cc: talk@lists.collectionspace.org
Subject: Re: [Talk] changes in controlled list update procedure?
To clarify -- this JSON route isn't using the same
authorization code as the REST services, right? I've figured
out how to add credentials to REST requests, but that doesn't
seem to work here. If I POST the username and password to
collectionspace/chain/login, my script does get directed to
collectionspace/ui/html/myCollectionSpace.html, but I don't
see a cookie in the response so I'm not having any luck
getting subsequent requests authorized.
Any time there's a chance to produce or consume JSON, that
would be my preference over XML -- chalk me up as a JSON advocate!
cheers,
Joe
On Tue, May 24, 2011 at 5:26 PM, Patrick Schmitz
pschmitz@berkeley.edu wrote:
Hi Joe -
You just have to login to the stack once, to get your credentials
established, and then you can use the JSON route through
If you'd like, we could also easily expose JSON payloads in
the back-end services. We've talked about it often enough,
someone advocating for this as a priority to give it attention.
Patrick
Sent: Tuesday, May 24, 2011 3:24 PM
To: talk@lists.collectionspace.org
Subject: [Talk] changes in controlled list update procedure?
Hello CollectionSpacers,
Today I've been looking into modifying a few of the
in CollectionSpace, and I'm wondering if the wiki might be running
behind on related changes.
I've been going off of
http://wiki.collectionspace.org/display/collectionspace/How+to
+add+a+term+to+a+controlled+list,
and have tried both of the two described options.
The JSON approach sounded simpler, and I was successful in
URL:http://localhost:8180/collectionspace/chain/vocabularies/currency
with my browser and getting the list of currencies.
have any luck sending updates via POST; when I try, I get this:
URL:http://localhost:8180/cspace-services//vocabularies/fa864d
STATUS:0:Connection exceptionUsername may not be null
Since we're ultimately going to need to change and remove
addition to adding them, the JSON option doesn't look like it'd be
the comprehensive solution anyhow , so I next turned to the
cspace-config path. The steps listed on the wiki page were
the application code, and running mvn clean install -DskipTests
.
Before running mvn I made my same change in
tomcat-main/src/main/resources/default.xml. After the mvn run, my
Gold Pieces option was present in the server cspace-config.xml. I
restarted, and visited
collectionspace/chain/authorities/vocab/initialize in my
Right - the current json route at .../collectionspace/chain/... is hitting
the application layer services. The back-end services are provided at
.../cspace-services/...
I'll look into enabling JSON on the services side.
When I want to hit the application services through the browser, I usually
log into the app via the UI, and that sets the cookie I need. I have not
tried to hit the app layer from an app outside the browser.
Patrick
> -----Original Message-----
> From: joe.slag@gmail.com [mailto:joe.slag@gmail.com] On
> Behalf Of Joe Slag
> Sent: Wednesday, May 25, 2011 8:46 AM
> To: Patrick Schmitz
> Cc: talk@lists.collectionspace.org
> Subject: Re: [Talk] changes in controlled list update procedure?
>
> To clarify -- this JSON route isn't using the same
> authorization code as the REST services, right? I've figured
> out how to add credentials to REST requests, but that doesn't
> seem to work here. If I POST the username and password to
> collectionspace/chain/login, my script does get directed to
> collectionspace/ui/html/myCollectionSpace.html, but I don't
> see a cookie in the response so I'm not having any luck
> getting subsequent requests authorized.
>
> Any time there's a chance to produce or consume JSON, that
> would be my preference over XML -- chalk me up as a JSON advocate!
>
> cheers,
> Joe
>
> On Tue, May 24, 2011 at 5:26 PM, Patrick Schmitz
> <pschmitz@berkeley.edu> wrote:
> > Hi Joe -
> >
> > You just have to login to the stack once, to get your credentials
> > established, and then you can use the JSON route through
> the chain services.
> >
> >
> > If you'd like, we could also easily expose JSON payloads in
> and out of
> > the back-end services. We've talked about it often enough,
> but we need
> > someone advocating for this as a priority to give it attention.
> >
> > Patrick
> >
> >> -----Original Message-----
> >> From: talk-bounces@lists.collectionspace.org
> >> [mailto:talk-bounces@lists.collectionspace.org] On Behalf
> Of Joe Slag
> >> Sent: Tuesday, May 24, 2011 3:24 PM
> >> To: talk@lists.collectionspace.org
> >> Subject: [Talk] changes in controlled list update procedure?
> >>
> >> Hello CollectionSpacers,
> >>
> >> Today I've been looking into modifying a few of the
> controlled lists
> >> in CollectionSpace, and I'm wondering if the wiki might be running
> >> behind on related changes.
> >>
> >> I've been going off of
> >> http://wiki.collectionspace.org/display/collectionspace/How+to
> >> +add+a+term+to+a+controlled+list,
> >> and have tried both of the two described options.
> >>
> >> The JSON approach sounded simpler, and I was successful in
> requesting
> >>
> URL:http://localhost:8180/collectionspace/chain/vocabularies/currency
> >> with my browser and getting the list of currencies.
> However, I didn't
> >> have any luck sending updates via POST; when I try, I get this:
> >>
> >>
> >> URL:http://localhost:8180/cspace-services//vocabularies/fa864d
> > 81-65b7-4491-bef8/items:
> >> STATUS:0:Connection exceptionUsername may not be null
> >>
> >> Since we're ultimately going to need to change and remove
> options in
> >> addition to adding them, the JSON option doesn't look like it'd be
> >> the comprehensive solution anyhow , so I next turned to the
> >> cspace-config path. The steps listed on the wiki page were
> a little
> >> unclear to me, but here's what I tried:
> >>
> >> 1. modifying the jboss/server/cspace/conf/cspace-config.xml
> >> file directly, and accessing
> >> http://localhost:8180/collectionspace/chain/vocabularies/curre
> >> ncy/refresh/
> >> in my browser. This produced no error, but also no new currency (I
> >> added <option>Gold Piece</option> in
> >> cspace-config) in the server log, the UI, or when listed via
> >> http://localhost:8180/collectionspace/chain/vocabularies/currency/
> >>
> >> 2. I noticed that there was an intermediate step, "redeploy the
> >> chain.war". Some searching suggests that chain.war is now known as
> >> collectionspace.war. According to
> >> http://wiki.collectionspace.org/display/collectionspace/Applic
> >> ation+Build
> >> the process for generating collectionspace.war involves
> checking out
> >> the application code, and running `mvn clean install -DskipTests`.
> >> Before running mvn I made my same change in
> >> tomcat-main/src/main/resources/default.xml. After the mvn run, my
> >> Gold Pieces option was present in the server cspace-config.xml. I
> >> restarted, and visited
> >> collectionspace/chain/authorities/vocab/initialize in my
> browser. No
> >> errors, but again no changes in the UI or via
> >> http://localhost:8180/collectionspace/chain/vocabularies/currency/
> >>
> >> Has this all changed in intervening releases, or am I just missing
> >> something?
> >>
> >> thanks,
> >> Joe
> >>
> >> _______________________________________________
> >> Talk mailing list
> >> Talk@lists.collectionspace.org
> >> http://lists.collectionspace.org/mailman/listinfo/talk_lists.c
> >> ollectionspace.org
> >>
> >
> >
>
KG
Kasper Galschiot Markus
Wed, May 25, 2011 5:52 PM
Hi Joe,
I'm not 100% what this setting is defaulted to in our distributed
tarballs, but it's possible that deployment scanning isn't turned on by
default.
To turn this on, open the file:
$JBOSS_HOME/server/cspace/conf/jboss-service.xml
and make sure the following line has the value "true":
<attribute name="ScanEnabled">true</attribute>
Restart the cspace server after this, and it should automagically deploy
the war file when you update it.
Also, a bit off topic, but if you are installing on ubuntu, we have
specific apt-compatible linux install instructions
http://wiki.collectionspace.org/display/DOC/Installing+1.6+on+Aptitude+Compatible+Linux+Distributions
. This will make installation a bit easier, as it is basically
copy/paste all the way through.
~Kasper
On 05/25/2011 11:18 AM, Joe Slag wrote:
sorry about the documentation - I will get onto that as soon as possible -
however on point 2. You only need to redeploy the war file you don't need to
rebuild it. If you rebuild it, the mvn command will probably overwrite your
cspace-config.xml file.
Depending how you system is set up - sometimes just running the command
"touch" on the war file - which you correctly noted is now called
collectionspace.war is enough to announce to the server that it needs to
refresh itself and effectively restart the war. It all depends how you have
set up your instances
Chris
On 24/05/2011 23:24, Joe Slag wrote:
Hello CollectionSpacers,
Today I've been looking into modifying a few of the controlled lists
in CollectionSpace, and I'm wondering if the wiki might be running
behind on related changes.
I've been going off of
http://wiki.collectionspace.org/display/collectionspace/How+to+add+a+term+to+a+controlled+list,
and have tried both of the two described options.
The JSON approach sounded simpler, and I was successful in requesting
URL:http://localhost:8180/collectionspace/chain/vocabularies/currency
with my browser and getting the list of currencies. However, I didn't
have any luck sending updates via POST; when I try, I get this:
URL:http://localhost:8180/cspace-services//vocabularies/fa864d81-65b7-4491-bef8/items:
STATUS:0:Connection exceptionUsername may not be null
Since we're ultimately going to need to change and remove options in
addition to adding them, the JSON option doesn't look like it'd be the
comprehensive solution anyhow , so I next turned to the cspace-config
path. The steps listed on the wiki page were a little unclear to me,
but here's what I tried:
-
modifying the jboss/server/cspace/conf/cspace-config.xml file
directly, and accessing
http://localhost:8180/collectionspace/chain/vocabularies/currency/refresh/
in my browser. This produced no error, but also no new currency (I
added<option>Gold Piece</option> in cspace-config) in the server log,
the UI, or when listed via
http://localhost:8180/collectionspace/chain/vocabularies/currency/
-
I noticed that there was an intermediate step, "redeploy the
chain.war". Some searching suggests that chain.war is now known as
collectionspace.war. According to
http://wiki.collectionspace.org/display/collectionspace/Application+Build
the process for generating collectionspace.war involves checking out
the application code, and running mvn clean install -DskipTests
.
Before running mvn I made my same change in
tomcat-main/src/main/resources/default.xml. After the mvn run, my Gold
Pieces option was present in the server cspace-config.xml. I
restarted, and visited
collectionspace/chain/authorities/vocab/initialize in my browser. No
errors, but again no changes in the UI or via
http://localhost:8180/collectionspace/chain/vocabularies/currency/
Has this all changed in intervening releases, or am I just missing
something?
thanks,
Joe
Talk mailing list
Talk@lists.collectionspace.org
http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org
Hi Joe,
I'm not 100% what this setting is defaulted to in our distributed
tarballs, but it's possible that deployment scanning isn't turned on by
default.
To turn this on, open the file:
$JBOSS_HOME/server/cspace/conf/jboss-service.xml
and make sure the following line has the value "true":
<attribute name="ScanEnabled">true</attribute>
Restart the cspace server after this, and it should automagically deploy
the war file when you update it.
Also, a bit off topic, but if you are installing on ubuntu, we have
specific apt-compatible linux install instructions
http://wiki.collectionspace.org/display/DOC/Installing+1.6+on+Aptitude+Compatible+Linux+Distributions
. This will make installation a bit easier, as it is basically
copy/paste all the way through.
~Kasper
On 05/25/2011 11:18 AM, Joe Slag wrote:
> Our server is installed as described in
> http://wiki.collectionspace.org/display/DOC/Installing+1.6+on+Generic+Unix-like+or+Windows+Systems
> (running on ubuntu 10.04 server).
>
> With that config, `touch deploy/collectionspace.war` isn't causing my
> added currency to show up in the web UI.
>
> cheers,
> Joe
>
> On Wed, May 25, 2011 at 5:04 AM, Chris Martin<csm22@caret.cam.ac.uk> wrote:
>> sorry about the documentation - I will get onto that as soon as possible -
>> however on point 2. You only need to redeploy the war file you don't need to
>> rebuild it. If you rebuild it, the mvn command will probably overwrite your
>> cspace-config.xml file.
>>
>> Depending how you system is set up - sometimes just running the command
>> "touch" on the war file - which you correctly noted is now called
>> collectionspace.war is enough to announce to the server that it needs to
>> refresh itself and effectively restart the war. It all depends how you have
>> set up your instances
>>
>> Chris
>>
>> On 24/05/2011 23:24, Joe Slag wrote:
>>> Hello CollectionSpacers,
>>>
>>> Today I've been looking into modifying a few of the controlled lists
>>> in CollectionSpace, and I'm wondering if the wiki might be running
>>> behind on related changes.
>>>
>>> I've been going off of
>>>
>>> http://wiki.collectionspace.org/display/collectionspace/How+to+add+a+term+to+a+controlled+list,
>>> and have tried both of the two described options.
>>>
>>> The JSON approach sounded simpler, and I was successful in requesting
>>> URL:http://localhost:8180/collectionspace/chain/vocabularies/currency
>>> with my browser and getting the list of currencies. However, I didn't
>>> have any luck sending updates via POST; when I try, I get this:
>>>
>>>
>>> URL:http://localhost:8180/cspace-services//vocabularies/fa864d81-65b7-4491-bef8/items:
>>> STATUS:0:Connection exceptionUsername may not be null
>>>
>>> Since we're ultimately going to need to change and remove options in
>>> addition to adding them, the JSON option doesn't look like it'd be the
>>> comprehensive solution anyhow , so I next turned to the cspace-config
>>> path. The steps listed on the wiki page were a little unclear to me,
>>> but here's what I tried:
>>>
>>> 1. modifying the jboss/server/cspace/conf/cspace-config.xml file
>>> directly, and accessing
>>> http://localhost:8180/collectionspace/chain/vocabularies/currency/refresh/
>>> in my browser. This produced no error, but also no new currency (I
>>> added<option>Gold Piece</option> in cspace-config) in the server log,
>>> the UI, or when listed via
>>> http://localhost:8180/collectionspace/chain/vocabularies/currency/
>>>
>>> 2. I noticed that there was an intermediate step, "redeploy the
>>> chain.war". Some searching suggests that chain.war is now known as
>>> collectionspace.war. According to
>>> http://wiki.collectionspace.org/display/collectionspace/Application+Build
>>> the process for generating collectionspace.war involves checking out
>>> the application code, and running `mvn clean install -DskipTests`.
>>> Before running mvn I made my same change in
>>> tomcat-main/src/main/resources/default.xml. After the mvn run, my Gold
>>> Pieces option was present in the server cspace-config.xml. I
>>> restarted, and visited
>>> collectionspace/chain/authorities/vocab/initialize in my browser. No
>>> errors, but again no changes in the UI or via
>>> http://localhost:8180/collectionspace/chain/vocabularies/currency/
>>>
>>> Has this all changed in intervening releases, or am I just missing
>>> something?
>>>
>>> thanks,
>>> Joe
>>>
>>> _______________________________________________
>>> 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
JS
Joe Slag
Wed, May 25, 2011 9:12 PM
Hi Kasper,
you are correct, ScanEnabled was set to false. I switched that to
true, restarted collectionspace, and my new option appeared.
I'm still a bit confused about the correct sequence of events -- I've
played around now with adding a few terms, and there doesn't seem to
be a simple sequence like the following that works reliably:
- add term to conf/cspace-config.xml
- touch deploy/collectionspace.war
- visit collectionspace/chain/vocabularies/{your vocab here}/refresh in browser
If I fiddle around with the second couple steps a few times, my
additions do eventually show up.
Also, it appears that this process only handles adding new terms; if a
term is removed from cspace-config.xml, it keeps showing up. I don't
see anything on the wiki about changing / removing list items --
anyone have any hints?
cheers,
Joe
On Wed, May 25, 2011 at 12:52 PM, Kasper Galschiot Markus
kasper2@markus.dk wrote:
Hi Joe,
I'm not 100% what this setting is defaulted to in our distributed tarballs,
but it's possible that deployment scanning isn't turned on by default.
To turn this on, open the file:
$JBOSS_HOME/server/cspace/conf/jboss-service.xml
and make sure the following line has the value "true":
<attribute name="ScanEnabled">true</attribute>
Restart the cspace server after this, and it should automagically deploy the
war file when you update it.
Hi Kasper,
you are correct, ScanEnabled was set to false. I switched that to
true, restarted collectionspace, and my new option appeared.
I'm still a bit confused about the correct sequence of events -- I've
played around now with adding a few terms, and there doesn't seem to
be a simple sequence like the following that works reliably:
1. add term to conf/cspace-config.xml
2. touch deploy/collectionspace.war
3. visit collectionspace/chain/vocabularies/{your vocab here}/refresh in browser
If I fiddle around with the second couple steps a few times, my
additions do eventually show up.
Also, it appears that this process only handles adding new terms; if a
term is removed from cspace-config.xml, it keeps showing up. I don't
see anything on the wiki about changing / removing list items --
anyone have any hints?
cheers,
Joe
On Wed, May 25, 2011 at 12:52 PM, Kasper Galschiot Markus
<kasper2@markus.dk> wrote:
> Hi Joe,
>
> I'm not 100% what this setting is defaulted to in our distributed tarballs,
> but it's possible that deployment scanning isn't turned on by default.
>
> To turn this on, open the file:
> $JBOSS_HOME/server/cspace/conf/jboss-service.xml
>
> and make sure the following line has the value "true":
>
> <attribute name="ScanEnabled">true</attribute>
>
> Restart the cspace server after this, and it should automagically deploy the
> war file when you update it.
>
CM
Chris Martin
Wed, May 25, 2011 9:20 PM
instead of refresh try initialize that should delete any existing vocab of
that name and completely rewrite it.
so: collectionspace/chain/vocabularies/{your vocab here}/initialize
I know I wrote some doc about vocab initialization - I will try and dig it
out when I am at work tomorrow
Chris
Hi Kasper,
you are correct, ScanEnabled was set to false. I switched that to
true, restarted collectionspace, and my new option appeared.
I'm still a bit confused about the correct sequence of events -- I've
played around now with adding a few terms, and there doesn't seem to
be a simple sequence like the following that works reliably:
- add term to conf/cspace-config.xml
- touch deploy/collectionspace.war
- visit collectionspace/chain/vocabularies/{your vocab here}/refresh in
browser
If I fiddle around with the second couple steps a few times, my
additions do eventually show up.
Also, it appears that this process only handles adding new terms; if a
term is removed from cspace-config.xml, it keeps showing up. I don't
see anything on the wiki about changing / removing list items --
anyone have any hints?
cheers,
Joe
On Wed, May 25, 2011 at 12:52 PM, Kasper Galschiot Markus
kasper2@markus.dk wrote:
Hi Joe,
I'm not 100% what this setting is defaulted to in our distributed
tarballs,
but it's possible that deployment scanning isn't turned on by default.
To turn this on, open the file:
$JBOSS_HOME/server/cspace/conf/jboss-service.xml
and make sure the following line has the value "true":
<attribute name="ScanEnabled">true</attribute>
Restart the cspace server after this, and it should automagically deploy
the
war file when you update it.
instead of refresh try initialize that should delete any existing vocab of
that name and completely rewrite it.
so: collectionspace/chain/vocabularies/{your vocab here}/initialize
I know I wrote some doc about vocab initialization - I will try and dig it
out when I am at work tomorrow
Chris
> Hi Kasper,
>
> you are correct, ScanEnabled was set to false. I switched that to
> true, restarted collectionspace, and my new option appeared.
>
> I'm still a bit confused about the correct sequence of events -- I've
> played around now with adding a few terms, and there doesn't seem to
> be a simple sequence like the following that works reliably:
>
> 1. add term to conf/cspace-config.xml
> 2. touch deploy/collectionspace.war
> 3. visit collectionspace/chain/vocabularies/{your vocab here}/refresh in
> browser
>
> If I fiddle around with the second couple steps a few times, my
> additions do eventually show up.
>
> Also, it appears that this process only handles adding new terms; if a
> term is removed from cspace-config.xml, it keeps showing up. I don't
> see anything on the wiki about changing / removing list items --
> anyone have any hints?
>
> cheers,
> Joe
>
> On Wed, May 25, 2011 at 12:52 PM, Kasper Galschiot Markus
> <kasper2@markus.dk> wrote:
>> Hi Joe,
>>
>> I'm not 100% what this setting is defaulted to in our distributed
>> tarballs,
>> but it's possible that deployment scanning isn't turned on by default.
>>
>> To turn this on, open the file:
>> $JBOSS_HOME/server/cspace/conf/jboss-service.xml
>>
>> and make sure the following line has the value "true":
>>
>> <attribute name="ScanEnabled">true</attribute>
>>
>> Restart the cspace server after this, and it should automagically deploy
>> the
>> war file when you update it.
>>
>
> _______________________________________________
> Talk mailing list
> Talk@lists.collectionspace.org
> http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org
>
JS
Joe Slag
Wed, May 25, 2011 9:37 PM
instead of refresh try initialize that should delete any existing vocab of
that name and completely rewrite it.
so: collectionspace/chain/vocabularies/{your vocab here}/initialize
I know I wrote some doc about vocab initialization - I will try and dig it
out when I am at work tomorrow
Chris
http://localhost:8180/collectionspace/chain/vocabularies/currency/initialize
does not seem to be doing the trick here. Anything you might dig up on
this tomorrow would be appreciated.
- Joe
On Wed, May 25, 2011 at 4:20 PM, Chris Martin <csm22@caret.cam.ac.uk> wrote:
> instead of refresh try initialize that should delete any existing vocab of
> that name and completely rewrite it.
> so: collectionspace/chain/vocabularies/{your vocab here}/initialize
>
> I know I wrote some doc about vocab initialization - I will try and dig it
> out when I am at work tomorrow
>
> Chris
>
>