talk@lists.collectionspace.org

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

View all threads

deploy mvn error

AR
Aron Roberts
Tue, Aug 20, 2013 10:25 PM

Hi Al,

If it matters, I looked in my settings.xml file and get a big chunk of this: ^@^@^@^@^@^@^.

It's possible that stray characters in any of the merge files:
settings.xml, local-omca-settings.xml, and/or
omca-collectionobject.xml, might be fouling up the merge attempts.  If
you have a way of finding and removing them - such as using BBEdit's
or TextWrangler's (Mac OS X text editors) "Zap Gremlins" feature -
that might help.  (That big chunk of ^@ could well be part of the
issue.)

Using TextWrangler, for instance:
http://indesignsecrets.com/zap-gremlins-in-problem-data-merge-files.php

Aron

On Tue, Aug 20, 2013 at 3:12 PM, Al Bersch abersch@museumca.org wrote:

Hi Aron,

Thanks so much for addressing these questions.

I entered the language at the end of your email into my
/tomcat-main/src/main/resources/omca-tenant.xml file, like this:

<cspace-config tenantname="omca">
     <version>11</version>
     <!-- Note: omca-collectionobject.xml should not appear in the

'include' line below -->
<!-- This line is for merging various settings files together. -->
<include src="settings.xml,local-omca-settings.xml" merge="xmlmerge.properties" strip-root="yes" />

     <spec>
             <include src="base-relations.xml"/>
             <include src="base-schemas.xml"/>

             <records>
                     <enum-blank>Please select a value</enum-blank>
                     <!-- Here's where you can indicate that you want to

merge in your own Cataloging record changes -->
<include
src="base-collectionobject.xml,omca-collectionobject.xml"
merge="xmlmerge.properties"/
<include src="base-procedure-acquisition.xml"/>
<include src="base-procedure-blobs.xml"/>
...

then re-created the omca-collectionobject.xml file (located at
tomcat-main/src/main/resources/tenants/omca) with this inside it:

+<record id="collection-object">
+

  • <section id="identificationInformation">
  •    <repeat id="responsibleDepartments" has-primary="yes">
    

<selector>object-identification-responsible-department</selector>

  •        <field id="responsibleDepartment" ui-search="repeatable"
    

mini="search"

  •         seperate_ui_container="true">
    

<selector>object-identification-responsible-department</selector>

  •            <options>
    
  •                <option id="">Please select a value</option>
    
  •                <option id="art">Art</option>
    
  •                <option id="history">History</option>
    
  •                <option id="science">Science</option>
    
  •                <option id="collections">Collections</option>
    
  •                <option id="education">Education</option>
    
  •                <option id="professionalservices">Professional
    

Services</option>

  •                <option id="multi">Multi</option>
    
  •            </options>
    
  •        </field>
    
  •    </repeat>
    
  •    <field id="collection" ui-search="repeatable"
    

seperate_ui_container="true">

  •        <selector>object-identification-collection</selector>
    
  •        <options>
    
  •           <option id="">Please select a value</option>
    
  •           <option id="art">Art</option>
    
  •           <option id="artandartifact">Art and Artifact</option>
    
  •           <option id="exhibit">Exhibit</option>
    
  •           <option id="history">History</option>
    
  •           <option id="scientomology">SCI-Entomology</option>
    
  •           <option id="scifineart">SCI-Fine Art</option>
    
  •           <option id="scigalleryspecimens">SCI-Gallery
    

Specimens</option>

  •           <option id="scigeology">SCI-Geology</option>
    
  •           <option id="sciherbarium">SCI-Herbarium</option>
    
  •           <option id="sciherpetology">SCI-Herpetology</option>
    
  •           <option id="sciicthyology">SCI-Icthyology</option>
    
  •           <option id="sciinvertebrates">SCI-Invertebrates</option>
    
  •           <option id="scilapidary">SCI-Lapidary</option>
    
  •           <option id="scimalacology">SCI-Malacology</option>
    
  •           <option id="scimammalogy">SCI-Mammalogy</option>
    
  •           <option id="scimiscellaneous">SCI-Miscellaneous</option>
    
  •           <option id="sciornithology">SCI-Ornithology</option>
    
  •           <option id="scipaleontology">SCI-Paleontology</option>
    
  •           <option id="sciphoto">SCI-Photo</option>
    
  •           <option id="scisnuffbottles">SCI-Snuff Bottles</option>
    
  •           <option id="specimen">Specimen</option>
    
  •        </options>
    
  •    </field>
    
  • </section>

+</record>

But alas, I'm still getting the same error message when I log into my
tenant.

If it matters, I looked in my settings.xml file and get a big chunk of this:
^@^@^@^@^@^@^.

do you see anything wrong here in the files I copied?

thanks,

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" aronroberts@gmail.com
To: "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Monday, August 19, 2013 5:39:58 PM

Subject: Re: [Talk] deploy mvn error

Hi Al,

My sincere apologies for these difficulties you've been encountering.

It looks like the problem is with merging settings.xml and
local-omca-settings.xml?

Yes, that certainly looks like the case.

This line appeared in part of the output from this error, in catalina.out:

2013-08-19 21:46:13,364 ERROR [http-8180-3] ... Message: Exception raised
during parsing
Stack :
org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61)

From looking at the Application layer's code at line 61 of
AssemblingParser.java:
https://github.com/collectionspace/application/blob/v3.3/csp-impl/src/main/java/org/collectionspace/chain/csp/config/impl/parser/AssemblingParser.java#L61
it appears the error is in reading or merging XML content, rather than in
not finding either of the two files to be merged, or in not being able to
read them as a result of insufficient access permissions or other
filesystem-related issues.

It appears that you might potentially be inadvertently trying to merge two
dissimilar things: a settings file for your tenant (which contains some
general administrative settings), together with some field-level settings
for a particular record type.

If you'd like to merge custom changes into the Cataloging record, such as
changing the contents of options lists, here's an example of how you can
specify that, as shown line 12 of the tenant 'includes' file for the UCJEPS
herbaria:

https://github.com/cspace-deployment/application/blob/ucjeps_3.2/tomcat-main/src/main/resources/ucjeps-tenant.xml#L12

Following that example, your
/tomcat-main/src/main/resources/omca-tenant.xml file might look something
like the following:

<cspace-config tenantname="omca"> <version>11</version> <!-- Note: omca-collectionobject.xml should not appear in the 'include' line below --> <!-- This line is for merging various settings files together. --> <include src="settings.xml,local-settings.xml" merge="xmlmerge-settings.properties" strip-root="yes"/> ... <records> <enum-blank>Please select a value</enum-blank> <!-- Here's where you can indicate that you want to merge in your own Cataloging record changes --> <include src="base-collectionobject.xml,omca-collectionobject.xml" merge="xmlmerge.properties"/> ...

Aron

On Mon, Aug 19, 2013 at 4:28 PM, Al Bersch abersch@museumca.org wrote:

Hi Aron,

Thanks so much again for your continued assistance. And for the plug for
using github as a backup resource - I'll do that, and also apologize in
advance for the cut-and-paste text below.

I installed DiffMerge, but I'm not sure what to compare, since the file I
added to the omca tenant (omca-collectionobject.xml), wasn't there in the
previous snapshot. I think I'm a little confused.

I looked in the cspace-app.log and catalina.out (can you tell me where I
might find catalina.(today'sdate).log?) and here are some snippets, first
from cspace-app.log:

2013-08-19 21:46:13,363 WARN  [http-8180-3]
[org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:218]
Could not merge the include files: settings.xml,local-omca-settings.xml
2013-08-19 21:46:13,364 ERROR [http-8180-3]
[org.collectionspace.chain.csp.config.impl.parser.ConfigLoadingMessagesImpl:16]
Message: Exception raised during parsing

Stack :
org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61)
org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse (62)
org.collectionspace.csp.container.impl.CSPManagerImpl.configure (54)
org.collectionspace.chain.controller.TenantServlet.load_config (156)
org.collectionspace.chain.controller.TenantServlet.setup (179)
org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant
(117)
org.collectionspace.chain.controller.TenantUIServlet.service (568)
javax.servlet.http.HttpServlet.service (717)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (290)
org.apache.catalina.core.ApplicationFilterChain.doFilter (206)
org.collectionspace.chain.controller.filters.PerflogFilter.doFilter (33)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235)
org.apache.catalina.core.ApplicationFilterChain.doFilter (206)
org.collectionspace.chain.controller.filters.CharSetFilter.doFilter (99)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235)
org.apache.catalina.core.ApplicationFilterChain.doFilter (206)
org.apache.catalina.core.StandardWrapperValve.invoke (233)
org.apache.catalina.core.StandardContextValve.invoke (191)
org.apache.catalina.core.StandardHostValve.invoke (127)
org.apache.catalina.valves.ErrorReportValve.invoke (102)
org.apache.catalina.valves.AccessLogValve.invoke (589)
org.apache.catalina.core.StandardEngineValve.invoke (109)
org.apache.catalina.connector.CoyoteAdapter.service (291)
org.apache.coyote.http11.Http11Processor.process (859)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
(602)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run (489)
java.lang.Thread.run (724)

CAUSED BY
Message: Could not load source

then from catalina.out:

2013-08-19 17:49:25,334 ERROR [main]
[org.collectionspace.services.common.config.ConfigUtils:51] No domain name
was specified on call to getRepositoryName() method.2013-08-19 17:49:25,334
ERROR [main] [org.collectionspace.services.common.config.ConfigUtils:51] No
domain name was specified on call to getRepositoryName() method.2013-08-19
17:49:25,334 ERROR [main]
[org.collectionspace.services.common.config.ConfigUtils:51] No domain name
was specified on call to getRepositoryName() method.[INFO] Starting up the
CollectionSpace Services' JAX-RS application.Static initializtion of:
org.collectionspace.services.common.security.SecurityInterceptor[INFO]
CollectionSpace Services' JAX-RS application started.2013-08-19 17:49:27,339
(0) [http-8180-4] INFO
org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:
XMLMerge result output to:
/usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19
17:49:29,695 (2356) [http-8180-2] INFO
org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:
XMLMerge result output to:
/usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19
17:49:29,732 (2393) [net.sf.ehcache.CacheManager@23aeae74] INFO
net.sf.ehcache.util.UpdateChecker: New update(s) found: 2.6.5
[http://www.terracotta.org/confluence/display/release/Release+Notes+Ehcache+Core+2.6].
Please check http://ehcache.org for the latest version.Could not get session
from CSPACESESSID cookie with value:
31b6c5daf4d4180636604cb25ac9f75f2013-08-19 17:49:47,810 WARN  [http-8180-7]
[org.collectionspace.services.common.security.SecurityInterceptor:358]
Attempt to logout when Nuxeo login context was null2013-08-19 17:49:47,953
WARN  [http-8180-7]
[org.springframework.security.web.context.HttpSessionSecurityContextRepository:396]
Failed to create a session, as response has been committed. Unable to store
SecurityContext.2013-08-19 17:49:48,765 WARN  [http-8180-7]
[org.collectionspace.services.common.security.SecurityInterceptor:358]
Attempt to logout when Nuxeo login context was null2013-08-19 17:49:48,773
WARN  [http-8180-7]
[org.springframework.security.web.context.HttpSessionSecurityContextRepository:396]
Failed to create a session, as response has been committed. Unable to store
SecurityContext.2013-08-19 21:07:17,771 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2191] The web application
[/collectionspace] appears to have started a thread named
[net.sf.ehcache.CacheManager@23aeae74] but has failed to stop it. This is
very likely to create a memory leak.2013-08-19 21:07:17,772 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2191] The web application
[/collectionspace] appears to have started a thread named
[MultiThreadedHttpConnectionManager cleanup] but has failed to stop it. This
is very likely to create a memory leak.2013-08-19 21:07:17,780 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2453] The web application
[/collectionspace] created a ThreadLocal with key of type
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a value of
type [java.util.HashMap] (value [{}]) but failed to remove it when the web
application was stopped. This is very likely to create a memory
leak.2013-08-19 21:07:17,781 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2453] The web application
[/collectionspace] created a ThreadLocal with key of type
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a value of
type [java.util.HashMap] (value [{}]) but failed to remove it when the web
application was stopped. This is very likely to create a memory
leak.2013-08-19 21:09:34,685 (0) [http-8180-4] WARN
org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:
Could not merge the include files: settings.xml,local-omca-settings.xml

It looks like the problem is with merging settings.xml and
local-omca-settings.xml?

I've tried a second time to create the configuration change in
omca-collectionobject.xml (a newly created xml file with only this snippet
in it:

+<record id="collection-object">
+

  • <section id="identificationInformation">
  •    <repeat id="responsibleDepartments" has-primary="yes">
    

<selector>object-identification-responsible-department</selector>

  •        <field id="responsibleDepartment" ui-search="repeatable"
    

mini="search"

  •         seperate_ui_container="true">
    

<selector>object-identification-responsible-department</selector>

  •            <options>
    
  •                <option id="">Please select a value</option>
    
  •                <option id="art">Art</option>
    
  •                <option id="history">History</option>
    
  •                <option id="science">Science</option>
    
  •                <option id="collections">Collections</option>
    
  •                <option id="education">Education</option>
    
  •                <option id="professionalservices">Professional
    

Services</option>

  •                <option id="multi">Multi</option>
    
  •            </options>
    
  •        </field>
    
  •    </repeat>
    
  •    <field id="collection" ui-search="repeatable"
    

seperate_ui_container="true">

  •        <selector>object-identification-collection</selector>
    
  •        <options>
    
  •           <option id="">Please select a value</option>
    
  •           <option id="art">Art</option>
    
  •           <option id="artandartifact">Art and Artifact</option>
    
  •           <option id="exhibit">Exhibit</option>
    
  •           <option id="history">History</option>
    
  •           <option id="scientomology">SCI-Entomology</option>
    
  •           <option id="scifineart">SCI-Fine Art</option>
    
  •           <option id="scigalleryspecimens">SCI-Gallery
    

Specimens</option>

  •           <option id="scigeology">SCI-Geology</option>
    
  •           <option id="sciherbarium">SCI-Herbarium</option>
    
  •           <option id="sciherpetology">SCI-Herpetology</option>
    
  •           <option id="sciicthyology">SCI-Icthyology</option>
    
  •           <option id="sciinvertebrates">SCI-Invertebrates</option>
    
  •           <option id="scilapidary">SCI-Lapidary</option>
    
  •           <option id="scimalacology">SCI-Malacology</option>
    
  •           <option id="scimammalogy">SCI-Mammalogy</option>
    
  •           <option id="scimiscellaneous">SCI-Miscellaneous</option>
    
  •           <option id="sciornithology">SCI-Ornithology</option>
    
  •           <option id="scipaleontology">SCI-Paleontology</option>
    
  •           <option id="sciphoto">SCI-Photo</option>
    
  •           <option id="scisnuffbottles">SCI-Snuff Bottles</option>
    
  •           <option id="specimen">Specimen</option>
    
  •        </options>
    
  •    </field>
    
  • </section>

+</record>

then according to your last email, I ran "mvn clean install -DskipTest"
rather than "mvn deploy -DskipTests". I ran this in the application layer
folder called "application" that contains the pom.xml file. In my path it
looks like /home/root/application-source/application/. Then, do I understand
I also need to run "ant deploy"? I wasn't able to run this in the same
folder - I got an error saying this is no build file.

I'm going off your previous instructions, as well as the documentation on
the wiki for customizing the application layer:

Hi Becky and Al,
One more set of notes on making 'starting out' customizations,
below: this one a customization of options in dropdown menus.
Aron
(Recommendation: start the CollectionSpace server before making the
following changes.  This will help ensure those changes are made
'live.')

  • An example of how to replace the default sets of options in the
    dropdown menus for the Responsible Department and OMCA Collection
    fields.
    The existing documentation on updating these option lists is
    confusing, and wildly out of date; we expect to be updating it in the
    near future.  The customization method shown here as an example
    reflects recently-added 'merge' capabilities that allow you to simply
    replicate the block of configuration you want to customize, within a
    separate file for your own museum; it will override the corresponding
    configuration block in the default settings:
    Actual change(s) made, within the source code tree for
    CollectionSpace's Application layer:

https://github.com/aronr/application/commit/b7a47d94fc6d44d0cad74f6444710a35373291c7
You can compare this to the default configuration file for the
Cataloging record, in which the default options for those two dropdown
menus appear:

https://github.com/aronr/application/blob/b7a47d94fc6d44d0cad74f6444710a35373291c7/tomcat-main/src/main/resources/defaults/base-collectionobject.xml#L112
To copy (deploy) these changes to the server folder, enter the
following at a command prompt, from within the top-level folder of the
Application source code tree:
mvn deploy -DskipTests

Sorry I'm not getting this! Do you have any ideas?

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" aronroberts@gmail.com
To: "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Friday, August 16, 2013 1:28:48 PM

Subject: Re: [Talk] deploy mvn error

The key is likely this snippet, from near the beginning of that long and
singularly unhelpful chain of messages:
"org.collectionspace.chain.csp.config.ConfigException: Error loading
config"

There may have been an error made in whatever configuration file, or
files, were modified.  After they were deployed (copied) to the server, when
the Application layer read them, it got confused and barfed out this long
stack trace.

Typically, this means the file(s), after being modified, weren't
well-formed XML - perhaps an ending tag was left out somewhere? - or they
didn't conform to the Application layer's expectation of what 'tags' (XML
elements) are expected, in which hierarchical locations within the file.

Yes, reverting to a snapshot and re-deploying (via 'mvn clean install
-DskipTests') and restarting Tomcat, should resolve the issue.  You might
also try, however, using a utility app that can show you differences between
two files - your current version and your snapshot - and see if the error is
readily made apparent by looking at those changes in that 'diff' view.  (If
you're using Mac OS X, there's a list of such apps at
http://apple.stackexchange.com/a/87188)

It's also worth checking the current cspace-app.log and catalina.{today's
date}.log to see if there may be any log message specifically pinpointing
the configuration error.

Aron

On Fri, Aug 16, 2013 at 1:16 PM, Al Bersch abersch@museumca.org wrote:

Hi again,

Ok, I think I must have messed up somewhere when changing the files in
the application layer. When I navigated to our tenant, the login screen is
blank except for a place to put a user name and password. when I submit my
password, I get this message:  Any idea what I did wrong? Thanks!

I have a snapshot prior to the changes in the application layer, so I
can always go back in time and try again.

Al

HTTP Status 400 -
org.collectionspace.chain.controller.BadRequestException: Cannot initialise
CSPs org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading config.
See messages for details: summary Exception raised during parsing at
org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185)
at
org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117)
at
org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:724) Caused by:
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading config.
See messages for details: summary Exception raised during parsing at
org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64)
at
org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156)
at
org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179)
... 22 more Caused by: org.collectionspace.chain.csp.config.ConfigException:
Error loading config. See messages for details: summary Exception raised
during parsing at
org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78)
at
org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74)
at
org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54)
... 24 more


type Status report

message org.collectionspace.chain.controller.BadRequestException: Cannot
initialise CSPs org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading config.
See messages for details: summary Exception raised during parsing at
org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185)
at
org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117)
at
org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:724) Caused by:
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading config.
See messages for details: summary Exception raised during parsing at
org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64)
at
org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156)
at
org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179)
... 22 more Caused by: org.collectionspace.chain.csp.config.ConfigException:
Error loading config. See messages for details: summary Exception raised
during parsing at
org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78)
at
org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74)
at
org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54)
... 24 more

description The request sent by the client was syntactically incorrect
(org.collectionspace.chain.controller.BadRequestException: Cannot initialise
CSPs org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading config.
See messages for details: summary Exception raised during parsing at
org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185)
at
org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117)
at
org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:724) Caused by:
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading config.
See messages for details: summary Exception raised during parsing at
org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64)
at
org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156)
at
org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179)
... 22 more Caused by: org.collectionspace.chain.csp.config.ConfigException:
Error loading config. See messages for details: summary Exception raised
during parsing at
org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78)
at
org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74)
at
org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54)
... 24 more ).

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


From: "Aron Roberts" aronroberts@gmail.com
To: "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Friday, August 16, 2013 12:58:56 PM
Subject: Re: [Talk] deploy mvn error

Hi Al,

You likely will have success with 'mvn clean install -DskipTests' when
building and deploying the App layer with your dropdown list changes, rather
than 'mvn deploy -DskipTests'.

It's a bit confusing (and I hope I don't need to keep repeating this
:-), but CollectionSpace Services layer uses Maven to build artifacts and
Ant buildfiles to deploy (copy) them to the server (hence 'mvn clean
install' followed by 'ant deploy'), while the Application and UI layers use
Maven ('mvn install') for both tasks.  There are some historical and
technical reasons for this difference, not worth going into ...

Aron

On Fri, Aug 16, 2013 at 12:49 PM, Al Bersch abersch@museumca.org
wrote:

Hello all,

I changed our dropdown lists in Department and Collection in the
application layer source code, and when I ran mvn deploy -DskipTests I get
this error:

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to configure plugin parameters for:
org.apache.maven.plugins:maven-deploy-plugin:2.4

check that the following section of the pom.xml is present and correct:

<distributionManagement> <!-- use the following if you're not using a snapshot version. --> <repository> <id>repo</id> <name>Repository Name</name> <url>scp://host/path/to/repo</url> </repository> <!-- use the following if you ARE using a snapshot version. --> <snapshotRepository> <id>repo</id> <name>Repository Name</name> <url>scp://host/path/to/repo</url> </snapshotRepository> </distributionManagement>

Cause: Class 'org.apache.maven.artifact.repository.ArtifactRepository'
cannot be instantiated

I looked in the pom.xml, and found this:

<!-- The CollectionSpace public Maven repository for "snapshot" artifacts --> <repositories> <repository> <id>libs-snapshot-local</id> <name>libs-snapshot-local</name>

<url>http://nightly.collectionspace.org:8081/artifactory/libs-snapshot-local</url>
<snapshots>
<enabled>true</enabled>
</snapshots>

I'm wondering, which repository setting should I use (snapshot or not
snapshot)? Our installation is on a virtual server in linode.

And, does anyone know where I should set the path to our repository?
I'm guessing that the error is party due to the url being mapped to
nightly.collectionspace.org.

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, > If it matters, I looked in my settings.xml file and get a big chunk of this: ^@^@^@^@^@^@^. It's possible that stray characters in any of the merge files: settings.xml, local-omca-settings.xml, and/or omca-collectionobject.xml, might be fouling up the merge attempts. If you have a way of finding and removing them - such as using BBEdit's or TextWrangler's (Mac OS X text editors) "Zap Gremlins" feature - that might help. (That big chunk of ^@ could well be part of the issue.) Using TextWrangler, for instance: http://indesignsecrets.com/zap-gremlins-in-problem-data-merge-files.php Aron On Tue, Aug 20, 2013 at 3:12 PM, Al Bersch <abersch@museumca.org> wrote: > Hi Aron, > > Thanks so much for addressing these questions. > > I entered the language at the end of your email into my > /tomcat-main/src/main/resources/omca-tenant.xml file, like this: > > <cspace-config tenantname="omca"> > > <version>11</version> > <!-- Note: omca-collectionobject.xml should not appear in the > 'include' line below --> > <!-- This line is for merging various settings files together. --> > <include src="settings.xml,local-omca-settings.xml" > merge="xmlmerge.properties" > strip-root="yes" /> > > <spec> > <include src="base-relations.xml"/> > <include src="base-schemas.xml"/> > > <records> > <enum-blank>Please select a value</enum-blank> > <!-- Here's where you can indicate that you want to > merge in your own Cataloging record changes --> > <include > src="base-collectionobject.xml,omca-collectionobject.xml" > merge="xmlmerge.properties"/ > <include src="base-procedure-acquisition.xml"/> > <include src="base-procedure-blobs.xml"/> > ... > > then re-created the omca-collectionobject.xml file (located at > tomcat-main/src/main/resources/tenants/omca) with this inside it: > > +<record id="collection-object"> > + > + <section id="identificationInformation"> > + <repeat id="responsibleDepartments" has-primary="yes"> > + > <selector>object-identification-responsible-department</selector> > + <field id="responsibleDepartment" ui-search="repeatable" > mini="search" > + seperate_ui_container="true"> > + > <selector>object-identification-responsible-department</selector> > + <options> > + <option id="">Please select a value</option> > + <option id="art">Art</option> > + <option id="history">History</option> > + <option id="science">Science</option> > + <option id="collections">Collections</option> > + <option id="education">Education</option> > + <option id="professionalservices">Professional > Services</option> > + <option id="multi">Multi</option> > + </options> > + </field> > + </repeat> > + <field id="collection" ui-search="repeatable" > seperate_ui_container="true"> > + <selector>object-identification-collection</selector> > + <options> > + <option id="">Please select a value</option> > + <option id="art">Art</option> > + <option id="artandartifact">Art and Artifact</option> > + <option id="exhibit">Exhibit</option> > + <option id="history">History</option> > + <option id="scientomology">SCI-Entomology</option> > + <option id="scifineart">SCI-Fine Art</option> > + <option id="scigalleryspecimens">SCI-Gallery > Specimens</option> > + <option id="scigeology">SCI-Geology</option> > + <option id="sciherbarium">SCI-Herbarium</option> > + <option id="sciherpetology">SCI-Herpetology</option> > + <option id="sciicthyology">SCI-Icthyology</option> > + <option id="sciinvertebrates">SCI-Invertebrates</option> > + <option id="scilapidary">SCI-Lapidary</option> > + <option id="scimalacology">SCI-Malacology</option> > + <option id="scimammalogy">SCI-Mammalogy</option> > + <option id="scimiscellaneous">SCI-Miscellaneous</option> > + <option id="sciornithology">SCI-Ornithology</option> > + <option id="scipaleontology">SCI-Paleontology</option> > + <option id="sciphoto">SCI-Photo</option> > + <option id="scisnuffbottles">SCI-Snuff Bottles</option> > + <option id="specimen">Specimen</option> > + </options> > + </field> > + </section> > + > +</record> > > But alas, I'm still getting the same error message when I log into my > tenant. > > If it matters, I looked in my settings.xml file and get a big chunk of this: > ^@^@^@^@^@^@^. > > do you see anything wrong here in the files I copied? > > thanks, > > 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" <aronroberts@gmail.com> > To: "Al Bersch" <abersch@museumca.org> > Cc: "talk" <talk@lists.collectionspace.org> > Sent: Monday, August 19, 2013 5:39:58 PM > > Subject: Re: [Talk] deploy mvn error > > Hi Al, > > My sincere apologies for these difficulties you've been encountering. > >> It looks like the problem is with merging settings.xml and >> local-omca-settings.xml? > > Yes, that certainly looks like the case. > > This line appeared in part of the output from this error, in catalina.out: > >> 2013-08-19 21:46:13,364 ERROR [http-8180-3] ... Message: Exception raised >> during parsing >> Stack : >> org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61) > > From looking at the Application layer's code at line 61 of > AssemblingParser.java: > https://github.com/collectionspace/application/blob/v3.3/csp-impl/src/main/java/org/collectionspace/chain/csp/config/impl/parser/AssemblingParser.java#L61 > it appears the error is in reading or merging XML content, rather than in > not finding either of the two files to be merged, or in not being able to > read them as a result of insufficient access permissions or other > filesystem-related issues. > > It appears that you might potentially be inadvertently trying to merge two > dissimilar things: a settings file for your tenant (which contains some > general administrative settings), together with some field-level settings > for a particular record type. > > If you'd like to merge custom changes into the Cataloging record, such as > changing the contents of options lists, here's an example of how you can > specify that, as shown line 12 of the tenant 'includes' file for the UCJEPS > herbaria: > > https://github.com/cspace-deployment/application/blob/ucjeps_3.2/tomcat-main/src/main/resources/ucjeps-tenant.xml#L12 > > Following that example, your > /tomcat-main/src/main/resources/omca-tenant.xml file might look something > like the following: > > <cspace-config tenantname="omca"> > <version>11</version> > <!-- Note: omca-collectionobject.xml should not appear in the 'include' > line below --> > <!-- This line is for merging various settings files together. --> > <include src="settings.xml,local-settings.xml" > merge="xmlmerge-settings.properties" strip-root="yes"/> > ... > <records> > <enum-blank>Please select a value</enum-blank> > <!-- Here's where you can indicate that you want to merge in your own > Cataloging record changes --> > <include src="base-collectionobject.xml,omca-collectionobject.xml" > merge="xmlmerge.properties"/> > ... > > Aron > > On Mon, Aug 19, 2013 at 4:28 PM, Al Bersch <abersch@museumca.org> wrote: >> >> Hi Aron, >> >> Thanks so much again for your continued assistance. And for the plug for >> using github as a backup resource - I'll do that, and also apologize in >> advance for the cut-and-paste text below. >> >> I installed DiffMerge, but I'm not sure what to compare, since the file I >> added to the omca tenant (omca-collectionobject.xml), wasn't there in the >> previous snapshot. I think I'm a little confused. >> >> I looked in the cspace-app.log and catalina.out (can you tell me where I >> might find catalina.(today'sdate).log?) and here are some snippets, first >> from cspace-app.log: >> >> 2013-08-19 21:46:13,363 WARN [http-8180-3] >> [org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:218] >> Could not merge the include files: settings.xml,local-omca-settings.xml >> 2013-08-19 21:46:13,364 ERROR [http-8180-3] >> [org.collectionspace.chain.csp.config.impl.parser.ConfigLoadingMessagesImpl:16] >> Message: Exception raised during parsing >> >> Stack : >> org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61) >> org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse (62) >> org.collectionspace.csp.container.impl.CSPManagerImpl.configure (54) >> org.collectionspace.chain.controller.TenantServlet.load_config (156) >> org.collectionspace.chain.controller.TenantServlet.setup (179) >> org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant >> (117) >> org.collectionspace.chain.controller.TenantUIServlet.service (568) >> javax.servlet.http.HttpServlet.service (717) >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (290) >> org.apache.catalina.core.ApplicationFilterChain.doFilter (206) >> org.collectionspace.chain.controller.filters.PerflogFilter.doFilter (33) >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235) >> org.apache.catalina.core.ApplicationFilterChain.doFilter (206) >> org.collectionspace.chain.controller.filters.CharSetFilter.doFilter (99) >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235) >> org.apache.catalina.core.ApplicationFilterChain.doFilter (206) >> org.apache.catalina.core.StandardWrapperValve.invoke (233) >> org.apache.catalina.core.StandardContextValve.invoke (191) >> org.apache.catalina.core.StandardHostValve.invoke (127) >> org.apache.catalina.valves.ErrorReportValve.invoke (102) >> org.apache.catalina.valves.AccessLogValve.invoke (589) >> org.apache.catalina.core.StandardEngineValve.invoke (109) >> org.apache.catalina.connector.CoyoteAdapter.service (291) >> org.apache.coyote.http11.Http11Processor.process (859) >> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process >> (602) >> org.apache.tomcat.util.net.JIoEndpoint$Worker.run (489) >> java.lang.Thread.run (724) >> >> CAUSED BY >> Message: Could not load source >> >> >> >> then from catalina.out: >> >> 2013-08-19 17:49:25,334 ERROR [main] >> [org.collectionspace.services.common.config.ConfigUtils:51] No domain name >> was specified on call to getRepositoryName() method.2013-08-19 17:49:25,334 >> ERROR [main] [org.collectionspace.services.common.config.ConfigUtils:51] No >> domain name was specified on call to getRepositoryName() method.2013-08-19 >> 17:49:25,334 ERROR [main] >> [org.collectionspace.services.common.config.ConfigUtils:51] No domain name >> was specified on call to getRepositoryName() method.[INFO] Starting up the >> CollectionSpace Services' JAX-RS application.Static initializtion of: >> org.collectionspace.services.common.security.SecurityInterceptor[INFO] >> CollectionSpace Services' JAX-RS application started.2013-08-19 17:49:27,339 >> (0) [http-8180-4] INFO >> org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler: >> XMLMerge result output to: >> /usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19 >> 17:49:29,695 (2356) [http-8180-2] INFO >> org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler: >> XMLMerge result output to: >> /usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19 >> 17:49:29,732 (2393) [net.sf.ehcache.CacheManager@23aeae74] INFO >> net.sf.ehcache.util.UpdateChecker: New update(s) found: 2.6.5 >> [http://www.terracotta.org/confluence/display/release/Release+Notes+Ehcache+Core+2.6]. >> Please check http://ehcache.org for the latest version.Could not get session >> from CSPACESESSID cookie with value: >> 31b6c5daf4d4180636604cb25ac9f75f2013-08-19 17:49:47,810 WARN [http-8180-7] >> [org.collectionspace.services.common.security.SecurityInterceptor:358] >> Attempt to logout when Nuxeo login context was null2013-08-19 17:49:47,953 >> WARN [http-8180-7] >> [org.springframework.security.web.context.HttpSessionSecurityContextRepository:396] >> Failed to create a session, as response has been committed. Unable to store >> SecurityContext.2013-08-19 17:49:48,765 WARN [http-8180-7] >> [org.collectionspace.services.common.security.SecurityInterceptor:358] >> Attempt to logout when Nuxeo login context was null2013-08-19 17:49:48,773 >> WARN [http-8180-7] >> [org.springframework.security.web.context.HttpSessionSecurityContextRepository:396] >> Failed to create a session, as response has been committed. Unable to store >> SecurityContext.2013-08-19 21:07:17,771 ERROR >> [ContainerBackgroundProcessor[StandardEngine[Catalina]]] >> [org.apache.catalina.loader.WebappClassLoader:2191] The web application >> [/collectionspace] appears to have started a thread named >> [net.sf.ehcache.CacheManager@23aeae74] but has failed to stop it. This is >> very likely to create a memory leak.2013-08-19 21:07:17,772 ERROR >> [ContainerBackgroundProcessor[StandardEngine[Catalina]]] >> [org.apache.catalina.loader.WebappClassLoader:2191] The web application >> [/collectionspace] appears to have started a thread named >> [MultiThreadedHttpConnectionManager cleanup] but has failed to stop it. This >> is very likely to create a memory leak.2013-08-19 21:07:17,780 ERROR >> [ContainerBackgroundProcessor[StandardEngine[Catalina]]] >> [org.apache.catalina.loader.WebappClassLoader:2453] The web application >> [/collectionspace] created a ThreadLocal with key of type >> [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value >> [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a value of >> type [java.util.HashMap] (value [{}]) but failed to remove it when the web >> application was stopped. This is very likely to create a memory >> leak.2013-08-19 21:07:17,781 ERROR >> [ContainerBackgroundProcessor[StandardEngine[Catalina]]] >> [org.apache.catalina.loader.WebappClassLoader:2453] The web application >> [/collectionspace] created a ThreadLocal with key of type >> [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value >> [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a value of >> type [java.util.HashMap] (value [{}]) but failed to remove it when the web >> application was stopped. This is very likely to create a memory >> leak.2013-08-19 21:09:34,685 (0) [http-8180-4] WARN >> org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler: >> Could not merge the include files: settings.xml,local-omca-settings.xml >> >> >> It looks like the problem is with merging settings.xml and >> local-omca-settings.xml? >> >> I've tried a second time to create the configuration change in >> omca-collectionobject.xml (a newly created xml file with only this snippet >> in it: >> >> +<record id="collection-object"> >> + >> + <section id="identificationInformation"> >> + <repeat id="responsibleDepartments" has-primary="yes"> >> + >> <selector>object-identification-responsible-department</selector> >> + <field id="responsibleDepartment" ui-search="repeatable" >> mini="search" >> + seperate_ui_container="true"> >> + >> <selector>object-identification-responsible-department</selector> >> + <options> >> + <option id="">Please select a value</option> >> + <option id="art">Art</option> >> + <option id="history">History</option> >> + <option id="science">Science</option> >> + <option id="collections">Collections</option> >> + <option id="education">Education</option> >> + <option id="professionalservices">Professional >> Services</option> >> + <option id="multi">Multi</option> >> + </options> >> + </field> >> + </repeat> >> + <field id="collection" ui-search="repeatable" >> seperate_ui_container="true"> >> + <selector>object-identification-collection</selector> >> + <options> >> + <option id="">Please select a value</option> >> + <option id="art">Art</option> >> + <option id="artandartifact">Art and Artifact</option> >> + <option id="exhibit">Exhibit</option> >> + <option id="history">History</option> >> + <option id="scientomology">SCI-Entomology</option> >> + <option id="scifineart">SCI-Fine Art</option> >> + <option id="scigalleryspecimens">SCI-Gallery >> Specimens</option> >> + <option id="scigeology">SCI-Geology</option> >> + <option id="sciherbarium">SCI-Herbarium</option> >> + <option id="sciherpetology">SCI-Herpetology</option> >> + <option id="sciicthyology">SCI-Icthyology</option> >> + <option id="sciinvertebrates">SCI-Invertebrates</option> >> + <option id="scilapidary">SCI-Lapidary</option> >> + <option id="scimalacology">SCI-Malacology</option> >> + <option id="scimammalogy">SCI-Mammalogy</option> >> + <option id="scimiscellaneous">SCI-Miscellaneous</option> >> + <option id="sciornithology">SCI-Ornithology</option> >> + <option id="scipaleontology">SCI-Paleontology</option> >> + <option id="sciphoto">SCI-Photo</option> >> + <option id="scisnuffbottles">SCI-Snuff Bottles</option> >> + <option id="specimen">Specimen</option> >> + </options> >> + </field> >> + </section> >> + >> +</record> >> >> >> >> then according to your last email, I ran "mvn clean install -DskipTest" >> rather than "mvn deploy -DskipTests". I ran this in the application layer >> folder called "application" that contains the pom.xml file. In my path it >> looks like /home/root/application-source/application/. Then, do I understand >> I also need to run "ant deploy"? I wasn't able to run this in the same >> folder - I got an error saying this is no build file. >> >> I'm going off your previous instructions, as well as the documentation on >> the wiki for customizing the application layer: >> >> Hi Becky and Al, >> One more set of notes on making 'starting out' customizations, >> below: this one a customization of options in dropdown menus. >> Aron >> (Recommendation: start the CollectionSpace server before making the >> following changes. This will help ensure those changes are made >> 'live.') >> * An example of how to replace the default sets of options in the >> dropdown menus for the Responsible Department and OMCA Collection >> fields. >> The existing documentation on updating these option lists is >> confusing, and wildly out of date; we expect to be updating it in the >> near future. The customization method shown here as an example >> reflects recently-added 'merge' capabilities that allow you to simply >> replicate the block of configuration you want to customize, within a >> separate file for your own museum; it will override the corresponding >> configuration block in the default settings: >> Actual change(s) made, within the source code tree for >> CollectionSpace's Application layer: >> >> https://github.com/aronr/application/commit/b7a47d94fc6d44d0cad74f6444710a35373291c7 >> You can compare this to the default configuration file for the >> Cataloging record, in which the default options for those two dropdown >> menus appear: >> >> https://github.com/aronr/application/blob/b7a47d94fc6d44d0cad74f6444710a35373291c7/tomcat-main/src/main/resources/defaults/base-collectionobject.xml#L112 >> To copy (deploy) these changes to the server folder, enter the >> following at a command prompt, from within the top-level folder of the >> Application source code tree: >> mvn deploy -DskipTests >> >> >> >> Sorry I'm not getting this! Do you have any ideas? >> >> 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" <aronroberts@gmail.com> >> To: "Al Bersch" <abersch@museumca.org> >> Cc: "talk" <talk@lists.collectionspace.org> >> Sent: Friday, August 16, 2013 1:28:48 PM >> >> Subject: Re: [Talk] deploy mvn error >> >> The key is likely this snippet, from near the beginning of that long and >> singularly unhelpful chain of messages: >> "org.collectionspace.chain.csp.config.ConfigException: Error loading >> config" >> >> There may have been an error made in whatever configuration file, or >> files, were modified. After they were deployed (copied) to the server, when >> the Application layer read them, it got confused and barfed out this long >> stack trace. >> >> Typically, this means the file(s), after being modified, weren't >> well-formed XML - perhaps an ending tag was left out somewhere? - or they >> didn't conform to the Application layer's expectation of what 'tags' (XML >> elements) are expected, in which hierarchical locations within the file. >> >> Yes, reverting to a snapshot and re-deploying (via 'mvn clean install >> -DskipTests') and restarting Tomcat, should resolve the issue. You might >> also try, however, using a utility app that can show you differences between >> two files - your current version and your snapshot - and see if the error is >> readily made apparent by looking at those changes in that 'diff' view. (If >> you're using Mac OS X, there's a list of such apps at >> http://apple.stackexchange.com/a/87188) >> >> It's also worth checking the current cspace-app.log and catalina.{today's >> date}.log to see if there may be any log message specifically pinpointing >> the configuration error. >> >> Aron >> >> On Fri, Aug 16, 2013 at 1:16 PM, Al Bersch <abersch@museumca.org> wrote: >> > >> > Hi again, >> > >> > Ok, I think I must have messed up somewhere when changing the files in >> > the application layer. When I navigated to our tenant, the login screen is >> > blank except for a place to put a user name and password. when I submit my >> > password, I get this message: Any idea what I did wrong? Thanks! >> > >> > I have a snapshot prior to the changes in the application layer, so I >> > can always go back in time and try again. >> > >> > Al >> > >> > HTTP Status 400 - >> > org.collectionspace.chain.controller.BadRequestException: Cannot initialise >> > CSPs org.collectionspace.csp.api.core.CSPDependencyException: >> > org.collectionspace.chain.csp.config.ConfigException: Error loading config. >> > See messages for details: summary Exception raised during parsing at >> > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185) >> > at >> > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117) >> > at >> > org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568) >> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) >> > at >> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> > at >> > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33) >> > at >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> > at >> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> > at >> > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99) >> > at >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> > at >> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> > at >> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) >> > at >> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) >> > at >> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) >> > at >> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >> > at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589) >> > at >> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) >> > at >> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) >> > at >> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) >> > at >> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) >> > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) >> > at java.lang.Thread.run(Thread.java:724) Caused by: >> > org.collectionspace.csp.api.core.CSPDependencyException: >> > org.collectionspace.chain.csp.config.ConfigException: Error loading config. >> > See messages for details: summary Exception raised during parsing at >> > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64) >> > at >> > org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156) >> > at >> > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179) >> > ... 22 more Caused by: org.collectionspace.chain.csp.config.ConfigException: >> > Error loading config. See messages for details: summary Exception raised >> > during parsing at >> > org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78) >> > at >> > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74) >> > at >> > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54) >> > ... 24 more >> > >> > ________________________________ >> > >> > type Status report >> > >> > message org.collectionspace.chain.controller.BadRequestException: Cannot >> > initialise CSPs org.collectionspace.csp.api.core.CSPDependencyException: >> > org.collectionspace.chain.csp.config.ConfigException: Error loading config. >> > See messages for details: summary Exception raised during parsing at >> > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185) >> > at >> > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117) >> > at >> > org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568) >> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) >> > at >> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> > at >> > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33) >> > at >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> > at >> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> > at >> > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99) >> > at >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> > at >> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> > at >> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) >> > at >> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) >> > at >> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) >> > at >> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >> > at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589) >> > at >> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) >> > at >> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) >> > at >> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) >> > at >> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) >> > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) >> > at java.lang.Thread.run(Thread.java:724) Caused by: >> > org.collectionspace.csp.api.core.CSPDependencyException: >> > org.collectionspace.chain.csp.config.ConfigException: Error loading config. >> > See messages for details: summary Exception raised during parsing at >> > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64) >> > at >> > org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156) >> > at >> > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179) >> > ... 22 more Caused by: org.collectionspace.chain.csp.config.ConfigException: >> > Error loading config. See messages for details: summary Exception raised >> > during parsing at >> > org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78) >> > at >> > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74) >> > at >> > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54) >> > ... 24 more >> > >> > description The request sent by the client was syntactically incorrect >> > (org.collectionspace.chain.controller.BadRequestException: Cannot initialise >> > CSPs org.collectionspace.csp.api.core.CSPDependencyException: >> > org.collectionspace.chain.csp.config.ConfigException: Error loading config. >> > See messages for details: summary Exception raised during parsing at >> > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185) >> > at >> > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117) >> > at >> > org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568) >> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) >> > at >> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> > at >> > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33) >> > at >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> > at >> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> > at >> > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99) >> > at >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> > at >> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> > at >> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) >> > at >> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) >> > at >> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) >> > at >> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >> > at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589) >> > at >> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) >> > at >> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) >> > at >> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) >> > at >> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) >> > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) >> > at java.lang.Thread.run(Thread.java:724) Caused by: >> > org.collectionspace.csp.api.core.CSPDependencyException: >> > org.collectionspace.chain.csp.config.ConfigException: Error loading config. >> > See messages for details: summary Exception raised during parsing at >> > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64) >> > at >> > org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156) >> > at >> > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179) >> > ... 22 more Caused by: org.collectionspace.chain.csp.config.ConfigException: >> > Error loading config. See messages for details: summary Exception raised >> > during parsing at >> > org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78) >> > at >> > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74) >> > at >> > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54) >> > ... 24 more ). >> > >> > >> > Al Bersch >> > Digital Project Coordinator >> > Oakland Museum of California >> > 1000 Oak Street, Oakland, CA 94607 >> > abersch@museumca.org >> > 510-318-8468 >> > ________________________________ >> > From: "Aron Roberts" <aronroberts@gmail.com> >> > To: "Al Bersch" <abersch@museumca.org> >> > Cc: "talk" <talk@lists.collectionspace.org> >> > Sent: Friday, August 16, 2013 12:58:56 PM >> > Subject: Re: [Talk] deploy mvn error >> > >> > Hi Al, >> > >> > You likely will have success with 'mvn clean install -DskipTests' when >> > building and deploying the App layer with your dropdown list changes, rather >> > than 'mvn deploy -DskipTests'. >> > >> > It's a bit confusing (and I hope I don't need to keep repeating this >> > :-), but CollectionSpace Services layer uses Maven to build artifacts and >> > Ant buildfiles to deploy (copy) them to the server (hence 'mvn clean >> > install' followed by 'ant deploy'), while the Application and UI layers use >> > Maven ('mvn install') for both tasks. There are some historical and >> > technical reasons for this difference, not worth going into ... >> > >> > Aron >> > >> > >> > On Fri, Aug 16, 2013 at 12:49 PM, Al Bersch <abersch@museumca.org> >> > wrote: >> >> >> >> Hello all, >> >> >> >> I changed our dropdown lists in Department and Collection in the >> >> application layer source code, and when I ran mvn deploy -DskipTests I get >> >> this error: >> >> >> >> [ERROR] BUILD ERROR >> >> [INFO] >> >> ------------------------------------------------------------------------ >> >> [INFO] Failed to configure plugin parameters for: >> >> org.apache.maven.plugins:maven-deploy-plugin:2.4 >> >> >> >> check that the following section of the pom.xml is present and correct: >> >> >> >> <distributionManagement> >> >> <!-- use the following if you're not using a snapshot version. --> >> >> <repository> >> >> <id>repo</id> >> >> <name>Repository Name</name> >> >> <url>scp://host/path/to/repo</url> >> >> </repository> >> >> <!-- use the following if you ARE using a snapshot version. --> >> >> <snapshotRepository> >> >> <id>repo</id> >> >> <name>Repository Name</name> >> >> <url>scp://host/path/to/repo</url> >> >> </snapshotRepository> >> >> </distributionManagement> >> >> >> >> Cause: Class 'org.apache.maven.artifact.repository.ArtifactRepository' >> >> cannot be instantiated >> >> >> >> >> >> >> >> I looked in the pom.xml, and found this: >> >> >> >> <!-- The CollectionSpace public Maven repository for "snapshot" >> >> artifacts --> >> >> <repositories> >> >> <repository> >> >> <id>libs-snapshot-local</id> >> >> <name>libs-snapshot-local</name> >> >> >> >> <url>http://nightly.collectionspace.org:8081/artifactory/libs-snapshot-local</url> >> >> <snapshots> >> >> <enabled>true</enabled> >> >> </snapshots> >> >> >> >> >> >> I'm wondering, which repository setting should I use (snapshot or not >> >> snapshot)? Our installation is on a virtual server in linode. >> >> >> >> And, does anyone know where I should set the path to our repository? >> >> I'm guessing that the error is party due to the url being mapped to >> >> nightly.collectionspace.org. >> >> >> >> 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
Tue, Aug 20, 2013 10:34 PM

If it's easiest to use command line tools - you're using an Ubuntu
system, yes? - you might try this 'sed' command to remove those
specific stray characters:

http://superuser.com/questions/507267/how-to-grep-for-special-character-nul

If the merge still fails, you might try a more thorough cleaning of
each file; there's an example for doing this (stripping out all but a
subset of vanilla, printable USASCII characters from a file) by using
a 'tr' command under "Removing all undesirable characters at once" in:

http://alvinalexander.com/unix/edu/un010011/

On Tue, Aug 20, 2013 at 3:25 PM, Aron Roberts aronroberts@gmail.com wrote:

Hi Al,

If it matters, I looked in my settings.xml file and get a big chunk of this: ^@^@^@^@^@^@^.

It's possible that stray characters in any of the merge files:
settings.xml, local-omca-settings.xml, and/or
omca-collectionobject.xml, might be fouling up the merge attempts.  If
you have a way of finding and removing them - such as using BBEdit's
or TextWrangler's (Mac OS X text editors) "Zap Gremlins" feature -
that might help.  (That big chunk of ^@ could well be part of the
issue.)

Using TextWrangler, for instance:
http://indesignsecrets.com/zap-gremlins-in-problem-data-merge-files.php

Aron

On Tue, Aug 20, 2013 at 3:12 PM, Al Bersch abersch@museumca.org wrote:

Hi Aron,

Thanks so much for addressing these questions.

I entered the language at the end of your email into my
/tomcat-main/src/main/resources/omca-tenant.xml file, like this:

<cspace-config tenantname="omca">
     <version>11</version>
     <!-- Note: omca-collectionobject.xml should not appear in the

'include' line below -->
<!-- This line is for merging various settings files together. -->
<include src="settings.xml,local-omca-settings.xml" merge="xmlmerge.properties" strip-root="yes" />

     <spec>
             <include src="base-relations.xml"/>
             <include src="base-schemas.xml"/>

             <records>
                     <enum-blank>Please select a value</enum-blank>
                     <!-- Here's where you can indicate that you want to

merge in your own Cataloging record changes -->
<include
src="base-collectionobject.xml,omca-collectionobject.xml"
merge="xmlmerge.properties"/
<include src="base-procedure-acquisition.xml"/>
<include src="base-procedure-blobs.xml"/>
...

then re-created the omca-collectionobject.xml file (located at
tomcat-main/src/main/resources/tenants/omca) with this inside it:

+<record id="collection-object">
+

  • <section id="identificationInformation">
  •    <repeat id="responsibleDepartments" has-primary="yes">
    

<selector>object-identification-responsible-department</selector>

  •        <field id="responsibleDepartment" ui-search="repeatable"
    

mini="search"

  •         seperate_ui_container="true">
    

<selector>object-identification-responsible-department</selector>

  •            <options>
    
  •                <option id="">Please select a value</option>
    
  •                <option id="art">Art</option>
    
  •                <option id="history">History</option>
    
  •                <option id="science">Science</option>
    
  •                <option id="collections">Collections</option>
    
  •                <option id="education">Education</option>
    
  •                <option id="professionalservices">Professional
    

Services</option>

  •                <option id="multi">Multi</option>
    
  •            </options>
    
  •        </field>
    
  •    </repeat>
    
  •    <field id="collection" ui-search="repeatable"
    

seperate_ui_container="true">

  •        <selector>object-identification-collection</selector>
    
  •        <options>
    
  •           <option id="">Please select a value</option>
    
  •           <option id="art">Art</option>
    
  •           <option id="artandartifact">Art and Artifact</option>
    
  •           <option id="exhibit">Exhibit</option>
    
  •           <option id="history">History</option>
    
  •           <option id="scientomology">SCI-Entomology</option>
    
  •           <option id="scifineart">SCI-Fine Art</option>
    
  •           <option id="scigalleryspecimens">SCI-Gallery
    

Specimens</option>

  •           <option id="scigeology">SCI-Geology</option>
    
  •           <option id="sciherbarium">SCI-Herbarium</option>
    
  •           <option id="sciherpetology">SCI-Herpetology</option>
    
  •           <option id="sciicthyology">SCI-Icthyology</option>
    
  •           <option id="sciinvertebrates">SCI-Invertebrates</option>
    
  •           <option id="scilapidary">SCI-Lapidary</option>
    
  •           <option id="scimalacology">SCI-Malacology</option>
    
  •           <option id="scimammalogy">SCI-Mammalogy</option>
    
  •           <option id="scimiscellaneous">SCI-Miscellaneous</option>
    
  •           <option id="sciornithology">SCI-Ornithology</option>
    
  •           <option id="scipaleontology">SCI-Paleontology</option>
    
  •           <option id="sciphoto">SCI-Photo</option>
    
  •           <option id="scisnuffbottles">SCI-Snuff Bottles</option>
    
  •           <option id="specimen">Specimen</option>
    
  •        </options>
    
  •    </field>
    
  • </section>

+</record>

But alas, I'm still getting the same error message when I log into my
tenant.

If it matters, I looked in my settings.xml file and get a big chunk of this:
^@^@^@^@^@^@^.

do you see anything wrong here in the files I copied?

thanks,

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" aronroberts@gmail.com
To: "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Monday, August 19, 2013 5:39:58 PM

Subject: Re: [Talk] deploy mvn error

Hi Al,

My sincere apologies for these difficulties you've been encountering.

It looks like the problem is with merging settings.xml and
local-omca-settings.xml?

Yes, that certainly looks like the case.

This line appeared in part of the output from this error, in catalina.out:

2013-08-19 21:46:13,364 ERROR [http-8180-3] ... Message: Exception raised
during parsing
Stack :
org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61)

From looking at the Application layer's code at line 61 of
AssemblingParser.java:
https://github.com/collectionspace/application/blob/v3.3/csp-impl/src/main/java/org/collectionspace/chain/csp/config/impl/parser/AssemblingParser.java#L61
it appears the error is in reading or merging XML content, rather than in
not finding either of the two files to be merged, or in not being able to
read them as a result of insufficient access permissions or other
filesystem-related issues.

It appears that you might potentially be inadvertently trying to merge two
dissimilar things: a settings file for your tenant (which contains some
general administrative settings), together with some field-level settings
for a particular record type.

If you'd like to merge custom changes into the Cataloging record, such as
changing the contents of options lists, here's an example of how you can
specify that, as shown line 12 of the tenant 'includes' file for the UCJEPS
herbaria:

https://github.com/cspace-deployment/application/blob/ucjeps_3.2/tomcat-main/src/main/resources/ucjeps-tenant.xml#L12

Following that example, your
/tomcat-main/src/main/resources/omca-tenant.xml file might look something
like the following:

<cspace-config tenantname="omca"> <version>11</version> <!-- Note: omca-collectionobject.xml should not appear in the 'include' line below --> <!-- This line is for merging various settings files together. --> <include src="settings.xml,local-settings.xml" merge="xmlmerge-settings.properties" strip-root="yes"/> ... <records> <enum-blank>Please select a value</enum-blank> <!-- Here's where you can indicate that you want to merge in your own Cataloging record changes --> <include src="base-collectionobject.xml,omca-collectionobject.xml" merge="xmlmerge.properties"/> ...

Aron

On Mon, Aug 19, 2013 at 4:28 PM, Al Bersch abersch@museumca.org wrote:

Hi Aron,

Thanks so much again for your continued assistance. And for the plug for
using github as a backup resource - I'll do that, and also apologize in
advance for the cut-and-paste text below.

I installed DiffMerge, but I'm not sure what to compare, since the file I
added to the omca tenant (omca-collectionobject.xml), wasn't there in the
previous snapshot. I think I'm a little confused.

I looked in the cspace-app.log and catalina.out (can you tell me where I
might find catalina.(today'sdate).log?) and here are some snippets, first
from cspace-app.log:

2013-08-19 21:46:13,363 WARN  [http-8180-3]
[org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:218]
Could not merge the include files: settings.xml,local-omca-settings.xml
2013-08-19 21:46:13,364 ERROR [http-8180-3]
[org.collectionspace.chain.csp.config.impl.parser.ConfigLoadingMessagesImpl:16]
Message: Exception raised during parsing

Stack :
org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61)
org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse (62)
org.collectionspace.csp.container.impl.CSPManagerImpl.configure (54)
org.collectionspace.chain.controller.TenantServlet.load_config (156)
org.collectionspace.chain.controller.TenantServlet.setup (179)
org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant
(117)
org.collectionspace.chain.controller.TenantUIServlet.service (568)
javax.servlet.http.HttpServlet.service (717)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (290)
org.apache.catalina.core.ApplicationFilterChain.doFilter (206)
org.collectionspace.chain.controller.filters.PerflogFilter.doFilter (33)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235)
org.apache.catalina.core.ApplicationFilterChain.doFilter (206)
org.collectionspace.chain.controller.filters.CharSetFilter.doFilter (99)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235)
org.apache.catalina.core.ApplicationFilterChain.doFilter (206)
org.apache.catalina.core.StandardWrapperValve.invoke (233)
org.apache.catalina.core.StandardContextValve.invoke (191)
org.apache.catalina.core.StandardHostValve.invoke (127)
org.apache.catalina.valves.ErrorReportValve.invoke (102)
org.apache.catalina.valves.AccessLogValve.invoke (589)
org.apache.catalina.core.StandardEngineValve.invoke (109)
org.apache.catalina.connector.CoyoteAdapter.service (291)
org.apache.coyote.http11.Http11Processor.process (859)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
(602)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run (489)
java.lang.Thread.run (724)

CAUSED BY
Message: Could not load source

then from catalina.out:

2013-08-19 17:49:25,334 ERROR [main]
[org.collectionspace.services.common.config.ConfigUtils:51] No domain name
was specified on call to getRepositoryName() method.2013-08-19 17:49:25,334
ERROR [main] [org.collectionspace.services.common.config.ConfigUtils:51] No
domain name was specified on call to getRepositoryName() method.2013-08-19
17:49:25,334 ERROR [main]
[org.collectionspace.services.common.config.ConfigUtils:51] No domain name
was specified on call to getRepositoryName() method.[INFO] Starting up the
CollectionSpace Services' JAX-RS application.Static initializtion of:
org.collectionspace.services.common.security.SecurityInterceptor[INFO]
CollectionSpace Services' JAX-RS application started.2013-08-19 17:49:27,339
(0) [http-8180-4] INFO
org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:
XMLMerge result output to:
/usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19
17:49:29,695 (2356) [http-8180-2] INFO
org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:
XMLMerge result output to:
/usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19
17:49:29,732 (2393) [net.sf.ehcache.CacheManager@23aeae74] INFO
net.sf.ehcache.util.UpdateChecker: New update(s) found: 2.6.5
[http://www.terracotta.org/confluence/display/release/Release+Notes+Ehcache+Core+2.6].
Please check http://ehcache.org for the latest version.Could not get session
from CSPACESESSID cookie with value:
31b6c5daf4d4180636604cb25ac9f75f2013-08-19 17:49:47,810 WARN  [http-8180-7]
[org.collectionspace.services.common.security.SecurityInterceptor:358]
Attempt to logout when Nuxeo login context was null2013-08-19 17:49:47,953
WARN  [http-8180-7]
[org.springframework.security.web.context.HttpSessionSecurityContextRepository:396]
Failed to create a session, as response has been committed. Unable to store
SecurityContext.2013-08-19 17:49:48,765 WARN  [http-8180-7]
[org.collectionspace.services.common.security.SecurityInterceptor:358]
Attempt to logout when Nuxeo login context was null2013-08-19 17:49:48,773
WARN  [http-8180-7]
[org.springframework.security.web.context.HttpSessionSecurityContextRepository:396]
Failed to create a session, as response has been committed. Unable to store
SecurityContext.2013-08-19 21:07:17,771 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2191] The web application
[/collectionspace] appears to have started a thread named
[net.sf.ehcache.CacheManager@23aeae74] but has failed to stop it. This is
very likely to create a memory leak.2013-08-19 21:07:17,772 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2191] The web application
[/collectionspace] appears to have started a thread named
[MultiThreadedHttpConnectionManager cleanup] but has failed to stop it. This
is very likely to create a memory leak.2013-08-19 21:07:17,780 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2453] The web application
[/collectionspace] created a ThreadLocal with key of type
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a value of
type [java.util.HashMap] (value [{}]) but failed to remove it when the web
application was stopped. This is very likely to create a memory
leak.2013-08-19 21:07:17,781 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2453] The web application
[/collectionspace] created a ThreadLocal with key of type
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a value of
type [java.util.HashMap] (value [{}]) but failed to remove it when the web
application was stopped. This is very likely to create a memory
leak.2013-08-19 21:09:34,685 (0) [http-8180-4] WARN
org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:
Could not merge the include files: settings.xml,local-omca-settings.xml

It looks like the problem is with merging settings.xml and
local-omca-settings.xml?

I've tried a second time to create the configuration change in
omca-collectionobject.xml (a newly created xml file with only this snippet
in it:

+<record id="collection-object">
+

  • <section id="identificationInformation">
  •    <repeat id="responsibleDepartments" has-primary="yes">
    

<selector>object-identification-responsible-department</selector>

  •        <field id="responsibleDepartment" ui-search="repeatable"
    

mini="search"

  •         seperate_ui_container="true">
    

<selector>object-identification-responsible-department</selector>

  •            <options>
    
  •                <option id="">Please select a value</option>
    
  •                <option id="art">Art</option>
    
  •                <option id="history">History</option>
    
  •                <option id="science">Science</option>
    
  •                <option id="collections">Collections</option>
    
  •                <option id="education">Education</option>
    
  •                <option id="professionalservices">Professional
    

Services</option>

  •                <option id="multi">Multi</option>
    
  •            </options>
    
  •        </field>
    
  •    </repeat>
    
  •    <field id="collection" ui-search="repeatable"
    

seperate_ui_container="true">

  •        <selector>object-identification-collection</selector>
    
  •        <options>
    
  •           <option id="">Please select a value</option>
    
  •           <option id="art">Art</option>
    
  •           <option id="artandartifact">Art and Artifact</option>
    
  •           <option id="exhibit">Exhibit</option>
    
  •           <option id="history">History</option>
    
  •           <option id="scientomology">SCI-Entomology</option>
    
  •           <option id="scifineart">SCI-Fine Art</option>
    
  •           <option id="scigalleryspecimens">SCI-Gallery
    

Specimens</option>

  •           <option id="scigeology">SCI-Geology</option>
    
  •           <option id="sciherbarium">SCI-Herbarium</option>
    
  •           <option id="sciherpetology">SCI-Herpetology</option>
    
  •           <option id="sciicthyology">SCI-Icthyology</option>
    
  •           <option id="sciinvertebrates">SCI-Invertebrates</option>
    
  •           <option id="scilapidary">SCI-Lapidary</option>
    
  •           <option id="scimalacology">SCI-Malacology</option>
    
  •           <option id="scimammalogy">SCI-Mammalogy</option>
    
  •           <option id="scimiscellaneous">SCI-Miscellaneous</option>
    
  •           <option id="sciornithology">SCI-Ornithology</option>
    
  •           <option id="scipaleontology">SCI-Paleontology</option>
    
  •           <option id="sciphoto">SCI-Photo</option>
    
  •           <option id="scisnuffbottles">SCI-Snuff Bottles</option>
    
  •           <option id="specimen">Specimen</option>
    
  •        </options>
    
  •    </field>
    
  • </section>

+</record>

then according to your last email, I ran "mvn clean install -DskipTest"
rather than "mvn deploy -DskipTests". I ran this in the application layer
folder called "application" that contains the pom.xml file. In my path it
looks like /home/root/application-source/application/. Then, do I understand
I also need to run "ant deploy"? I wasn't able to run this in the same
folder - I got an error saying this is no build file.

I'm going off your previous instructions, as well as the documentation on
the wiki for customizing the application layer:

Hi Becky and Al,
One more set of notes on making 'starting out' customizations,
below: this one a customization of options in dropdown menus.
Aron
(Recommendation: start the CollectionSpace server before making the
following changes.  This will help ensure those changes are made
'live.')

  • An example of how to replace the default sets of options in the
    dropdown menus for the Responsible Department and OMCA Collection
    fields.
    The existing documentation on updating these option lists is
    confusing, and wildly out of date; we expect to be updating it in the
    near future.  The customization method shown here as an example
    reflects recently-added 'merge' capabilities that allow you to simply
    replicate the block of configuration you want to customize, within a
    separate file for your own museum; it will override the corresponding
    configuration block in the default settings:
    Actual change(s) made, within the source code tree for
    CollectionSpace's Application layer:

https://github.com/aronr/application/commit/b7a47d94fc6d44d0cad74f6444710a35373291c7
You can compare this to the default configuration file for the
Cataloging record, in which the default options for those two dropdown
menus appear:

https://github.com/aronr/application/blob/b7a47d94fc6d44d0cad74f6444710a35373291c7/tomcat-main/src/main/resources/defaults/base-collectionobject.xml#L112
To copy (deploy) these changes to the server folder, enter the
following at a command prompt, from within the top-level folder of the
Application source code tree:
mvn deploy -DskipTests

Sorry I'm not getting this! Do you have any ideas?

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" aronroberts@gmail.com
To: "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Friday, August 16, 2013 1:28:48 PM

Subject: Re: [Talk] deploy mvn error

The key is likely this snippet, from near the beginning of that long and
singularly unhelpful chain of messages:
"org.collectionspace.chain.csp.config.ConfigException: Error loading
config"

There may have been an error made in whatever configuration file, or
files, were modified.  After they were deployed (copied) to the server, when
the Application layer read them, it got confused and barfed out this long
stack trace.

Typically, this means the file(s), after being modified, weren't
well-formed XML - perhaps an ending tag was left out somewhere? - or they
didn't conform to the Application layer's expectation of what 'tags' (XML
elements) are expected, in which hierarchical locations within the file.

Yes, reverting to a snapshot and re-deploying (via 'mvn clean install
-DskipTests') and restarting Tomcat, should resolve the issue.  You might
also try, however, using a utility app that can show you differences between
two files - your current version and your snapshot - and see if the error is
readily made apparent by looking at those changes in that 'diff' view.  (If
you're using Mac OS X, there's a list of such apps at
http://apple.stackexchange.com/a/87188)

It's also worth checking the current cspace-app.log and catalina.{today's
date}.log to see if there may be any log message specifically pinpointing
the configuration error.

Aron

On Fri, Aug 16, 2013 at 1:16 PM, Al Bersch abersch@museumca.org wrote:

Hi again,

Ok, I think I must have messed up somewhere when changing the files in
the application layer. When I navigated to our tenant, the login screen is
blank except for a place to put a user name and password. when I submit my
password, I get this message:  Any idea what I did wrong? Thanks!

I have a snapshot prior to the changes in the application layer, so I
can always go back in time and try again.

Al

HTTP Status 400 -
org.collectionspace.chain.controller.BadRequestException: Cannot initialise
CSPs org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading config.
See messages for details: summary Exception raised during parsing at
org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185)
at
org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117)
at
org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:724) Caused by:
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading config.
See messages for details: summary Exception raised during parsing at
org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64)
at
org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156)
at
org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179)
... 22 more Caused by: org.collectionspace.chain.csp.config.ConfigException:
Error loading config. See messages for details: summary Exception raised
during parsing at
org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78)
at
org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74)
at
org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54)
... 24 more


type Status report

message org.collectionspace.chain.controller.BadRequestException: Cannot
initialise CSPs org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading config.
See messages for details: summary Exception raised during parsing at
org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185)
at
org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117)
at
org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:724) Caused by:
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading config.
See messages for details: summary Exception raised during parsing at
org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64)
at
org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156)
at
org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179)
... 22 more Caused by: org.collectionspace.chain.csp.config.ConfigException:
Error loading config. See messages for details: summary Exception raised
during parsing at
org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78)
at
org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74)
at
org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54)
... 24 more

description The request sent by the client was syntactically incorrect
(org.collectionspace.chain.controller.BadRequestException: Cannot initialise
CSPs org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading config.
See messages for details: summary Exception raised during parsing at
org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185)
at
org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117)
at
org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:724) Caused by:
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading config.
See messages for details: summary Exception raised during parsing at
org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64)
at
org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156)
at
org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179)
... 22 more Caused by: org.collectionspace.chain.csp.config.ConfigException:
Error loading config. See messages for details: summary Exception raised
during parsing at
org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78)
at
org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74)
at
org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54)
... 24 more ).

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


From: "Aron Roberts" aronroberts@gmail.com
To: "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Friday, August 16, 2013 12:58:56 PM
Subject: Re: [Talk] deploy mvn error

Hi Al,

You likely will have success with 'mvn clean install -DskipTests' when
building and deploying the App layer with your dropdown list changes, rather
than 'mvn deploy -DskipTests'.

It's a bit confusing (and I hope I don't need to keep repeating this
:-), but CollectionSpace Services layer uses Maven to build artifacts and
Ant buildfiles to deploy (copy) them to the server (hence 'mvn clean
install' followed by 'ant deploy'), while the Application and UI layers use
Maven ('mvn install') for both tasks.  There are some historical and
technical reasons for this difference, not worth going into ...

Aron

On Fri, Aug 16, 2013 at 12:49 PM, Al Bersch abersch@museumca.org
wrote:

Hello all,

I changed our dropdown lists in Department and Collection in the
application layer source code, and when I ran mvn deploy -DskipTests I get
this error:

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to configure plugin parameters for:
org.apache.maven.plugins:maven-deploy-plugin:2.4

check that the following section of the pom.xml is present and correct:

<distributionManagement> <!-- use the following if you're not using a snapshot version. --> <repository> <id>repo</id> <name>Repository Name</name> <url>scp://host/path/to/repo</url> </repository> <!-- use the following if you ARE using a snapshot version. --> <snapshotRepository> <id>repo</id> <name>Repository Name</name> <url>scp://host/path/to/repo</url> </snapshotRepository> </distributionManagement>

Cause: Class 'org.apache.maven.artifact.repository.ArtifactRepository'
cannot be instantiated

I looked in the pom.xml, and found this:

<!-- The CollectionSpace public Maven repository for "snapshot" artifacts --> <repositories> <repository> <id>libs-snapshot-local</id> <name>libs-snapshot-local</name>

<url>http://nightly.collectionspace.org:8081/artifactory/libs-snapshot-local</url>
<snapshots>
<enabled>true</enabled>
</snapshots>

I'm wondering, which repository setting should I use (snapshot or not
snapshot)? Our installation is on a virtual server in linode.

And, does anyone know where I should set the path to our repository?
I'm guessing that the error is party due to the url being mapped to
nightly.collectionspace.org.

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

If it's easiest to use command line tools - you're using an Ubuntu system, yes? - you might try this 'sed' command to remove those specific stray characters: http://superuser.com/questions/507267/how-to-grep-for-special-character-nul If the merge still fails, you might try a more thorough cleaning of each file; there's an example for doing this (stripping out all but a subset of vanilla, printable USASCII characters from a file) by using a 'tr' command under "Removing all undesirable characters at once" in: http://alvinalexander.com/unix/edu/un010011/ On Tue, Aug 20, 2013 at 3:25 PM, Aron Roberts <aronroberts@gmail.com> wrote: > Hi Al, > >> If it matters, I looked in my settings.xml file and get a big chunk of this: ^@^@^@^@^@^@^. > > It's possible that stray characters in any of the merge files: > settings.xml, local-omca-settings.xml, and/or > omca-collectionobject.xml, might be fouling up the merge attempts. If > you have a way of finding and removing them - such as using BBEdit's > or TextWrangler's (Mac OS X text editors) "Zap Gremlins" feature - > that might help. (That big chunk of ^@ could well be part of the > issue.) > > Using TextWrangler, for instance: > http://indesignsecrets.com/zap-gremlins-in-problem-data-merge-files.php > > Aron > > On Tue, Aug 20, 2013 at 3:12 PM, Al Bersch <abersch@museumca.org> wrote: >> Hi Aron, >> >> Thanks so much for addressing these questions. >> >> I entered the language at the end of your email into my >> /tomcat-main/src/main/resources/omca-tenant.xml file, like this: >> >> <cspace-config tenantname="omca"> >> >> <version>11</version> >> <!-- Note: omca-collectionobject.xml should not appear in the >> 'include' line below --> >> <!-- This line is for merging various settings files together. --> >> <include src="settings.xml,local-omca-settings.xml" >> merge="xmlmerge.properties" >> strip-root="yes" /> >> >> <spec> >> <include src="base-relations.xml"/> >> <include src="base-schemas.xml"/> >> >> <records> >> <enum-blank>Please select a value</enum-blank> >> <!-- Here's where you can indicate that you want to >> merge in your own Cataloging record changes --> >> <include >> src="base-collectionobject.xml,omca-collectionobject.xml" >> merge="xmlmerge.properties"/ >> <include src="base-procedure-acquisition.xml"/> >> <include src="base-procedure-blobs.xml"/> >> ... >> >> then re-created the omca-collectionobject.xml file (located at >> tomcat-main/src/main/resources/tenants/omca) with this inside it: >> >> +<record id="collection-object"> >> + >> + <section id="identificationInformation"> >> + <repeat id="responsibleDepartments" has-primary="yes"> >> + >> <selector>object-identification-responsible-department</selector> >> + <field id="responsibleDepartment" ui-search="repeatable" >> mini="search" >> + seperate_ui_container="true"> >> + >> <selector>object-identification-responsible-department</selector> >> + <options> >> + <option id="">Please select a value</option> >> + <option id="art">Art</option> >> + <option id="history">History</option> >> + <option id="science">Science</option> >> + <option id="collections">Collections</option> >> + <option id="education">Education</option> >> + <option id="professionalservices">Professional >> Services</option> >> + <option id="multi">Multi</option> >> + </options> >> + </field> >> + </repeat> >> + <field id="collection" ui-search="repeatable" >> seperate_ui_container="true"> >> + <selector>object-identification-collection</selector> >> + <options> >> + <option id="">Please select a value</option> >> + <option id="art">Art</option> >> + <option id="artandartifact">Art and Artifact</option> >> + <option id="exhibit">Exhibit</option> >> + <option id="history">History</option> >> + <option id="scientomology">SCI-Entomology</option> >> + <option id="scifineart">SCI-Fine Art</option> >> + <option id="scigalleryspecimens">SCI-Gallery >> Specimens</option> >> + <option id="scigeology">SCI-Geology</option> >> + <option id="sciherbarium">SCI-Herbarium</option> >> + <option id="sciherpetology">SCI-Herpetology</option> >> + <option id="sciicthyology">SCI-Icthyology</option> >> + <option id="sciinvertebrates">SCI-Invertebrates</option> >> + <option id="scilapidary">SCI-Lapidary</option> >> + <option id="scimalacology">SCI-Malacology</option> >> + <option id="scimammalogy">SCI-Mammalogy</option> >> + <option id="scimiscellaneous">SCI-Miscellaneous</option> >> + <option id="sciornithology">SCI-Ornithology</option> >> + <option id="scipaleontology">SCI-Paleontology</option> >> + <option id="sciphoto">SCI-Photo</option> >> + <option id="scisnuffbottles">SCI-Snuff Bottles</option> >> + <option id="specimen">Specimen</option> >> + </options> >> + </field> >> + </section> >> + >> +</record> >> >> But alas, I'm still getting the same error message when I log into my >> tenant. >> >> If it matters, I looked in my settings.xml file and get a big chunk of this: >> ^@^@^@^@^@^@^. >> >> do you see anything wrong here in the files I copied? >> >> thanks, >> >> 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" <aronroberts@gmail.com> >> To: "Al Bersch" <abersch@museumca.org> >> Cc: "talk" <talk@lists.collectionspace.org> >> Sent: Monday, August 19, 2013 5:39:58 PM >> >> Subject: Re: [Talk] deploy mvn error >> >> Hi Al, >> >> My sincere apologies for these difficulties you've been encountering. >> >>> It looks like the problem is with merging settings.xml and >>> local-omca-settings.xml? >> >> Yes, that certainly looks like the case. >> >> This line appeared in part of the output from this error, in catalina.out: >> >>> 2013-08-19 21:46:13,364 ERROR [http-8180-3] ... Message: Exception raised >>> during parsing >>> Stack : >>> org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61) >> >> From looking at the Application layer's code at line 61 of >> AssemblingParser.java: >> https://github.com/collectionspace/application/blob/v3.3/csp-impl/src/main/java/org/collectionspace/chain/csp/config/impl/parser/AssemblingParser.java#L61 >> it appears the error is in reading or merging XML content, rather than in >> not finding either of the two files to be merged, or in not being able to >> read them as a result of insufficient access permissions or other >> filesystem-related issues. >> >> It appears that you might potentially be inadvertently trying to merge two >> dissimilar things: a settings file for your tenant (which contains some >> general administrative settings), together with some field-level settings >> for a particular record type. >> >> If you'd like to merge custom changes into the Cataloging record, such as >> changing the contents of options lists, here's an example of how you can >> specify that, as shown line 12 of the tenant 'includes' file for the UCJEPS >> herbaria: >> >> https://github.com/cspace-deployment/application/blob/ucjeps_3.2/tomcat-main/src/main/resources/ucjeps-tenant.xml#L12 >> >> Following that example, your >> /tomcat-main/src/main/resources/omca-tenant.xml file might look something >> like the following: >> >> <cspace-config tenantname="omca"> >> <version>11</version> >> <!-- Note: omca-collectionobject.xml should not appear in the 'include' >> line below --> >> <!-- This line is for merging various settings files together. --> >> <include src="settings.xml,local-settings.xml" >> merge="xmlmerge-settings.properties" strip-root="yes"/> >> ... >> <records> >> <enum-blank>Please select a value</enum-blank> >> <!-- Here's where you can indicate that you want to merge in your own >> Cataloging record changes --> >> <include src="base-collectionobject.xml,omca-collectionobject.xml" >> merge="xmlmerge.properties"/> >> ... >> >> Aron >> >> On Mon, Aug 19, 2013 at 4:28 PM, Al Bersch <abersch@museumca.org> wrote: >>> >>> Hi Aron, >>> >>> Thanks so much again for your continued assistance. And for the plug for >>> using github as a backup resource - I'll do that, and also apologize in >>> advance for the cut-and-paste text below. >>> >>> I installed DiffMerge, but I'm not sure what to compare, since the file I >>> added to the omca tenant (omca-collectionobject.xml), wasn't there in the >>> previous snapshot. I think I'm a little confused. >>> >>> I looked in the cspace-app.log and catalina.out (can you tell me where I >>> might find catalina.(today'sdate).log?) and here are some snippets, first >>> from cspace-app.log: >>> >>> 2013-08-19 21:46:13,363 WARN [http-8180-3] >>> [org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:218] >>> Could not merge the include files: settings.xml,local-omca-settings.xml >>> 2013-08-19 21:46:13,364 ERROR [http-8180-3] >>> [org.collectionspace.chain.csp.config.impl.parser.ConfigLoadingMessagesImpl:16] >>> Message: Exception raised during parsing >>> >>> Stack : >>> org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61) >>> org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse (62) >>> org.collectionspace.csp.container.impl.CSPManagerImpl.configure (54) >>> org.collectionspace.chain.controller.TenantServlet.load_config (156) >>> org.collectionspace.chain.controller.TenantServlet.setup (179) >>> org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant >>> (117) >>> org.collectionspace.chain.controller.TenantUIServlet.service (568) >>> javax.servlet.http.HttpServlet.service (717) >>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (290) >>> org.apache.catalina.core.ApplicationFilterChain.doFilter (206) >>> org.collectionspace.chain.controller.filters.PerflogFilter.doFilter (33) >>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235) >>> org.apache.catalina.core.ApplicationFilterChain.doFilter (206) >>> org.collectionspace.chain.controller.filters.CharSetFilter.doFilter (99) >>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235) >>> org.apache.catalina.core.ApplicationFilterChain.doFilter (206) >>> org.apache.catalina.core.StandardWrapperValve.invoke (233) >>> org.apache.catalina.core.StandardContextValve.invoke (191) >>> org.apache.catalina.core.StandardHostValve.invoke (127) >>> org.apache.catalina.valves.ErrorReportValve.invoke (102) >>> org.apache.catalina.valves.AccessLogValve.invoke (589) >>> org.apache.catalina.core.StandardEngineValve.invoke (109) >>> org.apache.catalina.connector.CoyoteAdapter.service (291) >>> org.apache.coyote.http11.Http11Processor.process (859) >>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process >>> (602) >>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run (489) >>> java.lang.Thread.run (724) >>> >>> CAUSED BY >>> Message: Could not load source >>> >>> >>> >>> then from catalina.out: >>> >>> 2013-08-19 17:49:25,334 ERROR [main] >>> [org.collectionspace.services.common.config.ConfigUtils:51] No domain name >>> was specified on call to getRepositoryName() method.2013-08-19 17:49:25,334 >>> ERROR [main] [org.collectionspace.services.common.config.ConfigUtils:51] No >>> domain name was specified on call to getRepositoryName() method.2013-08-19 >>> 17:49:25,334 ERROR [main] >>> [org.collectionspace.services.common.config.ConfigUtils:51] No domain name >>> was specified on call to getRepositoryName() method.[INFO] Starting up the >>> CollectionSpace Services' JAX-RS application.Static initializtion of: >>> org.collectionspace.services.common.security.SecurityInterceptor[INFO] >>> CollectionSpace Services' JAX-RS application started.2013-08-19 17:49:27,339 >>> (0) [http-8180-4] INFO >>> org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler: >>> XMLMerge result output to: >>> /usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19 >>> 17:49:29,695 (2356) [http-8180-2] INFO >>> org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler: >>> XMLMerge result output to: >>> /usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19 >>> 17:49:29,732 (2393) [net.sf.ehcache.CacheManager@23aeae74] INFO >>> net.sf.ehcache.util.UpdateChecker: New update(s) found: 2.6.5 >>> [http://www.terracotta.org/confluence/display/release/Release+Notes+Ehcache+Core+2.6]. >>> Please check http://ehcache.org for the latest version.Could not get session >>> from CSPACESESSID cookie with value: >>> 31b6c5daf4d4180636604cb25ac9f75f2013-08-19 17:49:47,810 WARN [http-8180-7] >>> [org.collectionspace.services.common.security.SecurityInterceptor:358] >>> Attempt to logout when Nuxeo login context was null2013-08-19 17:49:47,953 >>> WARN [http-8180-7] >>> [org.springframework.security.web.context.HttpSessionSecurityContextRepository:396] >>> Failed to create a session, as response has been committed. Unable to store >>> SecurityContext.2013-08-19 17:49:48,765 WARN [http-8180-7] >>> [org.collectionspace.services.common.security.SecurityInterceptor:358] >>> Attempt to logout when Nuxeo login context was null2013-08-19 17:49:48,773 >>> WARN [http-8180-7] >>> [org.springframework.security.web.context.HttpSessionSecurityContextRepository:396] >>> Failed to create a session, as response has been committed. Unable to store >>> SecurityContext.2013-08-19 21:07:17,771 ERROR >>> [ContainerBackgroundProcessor[StandardEngine[Catalina]]] >>> [org.apache.catalina.loader.WebappClassLoader:2191] The web application >>> [/collectionspace] appears to have started a thread named >>> [net.sf.ehcache.CacheManager@23aeae74] but has failed to stop it. This is >>> very likely to create a memory leak.2013-08-19 21:07:17,772 ERROR >>> [ContainerBackgroundProcessor[StandardEngine[Catalina]]] >>> [org.apache.catalina.loader.WebappClassLoader:2191] The web application >>> [/collectionspace] appears to have started a thread named >>> [MultiThreadedHttpConnectionManager cleanup] but has failed to stop it. This >>> is very likely to create a memory leak.2013-08-19 21:07:17,780 ERROR >>> [ContainerBackgroundProcessor[StandardEngine[Catalina]]] >>> [org.apache.catalina.loader.WebappClassLoader:2453] The web application >>> [/collectionspace] created a ThreadLocal with key of type >>> [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value >>> [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a value of >>> type [java.util.HashMap] (value [{}]) but failed to remove it when the web >>> application was stopped. This is very likely to create a memory >>> leak.2013-08-19 21:07:17,781 ERROR >>> [ContainerBackgroundProcessor[StandardEngine[Catalina]]] >>> [org.apache.catalina.loader.WebappClassLoader:2453] The web application >>> [/collectionspace] created a ThreadLocal with key of type >>> [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value >>> [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a value of >>> type [java.util.HashMap] (value [{}]) but failed to remove it when the web >>> application was stopped. This is very likely to create a memory >>> leak.2013-08-19 21:09:34,685 (0) [http-8180-4] WARN >>> org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler: >>> Could not merge the include files: settings.xml,local-omca-settings.xml >>> >>> >>> It looks like the problem is with merging settings.xml and >>> local-omca-settings.xml? >>> >>> I've tried a second time to create the configuration change in >>> omca-collectionobject.xml (a newly created xml file with only this snippet >>> in it: >>> >>> +<record id="collection-object"> >>> + >>> + <section id="identificationInformation"> >>> + <repeat id="responsibleDepartments" has-primary="yes"> >>> + >>> <selector>object-identification-responsible-department</selector> >>> + <field id="responsibleDepartment" ui-search="repeatable" >>> mini="search" >>> + seperate_ui_container="true"> >>> + >>> <selector>object-identification-responsible-department</selector> >>> + <options> >>> + <option id="">Please select a value</option> >>> + <option id="art">Art</option> >>> + <option id="history">History</option> >>> + <option id="science">Science</option> >>> + <option id="collections">Collections</option> >>> + <option id="education">Education</option> >>> + <option id="professionalservices">Professional >>> Services</option> >>> + <option id="multi">Multi</option> >>> + </options> >>> + </field> >>> + </repeat> >>> + <field id="collection" ui-search="repeatable" >>> seperate_ui_container="true"> >>> + <selector>object-identification-collection</selector> >>> + <options> >>> + <option id="">Please select a value</option> >>> + <option id="art">Art</option> >>> + <option id="artandartifact">Art and Artifact</option> >>> + <option id="exhibit">Exhibit</option> >>> + <option id="history">History</option> >>> + <option id="scientomology">SCI-Entomology</option> >>> + <option id="scifineart">SCI-Fine Art</option> >>> + <option id="scigalleryspecimens">SCI-Gallery >>> Specimens</option> >>> + <option id="scigeology">SCI-Geology</option> >>> + <option id="sciherbarium">SCI-Herbarium</option> >>> + <option id="sciherpetology">SCI-Herpetology</option> >>> + <option id="sciicthyology">SCI-Icthyology</option> >>> + <option id="sciinvertebrates">SCI-Invertebrates</option> >>> + <option id="scilapidary">SCI-Lapidary</option> >>> + <option id="scimalacology">SCI-Malacology</option> >>> + <option id="scimammalogy">SCI-Mammalogy</option> >>> + <option id="scimiscellaneous">SCI-Miscellaneous</option> >>> + <option id="sciornithology">SCI-Ornithology</option> >>> + <option id="scipaleontology">SCI-Paleontology</option> >>> + <option id="sciphoto">SCI-Photo</option> >>> + <option id="scisnuffbottles">SCI-Snuff Bottles</option> >>> + <option id="specimen">Specimen</option> >>> + </options> >>> + </field> >>> + </section> >>> + >>> +</record> >>> >>> >>> >>> then according to your last email, I ran "mvn clean install -DskipTest" >>> rather than "mvn deploy -DskipTests". I ran this in the application layer >>> folder called "application" that contains the pom.xml file. In my path it >>> looks like /home/root/application-source/application/. Then, do I understand >>> I also need to run "ant deploy"? I wasn't able to run this in the same >>> folder - I got an error saying this is no build file. >>> >>> I'm going off your previous instructions, as well as the documentation on >>> the wiki for customizing the application layer: >>> >>> Hi Becky and Al, >>> One more set of notes on making 'starting out' customizations, >>> below: this one a customization of options in dropdown menus. >>> Aron >>> (Recommendation: start the CollectionSpace server before making the >>> following changes. This will help ensure those changes are made >>> 'live.') >>> * An example of how to replace the default sets of options in the >>> dropdown menus for the Responsible Department and OMCA Collection >>> fields. >>> The existing documentation on updating these option lists is >>> confusing, and wildly out of date; we expect to be updating it in the >>> near future. The customization method shown here as an example >>> reflects recently-added 'merge' capabilities that allow you to simply >>> replicate the block of configuration you want to customize, within a >>> separate file for your own museum; it will override the corresponding >>> configuration block in the default settings: >>> Actual change(s) made, within the source code tree for >>> CollectionSpace's Application layer: >>> >>> https://github.com/aronr/application/commit/b7a47d94fc6d44d0cad74f6444710a35373291c7 >>> You can compare this to the default configuration file for the >>> Cataloging record, in which the default options for those two dropdown >>> menus appear: >>> >>> https://github.com/aronr/application/blob/b7a47d94fc6d44d0cad74f6444710a35373291c7/tomcat-main/src/main/resources/defaults/base-collectionobject.xml#L112 >>> To copy (deploy) these changes to the server folder, enter the >>> following at a command prompt, from within the top-level folder of the >>> Application source code tree: >>> mvn deploy -DskipTests >>> >>> >>> >>> Sorry I'm not getting this! Do you have any ideas? >>> >>> 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" <aronroberts@gmail.com> >>> To: "Al Bersch" <abersch@museumca.org> >>> Cc: "talk" <talk@lists.collectionspace.org> >>> Sent: Friday, August 16, 2013 1:28:48 PM >>> >>> Subject: Re: [Talk] deploy mvn error >>> >>> The key is likely this snippet, from near the beginning of that long and >>> singularly unhelpful chain of messages: >>> "org.collectionspace.chain.csp.config.ConfigException: Error loading >>> config" >>> >>> There may have been an error made in whatever configuration file, or >>> files, were modified. After they were deployed (copied) to the server, when >>> the Application layer read them, it got confused and barfed out this long >>> stack trace. >>> >>> Typically, this means the file(s), after being modified, weren't >>> well-formed XML - perhaps an ending tag was left out somewhere? - or they >>> didn't conform to the Application layer's expectation of what 'tags' (XML >>> elements) are expected, in which hierarchical locations within the file. >>> >>> Yes, reverting to a snapshot and re-deploying (via 'mvn clean install >>> -DskipTests') and restarting Tomcat, should resolve the issue. You might >>> also try, however, using a utility app that can show you differences between >>> two files - your current version and your snapshot - and see if the error is >>> readily made apparent by looking at those changes in that 'diff' view. (If >>> you're using Mac OS X, there's a list of such apps at >>> http://apple.stackexchange.com/a/87188) >>> >>> It's also worth checking the current cspace-app.log and catalina.{today's >>> date}.log to see if there may be any log message specifically pinpointing >>> the configuration error. >>> >>> Aron >>> >>> On Fri, Aug 16, 2013 at 1:16 PM, Al Bersch <abersch@museumca.org> wrote: >>> > >>> > Hi again, >>> > >>> > Ok, I think I must have messed up somewhere when changing the files in >>> > the application layer. When I navigated to our tenant, the login screen is >>> > blank except for a place to put a user name and password. when I submit my >>> > password, I get this message: Any idea what I did wrong? Thanks! >>> > >>> > I have a snapshot prior to the changes in the application layer, so I >>> > can always go back in time and try again. >>> > >>> > Al >>> > >>> > HTTP Status 400 - >>> > org.collectionspace.chain.controller.BadRequestException: Cannot initialise >>> > CSPs org.collectionspace.csp.api.core.CSPDependencyException: >>> > org.collectionspace.chain.csp.config.ConfigException: Error loading config. >>> > See messages for details: summary Exception raised during parsing at >>> > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185) >>> > at >>> > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117) >>> > at >>> > org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568) >>> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at >>> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) >>> > at >>> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >>> > at >>> > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33) >>> > at >>> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >>> > at >>> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >>> > at >>> > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99) >>> > at >>> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >>> > at >>> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >>> > at >>> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) >>> > at >>> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) >>> > at >>> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) >>> > at >>> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >>> > at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589) >>> > at >>> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) >>> > at >>> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) >>> > at >>> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) >>> > at >>> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) >>> > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) >>> > at java.lang.Thread.run(Thread.java:724) Caused by: >>> > org.collectionspace.csp.api.core.CSPDependencyException: >>> > org.collectionspace.chain.csp.config.ConfigException: Error loading config. >>> > See messages for details: summary Exception raised during parsing at >>> > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64) >>> > at >>> > org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156) >>> > at >>> > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179) >>> > ... 22 more Caused by: org.collectionspace.chain.csp.config.ConfigException: >>> > Error loading config. See messages for details: summary Exception raised >>> > during parsing at >>> > org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78) >>> > at >>> > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74) >>> > at >>> > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54) >>> > ... 24 more >>> > >>> > ________________________________ >>> > >>> > type Status report >>> > >>> > message org.collectionspace.chain.controller.BadRequestException: Cannot >>> > initialise CSPs org.collectionspace.csp.api.core.CSPDependencyException: >>> > org.collectionspace.chain.csp.config.ConfigException: Error loading config. >>> > See messages for details: summary Exception raised during parsing at >>> > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185) >>> > at >>> > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117) >>> > at >>> > org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568) >>> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at >>> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) >>> > at >>> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >>> > at >>> > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33) >>> > at >>> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >>> > at >>> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >>> > at >>> > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99) >>> > at >>> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >>> > at >>> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >>> > at >>> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) >>> > at >>> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) >>> > at >>> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) >>> > at >>> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >>> > at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589) >>> > at >>> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) >>> > at >>> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) >>> > at >>> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) >>> > at >>> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) >>> > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) >>> > at java.lang.Thread.run(Thread.java:724) Caused by: >>> > org.collectionspace.csp.api.core.CSPDependencyException: >>> > org.collectionspace.chain.csp.config.ConfigException: Error loading config. >>> > See messages for details: summary Exception raised during parsing at >>> > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64) >>> > at >>> > org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156) >>> > at >>> > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179) >>> > ... 22 more Caused by: org.collectionspace.chain.csp.config.ConfigException: >>> > Error loading config. See messages for details: summary Exception raised >>> > during parsing at >>> > org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78) >>> > at >>> > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74) >>> > at >>> > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54) >>> > ... 24 more >>> > >>> > description The request sent by the client was syntactically incorrect >>> > (org.collectionspace.chain.controller.BadRequestException: Cannot initialise >>> > CSPs org.collectionspace.csp.api.core.CSPDependencyException: >>> > org.collectionspace.chain.csp.config.ConfigException: Error loading config. >>> > See messages for details: summary Exception raised during parsing at >>> > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185) >>> > at >>> > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117) >>> > at >>> > org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568) >>> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at >>> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) >>> > at >>> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >>> > at >>> > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33) >>> > at >>> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >>> > at >>> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >>> > at >>> > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99) >>> > at >>> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >>> > at >>> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >>> > at >>> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) >>> > at >>> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) >>> > at >>> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) >>> > at >>> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >>> > at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589) >>> > at >>> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) >>> > at >>> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) >>> > at >>> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) >>> > at >>> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) >>> > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) >>> > at java.lang.Thread.run(Thread.java:724) Caused by: >>> > org.collectionspace.csp.api.core.CSPDependencyException: >>> > org.collectionspace.chain.csp.config.ConfigException: Error loading config. >>> > See messages for details: summary Exception raised during parsing at >>> > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64) >>> > at >>> > org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156) >>> > at >>> > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179) >>> > ... 22 more Caused by: org.collectionspace.chain.csp.config.ConfigException: >>> > Error loading config. See messages for details: summary Exception raised >>> > during parsing at >>> > org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78) >>> > at >>> > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74) >>> > at >>> > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54) >>> > ... 24 more ). >>> > >>> > >>> > Al Bersch >>> > Digital Project Coordinator >>> > Oakland Museum of California >>> > 1000 Oak Street, Oakland, CA 94607 >>> > abersch@museumca.org >>> > 510-318-8468 >>> > ________________________________ >>> > From: "Aron Roberts" <aronroberts@gmail.com> >>> > To: "Al Bersch" <abersch@museumca.org> >>> > Cc: "talk" <talk@lists.collectionspace.org> >>> > Sent: Friday, August 16, 2013 12:58:56 PM >>> > Subject: Re: [Talk] deploy mvn error >>> > >>> > Hi Al, >>> > >>> > You likely will have success with 'mvn clean install -DskipTests' when >>> > building and deploying the App layer with your dropdown list changes, rather >>> > than 'mvn deploy -DskipTests'. >>> > >>> > It's a bit confusing (and I hope I don't need to keep repeating this >>> > :-), but CollectionSpace Services layer uses Maven to build artifacts and >>> > Ant buildfiles to deploy (copy) them to the server (hence 'mvn clean >>> > install' followed by 'ant deploy'), while the Application and UI layers use >>> > Maven ('mvn install') for both tasks. There are some historical and >>> > technical reasons for this difference, not worth going into ... >>> > >>> > Aron >>> > >>> > >>> > On Fri, Aug 16, 2013 at 12:49 PM, Al Bersch <abersch@museumca.org> >>> > wrote: >>> >> >>> >> Hello all, >>> >> >>> >> I changed our dropdown lists in Department and Collection in the >>> >> application layer source code, and when I ran mvn deploy -DskipTests I get >>> >> this error: >>> >> >>> >> [ERROR] BUILD ERROR >>> >> [INFO] >>> >> ------------------------------------------------------------------------ >>> >> [INFO] Failed to configure plugin parameters for: >>> >> org.apache.maven.plugins:maven-deploy-plugin:2.4 >>> >> >>> >> check that the following section of the pom.xml is present and correct: >>> >> >>> >> <distributionManagement> >>> >> <!-- use the following if you're not using a snapshot version. --> >>> >> <repository> >>> >> <id>repo</id> >>> >> <name>Repository Name</name> >>> >> <url>scp://host/path/to/repo</url> >>> >> </repository> >>> >> <!-- use the following if you ARE using a snapshot version. --> >>> >> <snapshotRepository> >>> >> <id>repo</id> >>> >> <name>Repository Name</name> >>> >> <url>scp://host/path/to/repo</url> >>> >> </snapshotRepository> >>> >> </distributionManagement> >>> >> >>> >> Cause: Class 'org.apache.maven.artifact.repository.ArtifactRepository' >>> >> cannot be instantiated >>> >> >>> >> >>> >> >>> >> I looked in the pom.xml, and found this: >>> >> >>> >> <!-- The CollectionSpace public Maven repository for "snapshot" >>> >> artifacts --> >>> >> <repositories> >>> >> <repository> >>> >> <id>libs-snapshot-local</id> >>> >> <name>libs-snapshot-local</name> >>> >> >>> >> <url>http://nightly.collectionspace.org:8081/artifactory/libs-snapshot-local</url> >>> >> <snapshots> >>> >> <enabled>true</enabled> >>> >> </snapshots> >>> >> >>> >> >>> >> I'm wondering, which repository setting should I use (snapshot or not >>> >> snapshot)? Our installation is on a virtual server in linode. >>> >> >>> >> And, does anyone know where I should set the path to our repository? >>> >> I'm guessing that the error is party due to the url being mapped to >>> >> nightly.collectionspace.org. >>> >> >>> >> 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 >>> >> >>> > >>> > >>> >>
RL
Ray Lee
Tue, Aug 20, 2013 10:49 PM

Hi Al,
The error you're seeing is characteristic of malformed XML in one of your
configuration files. If you run an XML checker over the files you edited,
you'll probably catch the problem.

Ray

On Tue, Aug 20, 2013 at 3:34 PM, Aron Roberts aronroberts@gmail.com wrote:

If it's easiest to use command line tools - you're using an Ubuntu
system, yes? - you might try this 'sed' command to remove those
specific stray characters:

http://superuser.com/questions/507267/how-to-grep-for-special-character-nul

If the merge still fails, you might try a more thorough cleaning of
each file; there's an example for doing this (stripping out all but a
subset of vanilla, printable USASCII characters from a file) by using
a 'tr' command under "Removing all undesirable characters at once" in:

http://alvinalexander.com/unix/edu/un010011/

On Tue, Aug 20, 2013 at 3:25 PM, Aron Roberts aronroberts@gmail.com
wrote:

Hi Al,

If it matters, I looked in my settings.xml file and get a big chunk of

this: ^@^@^@^@^@^@^.

It's possible that stray characters in any of the merge files:
settings.xml, local-omca-settings.xml, and/or
omca-collectionobject.xml, might be fouling up the merge attempts.  If
you have a way of finding and removing them - such as using BBEdit's
or TextWrangler's (Mac OS X text editors) "Zap Gremlins" feature -
that might help.  (That big chunk of ^@ could well be part of the
issue.)

Using TextWrangler, for instance:

Aron

On Tue, Aug 20, 2013 at 3:12 PM, Al Bersch abersch@museumca.org wrote:

Hi Aron,

Thanks so much for addressing these questions.

I entered the language at the end of your email into my
/tomcat-main/src/main/resources/omca-tenant.xml file, like this:

<cspace-config tenantname="omca">
     <version>11</version>
     <!-- Note: omca-collectionobject.xml should not appear in the

'include' line below -->
<!-- This line is for merging various settings files together.

-->

     <include src="settings.xml,local-omca-settings.xml"

merge="xmlmerge.properties"
strip-root="yes" />

     <spec>
             <include src="base-relations.xml"/>
             <include src="base-schemas.xml"/>

             <records>
                     <enum-blank>Please select a value</enum-blank>
                     <!-- Here's where you can indicate that you

want to

merge in your own Cataloging record changes -->
<include
src="base-collectionobject.xml,omca-collectionobject.xml"
merge="xmlmerge.properties"/
<include src="base-procedure-acquisition.xml"/>
<include src="base-procedure-blobs.xml"/>
...

then re-created the omca-collectionobject.xml file (located at
tomcat-main/src/main/resources/tenants/omca) with this inside it:

+<record id="collection-object">
+

  • <section id="identificationInformation">
  •    <repeat id="responsibleDepartments" has-primary="yes">
    

<selector>object-identification-responsible-department</selector>

  •        <field id="responsibleDepartment" ui-search="repeatable"
    

mini="search"

  •         seperate_ui_container="true">
    

<selector>object-identification-responsible-department</selector>

  •            <options>
    
  •                <option id="">Please select a value</option>
    
  •                <option id="art">Art</option>
    
  •                <option id="history">History</option>
    
  •                <option id="science">Science</option>
    
  •                <option id="collections">Collections</option>
    
  •                <option id="education">Education</option>
    
  •                <option id="professionalservices">Professional
    

Services</option>

  •                <option id="multi">Multi</option>
    
  •            </options>
    
  •        </field>
    
  •    </repeat>
    
  •    <field id="collection" ui-search="repeatable"
    

seperate_ui_container="true">

  •        <selector>object-identification-collection</selector>
    
  •        <options>
    
  •           <option id="">Please select a value</option>
    
  •           <option id="art">Art</option>
    
  •           <option id="artandartifact">Art and Artifact</option>
    
  •           <option id="exhibit">Exhibit</option>
    
  •           <option id="history">History</option>
    
  •           <option id="scientomology">SCI-Entomology</option>
    
  •           <option id="scifineart">SCI-Fine Art</option>
    
  •           <option id="scigalleryspecimens">SCI-Gallery
    

Specimens</option>

  •           <option id="scigeology">SCI-Geology</option>
    
  •           <option id="sciherbarium">SCI-Herbarium</option>
    
  •           <option id="sciherpetology">SCI-Herpetology</option>
    
  •           <option id="sciicthyology">SCI-Icthyology</option>
    
  •           <option id="sciinvertebrates">SCI-Invertebrates</option>
    
  •           <option id="scilapidary">SCI-Lapidary</option>
    
  •           <option id="scimalacology">SCI-Malacology</option>
    
  •           <option id="scimammalogy">SCI-Mammalogy</option>
    
  •           <option id="scimiscellaneous">SCI-Miscellaneous</option>
    
  •           <option id="sciornithology">SCI-Ornithology</option>
    
  •           <option id="scipaleontology">SCI-Paleontology</option>
    
  •           <option id="sciphoto">SCI-Photo</option>
    
  •           <option id="scisnuffbottles">SCI-Snuff Bottles</option>
    
  •           <option id="specimen">Specimen</option>
    
  •        </options>
    
  •    </field>
    
  • </section>

+</record>

But alas, I'm still getting the same error message when I log into my
tenant.

If it matters, I looked in my settings.xml file and get a big chunk of

this:

^@^@^@^@^@^@^.

do you see anything wrong here in the files I copied?

thanks,

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" aronroberts@gmail.com
To: "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Monday, August 19, 2013 5:39:58 PM

Subject: Re: [Talk] deploy mvn error

Hi Al,

My sincere apologies for these difficulties you've been encountering.

It looks like the problem is with merging settings.xml and
local-omca-settings.xml?

Yes, that certainly looks like the case.

This line appeared in part of the output from this error, in

catalina.out:

2013-08-19 21:46:13,364 ERROR [http-8180-3] ... Message: Exception

raised

during parsing
Stack :

org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61)

From looking at the Application layer's code at line 61 of
AssemblingParser.java:

it appears the error is in reading or merging XML content, rather than

in

not finding either of the two files to be merged, or in not being able

to

read them as a result of insufficient access permissions or other
filesystem-related issues.

It appears that you might potentially be inadvertently trying to

merge two

dissimilar things: a settings file for your tenant (which contains some
general administrative settings), together with some field-level

settings

for a particular record type.

If you'd like to merge custom changes into the Cataloging record,

such as

changing the contents of options lists, here's an example of how you can
specify that, as shown line 12 of the tenant 'includes' file for the

UCJEPS

herbaria:

Following that example, your
/tomcat-main/src/main/resources/omca-tenant.xml file might look

something

like the following:

<cspace-config tenantname="omca"> <version>11</version> <!-- Note: omca-collectionobject.xml should not appear in the

'include'

line below -->
<!-- This line is for merging various settings files together. -->
<include src="settings.xml,local-settings.xml" merge="xmlmerge-settings.properties" strip-root="yes"/>
...
<records>
<enum-blank>Please select a value</enum-blank>
<!-- Here's where you can indicate that you want to merge in your

own

Cataloging record changes -->
<include src="base-collectionobject.xml,omca-collectionobject.xml" merge="xmlmerge.properties"/>
...

Aron

On Mon, Aug 19, 2013 at 4:28 PM, Al Bersch abersch@museumca.org

wrote:

Hi Aron,

Thanks so much again for your continued assistance. And for the plug

for

using github as a backup resource - I'll do that, and also apologize in
advance for the cut-and-paste text below.

I installed DiffMerge, but I'm not sure what to compare, since the

file I

added to the omca tenant (omca-collectionobject.xml), wasn't there in

the

previous snapshot. I think I'm a little confused.

I looked in the cspace-app.log and catalina.out (can you tell me where

I

might find catalina.(today'sdate).log?) and here are some snippets,

first

from cspace-app.log:

2013-08-19 21:46:13,363 WARN  [http-8180-3]

[org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:218]

Could not merge the include files: settings.xml,local-omca-settings.xml
2013-08-19 21:46:13,364 ERROR [http-8180-3]

[org.collectionspace.chain.csp.config.impl.parser.ConfigLoadingMessagesImpl:16]

Message: Exception raised during parsing

Stack :

org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61)

org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse

(62)

org.collectionspace.csp.container.impl.CSPManagerImpl.configure (54)
org.collectionspace.chain.controller.TenantServlet.load_config (156)
org.collectionspace.chain.controller.TenantServlet.setup (179)
org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant
(117)
org.collectionspace.chain.controller.TenantUIServlet.service (568)
javax.servlet.http.HttpServlet.service (717)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (290)
org.apache.catalina.core.ApplicationFilterChain.doFilter (206)
org.collectionspace.chain.controller.filters.PerflogFilter.doFilter

(33)

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235)
org.apache.catalina.core.ApplicationFilterChain.doFilter (206)
org.collectionspace.chain.controller.filters.CharSetFilter.doFilter

(99)

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235)
org.apache.catalina.core.ApplicationFilterChain.doFilter (206)
org.apache.catalina.core.StandardWrapperValve.invoke (233)
org.apache.catalina.core.StandardContextValve.invoke (191)
org.apache.catalina.core.StandardHostValve.invoke (127)
org.apache.catalina.valves.ErrorReportValve.invoke (102)
org.apache.catalina.valves.AccessLogValve.invoke (589)
org.apache.catalina.core.StandardEngineValve.invoke (109)
org.apache.catalina.connector.CoyoteAdapter.service (291)
org.apache.coyote.http11.Http11Processor.process (859)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
(602)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run (489)
java.lang.Thread.run (724)

CAUSED BY
Message: Could not load source

then from catalina.out:

2013-08-19 17:49:25,334 ERROR [main]
[org.collectionspace.services.common.config.ConfigUtils:51] No domain

name

was specified on call to getRepositoryName() method.2013-08-19

17:49:25,334

ERROR [main]

[org.collectionspace.services.common.config.ConfigUtils:51] No

domain name was specified on call to getRepositoryName()

method.2013-08-19

17:49:25,334 ERROR [main]
[org.collectionspace.services.common.config.ConfigUtils:51] No domain

name

was specified on call to getRepositoryName() method.[INFO] Starting up

the

CollectionSpace Services' JAX-RS application.Static initializtion of:
org.collectionspace.services.common.security.SecurityInterceptor[INFO]
CollectionSpace Services' JAX-RS application started.2013-08-19

17:49:27,339

(0) [http-8180-4] INFO

org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:

XMLMerge result output to:

/usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19

17:49:29,695 (2356) [http-8180-2] INFO

org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:

XMLMerge result output to:

/usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19

17:49:29,732 (2393) [net.sf.ehcache.CacheManager@23aeae74] INFO
net.sf.ehcache.util.UpdateChecker: New update(s) found: 2.6.5
[

Please check http://ehcache.org for the latest version.Could not get

session

from CSPACESESSID cookie with value:
31b6c5daf4d4180636604cb25ac9f75f2013-08-19 17:49:47,810 WARN

[http-8180-7]

[org.collectionspace.services.common.security.SecurityInterceptor:358]
Attempt to logout when Nuxeo login context was null2013-08-19

17:49:47,953

WARN  [http-8180-7]

[org.springframework.security.web.context.HttpSessionSecurityContextRepository:396]

Failed to create a session, as response has been committed. Unable to

store

SecurityContext.2013-08-19 17:49:48,765 WARN  [http-8180-7]
[org.collectionspace.services.common.security.SecurityInterceptor:358]
Attempt to logout when Nuxeo login context was null2013-08-19

17:49:48,773

WARN  [http-8180-7]

[org.springframework.security.web.context.HttpSessionSecurityContextRepository:396]

Failed to create a session, as response has been committed. Unable to

store

SecurityContext.2013-08-19 21:07:17,771 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2191] The web application
[/collectionspace] appears to have started a thread named
[net.sf.ehcache.CacheManager@23aeae74] but has failed to stop it.

This is

very likely to create a memory leak.2013-08-19 21:07:17,772 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2191] The web application
[/collectionspace] appears to have started a thread named
[MultiThreadedHttpConnectionManager cleanup] but has failed to stop

it. This

is very likely to create a memory leak.2013-08-19 21:07:17,780 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2453] The web application
[/collectionspace] created a ThreadLocal with key of type
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a

value of

type [java.util.HashMap] (value [{}]) but failed to remove it when the

web

application was stopped. This is very likely to create a memory
leak.2013-08-19 21:07:17,781 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2453] The web application
[/collectionspace] created a ThreadLocal with key of type
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a

value of

type [java.util.HashMap] (value [{}]) but failed to remove it when the

web

application was stopped. This is very likely to create a memory
leak.2013-08-19 21:09:34,685 (0) [http-8180-4] WARN

org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:

Could not merge the include files: settings.xml,local-omca-settings.xml

It looks like the problem is with merging settings.xml and
local-omca-settings.xml?

I've tried a second time to create the configuration change in
omca-collectionobject.xml (a newly created xml file with only this

snippet

in it:

+<record id="collection-object">
+

  • <section id="identificationInformation">
  •    <repeat id="responsibleDepartments" has-primary="yes">
    

<selector>object-identification-responsible-department</selector>

  •        <field id="responsibleDepartment" ui-search="repeatable"
    

mini="search"

  •         seperate_ui_container="true">
    

<selector>object-identification-responsible-department</selector>

  •            <options>
    
  •                <option id="">Please select a value</option>
    
  •                <option id="art">Art</option>
    
  •                <option id="history">History</option>
    
  •                <option id="science">Science</option>
    
  •                <option id="collections">Collections</option>
    
  •                <option id="education">Education</option>
    
  •                <option id="professionalservices">Professional
    

Services</option>

  •                <option id="multi">Multi</option>
    
  •            </options>
    
  •        </field>
    
  •    </repeat>
    
  •    <field id="collection" ui-search="repeatable"
    

seperate_ui_container="true">

  •        <selector>object-identification-collection</selector>
    
  •        <options>
    
  •           <option id="">Please select a value</option>
    
  •           <option id="art">Art</option>
    
  •           <option id="artandartifact">Art and Artifact</option>
    
  •           <option id="exhibit">Exhibit</option>
    
  •           <option id="history">History</option>
    
  •           <option id="scientomology">SCI-Entomology</option>
    
  •           <option id="scifineart">SCI-Fine Art</option>
    
  •           <option id="scigalleryspecimens">SCI-Gallery
    

Specimens</option>

  •           <option id="scigeology">SCI-Geology</option>
    
  •           <option id="sciherbarium">SCI-Herbarium</option>
    
  •           <option id="sciherpetology">SCI-Herpetology</option>
    
  •           <option id="sciicthyology">SCI-Icthyology</option>
    
  •           <option
    

id="sciinvertebrates">SCI-Invertebrates</option>

  •           <option id="scilapidary">SCI-Lapidary</option>
    
  •           <option id="scimalacology">SCI-Malacology</option>
    
  •           <option id="scimammalogy">SCI-Mammalogy</option>
    
  •           <option
    

id="scimiscellaneous">SCI-Miscellaneous</option>

  •           <option id="sciornithology">SCI-Ornithology</option>
    
  •           <option id="scipaleontology">SCI-Paleontology</option>
    
  •           <option id="sciphoto">SCI-Photo</option>
    
  •           <option id="scisnuffbottles">SCI-Snuff Bottles</option>
    
  •           <option id="specimen">Specimen</option>
    
  •        </options>
    
  •    </field>
    
  • </section>

+</record>

then according to your last email, I ran "mvn clean install -DskipTest"
rather than "mvn deploy -DskipTests". I ran this in the application

layer

folder called "application" that contains the pom.xml file. In my path

it

looks like /home/root/application-source/application/. Then, do I

understand

I also need to run "ant deploy"? I wasn't able to run this in the same
folder - I got an error saying this is no build file.

I'm going off your previous instructions, as well as the documentation

on

the wiki for customizing the application layer:

Hi Becky and Al,
One more set of notes on making 'starting out' customizations,
below: this one a customization of options in dropdown menus.
Aron
(Recommendation: start the CollectionSpace server before making the
following changes.  This will help ensure those changes are made
'live.')

  • An example of how to replace the default sets of options in the
    dropdown menus for the Responsible Department and OMCA Collection
    fields.
    The existing documentation on updating these option lists is
    confusing, and wildly out of date; we expect to be updating it in the
    near future.  The customization method shown here as an example
    reflects recently-added 'merge' capabilities that allow you to simply
    replicate the block of configuration you want to customize, within a
    separate file for your own museum; it will override the corresponding
    configuration block in the default settings:
    Actual change(s) made, within the source code tree for
    CollectionSpace's Application layer:

You can compare this to the default configuration file for the
Cataloging record, in which the default options for those two dropdown
menus appear:

To copy (deploy) these changes to the server folder, enter the
following at a command prompt, from within the top-level folder of the
Application source code tree:
mvn deploy -DskipTests

Sorry I'm not getting this! Do you have any ideas?

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" aronroberts@gmail.com
To: "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Friday, August 16, 2013 1:28:48 PM

Subject: Re: [Talk] deploy mvn error

The key is likely this snippet, from near the beginning of that long

and

singularly unhelpful chain of messages:
"org.collectionspace.chain.csp.config.ConfigException: Error loading
config"

There may have been an error made in whatever configuration file, or
files, were modified.  After they were deployed (copied) to the

server, when

the Application layer read them, it got confused and barfed out this

long

stack trace.

Typically, this means the file(s), after being modified, weren't
well-formed XML - perhaps an ending tag was left out somewhere? - or

they

didn't conform to the Application layer's expectation of what 'tags'

(XML

elements) are expected, in which hierarchical locations within the

file.

Yes, reverting to a snapshot and re-deploying (via 'mvn clean install
-DskipTests') and restarting Tomcat, should resolve the issue.  You

might

also try, however, using a utility app that can show you differences

between

two files - your current version and your snapshot - and see if the

error is

readily made apparent by looking at those changes in that 'diff' view.

(If

you're using Mac OS X, there's a list of such apps at
http://apple.stackexchange.com/a/87188)

It's also worth checking the current cspace-app.log and

catalina.{today's

date}.log to see if there may be any log message specifically

pinpointing

the configuration error.

Aron

On Fri, Aug 16, 2013 at 1:16 PM, Al Bersch abersch@museumca.org

wrote:

Hi again,

Ok, I think I must have messed up somewhere when changing the files

in

the application layer. When I navigated to our tenant, the login

screen is

blank except for a place to put a user name and password. when I

submit my

password, I get this message:  Any idea what I did wrong? Thanks!

I have a snapshot prior to the changes in the application layer, so I
can always go back in time and try again.

Al

HTTP Status 400 -
org.collectionspace.chain.controller.BadRequestException: Cannot

initialise

CSPs org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading

config.

See messages for details: summary Exception raised during parsing at

org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185)

at

org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117)

at

org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at

org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33)

at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at

org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99)

at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at

org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)

at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)

at

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)

at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)

at

org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

at java.lang.Thread.run(Thread.java:724) Caused by:
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading

config.

See messages for details: summary Exception raised during parsing at

org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64)

at

org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156)

at

org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179)

... 22 more Caused by:

org.collectionspace.chain.csp.config.ConfigException:

Error loading config. See messages for details: summary Exception

raised

during parsing at

org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78)

at

org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74)

at

org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54)

... 24 more


type Status report

message org.collectionspace.chain.controller.BadRequestException:

Cannot

initialise CSPs

org.collectionspace.csp.api.core.CSPDependencyException:

org.collectionspace.chain.csp.config.ConfigException: Error loading

config.

See messages for details: summary Exception raised during parsing at

org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185)

at

org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117)

at

org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at

org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33)

at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at

org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99)

at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at

org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)

at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)

at

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)

at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)

at

org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

at java.lang.Thread.run(Thread.java:724) Caused by:
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading

config.

See messages for details: summary Exception raised during parsing at

org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64)

at

org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156)

at

org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179)

... 22 more Caused by:

org.collectionspace.chain.csp.config.ConfigException:

Error loading config. See messages for details: summary Exception

raised

during parsing at

org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78)

at

org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74)

at

org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54)

... 24 more

description The request sent by the client was syntactically

incorrect

(org.collectionspace.chain.controller.BadRequestException: Cannot

initialise

CSPs org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading

config.

See messages for details: summary Exception raised during parsing at

org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185)

at

org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117)

at

org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at

org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33)

at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at

org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99)

at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at

org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)

at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)

at

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)

at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)

at

org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

at java.lang.Thread.run(Thread.java:724) Caused by:
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading

config.

See messages for details: summary Exception raised during parsing at

org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64)

at

org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156)

at

org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179)

... 22 more Caused by:

org.collectionspace.chain.csp.config.ConfigException:

Error loading config. See messages for details: summary Exception

raised

during parsing at

org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78)

at

org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74)

at

org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54)

... 24 more ).

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


From: "Aron Roberts" aronroberts@gmail.com
To: "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Friday, August 16, 2013 12:58:56 PM
Subject: Re: [Talk] deploy mvn error

Hi Al,

You likely will have success with 'mvn clean install -DskipTests'

when

building and deploying the App layer with your dropdown list

changes, rather

than 'mvn deploy -DskipTests'.

It's a bit confusing (and I hope I don't need to keep repeating

this

:-), but CollectionSpace Services layer uses Maven to build

artifacts and

Ant buildfiles to deploy (copy) them to the server (hence 'mvn clean
install' followed by 'ant deploy'), while the Application and UI

layers use

Maven ('mvn install') for both tasks.  There are some historical and
technical reasons for this difference, not worth going into ...

Aron

On Fri, Aug 16, 2013 at 12:49 PM, Al Bersch abersch@museumca.org
wrote:

Hello all,

I changed our dropdown lists in Department and Collection in the
application layer source code, and when I ran mvn deploy

-DskipTests I get

this error:

[ERROR] BUILD ERROR
[INFO]


[INFO] Failed to configure plugin parameters for:
org.apache.maven.plugins:maven-deploy-plugin:2.4

check that the following section of the pom.xml is present and

correct:

<distributionManagement> <!-- use the following if you're not using a snapshot version. --> <repository> <id>repo</id> <name>Repository Name</name> <url>scp://host/path/to/repo</url> </repository> <!-- use the following if you ARE using a snapshot version. --> <snapshotRepository> <id>repo</id> <name>Repository Name</name> <url>scp://host/path/to/repo</url> </snapshotRepository> </distributionManagement>

Cause: Class

'org.apache.maven.artifact.repository.ArtifactRepository'

cannot be instantiated

I looked in the pom.xml, and found this:

<!-- The CollectionSpace public Maven repository for "snapshot" artifacts --> <repositories> <repository> <id>libs-snapshot-local</id> <name>libs-snapshot-local</name> <url>
             <snapshots>
                     <enabled>true</enabled>
             </snapshots>

I'm wondering, which repository setting should I use (snapshot or

not

snapshot)? Our installation is on a virtual server in linode.

And, does anyone know where I should set the path to our repository?
I'm guessing that the error is party due to the url being mapped to
nightly.collectionspace.org.

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

Hi Al, The error you're seeing is characteristic of malformed XML in one of your configuration files. If you run an XML checker over the files you edited, you'll probably catch the problem. Ray On Tue, Aug 20, 2013 at 3:34 PM, Aron Roberts <aronroberts@gmail.com> wrote: > If it's easiest to use command line tools - you're using an Ubuntu > system, yes? - you might try this 'sed' command to remove those > specific stray characters: > > http://superuser.com/questions/507267/how-to-grep-for-special-character-nul > > If the merge still fails, you might try a more thorough cleaning of > each file; there's an example for doing this (stripping out all but a > subset of vanilla, printable USASCII characters from a file) by using > a 'tr' command under "Removing all undesirable characters at once" in: > > http://alvinalexander.com/unix/edu/un010011/ > > On Tue, Aug 20, 2013 at 3:25 PM, Aron Roberts <aronroberts@gmail.com> > wrote: > > Hi Al, > > > >> If it matters, I looked in my settings.xml file and get a big chunk of > this: ^@^@^@^@^@^@^. > > > > It's possible that stray characters in any of the merge files: > > settings.xml, local-omca-settings.xml, and/or > > omca-collectionobject.xml, might be fouling up the merge attempts. If > > you have a way of finding and removing them - such as using BBEdit's > > or TextWrangler's (Mac OS X text editors) "Zap Gremlins" feature - > > that might help. (That big chunk of ^@ could well be part of the > > issue.) > > > > Using TextWrangler, for instance: > > > http://indesignsecrets.com/zap-gremlins-in-problem-data-merge-files.php > > > > Aron > > > > On Tue, Aug 20, 2013 at 3:12 PM, Al Bersch <abersch@museumca.org> wrote: > >> Hi Aron, > >> > >> Thanks so much for addressing these questions. > >> > >> I entered the language at the end of your email into my > >> /tomcat-main/src/main/resources/omca-tenant.xml file, like this: > >> > >> <cspace-config tenantname="omca"> > >> > >> <version>11</version> > >> <!-- Note: omca-collectionobject.xml should not appear in the > >> 'include' line below --> > >> <!-- This line is for merging various settings files together. > --> > >> <include src="settings.xml,local-omca-settings.xml" > >> merge="xmlmerge.properties" > >> strip-root="yes" /> > >> > >> <spec> > >> <include src="base-relations.xml"/> > >> <include src="base-schemas.xml"/> > >> > >> <records> > >> <enum-blank>Please select a value</enum-blank> > >> <!-- Here's where you can indicate that you > want to > >> merge in your own Cataloging record changes --> > >> <include > >> src="base-collectionobject.xml,omca-collectionobject.xml" > >> merge="xmlmerge.properties"/ > >> <include src="base-procedure-acquisition.xml"/> > >> <include src="base-procedure-blobs.xml"/> > >> ... > >> > >> then re-created the omca-collectionobject.xml file (located at > >> tomcat-main/src/main/resources/tenants/omca) with this inside it: > >> > >> +<record id="collection-object"> > >> + > >> + <section id="identificationInformation"> > >> + <repeat id="responsibleDepartments" has-primary="yes"> > >> + > >> <selector>object-identification-responsible-department</selector> > >> + <field id="responsibleDepartment" ui-search="repeatable" > >> mini="search" > >> + seperate_ui_container="true"> > >> + > >> <selector>object-identification-responsible-department</selector> > >> + <options> > >> + <option id="">Please select a value</option> > >> + <option id="art">Art</option> > >> + <option id="history">History</option> > >> + <option id="science">Science</option> > >> + <option id="collections">Collections</option> > >> + <option id="education">Education</option> > >> + <option id="professionalservices">Professional > >> Services</option> > >> + <option id="multi">Multi</option> > >> + </options> > >> + </field> > >> + </repeat> > >> + <field id="collection" ui-search="repeatable" > >> seperate_ui_container="true"> > >> + <selector>object-identification-collection</selector> > >> + <options> > >> + <option id="">Please select a value</option> > >> + <option id="art">Art</option> > >> + <option id="artandartifact">Art and Artifact</option> > >> + <option id="exhibit">Exhibit</option> > >> + <option id="history">History</option> > >> + <option id="scientomology">SCI-Entomology</option> > >> + <option id="scifineart">SCI-Fine Art</option> > >> + <option id="scigalleryspecimens">SCI-Gallery > >> Specimens</option> > >> + <option id="scigeology">SCI-Geology</option> > >> + <option id="sciherbarium">SCI-Herbarium</option> > >> + <option id="sciherpetology">SCI-Herpetology</option> > >> + <option id="sciicthyology">SCI-Icthyology</option> > >> + <option id="sciinvertebrates">SCI-Invertebrates</option> > >> + <option id="scilapidary">SCI-Lapidary</option> > >> + <option id="scimalacology">SCI-Malacology</option> > >> + <option id="scimammalogy">SCI-Mammalogy</option> > >> + <option id="scimiscellaneous">SCI-Miscellaneous</option> > >> + <option id="sciornithology">SCI-Ornithology</option> > >> + <option id="scipaleontology">SCI-Paleontology</option> > >> + <option id="sciphoto">SCI-Photo</option> > >> + <option id="scisnuffbottles">SCI-Snuff Bottles</option> > >> + <option id="specimen">Specimen</option> > >> + </options> > >> + </field> > >> + </section> > >> + > >> +</record> > >> > >> But alas, I'm still getting the same error message when I log into my > >> tenant. > >> > >> If it matters, I looked in my settings.xml file and get a big chunk of > this: > >> ^@^@^@^@^@^@^. > >> > >> do you see anything wrong here in the files I copied? > >> > >> thanks, > >> > >> 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" <aronroberts@gmail.com> > >> To: "Al Bersch" <abersch@museumca.org> > >> Cc: "talk" <talk@lists.collectionspace.org> > >> Sent: Monday, August 19, 2013 5:39:58 PM > >> > >> Subject: Re: [Talk] deploy mvn error > >> > >> Hi Al, > >> > >> My sincere apologies for these difficulties you've been encountering. > >> > >>> It looks like the problem is with merging settings.xml and > >>> local-omca-settings.xml? > >> > >> Yes, that certainly looks like the case. > >> > >> This line appeared in part of the output from this error, in > catalina.out: > >> > >>> 2013-08-19 21:46:13,364 ERROR [http-8180-3] ... Message: Exception > raised > >>> during parsing > >>> Stack : > >>> > org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61) > >> > >> From looking at the Application layer's code at line 61 of > >> AssemblingParser.java: > >> > https://github.com/collectionspace/application/blob/v3.3/csp-impl/src/main/java/org/collectionspace/chain/csp/config/impl/parser/AssemblingParser.java#L61 > >> it appears the error is in reading or merging XML content, rather than > in > >> not finding either of the two files to be merged, or in not being able > to > >> read them as a result of insufficient access permissions or other > >> filesystem-related issues. > >> > >> It appears that you might potentially be inadvertently trying to > merge two > >> dissimilar things: a settings file for your tenant (which contains some > >> general administrative settings), together with some field-level > settings > >> for a particular record type. > >> > >> If you'd like to merge custom changes into the Cataloging record, > such as > >> changing the contents of options lists, here's an example of how you can > >> specify that, as shown line 12 of the tenant 'includes' file for the > UCJEPS > >> herbaria: > >> > >> > https://github.com/cspace-deployment/application/blob/ucjeps_3.2/tomcat-main/src/main/resources/ucjeps-tenant.xml#L12 > >> > >> Following that example, your > >> /tomcat-main/src/main/resources/omca-tenant.xml file might look > something > >> like the following: > >> > >> <cspace-config tenantname="omca"> > >> <version>11</version> > >> <!-- Note: omca-collectionobject.xml should not appear in the > 'include' > >> line below --> > >> <!-- This line is for merging various settings files together. --> > >> <include src="settings.xml,local-settings.xml" > >> merge="xmlmerge-settings.properties" strip-root="yes"/> > >> ... > >> <records> > >> <enum-blank>Please select a value</enum-blank> > >> <!-- Here's where you can indicate that you want to merge in your > own > >> Cataloging record changes --> > >> <include src="base-collectionobject.xml,omca-collectionobject.xml" > >> merge="xmlmerge.properties"/> > >> ... > >> > >> Aron > >> > >> On Mon, Aug 19, 2013 at 4:28 PM, Al Bersch <abersch@museumca.org> > wrote: > >>> > >>> Hi Aron, > >>> > >>> Thanks so much again for your continued assistance. And for the plug > for > >>> using github as a backup resource - I'll do that, and also apologize in > >>> advance for the cut-and-paste text below. > >>> > >>> I installed DiffMerge, but I'm not sure what to compare, since the > file I > >>> added to the omca tenant (omca-collectionobject.xml), wasn't there in > the > >>> previous snapshot. I think I'm a little confused. > >>> > >>> I looked in the cspace-app.log and catalina.out (can you tell me where > I > >>> might find catalina.(today'sdate).log?) and here are some snippets, > first > >>> from cspace-app.log: > >>> > >>> 2013-08-19 21:46:13,363 WARN [http-8180-3] > >>> > [org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:218] > >>> Could not merge the include files: settings.xml,local-omca-settings.xml > >>> 2013-08-19 21:46:13,364 ERROR [http-8180-3] > >>> > [org.collectionspace.chain.csp.config.impl.parser.ConfigLoadingMessagesImpl:16] > >>> Message: Exception raised during parsing > >>> > >>> Stack : > >>> > org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61) > >>> org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse > (62) > >>> org.collectionspace.csp.container.impl.CSPManagerImpl.configure (54) > >>> org.collectionspace.chain.controller.TenantServlet.load_config (156) > >>> org.collectionspace.chain.controller.TenantServlet.setup (179) > >>> org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant > >>> (117) > >>> org.collectionspace.chain.controller.TenantUIServlet.service (568) > >>> javax.servlet.http.HttpServlet.service (717) > >>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (290) > >>> org.apache.catalina.core.ApplicationFilterChain.doFilter (206) > >>> org.collectionspace.chain.controller.filters.PerflogFilter.doFilter > (33) > >>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235) > >>> org.apache.catalina.core.ApplicationFilterChain.doFilter (206) > >>> org.collectionspace.chain.controller.filters.CharSetFilter.doFilter > (99) > >>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235) > >>> org.apache.catalina.core.ApplicationFilterChain.doFilter (206) > >>> org.apache.catalina.core.StandardWrapperValve.invoke (233) > >>> org.apache.catalina.core.StandardContextValve.invoke (191) > >>> org.apache.catalina.core.StandardHostValve.invoke (127) > >>> org.apache.catalina.valves.ErrorReportValve.invoke (102) > >>> org.apache.catalina.valves.AccessLogValve.invoke (589) > >>> org.apache.catalina.core.StandardEngineValve.invoke (109) > >>> org.apache.catalina.connector.CoyoteAdapter.service (291) > >>> org.apache.coyote.http11.Http11Processor.process (859) > >>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process > >>> (602) > >>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run (489) > >>> java.lang.Thread.run (724) > >>> > >>> CAUSED BY > >>> Message: Could not load source > >>> > >>> > >>> > >>> then from catalina.out: > >>> > >>> 2013-08-19 17:49:25,334 ERROR [main] > >>> [org.collectionspace.services.common.config.ConfigUtils:51] No domain > name > >>> was specified on call to getRepositoryName() method.2013-08-19 > 17:49:25,334 > >>> ERROR [main] > [org.collectionspace.services.common.config.ConfigUtils:51] No > >>> domain name was specified on call to getRepositoryName() > method.2013-08-19 > >>> 17:49:25,334 ERROR [main] > >>> [org.collectionspace.services.common.config.ConfigUtils:51] No domain > name > >>> was specified on call to getRepositoryName() method.[INFO] Starting up > the > >>> CollectionSpace Services' JAX-RS application.Static initializtion of: > >>> org.collectionspace.services.common.security.SecurityInterceptor[INFO] > >>> CollectionSpace Services' JAX-RS application started.2013-08-19 > 17:49:27,339 > >>> (0) [http-8180-4] INFO > >>> > org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler: > >>> XMLMerge result output to: > >>> > /usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19 > >>> 17:49:29,695 (2356) [http-8180-2] INFO > >>> > org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler: > >>> XMLMerge result output to: > >>> > /usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19 > >>> 17:49:29,732 (2393) [net.sf.ehcache.CacheManager@23aeae74] INFO > >>> net.sf.ehcache.util.UpdateChecker: New update(s) found: 2.6.5 > >>> [ > http://www.terracotta.org/confluence/display/release/Release+Notes+Ehcache+Core+2.6 > ]. > >>> Please check http://ehcache.org for the latest version.Could not get > session > >>> from CSPACESESSID cookie with value: > >>> 31b6c5daf4d4180636604cb25ac9f75f2013-08-19 17:49:47,810 WARN > [http-8180-7] > >>> [org.collectionspace.services.common.security.SecurityInterceptor:358] > >>> Attempt to logout when Nuxeo login context was null2013-08-19 > 17:49:47,953 > >>> WARN [http-8180-7] > >>> > [org.springframework.security.web.context.HttpSessionSecurityContextRepository:396] > >>> Failed to create a session, as response has been committed. Unable to > store > >>> SecurityContext.2013-08-19 17:49:48,765 WARN [http-8180-7] > >>> [org.collectionspace.services.common.security.SecurityInterceptor:358] > >>> Attempt to logout when Nuxeo login context was null2013-08-19 > 17:49:48,773 > >>> WARN [http-8180-7] > >>> > [org.springframework.security.web.context.HttpSessionSecurityContextRepository:396] > >>> Failed to create a session, as response has been committed. Unable to > store > >>> SecurityContext.2013-08-19 21:07:17,771 ERROR > >>> [ContainerBackgroundProcessor[StandardEngine[Catalina]]] > >>> [org.apache.catalina.loader.WebappClassLoader:2191] The web application > >>> [/collectionspace] appears to have started a thread named > >>> [net.sf.ehcache.CacheManager@23aeae74] but has failed to stop it. > This is > >>> very likely to create a memory leak.2013-08-19 21:07:17,772 ERROR > >>> [ContainerBackgroundProcessor[StandardEngine[Catalina]]] > >>> [org.apache.catalina.loader.WebappClassLoader:2191] The web application > >>> [/collectionspace] appears to have started a thread named > >>> [MultiThreadedHttpConnectionManager cleanup] but has failed to stop > it. This > >>> is very likely to create a memory leak.2013-08-19 21:07:17,780 ERROR > >>> [ContainerBackgroundProcessor[StandardEngine[Catalina]]] > >>> [org.apache.catalina.loader.WebappClassLoader:2453] The web application > >>> [/collectionspace] created a ThreadLocal with key of type > >>> [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value > >>> [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a > value of > >>> type [java.util.HashMap] (value [{}]) but failed to remove it when the > web > >>> application was stopped. This is very likely to create a memory > >>> leak.2013-08-19 21:07:17,781 ERROR > >>> [ContainerBackgroundProcessor[StandardEngine[Catalina]]] > >>> [org.apache.catalina.loader.WebappClassLoader:2453] The web application > >>> [/collectionspace] created a ThreadLocal with key of type > >>> [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value > >>> [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a > value of > >>> type [java.util.HashMap] (value [{}]) but failed to remove it when the > web > >>> application was stopped. This is very likely to create a memory > >>> leak.2013-08-19 21:09:34,685 (0) [http-8180-4] WARN > >>> > org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler: > >>> Could not merge the include files: settings.xml,local-omca-settings.xml > >>> > >>> > >>> It looks like the problem is with merging settings.xml and > >>> local-omca-settings.xml? > >>> > >>> I've tried a second time to create the configuration change in > >>> omca-collectionobject.xml (a newly created xml file with only this > snippet > >>> in it: > >>> > >>> +<record id="collection-object"> > >>> + > >>> + <section id="identificationInformation"> > >>> + <repeat id="responsibleDepartments" has-primary="yes"> > >>> + > >>> <selector>object-identification-responsible-department</selector> > >>> + <field id="responsibleDepartment" ui-search="repeatable" > >>> mini="search" > >>> + seperate_ui_container="true"> > >>> + > >>> <selector>object-identification-responsible-department</selector> > >>> + <options> > >>> + <option id="">Please select a value</option> > >>> + <option id="art">Art</option> > >>> + <option id="history">History</option> > >>> + <option id="science">Science</option> > >>> + <option id="collections">Collections</option> > >>> + <option id="education">Education</option> > >>> + <option id="professionalservices">Professional > >>> Services</option> > >>> + <option id="multi">Multi</option> > >>> + </options> > >>> + </field> > >>> + </repeat> > >>> + <field id="collection" ui-search="repeatable" > >>> seperate_ui_container="true"> > >>> + <selector>object-identification-collection</selector> > >>> + <options> > >>> + <option id="">Please select a value</option> > >>> + <option id="art">Art</option> > >>> + <option id="artandartifact">Art and Artifact</option> > >>> + <option id="exhibit">Exhibit</option> > >>> + <option id="history">History</option> > >>> + <option id="scientomology">SCI-Entomology</option> > >>> + <option id="scifineart">SCI-Fine Art</option> > >>> + <option id="scigalleryspecimens">SCI-Gallery > >>> Specimens</option> > >>> + <option id="scigeology">SCI-Geology</option> > >>> + <option id="sciherbarium">SCI-Herbarium</option> > >>> + <option id="sciherpetology">SCI-Herpetology</option> > >>> + <option id="sciicthyology">SCI-Icthyology</option> > >>> + <option > id="sciinvertebrates">SCI-Invertebrates</option> > >>> + <option id="scilapidary">SCI-Lapidary</option> > >>> + <option id="scimalacology">SCI-Malacology</option> > >>> + <option id="scimammalogy">SCI-Mammalogy</option> > >>> + <option > id="scimiscellaneous">SCI-Miscellaneous</option> > >>> + <option id="sciornithology">SCI-Ornithology</option> > >>> + <option id="scipaleontology">SCI-Paleontology</option> > >>> + <option id="sciphoto">SCI-Photo</option> > >>> + <option id="scisnuffbottles">SCI-Snuff Bottles</option> > >>> + <option id="specimen">Specimen</option> > >>> + </options> > >>> + </field> > >>> + </section> > >>> + > >>> +</record> > >>> > >>> > >>> > >>> then according to your last email, I ran "mvn clean install -DskipTest" > >>> rather than "mvn deploy -DskipTests". I ran this in the application > layer > >>> folder called "application" that contains the pom.xml file. In my path > it > >>> looks like /home/root/application-source/application/. Then, do I > understand > >>> I also need to run "ant deploy"? I wasn't able to run this in the same > >>> folder - I got an error saying this is no build file. > >>> > >>> I'm going off your previous instructions, as well as the documentation > on > >>> the wiki for customizing the application layer: > >>> > >>> Hi Becky and Al, > >>> One more set of notes on making 'starting out' customizations, > >>> below: this one a customization of options in dropdown menus. > >>> Aron > >>> (Recommendation: start the CollectionSpace server before making the > >>> following changes. This will help ensure those changes are made > >>> 'live.') > >>> * An example of how to replace the default sets of options in the > >>> dropdown menus for the Responsible Department and OMCA Collection > >>> fields. > >>> The existing documentation on updating these option lists is > >>> confusing, and wildly out of date; we expect to be updating it in the > >>> near future. The customization method shown here as an example > >>> reflects recently-added 'merge' capabilities that allow you to simply > >>> replicate the block of configuration you want to customize, within a > >>> separate file for your own museum; it will override the corresponding > >>> configuration block in the default settings: > >>> Actual change(s) made, within the source code tree for > >>> CollectionSpace's Application layer: > >>> > >>> > https://github.com/aronr/application/commit/b7a47d94fc6d44d0cad74f6444710a35373291c7 > >>> You can compare this to the default configuration file for the > >>> Cataloging record, in which the default options for those two dropdown > >>> menus appear: > >>> > >>> > https://github.com/aronr/application/blob/b7a47d94fc6d44d0cad74f6444710a35373291c7/tomcat-main/src/main/resources/defaults/base-collectionobject.xml#L112 > >>> To copy (deploy) these changes to the server folder, enter the > >>> following at a command prompt, from within the top-level folder of the > >>> Application source code tree: > >>> mvn deploy -DskipTests > >>> > >>> > >>> > >>> Sorry I'm not getting this! Do you have any ideas? > >>> > >>> 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" <aronroberts@gmail.com> > >>> To: "Al Bersch" <abersch@museumca.org> > >>> Cc: "talk" <talk@lists.collectionspace.org> > >>> Sent: Friday, August 16, 2013 1:28:48 PM > >>> > >>> Subject: Re: [Talk] deploy mvn error > >>> > >>> The key is likely this snippet, from near the beginning of that long > and > >>> singularly unhelpful chain of messages: > >>> "org.collectionspace.chain.csp.config.ConfigException: Error loading > >>> config" > >>> > >>> There may have been an error made in whatever configuration file, or > >>> files, were modified. After they were deployed (copied) to the > server, when > >>> the Application layer read them, it got confused and barfed out this > long > >>> stack trace. > >>> > >>> Typically, this means the file(s), after being modified, weren't > >>> well-formed XML - perhaps an ending tag was left out somewhere? - or > they > >>> didn't conform to the Application layer's expectation of what 'tags' > (XML > >>> elements) are expected, in which hierarchical locations within the > file. > >>> > >>> Yes, reverting to a snapshot and re-deploying (via 'mvn clean install > >>> -DskipTests') and restarting Tomcat, should resolve the issue. You > might > >>> also try, however, using a utility app that can show you differences > between > >>> two files - your current version and your snapshot - and see if the > error is > >>> readily made apparent by looking at those changes in that 'diff' view. > (If > >>> you're using Mac OS X, there's a list of such apps at > >>> http://apple.stackexchange.com/a/87188) > >>> > >>> It's also worth checking the current cspace-app.log and > catalina.{today's > >>> date}.log to see if there may be any log message specifically > pinpointing > >>> the configuration error. > >>> > >>> Aron > >>> > >>> On Fri, Aug 16, 2013 at 1:16 PM, Al Bersch <abersch@museumca.org> > wrote: > >>> > > >>> > Hi again, > >>> > > >>> > Ok, I think I must have messed up somewhere when changing the files > in > >>> > the application layer. When I navigated to our tenant, the login > screen is > >>> > blank except for a place to put a user name and password. when I > submit my > >>> > password, I get this message: Any idea what I did wrong? Thanks! > >>> > > >>> > I have a snapshot prior to the changes in the application layer, so I > >>> > can always go back in time and try again. > >>> > > >>> > Al > >>> > > >>> > HTTP Status 400 - > >>> > org.collectionspace.chain.controller.BadRequestException: Cannot > initialise > >>> > CSPs org.collectionspace.csp.api.core.CSPDependencyException: > >>> > org.collectionspace.chain.csp.config.ConfigException: Error loading > config. > >>> > See messages for details: summary Exception raised during parsing at > >>> > > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185) > >>> > at > >>> > > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117) > >>> > at > >>> > > org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568) > >>> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at > >>> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > >>> > at > >>> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > >>> > at > >>> > > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33) > >>> > at > >>> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > >>> > at > >>> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > >>> > at > >>> > > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99) > >>> > at > >>> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > >>> > at > >>> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > >>> > at > >>> > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > >>> > at > >>> > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > >>> > at > >>> > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > >>> > at > >>> > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > >>> > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589) > >>> > at > >>> > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > >>> > at > >>> > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) > >>> > at > >>> > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) > >>> > at > >>> > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) > >>> > at > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) > >>> > at java.lang.Thread.run(Thread.java:724) Caused by: > >>> > org.collectionspace.csp.api.core.CSPDependencyException: > >>> > org.collectionspace.chain.csp.config.ConfigException: Error loading > config. > >>> > See messages for details: summary Exception raised during parsing at > >>> > > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64) > >>> > at > >>> > > org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156) > >>> > at > >>> > > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179) > >>> > ... 22 more Caused by: > org.collectionspace.chain.csp.config.ConfigException: > >>> > Error loading config. See messages for details: summary Exception > raised > >>> > during parsing at > >>> > > org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78) > >>> > at > >>> > > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74) > >>> > at > >>> > > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54) > >>> > ... 24 more > >>> > > >>> > ________________________________ > >>> > > >>> > type Status report > >>> > > >>> > message org.collectionspace.chain.controller.BadRequestException: > Cannot > >>> > initialise CSPs > org.collectionspace.csp.api.core.CSPDependencyException: > >>> > org.collectionspace.chain.csp.config.ConfigException: Error loading > config. > >>> > See messages for details: summary Exception raised during parsing at > >>> > > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185) > >>> > at > >>> > > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117) > >>> > at > >>> > > org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568) > >>> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at > >>> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > >>> > at > >>> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > >>> > at > >>> > > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33) > >>> > at > >>> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > >>> > at > >>> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > >>> > at > >>> > > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99) > >>> > at > >>> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > >>> > at > >>> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > >>> > at > >>> > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > >>> > at > >>> > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > >>> > at > >>> > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > >>> > at > >>> > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > >>> > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589) > >>> > at > >>> > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > >>> > at > >>> > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) > >>> > at > >>> > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) > >>> > at > >>> > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) > >>> > at > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) > >>> > at java.lang.Thread.run(Thread.java:724) Caused by: > >>> > org.collectionspace.csp.api.core.CSPDependencyException: > >>> > org.collectionspace.chain.csp.config.ConfigException: Error loading > config. > >>> > See messages for details: summary Exception raised during parsing at > >>> > > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64) > >>> > at > >>> > > org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156) > >>> > at > >>> > > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179) > >>> > ... 22 more Caused by: > org.collectionspace.chain.csp.config.ConfigException: > >>> > Error loading config. See messages for details: summary Exception > raised > >>> > during parsing at > >>> > > org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78) > >>> > at > >>> > > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74) > >>> > at > >>> > > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54) > >>> > ... 24 more > >>> > > >>> > description The request sent by the client was syntactically > incorrect > >>> > (org.collectionspace.chain.controller.BadRequestException: Cannot > initialise > >>> > CSPs org.collectionspace.csp.api.core.CSPDependencyException: > >>> > org.collectionspace.chain.csp.config.ConfigException: Error loading > config. > >>> > See messages for details: summary Exception raised during parsing at > >>> > > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185) > >>> > at > >>> > > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117) > >>> > at > >>> > > org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568) > >>> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at > >>> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > >>> > at > >>> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > >>> > at > >>> > > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33) > >>> > at > >>> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > >>> > at > >>> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > >>> > at > >>> > > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99) > >>> > at > >>> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > >>> > at > >>> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > >>> > at > >>> > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > >>> > at > >>> > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > >>> > at > >>> > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > >>> > at > >>> > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > >>> > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589) > >>> > at > >>> > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > >>> > at > >>> > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) > >>> > at > >>> > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) > >>> > at > >>> > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) > >>> > at > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) > >>> > at java.lang.Thread.run(Thread.java:724) Caused by: > >>> > org.collectionspace.csp.api.core.CSPDependencyException: > >>> > org.collectionspace.chain.csp.config.ConfigException: Error loading > config. > >>> > See messages for details: summary Exception raised during parsing at > >>> > > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64) > >>> > at > >>> > > org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156) > >>> > at > >>> > > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179) > >>> > ... 22 more Caused by: > org.collectionspace.chain.csp.config.ConfigException: > >>> > Error loading config. See messages for details: summary Exception > raised > >>> > during parsing at > >>> > > org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78) > >>> > at > >>> > > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74) > >>> > at > >>> > > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54) > >>> > ... 24 more ). > >>> > > >>> > > >>> > Al Bersch > >>> > Digital Project Coordinator > >>> > Oakland Museum of California > >>> > 1000 Oak Street, Oakland, CA 94607 > >>> > abersch@museumca.org > >>> > 510-318-8468 > >>> > ________________________________ > >>> > From: "Aron Roberts" <aronroberts@gmail.com> > >>> > To: "Al Bersch" <abersch@museumca.org> > >>> > Cc: "talk" <talk@lists.collectionspace.org> > >>> > Sent: Friday, August 16, 2013 12:58:56 PM > >>> > Subject: Re: [Talk] deploy mvn error > >>> > > >>> > Hi Al, > >>> > > >>> > You likely will have success with 'mvn clean install -DskipTests' > when > >>> > building and deploying the App layer with your dropdown list > changes, rather > >>> > than 'mvn deploy -DskipTests'. > >>> > > >>> > It's a bit confusing (and I hope I don't need to keep repeating > this > >>> > :-), but CollectionSpace Services layer uses Maven to build > artifacts and > >>> > Ant buildfiles to deploy (copy) them to the server (hence 'mvn clean > >>> > install' followed by 'ant deploy'), while the Application and UI > layers use > >>> > Maven ('mvn install') for both tasks. There are some historical and > >>> > technical reasons for this difference, not worth going into ... > >>> > > >>> > Aron > >>> > > >>> > > >>> > On Fri, Aug 16, 2013 at 12:49 PM, Al Bersch <abersch@museumca.org> > >>> > wrote: > >>> >> > >>> >> Hello all, > >>> >> > >>> >> I changed our dropdown lists in Department and Collection in the > >>> >> application layer source code, and when I ran mvn deploy > -DskipTests I get > >>> >> this error: > >>> >> > >>> >> [ERROR] BUILD ERROR > >>> >> [INFO] > >>> >> > ------------------------------------------------------------------------ > >>> >> [INFO] Failed to configure plugin parameters for: > >>> >> org.apache.maven.plugins:maven-deploy-plugin:2.4 > >>> >> > >>> >> check that the following section of the pom.xml is present and > correct: > >>> >> > >>> >> <distributionManagement> > >>> >> <!-- use the following if you're not using a snapshot version. --> > >>> >> <repository> > >>> >> <id>repo</id> > >>> >> <name>Repository Name</name> > >>> >> <url>scp://host/path/to/repo</url> > >>> >> </repository> > >>> >> <!-- use the following if you ARE using a snapshot version. --> > >>> >> <snapshotRepository> > >>> >> <id>repo</id> > >>> >> <name>Repository Name</name> > >>> >> <url>scp://host/path/to/repo</url> > >>> >> </snapshotRepository> > >>> >> </distributionManagement> > >>> >> > >>> >> Cause: Class > 'org.apache.maven.artifact.repository.ArtifactRepository' > >>> >> cannot be instantiated > >>> >> > >>> >> > >>> >> > >>> >> I looked in the pom.xml, and found this: > >>> >> > >>> >> <!-- The CollectionSpace public Maven repository for "snapshot" > >>> >> artifacts --> > >>> >> <repositories> > >>> >> <repository> > >>> >> <id>libs-snapshot-local</id> > >>> >> <name>libs-snapshot-local</name> > >>> >> > >>> >> <url> > http://nightly.collectionspace.org:8081/artifactory/libs-snapshot-local > </url> > >>> >> <snapshots> > >>> >> <enabled>true</enabled> > >>> >> </snapshots> > >>> >> > >>> >> > >>> >> I'm wondering, which repository setting should I use (snapshot or > not > >>> >> snapshot)? Our installation is on a virtual server in linode. > >>> >> > >>> >> And, does anyone know where I should set the path to our repository? > >>> >> I'm guessing that the error is party due to the url being mapped to > >>> >> nightly.collectionspace.org. > >>> >> > >>> >> 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
Tue, Aug 20, 2013 10:53 PM

Thanks, Ray!

(Al, one easy-to-use checker is at:
http://www.w3schools.com/xml/xml_validator.asp ... you can simply
paste in your XML markup.  Some developers here use the commercial
oXygen XML editor, http://www.oxygenxml.com/, which has a variety of
validation features built-in.)

On Tue, Aug 20, 2013 at 3:49 PM, Ray Lee rhlee@berkeley.edu wrote:

Hi Al,
The error you're seeing is characteristic of malformed XML in one of your
configuration files. If you run an XML checker over the files you edited,
you'll probably catch the problem.

Ray

On Tue, Aug 20, 2013 at 3:34 PM, Aron Roberts aronroberts@gmail.com wrote:

If it's easiest to use command line tools - you're using an Ubuntu
system, yes? - you might try this 'sed' command to remove those
specific stray characters:

http://superuser.com/questions/507267/how-to-grep-for-special-character-nul

If the merge still fails, you might try a more thorough cleaning of
each file; there's an example for doing this (stripping out all but a
subset of vanilla, printable USASCII characters from a file) by using
a 'tr' command under "Removing all undesirable characters at once" in:

http://alvinalexander.com/unix/edu/un010011/

On Tue, Aug 20, 2013 at 3:25 PM, Aron Roberts aronroberts@gmail.com
wrote:

Hi Al,

If it matters, I looked in my settings.xml file and get a big chunk of
this: ^@^@^@^@^@^@^.

It's possible that stray characters in any of the merge files:
settings.xml, local-omca-settings.xml, and/or
omca-collectionobject.xml, might be fouling up the merge attempts.  If
you have a way of finding and removing them - such as using BBEdit's
or TextWrangler's (Mac OS X text editors) "Zap Gremlins" feature -
that might help.  (That big chunk of ^@ could well be part of the
issue.)

Using TextWrangler, for instance:

http://indesignsecrets.com/zap-gremlins-in-problem-data-merge-files.php

Aron

On Tue, Aug 20, 2013 at 3:12 PM, Al Bersch abersch@museumca.org wrote:

Hi Aron,

Thanks so much for addressing these questions.

I entered the language at the end of your email into my
/tomcat-main/src/main/resources/omca-tenant.xml file, like this:

<cspace-config tenantname="omca">
     <version>11</version>
     <!-- Note: omca-collectionobject.xml should not appear in the

'include' line below -->
<!-- This line is for merging various settings files together. -->
<include src="settings.xml,local-omca-settings.xml" merge="xmlmerge.properties" strip-root="yes" />

     <spec>
             <include src="base-relations.xml"/>
             <include src="base-schemas.xml"/>

             <records>
                     <enum-blank>Please select a value</enum-blank>
                     <!-- Here's where you can indicate that you

want to
merge in your own Cataloging record changes -->
<include
src="base-collectionobject.xml,omca-collectionobject.xml"
merge="xmlmerge.properties"/
<include src="base-procedure-acquisition.xml"/>
<include src="base-procedure-blobs.xml"/>
...

then re-created the omca-collectionobject.xml file (located at
tomcat-main/src/main/resources/tenants/omca) with this inside it:

+<record id="collection-object">
+

  • <section id="identificationInformation">
  •    <repeat id="responsibleDepartments" has-primary="yes">
    

<selector>object-identification-responsible-department</selector>

  •        <field id="responsibleDepartment" ui-search="repeatable"
    

mini="search"

  •         seperate_ui_container="true">
    

<selector>object-identification-responsible-department</selector>

  •            <options>
    
  •                <option id="">Please select a value</option>
    
  •                <option id="art">Art</option>
    
  •                <option id="history">History</option>
    
  •                <option id="science">Science</option>
    
  •                <option id="collections">Collections</option>
    
  •                <option id="education">Education</option>
    
  •                <option id="professionalservices">Professional
    

Services</option>

  •                <option id="multi">Multi</option>
    
  •            </options>
    
  •        </field>
    
  •    </repeat>
    
  •    <field id="collection" ui-search="repeatable"
    

seperate_ui_container="true">

  •        <selector>object-identification-collection</selector>
    
  •        <options>
    
  •           <option id="">Please select a value</option>
    
  •           <option id="art">Art</option>
    
  •           <option id="artandartifact">Art and Artifact</option>
    
  •           <option id="exhibit">Exhibit</option>
    
  •           <option id="history">History</option>
    
  •           <option id="scientomology">SCI-Entomology</option>
    
  •           <option id="scifineart">SCI-Fine Art</option>
    
  •           <option id="scigalleryspecimens">SCI-Gallery
    

Specimens</option>

  •           <option id="scigeology">SCI-Geology</option>
    
  •           <option id="sciherbarium">SCI-Herbarium</option>
    
  •           <option id="sciherpetology">SCI-Herpetology</option>
    
  •           <option id="sciicthyology">SCI-Icthyology</option>
    
  •           <option
    

id="sciinvertebrates">SCI-Invertebrates</option>

  •           <option id="scilapidary">SCI-Lapidary</option>
    
  •           <option id="scimalacology">SCI-Malacology</option>
    
  •           <option id="scimammalogy">SCI-Mammalogy</option>
    
  •           <option
    

id="scimiscellaneous">SCI-Miscellaneous</option>

  •           <option id="sciornithology">SCI-Ornithology</option>
    
  •           <option id="scipaleontology">SCI-Paleontology</option>
    
  •           <option id="sciphoto">SCI-Photo</option>
    
  •           <option id="scisnuffbottles">SCI-Snuff Bottles</option>
    
  •           <option id="specimen">Specimen</option>
    
  •        </options>
    
  •    </field>
    
  • </section>

+</record>

But alas, I'm still getting the same error message when I log into my
tenant.

If it matters, I looked in my settings.xml file and get a big chunk of
this:
^@^@^@^@^@^@^.

do you see anything wrong here in the files I copied?

thanks,

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" aronroberts@gmail.com
To: "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Monday, August 19, 2013 5:39:58 PM

Subject: Re: [Talk] deploy mvn error

Hi Al,

My sincere apologies for these difficulties you've been encountering.

It looks like the problem is with merging settings.xml and
local-omca-settings.xml?

Yes, that certainly looks like the case.

This line appeared in part of the output from this error, in
catalina.out:

2013-08-19 21:46:13,364 ERROR [http-8180-3] ... Message: Exception
raised
during parsing
Stack :

org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61)

From looking at the Application layer's code at line 61 of
AssemblingParser.java:

https://github.com/collectionspace/application/blob/v3.3/csp-impl/src/main/java/org/collectionspace/chain/csp/config/impl/parser/AssemblingParser.java#L61
it appears the error is in reading or merging XML content, rather than
in
not finding either of the two files to be merged, or in not being able
to
read them as a result of insufficient access permissions or other
filesystem-related issues.

It appears that you might potentially be inadvertently trying to
merge two
dissimilar things: a settings file for your tenant (which contains some
general administrative settings), together with some field-level
settings
for a particular record type.

If you'd like to merge custom changes into the Cataloging record,
such as
changing the contents of options lists, here's an example of how you
can
specify that, as shown line 12 of the tenant 'includes' file for the
UCJEPS
herbaria:

https://github.com/cspace-deployment/application/blob/ucjeps_3.2/tomcat-main/src/main/resources/ucjeps-tenant.xml#L12

Following that example, your
/tomcat-main/src/main/resources/omca-tenant.xml file might look
something
like the following:

<cspace-config tenantname="omca"> <version>11</version> <!-- Note: omca-collectionobject.xml should not appear in the 'include' line below --> <!-- This line is for merging various settings files together. --> <include src="settings.xml,local-settings.xml" merge="xmlmerge-settings.properties" strip-root="yes"/> ... <records> <enum-blank>Please select a value</enum-blank> <!-- Here's where you can indicate that you want to merge in your own Cataloging record changes --> <include src="base-collectionobject.xml,omca-collectionobject.xml" merge="xmlmerge.properties"/> ...

Aron

On Mon, Aug 19, 2013 at 4:28 PM, Al Bersch abersch@museumca.org
wrote:

Hi Aron,

Thanks so much again for your continued assistance. And for the plug
for
using github as a backup resource - I'll do that, and also apologize
in
advance for the cut-and-paste text below.

I installed DiffMerge, but I'm not sure what to compare, since the
file I
added to the omca tenant (omca-collectionobject.xml), wasn't there in
the
previous snapshot. I think I'm a little confused.

I looked in the cspace-app.log and catalina.out (can you tell me where
I
might find catalina.(today'sdate).log?) and here are some snippets,
first
from cspace-app.log:

2013-08-19 21:46:13,363 WARN  [http-8180-3]

[org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:218]
Could not merge the include files:
settings.xml,local-omca-settings.xml
2013-08-19 21:46:13,364 ERROR [http-8180-3]

[org.collectionspace.chain.csp.config.impl.parser.ConfigLoadingMessagesImpl:16]
Message: Exception raised during parsing

Stack :

org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61)
org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse
(62)
org.collectionspace.csp.container.impl.CSPManagerImpl.configure (54)
org.collectionspace.chain.controller.TenantServlet.load_config (156)
org.collectionspace.chain.controller.TenantServlet.setup (179)
org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant
(117)
org.collectionspace.chain.controller.TenantUIServlet.service (568)
javax.servlet.http.HttpServlet.service (717)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (290)
org.apache.catalina.core.ApplicationFilterChain.doFilter (206)
org.collectionspace.chain.controller.filters.PerflogFilter.doFilter
(33)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235)
org.apache.catalina.core.ApplicationFilterChain.doFilter (206)
org.collectionspace.chain.controller.filters.CharSetFilter.doFilter
(99)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235)
org.apache.catalina.core.ApplicationFilterChain.doFilter (206)
org.apache.catalina.core.StandardWrapperValve.invoke (233)
org.apache.catalina.core.StandardContextValve.invoke (191)
org.apache.catalina.core.StandardHostValve.invoke (127)
org.apache.catalina.valves.ErrorReportValve.invoke (102)
org.apache.catalina.valves.AccessLogValve.invoke (589)
org.apache.catalina.core.StandardEngineValve.invoke (109)
org.apache.catalina.connector.CoyoteAdapter.service (291)
org.apache.coyote.http11.Http11Processor.process (859)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
(602)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run (489)
java.lang.Thread.run (724)

CAUSED BY
Message: Could not load source

then from catalina.out:

2013-08-19 17:49:25,334 ERROR [main]
[org.collectionspace.services.common.config.ConfigUtils:51] No domain
name
was specified on call to getRepositoryName() method.2013-08-19
17:49:25,334
ERROR [main]
[org.collectionspace.services.common.config.ConfigUtils:51] No
domain name was specified on call to getRepositoryName()
method.2013-08-19
17:49:25,334 ERROR [main]
[org.collectionspace.services.common.config.ConfigUtils:51] No domain
name
was specified on call to getRepositoryName() method.[INFO] Starting up
the
CollectionSpace Services' JAX-RS application.Static initializtion of:
org.collectionspace.services.common.security.SecurityInterceptor[INFO]
CollectionSpace Services' JAX-RS application started.2013-08-19
17:49:27,339
(0) [http-8180-4] INFO

org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:
XMLMerge result output to:

/usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19
17:49:29,695 (2356) [http-8180-2] INFO

org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:
XMLMerge result output to:

/usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19
17:49:29,732 (2393) [net.sf.ehcache.CacheManager@23aeae74] INFO
net.sf.ehcache.util.UpdateChecker: New update(s) found: 2.6.5

[http://www.terracotta.org/confluence/display/release/Release+Notes+Ehcache+Core+2.6].
Please check http://ehcache.org for the latest version.Could not get
session
from CSPACESESSID cookie with value:
31b6c5daf4d4180636604cb25ac9f75f2013-08-19 17:49:47,810 WARN
[http-8180-7]
[org.collectionspace.services.common.security.SecurityInterceptor:358]
Attempt to logout when Nuxeo login context was null2013-08-19
17:49:47,953
WARN  [http-8180-7]

[org.springframework.security.web.context.HttpSessionSecurityContextRepository:396]
Failed to create a session, as response has been committed. Unable to
store
SecurityContext.2013-08-19 17:49:48,765 WARN  [http-8180-7]
[org.collectionspace.services.common.security.SecurityInterceptor:358]
Attempt to logout when Nuxeo login context was null2013-08-19
17:49:48,773
WARN  [http-8180-7]

[org.springframework.security.web.context.HttpSessionSecurityContextRepository:396]
Failed to create a session, as response has been committed. Unable to
store
SecurityContext.2013-08-19 21:07:17,771 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2191] The web
application
[/collectionspace] appears to have started a thread named
[net.sf.ehcache.CacheManager@23aeae74] but has failed to stop it. This
is
very likely to create a memory leak.2013-08-19 21:07:17,772 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2191] The web
application
[/collectionspace] appears to have started a thread named
[MultiThreadedHttpConnectionManager cleanup] but has failed to stop
it. This
is very likely to create a memory leak.2013-08-19 21:07:17,780 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2453] The web
application
[/collectionspace] created a ThreadLocal with key of type
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a
value of
type [java.util.HashMap] (value [{}]) but failed to remove it when the
web
application was stopped. This is very likely to create a memory
leak.2013-08-19 21:07:17,781 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2453] The web
application
[/collectionspace] created a ThreadLocal with key of type
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a
value of
type [java.util.HashMap] (value [{}]) but failed to remove it when the
web
application was stopped. This is very likely to create a memory
leak.2013-08-19 21:09:34,685 (0) [http-8180-4] WARN

org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:
Could not merge the include files:
settings.xml,local-omca-settings.xml

It looks like the problem is with merging settings.xml and
local-omca-settings.xml?

I've tried a second time to create the configuration change in
omca-collectionobject.xml (a newly created xml file with only this
snippet
in it:

+<record id="collection-object">
+

  • <section id="identificationInformation">
  •    <repeat id="responsibleDepartments" has-primary="yes">
    

<selector>object-identification-responsible-department</selector>

  •        <field id="responsibleDepartment" ui-search="repeatable"
    

mini="search"

  •         seperate_ui_container="true">
    

<selector>object-identification-responsible-department</selector>

  •            <options>
    
  •                <option id="">Please select a value</option>
    
  •                <option id="art">Art</option>
    
  •                <option id="history">History</option>
    
  •                <option id="science">Science</option>
    
  •                <option id="collections">Collections</option>
    
  •                <option id="education">Education</option>
    
  •                <option id="professionalservices">Professional
    

Services</option>

  •                <option id="multi">Multi</option>
    
  •            </options>
    
  •        </field>
    
  •    </repeat>
    
  •    <field id="collection" ui-search="repeatable"
    

seperate_ui_container="true">

  •        <selector>object-identification-collection</selector>
    
  •        <options>
    
  •           <option id="">Please select a value</option>
    
  •           <option id="art">Art</option>
    
  •           <option id="artandartifact">Art and Artifact</option>
    
  •           <option id="exhibit">Exhibit</option>
    
  •           <option id="history">History</option>
    
  •           <option id="scientomology">SCI-Entomology</option>
    
  •           <option id="scifineart">SCI-Fine Art</option>
    
  •           <option id="scigalleryspecimens">SCI-Gallery
    

Specimens</option>

  •           <option id="scigeology">SCI-Geology</option>
    
  •           <option id="sciherbarium">SCI-Herbarium</option>
    
  •           <option id="sciherpetology">SCI-Herpetology</option>
    
  •           <option id="sciicthyology">SCI-Icthyology</option>
    
  •           <option
    

id="sciinvertebrates">SCI-Invertebrates</option>

  •           <option id="scilapidary">SCI-Lapidary</option>
    
  •           <option id="scimalacology">SCI-Malacology</option>
    
  •           <option id="scimammalogy">SCI-Mammalogy</option>
    
  •           <option
    

id="scimiscellaneous">SCI-Miscellaneous</option>

  •           <option id="sciornithology">SCI-Ornithology</option>
    
  •           <option id="scipaleontology">SCI-Paleontology</option>
    
  •           <option id="sciphoto">SCI-Photo</option>
    
  •           <option id="scisnuffbottles">SCI-Snuff
    

Bottles</option>

  •           <option id="specimen">Specimen</option>
    
  •        </options>
    
  •    </field>
    
  • </section>

+</record>

then according to your last email, I ran "mvn clean install
-DskipTest"
rather than "mvn deploy -DskipTests". I ran this in the application
layer
folder called "application" that contains the pom.xml file. In my path
it
looks like /home/root/application-source/application/. Then, do I
understand
I also need to run "ant deploy"? I wasn't able to run this in the same
folder - I got an error saying this is no build file.

I'm going off your previous instructions, as well as the documentation
on
the wiki for customizing the application layer:

Hi Becky and Al,
One more set of notes on making 'starting out' customizations,
below: this one a customization of options in dropdown menus.
Aron
(Recommendation: start the CollectionSpace server before making the
following changes.  This will help ensure those changes are made
'live.')

  • An example of how to replace the default sets of options in the
    dropdown menus for the Responsible Department and OMCA Collection
    fields.
    The existing documentation on updating these option lists is
    confusing, and wildly out of date; we expect to be updating it in the
    near future.  The customization method shown here as an example
    reflects recently-added 'merge' capabilities that allow you to simply
    replicate the block of configuration you want to customize, within a
    separate file for your own museum; it will override the corresponding
    configuration block in the default settings:
    Actual change(s) made, within the source code tree for
    CollectionSpace's Application layer:

https://github.com/aronr/application/commit/b7a47d94fc6d44d0cad74f6444710a35373291c7
You can compare this to the default configuration file for the
Cataloging record, in which the default options for those two dropdown
menus appear:

https://github.com/aronr/application/blob/b7a47d94fc6d44d0cad74f6444710a35373291c7/tomcat-main/src/main/resources/defaults/base-collectionobject.xml#L112
To copy (deploy) these changes to the server folder, enter the
following at a command prompt, from within the top-level folder of the
Application source code tree:
mvn deploy -DskipTests

Sorry I'm not getting this! Do you have any ideas?

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" aronroberts@gmail.com
To: "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Friday, August 16, 2013 1:28:48 PM

Subject: Re: [Talk] deploy mvn error

The key is likely this snippet, from near the beginning of that long
and
singularly unhelpful chain of messages:
"org.collectionspace.chain.csp.config.ConfigException: Error loading
config"

There may have been an error made in whatever configuration file, or
files, were modified.  After they were deployed (copied) to the
server, when
the Application layer read them, it got confused and barfed out this
long
stack trace.

Typically, this means the file(s), after being modified, weren't
well-formed XML - perhaps an ending tag was left out somewhere? - or
they
didn't conform to the Application layer's expectation of what 'tags'
(XML
elements) are expected, in which hierarchical locations within the
file.

Yes, reverting to a snapshot and re-deploying (via 'mvn clean install
-DskipTests') and restarting Tomcat, should resolve the issue.  You
might
also try, however, using a utility app that can show you differences
between
two files - your current version and your snapshot - and see if the
error is
readily made apparent by looking at those changes in that 'diff' view.
(If
you're using Mac OS X, there's a list of such apps at
http://apple.stackexchange.com/a/87188)

It's also worth checking the current cspace-app.log and
catalina.{today's
date}.log to see if there may be any log message specifically
pinpointing
the configuration error.

Aron

On Fri, Aug 16, 2013 at 1:16 PM, Al Bersch abersch@museumca.org
wrote:

Hi again,

Ok, I think I must have messed up somewhere when changing the files
in
the application layer. When I navigated to our tenant, the login
screen is
blank except for a place to put a user name and password. when I
submit my
password, I get this message:  Any idea what I did wrong? Thanks!

I have a snapshot prior to the changes in the application layer, so
I
can always go back in time and try again.

Al

HTTP Status 400 -
org.collectionspace.chain.controller.BadRequestException: Cannot
initialise
CSPs org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading
config.
See messages for details: summary Exception raised during parsing at

org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185)
at

org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117)
at

org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at

org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33)
at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at

org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99)
at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)
at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
at

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:724) Caused by:
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading
config.
See messages for details: summary Exception raised during parsing at

org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64)
at

org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156)
at

org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179)
... 22 more Caused by:
org.collectionspace.chain.csp.config.ConfigException:
Error loading config. See messages for details: summary Exception
raised
during parsing at

org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78)
at

org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74)
at

org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54)
... 24 more


type Status report

message org.collectionspace.chain.controller.BadRequestException:
Cannot
initialise CSPs
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading
config.
See messages for details: summary Exception raised during parsing at

org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185)
at

org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117)
at

org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at

org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33)
at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at

org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99)
at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)
at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
at

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:724) Caused by:
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading
config.
See messages for details: summary Exception raised during parsing at

org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64)
at

org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156)
at

org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179)
... 22 more Caused by:
org.collectionspace.chain.csp.config.ConfigException:
Error loading config. See messages for details: summary Exception
raised
during parsing at

org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78)
at

org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74)
at

org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54)
... 24 more

description The request sent by the client was syntactically
incorrect
(org.collectionspace.chain.controller.BadRequestException: Cannot
initialise
CSPs org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading
config.
See messages for details: summary Exception raised during parsing at

org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185)
at

org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117)
at

org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at

org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33)
at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at

org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99)
at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)
at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
at

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:724) Caused by:
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading
config.
See messages for details: summary Exception raised during parsing at

org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64)
at

org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156)
at

org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179)
... 22 more Caused by:
org.collectionspace.chain.csp.config.ConfigException:
Error loading config. See messages for details: summary Exception
raised
during parsing at

org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78)
at

org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74)
at

org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54)
... 24 more ).

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


From: "Aron Roberts" aronroberts@gmail.com
To: "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Friday, August 16, 2013 12:58:56 PM
Subject: Re: [Talk] deploy mvn error

Hi Al,

You likely will have success with 'mvn clean install -DskipTests'
when
building and deploying the App layer with your dropdown list
changes, rather
than 'mvn deploy -DskipTests'.

It's a bit confusing (and I hope I don't need to keep repeating
this
:-), but CollectionSpace Services layer uses Maven to build
artifacts and
Ant buildfiles to deploy (copy) them to the server (hence 'mvn clean
install' followed by 'ant deploy'), while the Application and UI
layers use
Maven ('mvn install') for both tasks.  There are some historical and
technical reasons for this difference, not worth going into ...

Aron

On Fri, Aug 16, 2013 at 12:49 PM, Al Bersch abersch@museumca.org
wrote:

Hello all,

I changed our dropdown lists in Department and Collection in the
application layer source code, and when I ran mvn deploy
-DskipTests I get
this error:

[ERROR] BUILD ERROR
[INFO]


[INFO] Failed to configure plugin parameters for:
org.apache.maven.plugins:maven-deploy-plugin:2.4

check that the following section of the pom.xml is present and
correct:

<distributionManagement> <!-- use the following if you're not using a snapshot version. --> <repository> <id>repo</id> <name>Repository Name</name> <url>scp://host/path/to/repo</url> </repository> <!-- use the following if you ARE using a snapshot version. --> <snapshotRepository> <id>repo</id> <name>Repository Name</name> <url>scp://host/path/to/repo</url> </snapshotRepository> </distributionManagement>

Cause: Class
'org.apache.maven.artifact.repository.ArtifactRepository'
cannot be instantiated

I looked in the pom.xml, and found this:

<!-- The CollectionSpace public Maven repository for "snapshot" artifacts --> <repositories> <repository> <id>libs-snapshot-local</id> <name>libs-snapshot-local</name>

<url>http://nightly.collectionspace.org:8081/artifactory/libs-snapshot-local</url>
<snapshots>
<enabled>true</enabled>
</snapshots>

I'm wondering, which repository setting should I use (snapshot or
not
snapshot)? Our installation is on a virtual server in linode.

And, does anyone know where I should set the path to our
repository?
I'm guessing that the error is party due to the url being mapped to
nightly.collectionspace.org.

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, Ray! (Al, one easy-to-use checker is at: http://www.w3schools.com/xml/xml_validator.asp ... you can simply paste in your XML markup. Some developers here use the commercial oXygen XML editor, http://www.oxygenxml.com/, which has a variety of validation features built-in.) On Tue, Aug 20, 2013 at 3:49 PM, Ray Lee <rhlee@berkeley.edu> wrote: > Hi Al, > The error you're seeing is characteristic of malformed XML in one of your > configuration files. If you run an XML checker over the files you edited, > you'll probably catch the problem. > > Ray > > > On Tue, Aug 20, 2013 at 3:34 PM, Aron Roberts <aronroberts@gmail.com> wrote: >> >> If it's easiest to use command line tools - you're using an Ubuntu >> system, yes? - you might try this 'sed' command to remove those >> specific stray characters: >> >> >> http://superuser.com/questions/507267/how-to-grep-for-special-character-nul >> >> If the merge still fails, you might try a more thorough cleaning of >> each file; there's an example for doing this (stripping out all but a >> subset of vanilla, printable USASCII characters from a file) by using >> a 'tr' command under "Removing all undesirable characters at once" in: >> >> http://alvinalexander.com/unix/edu/un010011/ >> >> On Tue, Aug 20, 2013 at 3:25 PM, Aron Roberts <aronroberts@gmail.com> >> wrote: >> > Hi Al, >> > >> >> If it matters, I looked in my settings.xml file and get a big chunk of >> >> this: ^@^@^@^@^@^@^. >> > >> > It's possible that stray characters in any of the merge files: >> > settings.xml, local-omca-settings.xml, and/or >> > omca-collectionobject.xml, might be fouling up the merge attempts. If >> > you have a way of finding and removing them - such as using BBEdit's >> > or TextWrangler's (Mac OS X text editors) "Zap Gremlins" feature - >> > that might help. (That big chunk of ^@ could well be part of the >> > issue.) >> > >> > Using TextWrangler, for instance: >> > >> > http://indesignsecrets.com/zap-gremlins-in-problem-data-merge-files.php >> > >> > Aron >> > >> > On Tue, Aug 20, 2013 at 3:12 PM, Al Bersch <abersch@museumca.org> wrote: >> >> Hi Aron, >> >> >> >> Thanks so much for addressing these questions. >> >> >> >> I entered the language at the end of your email into my >> >> /tomcat-main/src/main/resources/omca-tenant.xml file, like this: >> >> >> >> <cspace-config tenantname="omca"> >> >> >> >> <version>11</version> >> >> <!-- Note: omca-collectionobject.xml should not appear in the >> >> 'include' line below --> >> >> <!-- This line is for merging various settings files together. >> >> --> >> >> <include src="settings.xml,local-omca-settings.xml" >> >> merge="xmlmerge.properties" >> >> strip-root="yes" /> >> >> >> >> <spec> >> >> <include src="base-relations.xml"/> >> >> <include src="base-schemas.xml"/> >> >> >> >> <records> >> >> <enum-blank>Please select a value</enum-blank> >> >> <!-- Here's where you can indicate that you >> >> want to >> >> merge in your own Cataloging record changes --> >> >> <include >> >> src="base-collectionobject.xml,omca-collectionobject.xml" >> >> merge="xmlmerge.properties"/ >> >> <include src="base-procedure-acquisition.xml"/> >> >> <include src="base-procedure-blobs.xml"/> >> >> ... >> >> >> >> then re-created the omca-collectionobject.xml file (located at >> >> tomcat-main/src/main/resources/tenants/omca) with this inside it: >> >> >> >> +<record id="collection-object"> >> >> + >> >> + <section id="identificationInformation"> >> >> + <repeat id="responsibleDepartments" has-primary="yes"> >> >> + >> >> <selector>object-identification-responsible-department</selector> >> >> + <field id="responsibleDepartment" ui-search="repeatable" >> >> mini="search" >> >> + seperate_ui_container="true"> >> >> + >> >> <selector>object-identification-responsible-department</selector> >> >> + <options> >> >> + <option id="">Please select a value</option> >> >> + <option id="art">Art</option> >> >> + <option id="history">History</option> >> >> + <option id="science">Science</option> >> >> + <option id="collections">Collections</option> >> >> + <option id="education">Education</option> >> >> + <option id="professionalservices">Professional >> >> Services</option> >> >> + <option id="multi">Multi</option> >> >> + </options> >> >> + </field> >> >> + </repeat> >> >> + <field id="collection" ui-search="repeatable" >> >> seperate_ui_container="true"> >> >> + <selector>object-identification-collection</selector> >> >> + <options> >> >> + <option id="">Please select a value</option> >> >> + <option id="art">Art</option> >> >> + <option id="artandartifact">Art and Artifact</option> >> >> + <option id="exhibit">Exhibit</option> >> >> + <option id="history">History</option> >> >> + <option id="scientomology">SCI-Entomology</option> >> >> + <option id="scifineart">SCI-Fine Art</option> >> >> + <option id="scigalleryspecimens">SCI-Gallery >> >> Specimens</option> >> >> + <option id="scigeology">SCI-Geology</option> >> >> + <option id="sciherbarium">SCI-Herbarium</option> >> >> + <option id="sciherpetology">SCI-Herpetology</option> >> >> + <option id="sciicthyology">SCI-Icthyology</option> >> >> + <option >> >> id="sciinvertebrates">SCI-Invertebrates</option> >> >> + <option id="scilapidary">SCI-Lapidary</option> >> >> + <option id="scimalacology">SCI-Malacology</option> >> >> + <option id="scimammalogy">SCI-Mammalogy</option> >> >> + <option >> >> id="scimiscellaneous">SCI-Miscellaneous</option> >> >> + <option id="sciornithology">SCI-Ornithology</option> >> >> + <option id="scipaleontology">SCI-Paleontology</option> >> >> + <option id="sciphoto">SCI-Photo</option> >> >> + <option id="scisnuffbottles">SCI-Snuff Bottles</option> >> >> + <option id="specimen">Specimen</option> >> >> + </options> >> >> + </field> >> >> + </section> >> >> + >> >> +</record> >> >> >> >> But alas, I'm still getting the same error message when I log into my >> >> tenant. >> >> >> >> If it matters, I looked in my settings.xml file and get a big chunk of >> >> this: >> >> ^@^@^@^@^@^@^. >> >> >> >> do you see anything wrong here in the files I copied? >> >> >> >> thanks, >> >> >> >> 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" <aronroberts@gmail.com> >> >> To: "Al Bersch" <abersch@museumca.org> >> >> Cc: "talk" <talk@lists.collectionspace.org> >> >> Sent: Monday, August 19, 2013 5:39:58 PM >> >> >> >> Subject: Re: [Talk] deploy mvn error >> >> >> >> Hi Al, >> >> >> >> My sincere apologies for these difficulties you've been encountering. >> >> >> >>> It looks like the problem is with merging settings.xml and >> >>> local-omca-settings.xml? >> >> >> >> Yes, that certainly looks like the case. >> >> >> >> This line appeared in part of the output from this error, in >> >> catalina.out: >> >> >> >>> 2013-08-19 21:46:13,364 ERROR [http-8180-3] ... Message: Exception >> >>> raised >> >>> during parsing >> >>> Stack : >> >>> >> >>> org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61) >> >> >> >> From looking at the Application layer's code at line 61 of >> >> AssemblingParser.java: >> >> >> >> https://github.com/collectionspace/application/blob/v3.3/csp-impl/src/main/java/org/collectionspace/chain/csp/config/impl/parser/AssemblingParser.java#L61 >> >> it appears the error is in reading or merging XML content, rather than >> >> in >> >> not finding either of the two files to be merged, or in not being able >> >> to >> >> read them as a result of insufficient access permissions or other >> >> filesystem-related issues. >> >> >> >> It appears that you might potentially be inadvertently trying to >> >> merge two >> >> dissimilar things: a settings file for your tenant (which contains some >> >> general administrative settings), together with some field-level >> >> settings >> >> for a particular record type. >> >> >> >> If you'd like to merge custom changes into the Cataloging record, >> >> such as >> >> changing the contents of options lists, here's an example of how you >> >> can >> >> specify that, as shown line 12 of the tenant 'includes' file for the >> >> UCJEPS >> >> herbaria: >> >> >> >> >> >> https://github.com/cspace-deployment/application/blob/ucjeps_3.2/tomcat-main/src/main/resources/ucjeps-tenant.xml#L12 >> >> >> >> Following that example, your >> >> /tomcat-main/src/main/resources/omca-tenant.xml file might look >> >> something >> >> like the following: >> >> >> >> <cspace-config tenantname="omca"> >> >> <version>11</version> >> >> <!-- Note: omca-collectionobject.xml should not appear in the >> >> 'include' >> >> line below --> >> >> <!-- This line is for merging various settings files together. --> >> >> <include src="settings.xml,local-settings.xml" >> >> merge="xmlmerge-settings.properties" strip-root="yes"/> >> >> ... >> >> <records> >> >> <enum-blank>Please select a value</enum-blank> >> >> <!-- Here's where you can indicate that you want to merge in your >> >> own >> >> Cataloging record changes --> >> >> <include src="base-collectionobject.xml,omca-collectionobject.xml" >> >> merge="xmlmerge.properties"/> >> >> ... >> >> >> >> Aron >> >> >> >> On Mon, Aug 19, 2013 at 4:28 PM, Al Bersch <abersch@museumca.org> >> >> wrote: >> >>> >> >>> Hi Aron, >> >>> >> >>> Thanks so much again for your continued assistance. And for the plug >> >>> for >> >>> using github as a backup resource - I'll do that, and also apologize >> >>> in >> >>> advance for the cut-and-paste text below. >> >>> >> >>> I installed DiffMerge, but I'm not sure what to compare, since the >> >>> file I >> >>> added to the omca tenant (omca-collectionobject.xml), wasn't there in >> >>> the >> >>> previous snapshot. I think I'm a little confused. >> >>> >> >>> I looked in the cspace-app.log and catalina.out (can you tell me where >> >>> I >> >>> might find catalina.(today'sdate).log?) and here are some snippets, >> >>> first >> >>> from cspace-app.log: >> >>> >> >>> 2013-08-19 21:46:13,363 WARN [http-8180-3] >> >>> >> >>> [org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:218] >> >>> Could not merge the include files: >> >>> settings.xml,local-omca-settings.xml >> >>> 2013-08-19 21:46:13,364 ERROR [http-8180-3] >> >>> >> >>> [org.collectionspace.chain.csp.config.impl.parser.ConfigLoadingMessagesImpl:16] >> >>> Message: Exception raised during parsing >> >>> >> >>> Stack : >> >>> >> >>> org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61) >> >>> org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse >> >>> (62) >> >>> org.collectionspace.csp.container.impl.CSPManagerImpl.configure (54) >> >>> org.collectionspace.chain.controller.TenantServlet.load_config (156) >> >>> org.collectionspace.chain.controller.TenantServlet.setup (179) >> >>> org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant >> >>> (117) >> >>> org.collectionspace.chain.controller.TenantUIServlet.service (568) >> >>> javax.servlet.http.HttpServlet.service (717) >> >>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (290) >> >>> org.apache.catalina.core.ApplicationFilterChain.doFilter (206) >> >>> org.collectionspace.chain.controller.filters.PerflogFilter.doFilter >> >>> (33) >> >>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235) >> >>> org.apache.catalina.core.ApplicationFilterChain.doFilter (206) >> >>> org.collectionspace.chain.controller.filters.CharSetFilter.doFilter >> >>> (99) >> >>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235) >> >>> org.apache.catalina.core.ApplicationFilterChain.doFilter (206) >> >>> org.apache.catalina.core.StandardWrapperValve.invoke (233) >> >>> org.apache.catalina.core.StandardContextValve.invoke (191) >> >>> org.apache.catalina.core.StandardHostValve.invoke (127) >> >>> org.apache.catalina.valves.ErrorReportValve.invoke (102) >> >>> org.apache.catalina.valves.AccessLogValve.invoke (589) >> >>> org.apache.catalina.core.StandardEngineValve.invoke (109) >> >>> org.apache.catalina.connector.CoyoteAdapter.service (291) >> >>> org.apache.coyote.http11.Http11Processor.process (859) >> >>> >> >>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process >> >>> (602) >> >>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run (489) >> >>> java.lang.Thread.run (724) >> >>> >> >>> CAUSED BY >> >>> Message: Could not load source >> >>> >> >>> >> >>> >> >>> then from catalina.out: >> >>> >> >>> 2013-08-19 17:49:25,334 ERROR [main] >> >>> [org.collectionspace.services.common.config.ConfigUtils:51] No domain >> >>> name >> >>> was specified on call to getRepositoryName() method.2013-08-19 >> >>> 17:49:25,334 >> >>> ERROR [main] >> >>> [org.collectionspace.services.common.config.ConfigUtils:51] No >> >>> domain name was specified on call to getRepositoryName() >> >>> method.2013-08-19 >> >>> 17:49:25,334 ERROR [main] >> >>> [org.collectionspace.services.common.config.ConfigUtils:51] No domain >> >>> name >> >>> was specified on call to getRepositoryName() method.[INFO] Starting up >> >>> the >> >>> CollectionSpace Services' JAX-RS application.Static initializtion of: >> >>> org.collectionspace.services.common.security.SecurityInterceptor[INFO] >> >>> CollectionSpace Services' JAX-RS application started.2013-08-19 >> >>> 17:49:27,339 >> >>> (0) [http-8180-4] INFO >> >>> >> >>> org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler: >> >>> XMLMerge result output to: >> >>> >> >>> /usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19 >> >>> 17:49:29,695 (2356) [http-8180-2] INFO >> >>> >> >>> org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler: >> >>> XMLMerge result output to: >> >>> >> >>> /usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19 >> >>> 17:49:29,732 (2393) [net.sf.ehcache.CacheManager@23aeae74] INFO >> >>> net.sf.ehcache.util.UpdateChecker: New update(s) found: 2.6.5 >> >>> >> >>> [http://www.terracotta.org/confluence/display/release/Release+Notes+Ehcache+Core+2.6]. >> >>> Please check http://ehcache.org for the latest version.Could not get >> >>> session >> >>> from CSPACESESSID cookie with value: >> >>> 31b6c5daf4d4180636604cb25ac9f75f2013-08-19 17:49:47,810 WARN >> >>> [http-8180-7] >> >>> [org.collectionspace.services.common.security.SecurityInterceptor:358] >> >>> Attempt to logout when Nuxeo login context was null2013-08-19 >> >>> 17:49:47,953 >> >>> WARN [http-8180-7] >> >>> >> >>> [org.springframework.security.web.context.HttpSessionSecurityContextRepository:396] >> >>> Failed to create a session, as response has been committed. Unable to >> >>> store >> >>> SecurityContext.2013-08-19 17:49:48,765 WARN [http-8180-7] >> >>> [org.collectionspace.services.common.security.SecurityInterceptor:358] >> >>> Attempt to logout when Nuxeo login context was null2013-08-19 >> >>> 17:49:48,773 >> >>> WARN [http-8180-7] >> >>> >> >>> [org.springframework.security.web.context.HttpSessionSecurityContextRepository:396] >> >>> Failed to create a session, as response has been committed. Unable to >> >>> store >> >>> SecurityContext.2013-08-19 21:07:17,771 ERROR >> >>> [ContainerBackgroundProcessor[StandardEngine[Catalina]]] >> >>> [org.apache.catalina.loader.WebappClassLoader:2191] The web >> >>> application >> >>> [/collectionspace] appears to have started a thread named >> >>> [net.sf.ehcache.CacheManager@23aeae74] but has failed to stop it. This >> >>> is >> >>> very likely to create a memory leak.2013-08-19 21:07:17,772 ERROR >> >>> [ContainerBackgroundProcessor[StandardEngine[Catalina]]] >> >>> [org.apache.catalina.loader.WebappClassLoader:2191] The web >> >>> application >> >>> [/collectionspace] appears to have started a thread named >> >>> [MultiThreadedHttpConnectionManager cleanup] but has failed to stop >> >>> it. This >> >>> is very likely to create a memory leak.2013-08-19 21:07:17,780 ERROR >> >>> [ContainerBackgroundProcessor[StandardEngine[Catalina]]] >> >>> [org.apache.catalina.loader.WebappClassLoader:2453] The web >> >>> application >> >>> [/collectionspace] created a ThreadLocal with key of type >> >>> [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value >> >>> [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a >> >>> value of >> >>> type [java.util.HashMap] (value [{}]) but failed to remove it when the >> >>> web >> >>> application was stopped. This is very likely to create a memory >> >>> leak.2013-08-19 21:07:17,781 ERROR >> >>> [ContainerBackgroundProcessor[StandardEngine[Catalina]]] >> >>> [org.apache.catalina.loader.WebappClassLoader:2453] The web >> >>> application >> >>> [/collectionspace] created a ThreadLocal with key of type >> >>> [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value >> >>> [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a >> >>> value of >> >>> type [java.util.HashMap] (value [{}]) but failed to remove it when the >> >>> web >> >>> application was stopped. This is very likely to create a memory >> >>> leak.2013-08-19 21:09:34,685 (0) [http-8180-4] WARN >> >>> >> >>> org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler: >> >>> Could not merge the include files: >> >>> settings.xml,local-omca-settings.xml >> >>> >> >>> >> >>> It looks like the problem is with merging settings.xml and >> >>> local-omca-settings.xml? >> >>> >> >>> I've tried a second time to create the configuration change in >> >>> omca-collectionobject.xml (a newly created xml file with only this >> >>> snippet >> >>> in it: >> >>> >> >>> +<record id="collection-object"> >> >>> + >> >>> + <section id="identificationInformation"> >> >>> + <repeat id="responsibleDepartments" has-primary="yes"> >> >>> + >> >>> <selector>object-identification-responsible-department</selector> >> >>> + <field id="responsibleDepartment" ui-search="repeatable" >> >>> mini="search" >> >>> + seperate_ui_container="true"> >> >>> + >> >>> <selector>object-identification-responsible-department</selector> >> >>> + <options> >> >>> + <option id="">Please select a value</option> >> >>> + <option id="art">Art</option> >> >>> + <option id="history">History</option> >> >>> + <option id="science">Science</option> >> >>> + <option id="collections">Collections</option> >> >>> + <option id="education">Education</option> >> >>> + <option id="professionalservices">Professional >> >>> Services</option> >> >>> + <option id="multi">Multi</option> >> >>> + </options> >> >>> + </field> >> >>> + </repeat> >> >>> + <field id="collection" ui-search="repeatable" >> >>> seperate_ui_container="true"> >> >>> + <selector>object-identification-collection</selector> >> >>> + <options> >> >>> + <option id="">Please select a value</option> >> >>> + <option id="art">Art</option> >> >>> + <option id="artandartifact">Art and Artifact</option> >> >>> + <option id="exhibit">Exhibit</option> >> >>> + <option id="history">History</option> >> >>> + <option id="scientomology">SCI-Entomology</option> >> >>> + <option id="scifineart">SCI-Fine Art</option> >> >>> + <option id="scigalleryspecimens">SCI-Gallery >> >>> Specimens</option> >> >>> + <option id="scigeology">SCI-Geology</option> >> >>> + <option id="sciherbarium">SCI-Herbarium</option> >> >>> + <option id="sciherpetology">SCI-Herpetology</option> >> >>> + <option id="sciicthyology">SCI-Icthyology</option> >> >>> + <option >> >>> id="sciinvertebrates">SCI-Invertebrates</option> >> >>> + <option id="scilapidary">SCI-Lapidary</option> >> >>> + <option id="scimalacology">SCI-Malacology</option> >> >>> + <option id="scimammalogy">SCI-Mammalogy</option> >> >>> + <option >> >>> id="scimiscellaneous">SCI-Miscellaneous</option> >> >>> + <option id="sciornithology">SCI-Ornithology</option> >> >>> + <option id="scipaleontology">SCI-Paleontology</option> >> >>> + <option id="sciphoto">SCI-Photo</option> >> >>> + <option id="scisnuffbottles">SCI-Snuff >> >>> Bottles</option> >> >>> + <option id="specimen">Specimen</option> >> >>> + </options> >> >>> + </field> >> >>> + </section> >> >>> + >> >>> +</record> >> >>> >> >>> >> >>> >> >>> then according to your last email, I ran "mvn clean install >> >>> -DskipTest" >> >>> rather than "mvn deploy -DskipTests". I ran this in the application >> >>> layer >> >>> folder called "application" that contains the pom.xml file. In my path >> >>> it >> >>> looks like /home/root/application-source/application/. Then, do I >> >>> understand >> >>> I also need to run "ant deploy"? I wasn't able to run this in the same >> >>> folder - I got an error saying this is no build file. >> >>> >> >>> I'm going off your previous instructions, as well as the documentation >> >>> on >> >>> the wiki for customizing the application layer: >> >>> >> >>> Hi Becky and Al, >> >>> One more set of notes on making 'starting out' customizations, >> >>> below: this one a customization of options in dropdown menus. >> >>> Aron >> >>> (Recommendation: start the CollectionSpace server before making the >> >>> following changes. This will help ensure those changes are made >> >>> 'live.') >> >>> * An example of how to replace the default sets of options in the >> >>> dropdown menus for the Responsible Department and OMCA Collection >> >>> fields. >> >>> The existing documentation on updating these option lists is >> >>> confusing, and wildly out of date; we expect to be updating it in the >> >>> near future. The customization method shown here as an example >> >>> reflects recently-added 'merge' capabilities that allow you to simply >> >>> replicate the block of configuration you want to customize, within a >> >>> separate file for your own museum; it will override the corresponding >> >>> configuration block in the default settings: >> >>> Actual change(s) made, within the source code tree for >> >>> CollectionSpace's Application layer: >> >>> >> >>> >> >>> https://github.com/aronr/application/commit/b7a47d94fc6d44d0cad74f6444710a35373291c7 >> >>> You can compare this to the default configuration file for the >> >>> Cataloging record, in which the default options for those two dropdown >> >>> menus appear: >> >>> >> >>> >> >>> https://github.com/aronr/application/blob/b7a47d94fc6d44d0cad74f6444710a35373291c7/tomcat-main/src/main/resources/defaults/base-collectionobject.xml#L112 >> >>> To copy (deploy) these changes to the server folder, enter the >> >>> following at a command prompt, from within the top-level folder of the >> >>> Application source code tree: >> >>> mvn deploy -DskipTests >> >>> >> >>> >> >>> >> >>> Sorry I'm not getting this! Do you have any ideas? >> >>> >> >>> 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" <aronroberts@gmail.com> >> >>> To: "Al Bersch" <abersch@museumca.org> >> >>> Cc: "talk" <talk@lists.collectionspace.org> >> >>> Sent: Friday, August 16, 2013 1:28:48 PM >> >>> >> >>> Subject: Re: [Talk] deploy mvn error >> >>> >> >>> The key is likely this snippet, from near the beginning of that long >> >>> and >> >>> singularly unhelpful chain of messages: >> >>> "org.collectionspace.chain.csp.config.ConfigException: Error loading >> >>> config" >> >>> >> >>> There may have been an error made in whatever configuration file, or >> >>> files, were modified. After they were deployed (copied) to the >> >>> server, when >> >>> the Application layer read them, it got confused and barfed out this >> >>> long >> >>> stack trace. >> >>> >> >>> Typically, this means the file(s), after being modified, weren't >> >>> well-formed XML - perhaps an ending tag was left out somewhere? - or >> >>> they >> >>> didn't conform to the Application layer's expectation of what 'tags' >> >>> (XML >> >>> elements) are expected, in which hierarchical locations within the >> >>> file. >> >>> >> >>> Yes, reverting to a snapshot and re-deploying (via 'mvn clean install >> >>> -DskipTests') and restarting Tomcat, should resolve the issue. You >> >>> might >> >>> also try, however, using a utility app that can show you differences >> >>> between >> >>> two files - your current version and your snapshot - and see if the >> >>> error is >> >>> readily made apparent by looking at those changes in that 'diff' view. >> >>> (If >> >>> you're using Mac OS X, there's a list of such apps at >> >>> http://apple.stackexchange.com/a/87188) >> >>> >> >>> It's also worth checking the current cspace-app.log and >> >>> catalina.{today's >> >>> date}.log to see if there may be any log message specifically >> >>> pinpointing >> >>> the configuration error. >> >>> >> >>> Aron >> >>> >> >>> On Fri, Aug 16, 2013 at 1:16 PM, Al Bersch <abersch@museumca.org> >> >>> wrote: >> >>> > >> >>> > Hi again, >> >>> > >> >>> > Ok, I think I must have messed up somewhere when changing the files >> >>> > in >> >>> > the application layer. When I navigated to our tenant, the login >> >>> > screen is >> >>> > blank except for a place to put a user name and password. when I >> >>> > submit my >> >>> > password, I get this message: Any idea what I did wrong? Thanks! >> >>> > >> >>> > I have a snapshot prior to the changes in the application layer, so >> >>> > I >> >>> > can always go back in time and try again. >> >>> > >> >>> > Al >> >>> > >> >>> > HTTP Status 400 - >> >>> > org.collectionspace.chain.controller.BadRequestException: Cannot >> >>> > initialise >> >>> > CSPs org.collectionspace.csp.api.core.CSPDependencyException: >> >>> > org.collectionspace.chain.csp.config.ConfigException: Error loading >> >>> > config. >> >>> > See messages for details: summary Exception raised during parsing at >> >>> > >> >>> > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568) >> >>> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) >> >>> > at >> >>> > >> >>> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >> >>> > at >> >>> > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) >> >>> > at >> >>> > >> >>> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) >> >>> > at >> >>> > >> >>> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) >> >>> > at >> >>> > >> >>> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) >> >>> > at >> >>> > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) >> >>> > at java.lang.Thread.run(Thread.java:724) Caused by: >> >>> > org.collectionspace.csp.api.core.CSPDependencyException: >> >>> > org.collectionspace.chain.csp.config.ConfigException: Error loading >> >>> > config. >> >>> > See messages for details: summary Exception raised during parsing at >> >>> > >> >>> > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179) >> >>> > ... 22 more Caused by: >> >>> > org.collectionspace.chain.csp.config.ConfigException: >> >>> > Error loading config. See messages for details: summary Exception >> >>> > raised >> >>> > during parsing at >> >>> > >> >>> > org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74) >> >>> > at >> >>> > >> >>> > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54) >> >>> > ... 24 more >> >>> > >> >>> > ________________________________ >> >>> > >> >>> > type Status report >> >>> > >> >>> > message org.collectionspace.chain.controller.BadRequestException: >> >>> > Cannot >> >>> > initialise CSPs >> >>> > org.collectionspace.csp.api.core.CSPDependencyException: >> >>> > org.collectionspace.chain.csp.config.ConfigException: Error loading >> >>> > config. >> >>> > See messages for details: summary Exception raised during parsing at >> >>> > >> >>> > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568) >> >>> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) >> >>> > at >> >>> > >> >>> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >> >>> > at >> >>> > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) >> >>> > at >> >>> > >> >>> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) >> >>> > at >> >>> > >> >>> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) >> >>> > at >> >>> > >> >>> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) >> >>> > at >> >>> > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) >> >>> > at java.lang.Thread.run(Thread.java:724) Caused by: >> >>> > org.collectionspace.csp.api.core.CSPDependencyException: >> >>> > org.collectionspace.chain.csp.config.ConfigException: Error loading >> >>> > config. >> >>> > See messages for details: summary Exception raised during parsing at >> >>> > >> >>> > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179) >> >>> > ... 22 more Caused by: >> >>> > org.collectionspace.chain.csp.config.ConfigException: >> >>> > Error loading config. See messages for details: summary Exception >> >>> > raised >> >>> > during parsing at >> >>> > >> >>> > org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74) >> >>> > at >> >>> > >> >>> > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54) >> >>> > ... 24 more >> >>> > >> >>> > description The request sent by the client was syntactically >> >>> > incorrect >> >>> > (org.collectionspace.chain.controller.BadRequestException: Cannot >> >>> > initialise >> >>> > CSPs org.collectionspace.csp.api.core.CSPDependencyException: >> >>> > org.collectionspace.chain.csp.config.ConfigException: Error loading >> >>> > config. >> >>> > See messages for details: summary Exception raised during parsing at >> >>> > >> >>> > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568) >> >>> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) >> >>> > at >> >>> > >> >>> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >> >>> > at >> >>> > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) >> >>> > at >> >>> > >> >>> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) >> >>> > at >> >>> > >> >>> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) >> >>> > at >> >>> > >> >>> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) >> >>> > at >> >>> > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) >> >>> > at java.lang.Thread.run(Thread.java:724) Caused by: >> >>> > org.collectionspace.csp.api.core.CSPDependencyException: >> >>> > org.collectionspace.chain.csp.config.ConfigException: Error loading >> >>> > config. >> >>> > See messages for details: summary Exception raised during parsing at >> >>> > >> >>> > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179) >> >>> > ... 22 more Caused by: >> >>> > org.collectionspace.chain.csp.config.ConfigException: >> >>> > Error loading config. See messages for details: summary Exception >> >>> > raised >> >>> > during parsing at >> >>> > >> >>> > org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74) >> >>> > at >> >>> > >> >>> > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54) >> >>> > ... 24 more ). >> >>> > >> >>> > >> >>> > Al Bersch >> >>> > Digital Project Coordinator >> >>> > Oakland Museum of California >> >>> > 1000 Oak Street, Oakland, CA 94607 >> >>> > abersch@museumca.org >> >>> > 510-318-8468 >> >>> > ________________________________ >> >>> > From: "Aron Roberts" <aronroberts@gmail.com> >> >>> > To: "Al Bersch" <abersch@museumca.org> >> >>> > Cc: "talk" <talk@lists.collectionspace.org> >> >>> > Sent: Friday, August 16, 2013 12:58:56 PM >> >>> > Subject: Re: [Talk] deploy mvn error >> >>> > >> >>> > Hi Al, >> >>> > >> >>> > You likely will have success with 'mvn clean install -DskipTests' >> >>> > when >> >>> > building and deploying the App layer with your dropdown list >> >>> > changes, rather >> >>> > than 'mvn deploy -DskipTests'. >> >>> > >> >>> > It's a bit confusing (and I hope I don't need to keep repeating >> >>> > this >> >>> > :-), but CollectionSpace Services layer uses Maven to build >> >>> > artifacts and >> >>> > Ant buildfiles to deploy (copy) them to the server (hence 'mvn clean >> >>> > install' followed by 'ant deploy'), while the Application and UI >> >>> > layers use >> >>> > Maven ('mvn install') for both tasks. There are some historical and >> >>> > technical reasons for this difference, not worth going into ... >> >>> > >> >>> > Aron >> >>> > >> >>> > >> >>> > On Fri, Aug 16, 2013 at 12:49 PM, Al Bersch <abersch@museumca.org> >> >>> > wrote: >> >>> >> >> >>> >> Hello all, >> >>> >> >> >>> >> I changed our dropdown lists in Department and Collection in the >> >>> >> application layer source code, and when I ran mvn deploy >> >>> >> -DskipTests I get >> >>> >> this error: >> >>> >> >> >>> >> [ERROR] BUILD ERROR >> >>> >> [INFO] >> >>> >> >> >>> >> ------------------------------------------------------------------------ >> >>> >> [INFO] Failed to configure plugin parameters for: >> >>> >> org.apache.maven.plugins:maven-deploy-plugin:2.4 >> >>> >> >> >>> >> check that the following section of the pom.xml is present and >> >>> >> correct: >> >>> >> >> >>> >> <distributionManagement> >> >>> >> <!-- use the following if you're not using a snapshot version. >> >>> >> --> >> >>> >> <repository> >> >>> >> <id>repo</id> >> >>> >> <name>Repository Name</name> >> >>> >> <url>scp://host/path/to/repo</url> >> >>> >> </repository> >> >>> >> <!-- use the following if you ARE using a snapshot version. --> >> >>> >> <snapshotRepository> >> >>> >> <id>repo</id> >> >>> >> <name>Repository Name</name> >> >>> >> <url>scp://host/path/to/repo</url> >> >>> >> </snapshotRepository> >> >>> >> </distributionManagement> >> >>> >> >> >>> >> Cause: Class >> >>> >> 'org.apache.maven.artifact.repository.ArtifactRepository' >> >>> >> cannot be instantiated >> >>> >> >> >>> >> >> >>> >> >> >>> >> I looked in the pom.xml, and found this: >> >>> >> >> >>> >> <!-- The CollectionSpace public Maven repository for "snapshot" >> >>> >> artifacts --> >> >>> >> <repositories> >> >>> >> <repository> >> >>> >> <id>libs-snapshot-local</id> >> >>> >> <name>libs-snapshot-local</name> >> >>> >> >> >>> >> >> >>> >> <url>http://nightly.collectionspace.org:8081/artifactory/libs-snapshot-local</url> >> >>> >> <snapshots> >> >>> >> <enabled>true</enabled> >> >>> >> </snapshots> >> >>> >> >> >>> >> >> >>> >> I'm wondering, which repository setting should I use (snapshot or >> >>> >> not >> >>> >> snapshot)? Our installation is on a virtual server in linode. >> >>> >> >> >>> >> And, does anyone know where I should set the path to our >> >>> >> repository? >> >>> >> I'm guessing that the error is party due to the url being mapped to >> >>> >> nightly.collectionspace.org. >> >>> >> >> >>> >> 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
Tue, Aug 20, 2013 10:54 PM

Great, thank you both! Should I run it before or after the merge?

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" aronroberts@gmail.com
To: "Ray Lee" rhlee@berkeley.edu
Cc: "Al Bersch" abersch@museumca.org, "talk" talk@lists.collectionspace.org
Sent: Tuesday, August 20, 2013 3:53:29 PM
Subject: Re: [Talk] deploy mvn error

Thanks, Ray!

(Al, one easy-to-use checker is at:
http://www.w3schools.com/xml/xml_validator.asp ... you can simply
paste in your XML markup. Some developers here use the commercial
oXygen XML editor, http://www.oxygenxml.com/, which has a variety of
validation features built-in.)

On Tue, Aug 20, 2013 at 3:49 PM, Ray Lee rhlee@berkeley.edu wrote:

Hi Al,
The error you're seeing is characteristic of malformed XML in one of your
configuration files. If you run an XML checker over the files you edited,
you'll probably catch the problem.

Ray

On Tue, Aug 20, 2013 at 3:34 PM, Aron Roberts aronroberts@gmail.com wrote:

If it's easiest to use command line tools - you're using an Ubuntu
system, yes? - you might try this 'sed' command to remove those
specific stray characters:

http://superuser.com/questions/507267/how-to-grep-for-special-character-nul

If the merge still fails, you might try a more thorough cleaning of
each file; there's an example for doing this (stripping out all but a
subset of vanilla, printable USASCII characters from a file) by using
a 'tr' command under "Removing all undesirable characters at once" in:

http://alvinalexander.com/unix/edu/un010011/

On Tue, Aug 20, 2013 at 3:25 PM, Aron Roberts aronroberts@gmail.com
wrote:

Hi Al,

If it matters, I looked in my settings.xml file and get a big chunk of
this: ^@^@^@^@^@^@^.

It's possible that stray characters in any of the merge files:
settings.xml, local-omca-settings.xml, and/or
omca-collectionobject.xml, might be fouling up the merge attempts. If
you have a way of finding and removing them - such as using BBEdit's
or TextWrangler's (Mac OS X text editors) "Zap Gremlins" feature -
that might help. (That big chunk of ^@ could well be part of the
issue.)

Using TextWrangler, for instance:

http://indesignsecrets.com/zap-gremlins-in-problem-data-merge-files.php

Aron

On Tue, Aug 20, 2013 at 3:12 PM, Al Bersch abersch@museumca.org wrote:

Hi Aron,

Thanks so much for addressing these questions.

I entered the language at the end of your email into my
/tomcat-main/src/main/resources/omca-tenant.xml file, like this:

<cspace-config tenantname="omca">

<version>11</version>

<!-- Note: omca-collectionobject.xml should not appear in the 'include' line below --> <!-- This line is for merging various settings files together. -->

<include src="settings.xml,local-omca-settings.xml" merge="xmlmerge.properties" strip-root="yes" />

<spec> <include src="base-relations.xml"/> <include src="base-schemas.xml"/> <records> <enum-blank>Please select a value</enum-blank> <!-- Here's where you can indicate that you want to merge in your own Cataloging record changes --> <include src="base-collectionobject.xml,omca-collectionobject.xml" merge="xmlmerge.properties"/ <include src="base-procedure-acquisition.xml"/> <include src="base-procedure-blobs.xml"/> ...

then re-created the omca-collectionobject.xml file (located at
tomcat-main/src/main/resources/tenants/omca) with this inside it:

+<record id="collection-object">
+

  • <section id="identificationInformation">
  • <repeat id="responsibleDepartments" has-primary="yes">

<selector>object-identification-responsible-department</selector>

  • <field id="responsibleDepartment" ui-search="repeatable"
    mini="search"
  • seperate_ui_container="true">

<selector>object-identification-responsible-department</selector>

  • <options>
  • <option id="">Please select a value</option>
  • <option id="art">Art</option>
  • <option id="history">History</option>
  • <option id="science">Science</option>
  • <option id="collections">Collections</option>
  • <option id="education">Education</option>
  • <option id="professionalservices">Professional

Services</option>

  • <option id="multi">Multi</option>
  • </options>
  • </field>
  • </repeat>
  • <field id="collection" ui-search="repeatable" seperate_ui_container="true">
  • <selector>object-identification-collection</selector>
  • <options>
  • <option id="">Please select a value</option>
  • <option id="art">Art</option>
  • <option id="artandartifact">Art and Artifact</option>
  • <option id="exhibit">Exhibit</option>
  • <option id="history">History</option>
  • <option id="scientomology">SCI-Entomology</option>
  • <option id="scifineart">SCI-Fine Art</option>
  • <option id="scigalleryspecimens">SCI-Gallery

Specimens</option>

  • <option id="scigeology">SCI-Geology</option>
  • <option id="sciherbarium">SCI-Herbarium</option>
  • <option id="sciherpetology">SCI-Herpetology</option>
  • <option id="sciicthyology">SCI-Icthyology</option>
  • <option

id="sciinvertebrates">SCI-Invertebrates</option>

  • <option id="scilapidary">SCI-Lapidary</option>
  • <option id="scimalacology">SCI-Malacology</option>
  • <option id="scimammalogy">SCI-Mammalogy</option>
  • <option

id="scimiscellaneous">SCI-Miscellaneous</option>

  • <option id="sciornithology">SCI-Ornithology</option>
  • <option id="scipaleontology">SCI-Paleontology</option>
  • <option id="sciphoto">SCI-Photo</option>
  • <option id="scisnuffbottles">SCI-Snuff Bottles</option>
  • <option id="specimen">Specimen</option>
  • </options>
  • </field>
  • </section>

+</record>

But alas, I'm still getting the same error message when I log into my
tenant.

If it matters, I looked in my settings.xml file and get a big chunk of
this:
^@^@^@^@^@^@^.

do you see anything wrong here in the files I copied?

thanks,

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" aronroberts@gmail.com
To: "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Monday, August 19, 2013 5:39:58 PM

Subject: Re: [Talk] deploy mvn error

Hi Al,

My sincere apologies for these difficulties you've been encountering.

It looks like the problem is with merging settings.xml and
local-omca-settings.xml?

Yes, that certainly looks like the case.

This line appeared in part of the output from this error, in
catalina.out:

2013-08-19 21:46:13,364 ERROR [http-8180-3] ... Message: Exception
raised
during parsing
Stack :

org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61)

From looking at the Application layer's code at line 61 of
AssemblingParser.java:

https://github.com/collectionspace/application/blob/v3.3/csp-impl/src/main/java/org/collectionspace/chain/csp/config/impl/parser/AssemblingParser.java#L61
it appears the error is in reading or merging XML content, rather than
in
not finding either of the two files to be merged, or in not being able
to
read them as a result of insufficient access permissions or other
filesystem-related issues.

It appears that you might potentially be inadvertently trying to
merge two
dissimilar things: a settings file for your tenant (which contains some
general administrative settings), together with some field-level
settings
for a particular record type.

If you'd like to merge custom changes into the Cataloging record,
such as
changing the contents of options lists, here's an example of how you
can
specify that, as shown line 12 of the tenant 'includes' file for the
UCJEPS
herbaria:

https://github.com/cspace-deployment/application/blob/ucjeps_3.2/tomcat-main/src/main/resources/ucjeps-tenant.xml#L12

Following that example, your
/tomcat-main/src/main/resources/omca-tenant.xml file might look
something
like the following:

<cspace-config tenantname="omca"> <version>11</version> <!-- Note: omca-collectionobject.xml should not appear in the 'include' line below --> <!-- This line is for merging various settings files together. --> <include src="settings.xml,local-settings.xml" merge="xmlmerge-settings.properties" strip-root="yes"/> ... <records> <enum-blank>Please select a value</enum-blank> <!-- Here's where you can indicate that you want to merge in your own Cataloging record changes --> <include src="base-collectionobject.xml,omca-collectionobject.xml" merge="xmlmerge.properties"/> ...

Aron

On Mon, Aug 19, 2013 at 4:28 PM, Al Bersch abersch@museumca.org
wrote:

Hi Aron,

Thanks so much again for your continued assistance. And for the plug
for
using github as a backup resource - I'll do that, and also apologize
in
advance for the cut-and-paste text below.

I installed DiffMerge, but I'm not sure what to compare, since the
file I
added to the omca tenant (omca-collectionobject.xml), wasn't there in
the
previous snapshot. I think I'm a little confused.

I looked in the cspace-app.log and catalina.out (can you tell me where
I
might find catalina.(today'sdate).log?) and here are some snippets,
first
from cspace-app.log:

2013-08-19 21:46:13,363 WARN [http-8180-3]

[org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:218]
Could not merge the include files:
settings.xml,local-omca-settings.xml
2013-08-19 21:46:13,364 ERROR [http-8180-3]

[org.collectionspace.chain.csp.config.impl.parser.ConfigLoadingMessagesImpl:16]
Message: Exception raised during parsing

Stack :

org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61)
org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse
(62)
org.collectionspace.csp.container.impl.CSPManagerImpl.configure (54)
org.collectionspace.chain.controller.TenantServlet.load_config (156)
org.collectionspace.chain.controller.TenantServlet.setup (179)
org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant
(117)
org.collectionspace.chain.controller.TenantUIServlet.service (568)
javax.servlet.http.HttpServlet.service (717)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (290)
org.apache.catalina.core.ApplicationFilterChain.doFilter (206)
org.collectionspace.chain.controller.filters.PerflogFilter.doFilter
(33)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235)
org.apache.catalina.core.ApplicationFilterChain.doFilter (206)
org.collectionspace.chain.controller.filters.CharSetFilter.doFilter
(99)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235)
org.apache.catalina.core.ApplicationFilterChain.doFilter (206)
org.apache.catalina.core.StandardWrapperValve.invoke (233)
org.apache.catalina.core.StandardContextValve.invoke (191)
org.apache.catalina.core.StandardHostValve.invoke (127)
org.apache.catalina.valves.ErrorReportValve.invoke (102)
org.apache.catalina.valves.AccessLogValve.invoke (589)
org.apache.catalina.core.StandardEngineValve.invoke (109)
org.apache.catalina.connector.CoyoteAdapter.service (291)
org.apache.coyote.http11.Http11Processor.process (859)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
(602)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run (489)
java.lang.Thread.run (724)

CAUSED BY
Message: Could not load source

then from catalina.out:

2013-08-19 17:49:25,334 ERROR [main]
[org.collectionspace.services.common.config.ConfigUtils:51] No domain
name
was specified on call to getRepositoryName() method.2013-08-19
17:49:25,334
ERROR [main]
[org.collectionspace.services.common.config.ConfigUtils:51] No
domain name was specified on call to getRepositoryName()
method.2013-08-19
17:49:25,334 ERROR [main]
[org.collectionspace.services.common.config.ConfigUtils:51] No domain
name
was specified on call to getRepositoryName() method.[INFO] Starting up
the
CollectionSpace Services' JAX-RS application.Static initializtion of:
org.collectionspace.services.common.security.SecurityInterceptor[INFO]
CollectionSpace Services' JAX-RS application started.2013-08-19
17:49:27,339
(0) [http-8180-4] INFO

org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:
XMLMerge result output to:

/usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19
17:49:29,695 (2356) [http-8180-2] INFO

org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:
XMLMerge result output to:

/usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19
17:49:29,732 (2393) [net.sf.ehcache.CacheManager@23aeae74] INFO
net.sf.ehcache.util.UpdateChecker: New update(s) found: 2.6.5

[http://www.terracotta.org/confluence/display/release/Release+Notes+Ehcache+Core+2.6].
Please check http://ehcache.org for the latest version.Could not get
session
from CSPACESESSID cookie with value:
31b6c5daf4d4180636604cb25ac9f75f2013-08-19 17:49:47,810 WARN
[http-8180-7]
[org.collectionspace.services.common.security.SecurityInterceptor:358]
Attempt to logout when Nuxeo login context was null2013-08-19
17:49:47,953
WARN [http-8180-7]

[org.springframework.security.web.context.HttpSessionSecurityContextRepository:396]
Failed to create a session, as response has been committed. Unable to
store
SecurityContext.2013-08-19 17:49:48,765 WARN [http-8180-7]
[org.collectionspace.services.common.security.SecurityInterceptor:358]
Attempt to logout when Nuxeo login context was null2013-08-19
17:49:48,773
WARN [http-8180-7]

[org.springframework.security.web.context.HttpSessionSecurityContextRepository:396]
Failed to create a session, as response has been committed. Unable to
store
SecurityContext.2013-08-19 21:07:17,771 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2191] The web
application
[/collectionspace] appears to have started a thread named
[net.sf.ehcache.CacheManager@23aeae74] but has failed to stop it. This
is
very likely to create a memory leak.2013-08-19 21:07:17,772 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2191] The web
application
[/collectionspace] appears to have started a thread named
[MultiThreadedHttpConnectionManager cleanup] but has failed to stop
it. This
is very likely to create a memory leak.2013-08-19 21:07:17,780 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2453] The web
application
[/collectionspace] created a ThreadLocal with key of type
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a
value of
type [java.util.HashMap] (value [{}]) but failed to remove it when the
web
application was stopped. This is very likely to create a memory
leak.2013-08-19 21:07:17,781 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2453] The web
application
[/collectionspace] created a ThreadLocal with key of type
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a
value of
type [java.util.HashMap] (value [{}]) but failed to remove it when the
web
application was stopped. This is very likely to create a memory
leak.2013-08-19 21:09:34,685 (0) [http-8180-4] WARN

org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:
Could not merge the include files:
settings.xml,local-omca-settings.xml

It looks like the problem is with merging settings.xml and
local-omca-settings.xml?

I've tried a second time to create the configuration change in
omca-collectionobject.xml (a newly created xml file with only this
snippet
in it:

+<record id="collection-object">
+

  • <section id="identificationInformation">
  • <repeat id="responsibleDepartments" has-primary="yes">

<selector>object-identification-responsible-department</selector>

  • <field id="responsibleDepartment" ui-search="repeatable"
    mini="search"
  • seperate_ui_container="true">

<selector>object-identification-responsible-department</selector>

  • <options>
  • <option id="">Please select a value</option>
  • <option id="art">Art</option>
  • <option id="history">History</option>
  • <option id="science">Science</option>
  • <option id="collections">Collections</option>
  • <option id="education">Education</option>
  • <option id="professionalservices">Professional

Services</option>

  • <option id="multi">Multi</option>
  • </options>
  • </field>
  • </repeat>
  • <field id="collection" ui-search="repeatable" seperate_ui_container="true">
  • <selector>object-identification-collection</selector>
  • <options>
  • <option id="">Please select a value</option>
  • <option id="art">Art</option>
  • <option id="artandartifact">Art and Artifact</option>
  • <option id="exhibit">Exhibit</option>
  • <option id="history">History</option>
  • <option id="scientomology">SCI-Entomology</option>
  • <option id="scifineart">SCI-Fine Art</option>
  • <option id="scigalleryspecimens">SCI-Gallery

Specimens</option>

  • <option id="scigeology">SCI-Geology</option>
  • <option id="sciherbarium">SCI-Herbarium</option>
  • <option id="sciherpetology">SCI-Herpetology</option>
  • <option id="sciicthyology">SCI-Icthyology</option>
  • <option

id="sciinvertebrates">SCI-Invertebrates</option>

  • <option id="scilapidary">SCI-Lapidary</option>
  • <option id="scimalacology">SCI-Malacology</option>
  • <option id="scimammalogy">SCI-Mammalogy</option>
  • <option

id="scimiscellaneous">SCI-Miscellaneous</option>

  • <option id="sciornithology">SCI-Ornithology</option>
  • <option id="scipaleontology">SCI-Paleontology</option>
  • <option id="sciphoto">SCI-Photo</option>
  • <option id="scisnuffbottles">SCI-Snuff

Bottles</option>

  • <option id="specimen">Specimen</option>
  • </options>
  • </field>
  • </section>

+</record>

then according to your last email, I ran "mvn clean install
-DskipTest"
rather than "mvn deploy -DskipTests". I ran this in the application
layer
folder called "application" that contains the pom.xml file. In my path
it
looks like /home/root/application-source/application/. Then, do I
understand
I also need to run "ant deploy"? I wasn't able to run this in the same
folder - I got an error saying this is no build file.

I'm going off your previous instructions, as well as the documentation
on
the wiki for customizing the application layer:

Hi Becky and Al,
One more set of notes on making 'starting out' customizations,
below: this one a customization of options in dropdown menus.
Aron
(Recommendation: start the CollectionSpace server before making the
following changes. This will help ensure those changes are made
'live.')

  • An example of how to replace the default sets of options in the
    dropdown menus for the Responsible Department and OMCA Collection
    fields.
    The existing documentation on updating these option lists is
    confusing, and wildly out of date; we expect to be updating it in the
    near future. The customization method shown here as an example
    reflects recently-added 'merge' capabilities that allow you to simply
    replicate the block of configuration you want to customize, within a
    separate file for your own museum; it will override the corresponding
    configuration block in the default settings:
    Actual change(s) made, within the source code tree for
    CollectionSpace's Application layer:

https://github.com/aronr/application/commit/b7a47d94fc6d44d0cad74f6444710a35373291c7
You can compare this to the default configuration file for the
Cataloging record, in which the default options for those two dropdown
menus appear:

https://github.com/aronr/application/blob/b7a47d94fc6d44d0cad74f6444710a35373291c7/tomcat-main/src/main/resources/defaults/base-collectionobject.xml#L112
To copy (deploy) these changes to the server folder, enter the
following at a command prompt, from within the top-level folder of the
Application source code tree:
mvn deploy -DskipTests

Sorry I'm not getting this! Do you have any ideas?

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" aronroberts@gmail.com
To: "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Friday, August 16, 2013 1:28:48 PM

Subject: Re: [Talk] deploy mvn error

The key is likely this snippet, from near the beginning of that long
and
singularly unhelpful chain of messages:
"org.collectionspace.chain.csp.config.ConfigException: Error loading
config"

There may have been an error made in whatever configuration file, or
files, were modified. After they were deployed (copied) to the
server, when
the Application layer read them, it got confused and barfed out this
long
stack trace.

Typically, this means the file(s), after being modified, weren't
well-formed XML - perhaps an ending tag was left out somewhere? - or
they
didn't conform to the Application layer's expectation of what 'tags'
(XML
elements) are expected, in which hierarchical locations within the
file.

Yes, reverting to a snapshot and re-deploying (via 'mvn clean install
-DskipTests') and restarting Tomcat, should resolve the issue. You
might
also try, however, using a utility app that can show you differences
between
two files - your current version and your snapshot - and see if the
error is
readily made apparent by looking at those changes in that 'diff' view.
(If
you're using Mac OS X, there's a list of such apps at
http://apple.stackexchange.com/a/87188)

It's also worth checking the current cspace-app.log and
catalina.{today's
date}.log to see if there may be any log message specifically
pinpointing
the configuration error.

Aron

On Fri, Aug 16, 2013 at 1:16 PM, Al Bersch abersch@museumca.org
wrote:

Hi again,

Ok, I think I must have messed up somewhere when changing the files
in
the application layer. When I navigated to our tenant, the login
screen is
blank except for a place to put a user name and password. when I
submit my
password, I get this message: Any idea what I did wrong? Thanks!

I have a snapshot prior to the changes in the application layer, so
I
can always go back in time and try again.

Al

HTTP Status 400 -
org.collectionspace.chain.controller.BadRequestException: Cannot
initialise
CSPs org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading
config.
See messages for details: summary Exception raised during parsing at

org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185)
at

org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117)
at

org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at

org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33)
at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at

org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99)
at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)
at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
at

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:724) Caused by:
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading
config.
See messages for details: summary Exception raised during parsing at

org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64)
at

org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156)
at

org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179)
... 22 more Caused by:
org.collectionspace.chain.csp.config.ConfigException:
Error loading config. See messages for details: summary Exception
raised
during parsing at

org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78)
at

org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74)
at

org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54)
... 24 more


type Status report

message org.collectionspace.chain.controller.BadRequestException:
Cannot
initialise CSPs
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading
config.
See messages for details: summary Exception raised during parsing at

org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185)
at

org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117)
at

org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at

org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33)
at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at

org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99)
at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)
at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
at

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:724) Caused by:
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading
config.
See messages for details: summary Exception raised during parsing at

org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64)
at

org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156)
at

org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179)
... 22 more Caused by:
org.collectionspace.chain.csp.config.ConfigException:
Error loading config. See messages for details: summary Exception
raised
during parsing at

org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78)
at

org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74)
at

org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54)
... 24 more

description The request sent by the client was syntactically
incorrect
(org.collectionspace.chain.controller.BadRequestException: Cannot
initialise
CSPs org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading
config.
See messages for details: summary Exception raised during parsing at

org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185)
at

org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117)
at

org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at

org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33)
at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at

org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99)
at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)
at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
at

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:724) Caused by:
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading
config.
See messages for details: summary Exception raised during parsing at

org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64)
at

org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156)
at

org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179)
... 22 more Caused by:
org.collectionspace.chain.csp.config.ConfigException:
Error loading config. See messages for details: summary Exception
raised
during parsing at

org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78)
at

org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74)
at

org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54)
... 24 more ).

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


From: "Aron Roberts" aronroberts@gmail.com
To: "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Friday, August 16, 2013 12:58:56 PM
Subject: Re: [Talk] deploy mvn error

Hi Al,

You likely will have success with 'mvn clean install -DskipTests'
when
building and deploying the App layer with your dropdown list
changes, rather
than 'mvn deploy -DskipTests'.

It's a bit confusing (and I hope I don't need to keep repeating
this
:-), but CollectionSpace Services layer uses Maven to build
artifacts and
Ant buildfiles to deploy (copy) them to the server (hence 'mvn clean
install' followed by 'ant deploy'), while the Application and UI
layers use
Maven ('mvn install') for both tasks. There are some historical and
technical reasons for this difference, not worth going into ...

Aron

On Fri, Aug 16, 2013 at 12:49 PM, Al Bersch abersch@museumca.org
wrote:

Hello all,

I changed our dropdown lists in Department and Collection in the
application layer source code, and when I ran mvn deploy
-DskipTests I get
this error:

[ERROR] BUILD ERROR
[INFO]


[INFO] Failed to configure plugin parameters for:
org.apache.maven.plugins:maven-deploy-plugin:2.4

check that the following section of the pom.xml is present and
correct:

<distributionManagement> <!-- use the following if you're not using a snapshot version. --> <repository> <id>repo</id> <name>Repository Name</name> <url>scp://host/path/to/repo</url> </repository> <!-- use the following if you ARE using a snapshot version. --> <snapshotRepository> <id>repo</id> <name>Repository Name</name> <url>scp://host/path/to/repo</url> </snapshotRepository> </distributionManagement>

Cause: Class
'org.apache.maven.artifact.repository.ArtifactRepository'
cannot be instantiated

I looked in the pom.xml, and found this:

<!-- The CollectionSpace public Maven repository for "snapshot" artifacts --> <repositories> <repository> <id>libs-snapshot-local</id> <name>libs-snapshot-local</name>

<url>http://nightly.collectionspace.org:8081/artifactory/libs-snapshot-local</url>
<snapshots>
<enabled>true</enabled>
</snapshots>

I'm wondering, which repository setting should I use (snapshot or
not
snapshot)? Our installation is on a virtual server in linode.

And, does anyone know where I should set the path to our
repository?
I'm guessing that the error is party due to the url being mapped to
nightly.collectionspace.org.

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

Great, thank you both! Should I run it before or after the merge? 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" <aronroberts@gmail.com> To: "Ray Lee" <rhlee@berkeley.edu> Cc: "Al Bersch" <abersch@museumca.org>, "talk" <talk@lists.collectionspace.org> Sent: Tuesday, August 20, 2013 3:53:29 PM Subject: Re: [Talk] deploy mvn error Thanks, Ray! (Al, one easy-to-use checker is at: http://www.w3schools.com/xml/xml_validator.asp ... you can simply paste in your XML markup. Some developers here use the commercial oXygen XML editor, http://www.oxygenxml.com/, which has a variety of validation features built-in.) On Tue, Aug 20, 2013 at 3:49 PM, Ray Lee <rhlee@berkeley.edu> wrote: > Hi Al, > The error you're seeing is characteristic of malformed XML in one of your > configuration files. If you run an XML checker over the files you edited, > you'll probably catch the problem. > > Ray > > > On Tue, Aug 20, 2013 at 3:34 PM, Aron Roberts <aronroberts@gmail.com> wrote: >> >> If it's easiest to use command line tools - you're using an Ubuntu >> system, yes? - you might try this 'sed' command to remove those >> specific stray characters: >> >> >> http://superuser.com/questions/507267/how-to-grep-for-special-character-nul >> >> If the merge still fails, you might try a more thorough cleaning of >> each file; there's an example for doing this (stripping out all but a >> subset of vanilla, printable USASCII characters from a file) by using >> a 'tr' command under "Removing all undesirable characters at once" in: >> >> http://alvinalexander.com/unix/edu/un010011/ >> >> On Tue, Aug 20, 2013 at 3:25 PM, Aron Roberts <aronroberts@gmail.com> >> wrote: >> > Hi Al, >> > >> >> If it matters, I looked in my settings.xml file and get a big chunk of >> >> this: ^@^@^@^@^@^@^. >> > >> > It's possible that stray characters in any of the merge files: >> > settings.xml, local-omca-settings.xml, and/or >> > omca-collectionobject.xml, might be fouling up the merge attempts. If >> > you have a way of finding and removing them - such as using BBEdit's >> > or TextWrangler's (Mac OS X text editors) "Zap Gremlins" feature - >> > that might help. (That big chunk of ^@ could well be part of the >> > issue.) >> > >> > Using TextWrangler, for instance: >> > >> > http://indesignsecrets.com/zap-gremlins-in-problem-data-merge-files.php >> > >> > Aron >> > >> > On Tue, Aug 20, 2013 at 3:12 PM, Al Bersch <abersch@museumca.org> wrote: >> >> Hi Aron, >> >> >> >> Thanks so much for addressing these questions. >> >> >> >> I entered the language at the end of your email into my >> >> /tomcat-main/src/main/resources/omca-tenant.xml file, like this: >> >> >> >> <cspace-config tenantname="omca"> >> >> >> >> <version>11</version> >> >> <!-- Note: omca-collectionobject.xml should not appear in the >> >> 'include' line below --> >> >> <!-- This line is for merging various settings files together. >> >> --> >> >> <include src="settings.xml,local-omca-settings.xml" >> >> merge="xmlmerge.properties" >> >> strip-root="yes" /> >> >> >> >> <spec> >> >> <include src="base-relations.xml"/> >> >> <include src="base-schemas.xml"/> >> >> >> >> <records> >> >> <enum-blank>Please select a value</enum-blank> >> >> <!-- Here's where you can indicate that you >> >> want to >> >> merge in your own Cataloging record changes --> >> >> <include >> >> src="base-collectionobject.xml,omca-collectionobject.xml" >> >> merge="xmlmerge.properties"/ >> >> <include src="base-procedure-acquisition.xml"/> >> >> <include src="base-procedure-blobs.xml"/> >> >> ... >> >> >> >> then re-created the omca-collectionobject.xml file (located at >> >> tomcat-main/src/main/resources/tenants/omca) with this inside it: >> >> >> >> +<record id="collection-object"> >> >> + >> >> + <section id="identificationInformation"> >> >> + <repeat id="responsibleDepartments" has-primary="yes"> >> >> + >> >> <selector>object-identification-responsible-department</selector> >> >> + <field id="responsibleDepartment" ui-search="repeatable" >> >> mini="search" >> >> + seperate_ui_container="true"> >> >> + >> >> <selector>object-identification-responsible-department</selector> >> >> + <options> >> >> + <option id="">Please select a value</option> >> >> + <option id="art">Art</option> >> >> + <option id="history">History</option> >> >> + <option id="science">Science</option> >> >> + <option id="collections">Collections</option> >> >> + <option id="education">Education</option> >> >> + <option id="professionalservices">Professional >> >> Services</option> >> >> + <option id="multi">Multi</option> >> >> + </options> >> >> + </field> >> >> + </repeat> >> >> + <field id="collection" ui-search="repeatable" >> >> seperate_ui_container="true"> >> >> + <selector>object-identification-collection</selector> >> >> + <options> >> >> + <option id="">Please select a value</option> >> >> + <option id="art">Art</option> >> >> + <option id="artandartifact">Art and Artifact</option> >> >> + <option id="exhibit">Exhibit</option> >> >> + <option id="history">History</option> >> >> + <option id="scientomology">SCI-Entomology</option> >> >> + <option id="scifineart">SCI-Fine Art</option> >> >> + <option id="scigalleryspecimens">SCI-Gallery >> >> Specimens</option> >> >> + <option id="scigeology">SCI-Geology</option> >> >> + <option id="sciherbarium">SCI-Herbarium</option> >> >> + <option id="sciherpetology">SCI-Herpetology</option> >> >> + <option id="sciicthyology">SCI-Icthyology</option> >> >> + <option >> >> id="sciinvertebrates">SCI-Invertebrates</option> >> >> + <option id="scilapidary">SCI-Lapidary</option> >> >> + <option id="scimalacology">SCI-Malacology</option> >> >> + <option id="scimammalogy">SCI-Mammalogy</option> >> >> + <option >> >> id="scimiscellaneous">SCI-Miscellaneous</option> >> >> + <option id="sciornithology">SCI-Ornithology</option> >> >> + <option id="scipaleontology">SCI-Paleontology</option> >> >> + <option id="sciphoto">SCI-Photo</option> >> >> + <option id="scisnuffbottles">SCI-Snuff Bottles</option> >> >> + <option id="specimen">Specimen</option> >> >> + </options> >> >> + </field> >> >> + </section> >> >> + >> >> +</record> >> >> >> >> But alas, I'm still getting the same error message when I log into my >> >> tenant. >> >> >> >> If it matters, I looked in my settings.xml file and get a big chunk of >> >> this: >> >> ^@^@^@^@^@^@^. >> >> >> >> do you see anything wrong here in the files I copied? >> >> >> >> thanks, >> >> >> >> 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" <aronroberts@gmail.com> >> >> To: "Al Bersch" <abersch@museumca.org> >> >> Cc: "talk" <talk@lists.collectionspace.org> >> >> Sent: Monday, August 19, 2013 5:39:58 PM >> >> >> >> Subject: Re: [Talk] deploy mvn error >> >> >> >> Hi Al, >> >> >> >> My sincere apologies for these difficulties you've been encountering. >> >> >> >>> It looks like the problem is with merging settings.xml and >> >>> local-omca-settings.xml? >> >> >> >> Yes, that certainly looks like the case. >> >> >> >> This line appeared in part of the output from this error, in >> >> catalina.out: >> >> >> >>> 2013-08-19 21:46:13,364 ERROR [http-8180-3] ... Message: Exception >> >>> raised >> >>> during parsing >> >>> Stack : >> >>> >> >>> org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61) >> >> >> >> From looking at the Application layer's code at line 61 of >> >> AssemblingParser.java: >> >> >> >> https://github.com/collectionspace/application/blob/v3.3/csp-impl/src/main/java/org/collectionspace/chain/csp/config/impl/parser/AssemblingParser.java#L61 >> >> it appears the error is in reading or merging XML content, rather than >> >> in >> >> not finding either of the two files to be merged, or in not being able >> >> to >> >> read them as a result of insufficient access permissions or other >> >> filesystem-related issues. >> >> >> >> It appears that you might potentially be inadvertently trying to >> >> merge two >> >> dissimilar things: a settings file for your tenant (which contains some >> >> general administrative settings), together with some field-level >> >> settings >> >> for a particular record type. >> >> >> >> If you'd like to merge custom changes into the Cataloging record, >> >> such as >> >> changing the contents of options lists, here's an example of how you >> >> can >> >> specify that, as shown line 12 of the tenant 'includes' file for the >> >> UCJEPS >> >> herbaria: >> >> >> >> >> >> https://github.com/cspace-deployment/application/blob/ucjeps_3.2/tomcat-main/src/main/resources/ucjeps-tenant.xml#L12 >> >> >> >> Following that example, your >> >> /tomcat-main/src/main/resources/omca-tenant.xml file might look >> >> something >> >> like the following: >> >> >> >> <cspace-config tenantname="omca"> >> >> <version>11</version> >> >> <!-- Note: omca-collectionobject.xml should not appear in the >> >> 'include' >> >> line below --> >> >> <!-- This line is for merging various settings files together. --> >> >> <include src="settings.xml,local-settings.xml" >> >> merge="xmlmerge-settings.properties" strip-root="yes"/> >> >> ... >> >> <records> >> >> <enum-blank>Please select a value</enum-blank> >> >> <!-- Here's where you can indicate that you want to merge in your >> >> own >> >> Cataloging record changes --> >> >> <include src="base-collectionobject.xml,omca-collectionobject.xml" >> >> merge="xmlmerge.properties"/> >> >> ... >> >> >> >> Aron >> >> >> >> On Mon, Aug 19, 2013 at 4:28 PM, Al Bersch <abersch@museumca.org> >> >> wrote: >> >>> >> >>> Hi Aron, >> >>> >> >>> Thanks so much again for your continued assistance. And for the plug >> >>> for >> >>> using github as a backup resource - I'll do that, and also apologize >> >>> in >> >>> advance for the cut-and-paste text below. >> >>> >> >>> I installed DiffMerge, but I'm not sure what to compare, since the >> >>> file I >> >>> added to the omca tenant (omca-collectionobject.xml), wasn't there in >> >>> the >> >>> previous snapshot. I think I'm a little confused. >> >>> >> >>> I looked in the cspace-app.log and catalina.out (can you tell me where >> >>> I >> >>> might find catalina.(today'sdate).log?) and here are some snippets, >> >>> first >> >>> from cspace-app.log: >> >>> >> >>> 2013-08-19 21:46:13,363 WARN [http-8180-3] >> >>> >> >>> [org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:218] >> >>> Could not merge the include files: >> >>> settings.xml,local-omca-settings.xml >> >>> 2013-08-19 21:46:13,364 ERROR [http-8180-3] >> >>> >> >>> [org.collectionspace.chain.csp.config.impl.parser.ConfigLoadingMessagesImpl:16] >> >>> Message: Exception raised during parsing >> >>> >> >>> Stack : >> >>> >> >>> org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61) >> >>> org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse >> >>> (62) >> >>> org.collectionspace.csp.container.impl.CSPManagerImpl.configure (54) >> >>> org.collectionspace.chain.controller.TenantServlet.load_config (156) >> >>> org.collectionspace.chain.controller.TenantServlet.setup (179) >> >>> org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant >> >>> (117) >> >>> org.collectionspace.chain.controller.TenantUIServlet.service (568) >> >>> javax.servlet.http.HttpServlet.service (717) >> >>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (290) >> >>> org.apache.catalina.core.ApplicationFilterChain.doFilter (206) >> >>> org.collectionspace.chain.controller.filters.PerflogFilter.doFilter >> >>> (33) >> >>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235) >> >>> org.apache.catalina.core.ApplicationFilterChain.doFilter (206) >> >>> org.collectionspace.chain.controller.filters.CharSetFilter.doFilter >> >>> (99) >> >>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235) >> >>> org.apache.catalina.core.ApplicationFilterChain.doFilter (206) >> >>> org.apache.catalina.core.StandardWrapperValve.invoke (233) >> >>> org.apache.catalina.core.StandardContextValve.invoke (191) >> >>> org.apache.catalina.core.StandardHostValve.invoke (127) >> >>> org.apache.catalina.valves.ErrorReportValve.invoke (102) >> >>> org.apache.catalina.valves.AccessLogValve.invoke (589) >> >>> org.apache.catalina.core.StandardEngineValve.invoke (109) >> >>> org.apache.catalina.connector.CoyoteAdapter.service (291) >> >>> org.apache.coyote.http11.Http11Processor.process (859) >> >>> >> >>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process >> >>> (602) >> >>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run (489) >> >>> java.lang.Thread.run (724) >> >>> >> >>> CAUSED BY >> >>> Message: Could not load source >> >>> >> >>> >> >>> >> >>> then from catalina.out: >> >>> >> >>> 2013-08-19 17:49:25,334 ERROR [main] >> >>> [org.collectionspace.services.common.config.ConfigUtils:51] No domain >> >>> name >> >>> was specified on call to getRepositoryName() method.2013-08-19 >> >>> 17:49:25,334 >> >>> ERROR [main] >> >>> [org.collectionspace.services.common.config.ConfigUtils:51] No >> >>> domain name was specified on call to getRepositoryName() >> >>> method.2013-08-19 >> >>> 17:49:25,334 ERROR [main] >> >>> [org.collectionspace.services.common.config.ConfigUtils:51] No domain >> >>> name >> >>> was specified on call to getRepositoryName() method.[INFO] Starting up >> >>> the >> >>> CollectionSpace Services' JAX-RS application.Static initializtion of: >> >>> org.collectionspace.services.common.security.SecurityInterceptor[INFO] >> >>> CollectionSpace Services' JAX-RS application started.2013-08-19 >> >>> 17:49:27,339 >> >>> (0) [http-8180-4] INFO >> >>> >> >>> org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler: >> >>> XMLMerge result output to: >> >>> >> >>> /usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19 >> >>> 17:49:29,695 (2356) [http-8180-2] INFO >> >>> >> >>> org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler: >> >>> XMLMerge result output to: >> >>> >> >>> /usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19 >> >>> 17:49:29,732 (2393) [net.sf.ehcache.CacheManager@23aeae74] INFO >> >>> net.sf.ehcache.util.UpdateChecker: New update(s) found: 2.6.5 >> >>> >> >>> [http://www.terracotta.org/confluence/display/release/Release+Notes+Ehcache+Core+2.6]. >> >>> Please check http://ehcache.org for the latest version.Could not get >> >>> session >> >>> from CSPACESESSID cookie with value: >> >>> 31b6c5daf4d4180636604cb25ac9f75f2013-08-19 17:49:47,810 WARN >> >>> [http-8180-7] >> >>> [org.collectionspace.services.common.security.SecurityInterceptor:358] >> >>> Attempt to logout when Nuxeo login context was null2013-08-19 >> >>> 17:49:47,953 >> >>> WARN [http-8180-7] >> >>> >> >>> [org.springframework.security.web.context.HttpSessionSecurityContextRepository:396] >> >>> Failed to create a session, as response has been committed. Unable to >> >>> store >> >>> SecurityContext.2013-08-19 17:49:48,765 WARN [http-8180-7] >> >>> [org.collectionspace.services.common.security.SecurityInterceptor:358] >> >>> Attempt to logout when Nuxeo login context was null2013-08-19 >> >>> 17:49:48,773 >> >>> WARN [http-8180-7] >> >>> >> >>> [org.springframework.security.web.context.HttpSessionSecurityContextRepository:396] >> >>> Failed to create a session, as response has been committed. Unable to >> >>> store >> >>> SecurityContext.2013-08-19 21:07:17,771 ERROR >> >>> [ContainerBackgroundProcessor[StandardEngine[Catalina]]] >> >>> [org.apache.catalina.loader.WebappClassLoader:2191] The web >> >>> application >> >>> [/collectionspace] appears to have started a thread named >> >>> [net.sf.ehcache.CacheManager@23aeae74] but has failed to stop it. This >> >>> is >> >>> very likely to create a memory leak.2013-08-19 21:07:17,772 ERROR >> >>> [ContainerBackgroundProcessor[StandardEngine[Catalina]]] >> >>> [org.apache.catalina.loader.WebappClassLoader:2191] The web >> >>> application >> >>> [/collectionspace] appears to have started a thread named >> >>> [MultiThreadedHttpConnectionManager cleanup] but has failed to stop >> >>> it. This >> >>> is very likely to create a memory leak.2013-08-19 21:07:17,780 ERROR >> >>> [ContainerBackgroundProcessor[StandardEngine[Catalina]]] >> >>> [org.apache.catalina.loader.WebappClassLoader:2453] The web >> >>> application >> >>> [/collectionspace] created a ThreadLocal with key of type >> >>> [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value >> >>> [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a >> >>> value of >> >>> type [java.util.HashMap] (value [{}]) but failed to remove it when the >> >>> web >> >>> application was stopped. This is very likely to create a memory >> >>> leak.2013-08-19 21:07:17,781 ERROR >> >>> [ContainerBackgroundProcessor[StandardEngine[Catalina]]] >> >>> [org.apache.catalina.loader.WebappClassLoader:2453] The web >> >>> application >> >>> [/collectionspace] created a ThreadLocal with key of type >> >>> [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value >> >>> [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a >> >>> value of >> >>> type [java.util.HashMap] (value [{}]) but failed to remove it when the >> >>> web >> >>> application was stopped. This is very likely to create a memory >> >>> leak.2013-08-19 21:09:34,685 (0) [http-8180-4] WARN >> >>> >> >>> org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler: >> >>> Could not merge the include files: >> >>> settings.xml,local-omca-settings.xml >> >>> >> >>> >> >>> It looks like the problem is with merging settings.xml and >> >>> local-omca-settings.xml? >> >>> >> >>> I've tried a second time to create the configuration change in >> >>> omca-collectionobject.xml (a newly created xml file with only this >> >>> snippet >> >>> in it: >> >>> >> >>> +<record id="collection-object"> >> >>> + >> >>> + <section id="identificationInformation"> >> >>> + <repeat id="responsibleDepartments" has-primary="yes"> >> >>> + >> >>> <selector>object-identification-responsible-department</selector> >> >>> + <field id="responsibleDepartment" ui-search="repeatable" >> >>> mini="search" >> >>> + seperate_ui_container="true"> >> >>> + >> >>> <selector>object-identification-responsible-department</selector> >> >>> + <options> >> >>> + <option id="">Please select a value</option> >> >>> + <option id="art">Art</option> >> >>> + <option id="history">History</option> >> >>> + <option id="science">Science</option> >> >>> + <option id="collections">Collections</option> >> >>> + <option id="education">Education</option> >> >>> + <option id="professionalservices">Professional >> >>> Services</option> >> >>> + <option id="multi">Multi</option> >> >>> + </options> >> >>> + </field> >> >>> + </repeat> >> >>> + <field id="collection" ui-search="repeatable" >> >>> seperate_ui_container="true"> >> >>> + <selector>object-identification-collection</selector> >> >>> + <options> >> >>> + <option id="">Please select a value</option> >> >>> + <option id="art">Art</option> >> >>> + <option id="artandartifact">Art and Artifact</option> >> >>> + <option id="exhibit">Exhibit</option> >> >>> + <option id="history">History</option> >> >>> + <option id="scientomology">SCI-Entomology</option> >> >>> + <option id="scifineart">SCI-Fine Art</option> >> >>> + <option id="scigalleryspecimens">SCI-Gallery >> >>> Specimens</option> >> >>> + <option id="scigeology">SCI-Geology</option> >> >>> + <option id="sciherbarium">SCI-Herbarium</option> >> >>> + <option id="sciherpetology">SCI-Herpetology</option> >> >>> + <option id="sciicthyology">SCI-Icthyology</option> >> >>> + <option >> >>> id="sciinvertebrates">SCI-Invertebrates</option> >> >>> + <option id="scilapidary">SCI-Lapidary</option> >> >>> + <option id="scimalacology">SCI-Malacology</option> >> >>> + <option id="scimammalogy">SCI-Mammalogy</option> >> >>> + <option >> >>> id="scimiscellaneous">SCI-Miscellaneous</option> >> >>> + <option id="sciornithology">SCI-Ornithology</option> >> >>> + <option id="scipaleontology">SCI-Paleontology</option> >> >>> + <option id="sciphoto">SCI-Photo</option> >> >>> + <option id="scisnuffbottles">SCI-Snuff >> >>> Bottles</option> >> >>> + <option id="specimen">Specimen</option> >> >>> + </options> >> >>> + </field> >> >>> + </section> >> >>> + >> >>> +</record> >> >>> >> >>> >> >>> >> >>> then according to your last email, I ran "mvn clean install >> >>> -DskipTest" >> >>> rather than "mvn deploy -DskipTests". I ran this in the application >> >>> layer >> >>> folder called "application" that contains the pom.xml file. In my path >> >>> it >> >>> looks like /home/root/application-source/application/. Then, do I >> >>> understand >> >>> I also need to run "ant deploy"? I wasn't able to run this in the same >> >>> folder - I got an error saying this is no build file. >> >>> >> >>> I'm going off your previous instructions, as well as the documentation >> >>> on >> >>> the wiki for customizing the application layer: >> >>> >> >>> Hi Becky and Al, >> >>> One more set of notes on making 'starting out' customizations, >> >>> below: this one a customization of options in dropdown menus. >> >>> Aron >> >>> (Recommendation: start the CollectionSpace server before making the >> >>> following changes. This will help ensure those changes are made >> >>> 'live.') >> >>> * An example of how to replace the default sets of options in the >> >>> dropdown menus for the Responsible Department and OMCA Collection >> >>> fields. >> >>> The existing documentation on updating these option lists is >> >>> confusing, and wildly out of date; we expect to be updating it in the >> >>> near future. The customization method shown here as an example >> >>> reflects recently-added 'merge' capabilities that allow you to simply >> >>> replicate the block of configuration you want to customize, within a >> >>> separate file for your own museum; it will override the corresponding >> >>> configuration block in the default settings: >> >>> Actual change(s) made, within the source code tree for >> >>> CollectionSpace's Application layer: >> >>> >> >>> >> >>> https://github.com/aronr/application/commit/b7a47d94fc6d44d0cad74f6444710a35373291c7 >> >>> You can compare this to the default configuration file for the >> >>> Cataloging record, in which the default options for those two dropdown >> >>> menus appear: >> >>> >> >>> >> >>> https://github.com/aronr/application/blob/b7a47d94fc6d44d0cad74f6444710a35373291c7/tomcat-main/src/main/resources/defaults/base-collectionobject.xml#L112 >> >>> To copy (deploy) these changes to the server folder, enter the >> >>> following at a command prompt, from within the top-level folder of the >> >>> Application source code tree: >> >>> mvn deploy -DskipTests >> >>> >> >>> >> >>> >> >>> Sorry I'm not getting this! Do you have any ideas? >> >>> >> >>> 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" <aronroberts@gmail.com> >> >>> To: "Al Bersch" <abersch@museumca.org> >> >>> Cc: "talk" <talk@lists.collectionspace.org> >> >>> Sent: Friday, August 16, 2013 1:28:48 PM >> >>> >> >>> Subject: Re: [Talk] deploy mvn error >> >>> >> >>> The key is likely this snippet, from near the beginning of that long >> >>> and >> >>> singularly unhelpful chain of messages: >> >>> "org.collectionspace.chain.csp.config.ConfigException: Error loading >> >>> config" >> >>> >> >>> There may have been an error made in whatever configuration file, or >> >>> files, were modified. After they were deployed (copied) to the >> >>> server, when >> >>> the Application layer read them, it got confused and barfed out this >> >>> long >> >>> stack trace. >> >>> >> >>> Typically, this means the file(s), after being modified, weren't >> >>> well-formed XML - perhaps an ending tag was left out somewhere? - or >> >>> they >> >>> didn't conform to the Application layer's expectation of what 'tags' >> >>> (XML >> >>> elements) are expected, in which hierarchical locations within the >> >>> file. >> >>> >> >>> Yes, reverting to a snapshot and re-deploying (via 'mvn clean install >> >>> -DskipTests') and restarting Tomcat, should resolve the issue. You >> >>> might >> >>> also try, however, using a utility app that can show you differences >> >>> between >> >>> two files - your current version and your snapshot - and see if the >> >>> error is >> >>> readily made apparent by looking at those changes in that 'diff' view. >> >>> (If >> >>> you're using Mac OS X, there's a list of such apps at >> >>> http://apple.stackexchange.com/a/87188) >> >>> >> >>> It's also worth checking the current cspace-app.log and >> >>> catalina.{today's >> >>> date}.log to see if there may be any log message specifically >> >>> pinpointing >> >>> the configuration error. >> >>> >> >>> Aron >> >>> >> >>> On Fri, Aug 16, 2013 at 1:16 PM, Al Bersch <abersch@museumca.org> >> >>> wrote: >> >>> > >> >>> > Hi again, >> >>> > >> >>> > Ok, I think I must have messed up somewhere when changing the files >> >>> > in >> >>> > the application layer. When I navigated to our tenant, the login >> >>> > screen is >> >>> > blank except for a place to put a user name and password. when I >> >>> > submit my >> >>> > password, I get this message: Any idea what I did wrong? Thanks! >> >>> > >> >>> > I have a snapshot prior to the changes in the application layer, so >> >>> > I >> >>> > can always go back in time and try again. >> >>> > >> >>> > Al >> >>> > >> >>> > HTTP Status 400 - >> >>> > org.collectionspace.chain.controller.BadRequestException: Cannot >> >>> > initialise >> >>> > CSPs org.collectionspace.csp.api.core.CSPDependencyException: >> >>> > org.collectionspace.chain.csp.config.ConfigException: Error loading >> >>> > config. >> >>> > See messages for details: summary Exception raised during parsing at >> >>> > >> >>> > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568) >> >>> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) >> >>> > at >> >>> > >> >>> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >> >>> > at >> >>> > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) >> >>> > at >> >>> > >> >>> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) >> >>> > at >> >>> > >> >>> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) >> >>> > at >> >>> > >> >>> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) >> >>> > at >> >>> > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) >> >>> > at java.lang.Thread.run(Thread.java:724) Caused by: >> >>> > org.collectionspace.csp.api.core.CSPDependencyException: >> >>> > org.collectionspace.chain.csp.config.ConfigException: Error loading >> >>> > config. >> >>> > See messages for details: summary Exception raised during parsing at >> >>> > >> >>> > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179) >> >>> > ... 22 more Caused by: >> >>> > org.collectionspace.chain.csp.config.ConfigException: >> >>> > Error loading config. See messages for details: summary Exception >> >>> > raised >> >>> > during parsing at >> >>> > >> >>> > org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74) >> >>> > at >> >>> > >> >>> > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54) >> >>> > ... 24 more >> >>> > >> >>> > ________________________________ >> >>> > >> >>> > type Status report >> >>> > >> >>> > message org.collectionspace.chain.controller.BadRequestException: >> >>> > Cannot >> >>> > initialise CSPs >> >>> > org.collectionspace.csp.api.core.CSPDependencyException: >> >>> > org.collectionspace.chain.csp.config.ConfigException: Error loading >> >>> > config. >> >>> > See messages for details: summary Exception raised during parsing at >> >>> > >> >>> > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568) >> >>> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) >> >>> > at >> >>> > >> >>> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >> >>> > at >> >>> > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) >> >>> > at >> >>> > >> >>> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) >> >>> > at >> >>> > >> >>> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) >> >>> > at >> >>> > >> >>> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) >> >>> > at >> >>> > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) >> >>> > at java.lang.Thread.run(Thread.java:724) Caused by: >> >>> > org.collectionspace.csp.api.core.CSPDependencyException: >> >>> > org.collectionspace.chain.csp.config.ConfigException: Error loading >> >>> > config. >> >>> > See messages for details: summary Exception raised during parsing at >> >>> > >> >>> > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179) >> >>> > ... 22 more Caused by: >> >>> > org.collectionspace.chain.csp.config.ConfigException: >> >>> > Error loading config. See messages for details: summary Exception >> >>> > raised >> >>> > during parsing at >> >>> > >> >>> > org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74) >> >>> > at >> >>> > >> >>> > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54) >> >>> > ... 24 more >> >>> > >> >>> > description The request sent by the client was syntactically >> >>> > incorrect >> >>> > (org.collectionspace.chain.controller.BadRequestException: Cannot >> >>> > initialise >> >>> > CSPs org.collectionspace.csp.api.core.CSPDependencyException: >> >>> > org.collectionspace.chain.csp.config.ConfigException: Error loading >> >>> > config. >> >>> > See messages for details: summary Exception raised during parsing at >> >>> > >> >>> > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568) >> >>> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) >> >>> > at >> >>> > >> >>> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >> >>> > at >> >>> > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589) >> >>> > at >> >>> > >> >>> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) >> >>> > at >> >>> > >> >>> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) >> >>> > at >> >>> > >> >>> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) >> >>> > at >> >>> > >> >>> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) >> >>> > at >> >>> > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) >> >>> > at java.lang.Thread.run(Thread.java:724) Caused by: >> >>> > org.collectionspace.csp.api.core.CSPDependencyException: >> >>> > org.collectionspace.chain.csp.config.ConfigException: Error loading >> >>> > config. >> >>> > See messages for details: summary Exception raised during parsing at >> >>> > >> >>> > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179) >> >>> > ... 22 more Caused by: >> >>> > org.collectionspace.chain.csp.config.ConfigException: >> >>> > Error loading config. See messages for details: summary Exception >> >>> > raised >> >>> > during parsing at >> >>> > >> >>> > org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78) >> >>> > at >> >>> > >> >>> > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74) >> >>> > at >> >>> > >> >>> > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54) >> >>> > ... 24 more ). >> >>> > >> >>> > >> >>> > Al Bersch >> >>> > Digital Project Coordinator >> >>> > Oakland Museum of California >> >>> > 1000 Oak Street, Oakland, CA 94607 >> >>> > abersch@museumca.org >> >>> > 510-318-8468 >> >>> > ________________________________ >> >>> > From: "Aron Roberts" <aronroberts@gmail.com> >> >>> > To: "Al Bersch" <abersch@museumca.org> >> >>> > Cc: "talk" <talk@lists.collectionspace.org> >> >>> > Sent: Friday, August 16, 2013 12:58:56 PM >> >>> > Subject: Re: [Talk] deploy mvn error >> >>> > >> >>> > Hi Al, >> >>> > >> >>> > You likely will have success with 'mvn clean install -DskipTests' >> >>> > when >> >>> > building and deploying the App layer with your dropdown list >> >>> > changes, rather >> >>> > than 'mvn deploy -DskipTests'. >> >>> > >> >>> > It's a bit confusing (and I hope I don't need to keep repeating >> >>> > this >> >>> > :-), but CollectionSpace Services layer uses Maven to build >> >>> > artifacts and >> >>> > Ant buildfiles to deploy (copy) them to the server (hence 'mvn clean >> >>> > install' followed by 'ant deploy'), while the Application and UI >> >>> > layers use >> >>> > Maven ('mvn install') for both tasks. There are some historical and >> >>> > technical reasons for this difference, not worth going into ... >> >>> > >> >>> > Aron >> >>> > >> >>> > >> >>> > On Fri, Aug 16, 2013 at 12:49 PM, Al Bersch <abersch@museumca.org> >> >>> > wrote: >> >>> >> >> >>> >> Hello all, >> >>> >> >> >>> >> I changed our dropdown lists in Department and Collection in the >> >>> >> application layer source code, and when I ran mvn deploy >> >>> >> -DskipTests I get >> >>> >> this error: >> >>> >> >> >>> >> [ERROR] BUILD ERROR >> >>> >> [INFO] >> >>> >> >> >>> >> ------------------------------------------------------------------------ >> >>> >> [INFO] Failed to configure plugin parameters for: >> >>> >> org.apache.maven.plugins:maven-deploy-plugin:2.4 >> >>> >> >> >>> >> check that the following section of the pom.xml is present and >> >>> >> correct: >> >>> >> >> >>> >> <distributionManagement> >> >>> >> <!-- use the following if you're not using a snapshot version. >> >>> >> --> >> >>> >> <repository> >> >>> >> <id>repo</id> >> >>> >> <name>Repository Name</name> >> >>> >> <url>scp://host/path/to/repo</url> >> >>> >> </repository> >> >>> >> <!-- use the following if you ARE using a snapshot version. --> >> >>> >> <snapshotRepository> >> >>> >> <id>repo</id> >> >>> >> <name>Repository Name</name> >> >>> >> <url>scp://host/path/to/repo</url> >> >>> >> </snapshotRepository> >> >>> >> </distributionManagement> >> >>> >> >> >>> >> Cause: Class >> >>> >> 'org.apache.maven.artifact.repository.ArtifactRepository' >> >>> >> cannot be instantiated >> >>> >> >> >>> >> >> >>> >> >> >>> >> I looked in the pom.xml, and found this: >> >>> >> >> >>> >> <!-- The CollectionSpace public Maven repository for "snapshot" >> >>> >> artifacts --> >> >>> >> <repositories> >> >>> >> <repository> >> >>> >> <id>libs-snapshot-local</id> >> >>> >> <name>libs-snapshot-local</name> >> >>> >> >> >>> >> >> >>> >> <url>http://nightly.collectionspace.org:8081/artifactory/libs-snapshot-local</url> >> >>> >> <snapshots> >> >>> >> <enabled>true</enabled> >> >>> >> </snapshots> >> >>> >> >> >>> >> >> >>> >> I'm wondering, which repository setting should I use (snapshot or >> >>> >> not >> >>> >> snapshot)? Our installation is on a virtual server in linode. >> >>> >> >> >>> >> And, does anyone know where I should set the path to our >> >>> >> repository? >> >>> >> I'm guessing that the error is party due to the url being mapped to >> >>> >> nightly.collectionspace.org. >> >>> >> >> >>> >> 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 > >
RL
Ray Lee
Tue, Aug 20, 2013 11:01 PM

Run it before. The merge should produce valid XML, but it won't work if one
of the inputs is malformed. If you look carefully at the exceptions in
catalina.out and cspace-app.log, I believe it tells you which file is bad.

Ray

On Tue, Aug 20, 2013 at 3:54 PM, Al Bersch abersch@museumca.org wrote:

Great, thank you both! Should I run it before or after the merge?

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

*From: *"Aron Roberts" aronroberts@gmail.com
*To: *"Ray Lee" rhlee@berkeley.edu
*Cc: *"Al Bersch" abersch@museumca.org, "talk" <
talk@lists.collectionspace.org>
*Sent: *Tuesday, August 20, 2013 3:53:29 PM

*Subject: *Re: [Talk] deploy mvn error

Thanks, Ray!

(Al, one easy-to-use checker is at:
http://www.w3schools.com/xml/xml_validator.asp ... you can simply
paste in your XML markup.  Some developers here use the commercial
oXygen XML editor, http://www.oxygenxml.com/, which has a variety of
validation features built-in.)

On Tue, Aug 20, 2013 at 3:49 PM, Ray Lee rhlee@berkeley.edu wrote:

Hi Al,
The error you're seeing is characteristic of malformed XML in one of your
configuration files. If you run an XML checker over the files you edited,
you'll probably catch the problem.

Ray

On Tue, Aug 20, 2013 at 3:34 PM, Aron Roberts aronroberts@gmail.com

wrote:

If it's easiest to use command line tools - you're using an Ubuntu
system, yes? - you might try this 'sed' command to remove those
specific stray characters:

If the merge still fails, you might try a more thorough cleaning of
each file; there's an example for doing this (stripping out all but a
subset of vanilla, printable USASCII characters from a file) by using
a 'tr' command under "Removing all undesirable characters at once" in:

http://alvinalexander.com/unix/edu/un010011/

On Tue, Aug 20, 2013 at 3:25 PM, Aron Roberts aronroberts@gmail.com
wrote:

Hi Al,

If it matters, I looked in my settings.xml file and get a big chunk

of

this: ^@^@^@^@^@^@^.

It's possible that stray characters in any of the merge files:
settings.xml, local-omca-settings.xml, and/or
omca-collectionobject.xml, might be fouling up the merge attempts.  If
you have a way of finding and removing them - such as using BBEdit's
or TextWrangler's (Mac OS X text editors) "Zap Gremlins" feature -
that might help.  (That big chunk of ^@ could well be part of the
issue.)

Using TextWrangler, for instance:

Aron

On Tue, Aug 20, 2013 at 3:12 PM, Al Bersch abersch@museumca.org

wrote:

Hi Aron,

Thanks so much for addressing these questions.

I entered the language at the end of your email into my
/tomcat-main/src/main/resources/omca-tenant.xml file, like this:

<cspace-config tenantname="omca">
     <version>11</version>
     <!-- Note: omca-collectionobject.xml should not appear in the

'include' line below -->
<!-- This line is for merging various settings files

together.

-->
<include src="settings.xml,local-omca-settings.xml" merge="xmlmerge.properties" strip-root="yes" />

     <spec>
             <include src="base-relations.xml"/>
             <include src="base-schemas.xml"/>

             <records>
                     <enum-blank>Please select a

value</enum-blank>

                     <!-- Here's where you can indicate that you

want to
merge in your own Cataloging record changes -->
<include
src="base-collectionobject.xml,omca-collectionobject.xml"
merge="xmlmerge.properties"/
<include

src="base-procedure-acquisition.xml"/>

                     <include src="base-procedure-blobs.xml"/>

...

then re-created the omca-collectionobject.xml file (located at
tomcat-main/src/main/resources/tenants/omca) with this inside it:

+<record id="collection-object">
+

  • <section id="identificationInformation">
  •    <repeat id="responsibleDepartments" has-primary="yes">
    

<selector>object-identification-responsible-department</selector>

  •        <field id="responsibleDepartment" ui-search="repeatable"
    

mini="search"

  •         seperate_ui_container="true">
    

<selector>object-identification-responsible-department</selector>

  •            <options>
    
  •                <option id="">Please select a value</option>
    
  •                <option id="art">Art</option>
    
  •                <option id="history">History</option>
    
  •                <option id="science">Science</option>
    
  •                <option id="collections">Collections</option>
    
  •                <option id="education">Education</option>
    
  •                <option id="professionalservices">Professional
    

Services</option>

  •                <option id="multi">Multi</option>
    
  •            </options>
    
  •        </field>
    
  •    </repeat>
    
  •    <field id="collection" ui-search="repeatable"
    

seperate_ui_container="true">

  •        <selector>object-identification-collection</selector>
    
  •        <options>
    
  •           <option id="">Please select a value</option>
    
  •           <option id="art">Art</option>
    
  •           <option id="artandartifact">Art and Artifact</option>
    
  •           <option id="exhibit">Exhibit</option>
    
  •           <option id="history">History</option>
    
  •           <option id="scientomology">SCI-Entomology</option>
    
  •           <option id="scifineart">SCI-Fine Art</option>
    
  •           <option id="scigalleryspecimens">SCI-Gallery
    

Specimens</option>

  •           <option id="scigeology">SCI-Geology</option>
    
  •           <option id="sciherbarium">SCI-Herbarium</option>
    
  •           <option id="sciherpetology">SCI-Herpetology</option>
    
  •           <option id="sciicthyology">SCI-Icthyology</option>
    
  •           <option
    

id="sciinvertebrates">SCI-Invertebrates</option>

  •           <option id="scilapidary">SCI-Lapidary</option>
    
  •           <option id="scimalacology">SCI-Malacology</option>
    
  •           <option id="scimammalogy">SCI-Mammalogy</option>
    
  •           <option
    

id="scimiscellaneous">SCI-Miscellaneous</option>

  •           <option id="sciornithology">SCI-Ornithology</option>
    
  •           <option
    

id="scipaleontology">SCI-Paleontology</option>

  •           <option id="sciphoto">SCI-Photo</option>
    
  •           <option id="scisnuffbottles">SCI-Snuff
    

Bottles</option>

  •           <option id="specimen">Specimen</option>
    
  •        </options>
    
  •    </field>
    
  • </section>

+</record>

But alas, I'm still getting the same error message when I log into my
tenant.

If it matters, I looked in my settings.xml file and get a big chunk

of

this:
^@^@^@^@^@^@^.

do you see anything wrong here in the files I copied?

thanks,

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" aronroberts@gmail.com
To: "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Monday, August 19, 2013 5:39:58 PM

Subject: Re: [Talk] deploy mvn error

Hi Al,

My sincere apologies for these difficulties you've been

encountering.

It looks like the problem is with merging settings.xml and
local-omca-settings.xml?

Yes, that certainly looks like the case.

This line appeared in part of the output from this error, in
catalina.out:

2013-08-19 21:46:13,364 ERROR [http-8180-3] ... Message: Exception
raised
during parsing
Stack :

org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61)

From looking at the Application layer's code at line 61 of
AssemblingParser.java:

it appears the error is in reading or merging XML content, rather

than

in
not finding either of the two files to be merged, or in not being

able

to
read them as a result of insufficient access permissions or other
filesystem-related issues.

It appears that you might potentially be inadvertently trying to
merge two
dissimilar things: a settings file for your tenant (which contains

some

general administrative settings), together with some field-level
settings
for a particular record type.

If you'd like to merge custom changes into the Cataloging record,
such as
changing the contents of options lists, here's an example of how you
can
specify that, as shown line 12 of the tenant 'includes' file for the
UCJEPS
herbaria:

Following that example, your
/tomcat-main/src/main/resources/omca-tenant.xml file might look
something
like the following:

<cspace-config tenantname="omca"> <version>11</version> <!-- Note: omca-collectionobject.xml should not appear in the 'include' line below --> <!-- This line is for merging various settings files together. --> <include src="settings.xml,local-settings.xml" merge="xmlmerge-settings.properties" strip-root="yes"/> ... <records> <enum-blank>Please select a value</enum-blank> <!-- Here's where you can indicate that you want to merge in your own Cataloging record changes --> <include

src="base-collectionobject.xml,omca-collectionobject.xml"

merge="xmlmerge.properties"/>
...

Aron

On Mon, Aug 19, 2013 at 4:28 PM, Al Bersch abersch@museumca.org
wrote:

Hi Aron,

Thanks so much again for your continued assistance. And for the plug
for
using github as a backup resource - I'll do that, and also apologize
in
advance for the cut-and-paste text below.

I installed DiffMerge, but I'm not sure what to compare, since the
file I
added to the omca tenant (omca-collectionobject.xml), wasn't there

in

the
previous snapshot. I think I'm a little confused.

I looked in the cspace-app.log and catalina.out (can you tell me

where

I
might find catalina.(today'sdate).log?) and here are some snippets,
first
from cspace-app.log:

2013-08-19 21:46:13,363 WARN  [http-8180-3]

[org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:218]

Could not merge the include files:
settings.xml,local-omca-settings.xml
2013-08-19 21:46:13,364 ERROR [http-8180-3]

[org.collectionspace.chain.csp.config.impl.parser.ConfigLoadingMessagesImpl:16]

Message: Exception raised during parsing

Stack :

org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61)

org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse
(62)
org.collectionspace.csp.container.impl.CSPManagerImpl.configure (54)
org.collectionspace.chain.controller.TenantServlet.load_config (156)
org.collectionspace.chain.controller.TenantServlet.setup (179)

org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant

(117)
org.collectionspace.chain.controller.TenantUIServlet.service (568)
javax.servlet.http.HttpServlet.service (717)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter

(290)

org.apache.catalina.core.ApplicationFilterChain.doFilter (206)
org.collectionspace.chain.controller.filters.PerflogFilter.doFilter
(33)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter

(235)

org.apache.catalina.core.ApplicationFilterChain.doFilter (206)
org.collectionspace.chain.controller.filters.CharSetFilter.doFilter
(99)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter

(235)

org.apache.catalina.core.ApplicationFilterChain.doFilter (206)
org.apache.catalina.core.StandardWrapperValve.invoke (233)
org.apache.catalina.core.StandardContextValve.invoke (191)
org.apache.catalina.core.StandardHostValve.invoke (127)
org.apache.catalina.valves.ErrorReportValve.invoke (102)
org.apache.catalina.valves.AccessLogValve.invoke (589)
org.apache.catalina.core.StandardEngineValve.invoke (109)
org.apache.catalina.connector.CoyoteAdapter.service (291)
org.apache.coyote.http11.Http11Processor.process (859)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process

(602)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run (489)
java.lang.Thread.run (724)

CAUSED BY
Message: Could not load source

then from catalina.out:

2013-08-19 17:49:25,334 ERROR [main]
[org.collectionspace.services.common.config.ConfigUtils:51] No

domain

name
was specified on call to getRepositoryName() method.2013-08-19
17:49:25,334
ERROR [main]
[org.collectionspace.services.common.config.ConfigUtils:51] No
domain name was specified on call to getRepositoryName()
method.2013-08-19
17:49:25,334 ERROR [main]
[org.collectionspace.services.common.config.ConfigUtils:51] No

domain

name
was specified on call to getRepositoryName() method.[INFO] Starting

up

the
CollectionSpace Services' JAX-RS application.Static initializtion

of:

org.collectionspace.services.common.security.SecurityInterceptor[INFO]

CollectionSpace Services' JAX-RS application started.2013-08-19
17:49:27,339
(0) [http-8180-4] INFO

org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:

XMLMerge result output to:

/usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19

17:49:29,695 (2356) [http-8180-2] INFO

org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:

XMLMerge result output to:

/usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19

17:49:29,732 (2393) [net.sf.ehcache.CacheManager@23aeae74] INFO
net.sf.ehcache.util.UpdateChecker: New update(s) found: 2.6.5

[

Please check http://ehcache.org for the latest version.Could not

get

session
from CSPACESESSID cookie with value:
31b6c5daf4d4180636604cb25ac9f75f2013-08-19 17:49:47,810 WARN
[http-8180-7]

[org.collectionspace.services.common.security.SecurityInterceptor:358]

Attempt to logout when Nuxeo login context was null2013-08-19
17:49:47,953
WARN  [http-8180-7]

[org.springframework.security.web.context.HttpSessionSecurityContextRepository:396]

Failed to create a session, as response has been committed. Unable

to

store
SecurityContext.2013-08-19 17:49:48,765 WARN  [http-8180-7]

[org.collectionspace.services.common.security.SecurityInterceptor:358]

Attempt to logout when Nuxeo login context was null2013-08-19
17:49:48,773
WARN  [http-8180-7]

[org.springframework.security.web.context.HttpSessionSecurityContextRepository:396]

Failed to create a session, as response has been committed. Unable

to

store
SecurityContext.2013-08-19 21:07:17,771 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2191] The web
application
[/collectionspace] appears to have started a thread named
[net.sf.ehcache.CacheManager@23aeae74] but has failed to stop it.

This

is
very likely to create a memory leak.2013-08-19 21:07:17,772 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2191] The web
application
[/collectionspace] appears to have started a thread named
[MultiThreadedHttpConnectionManager cleanup] but has failed to stop
it. This
is very likely to create a memory leak.2013-08-19 21:07:17,780 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2453] The web
application
[/collectionspace] created a ThreadLocal with key of type
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a
value of
type [java.util.HashMap] (value [{}]) but failed to remove it when

the

web
application was stopped. This is very likely to create a memory
leak.2013-08-19 21:07:17,781 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2453] The web
application
[/collectionspace] created a ThreadLocal with key of type
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a
value of
type [java.util.HashMap] (value [{}]) but failed to remove it when

the

web
application was stopped. This is very likely to create a memory
leak.2013-08-19 21:09:34,685 (0) [http-8180-4] WARN

org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:

Could not merge the include files:
settings.xml,local-omca-settings.xml

It looks like the problem is with merging settings.xml and
local-omca-settings.xml?

I've tried a second time to create the configuration change in
omca-collectionobject.xml (a newly created xml file with only this
snippet
in it:

+<record id="collection-object">
+

  • <section id="identificationInformation">
  •    <repeat id="responsibleDepartments" has-primary="yes">
    

<selector>object-identification-responsible-department</selector>

  •        <field id="responsibleDepartment"
    

ui-search="repeatable"

mini="search"

  •         seperate_ui_container="true">
    

<selector>object-identification-responsible-department</selector>

  •            <options>
    
  •                <option id="">Please select a value</option>
    
  •                <option id="art">Art</option>
    
  •                <option id="history">History</option>
    
  •                <option id="science">Science</option>
    
  •                <option id="collections">Collections</option>
    
  •                <option id="education">Education</option>
    
  •                <option id="professionalservices">Professional
    

Services</option>

  •                <option id="multi">Multi</option>
    
  •            </options>
    
  •        </field>
    
  •    </repeat>
    
  •    <field id="collection" ui-search="repeatable"
    

seperate_ui_container="true">

  •        <selector>object-identification-collection</selector>
    
  •        <options>
    
  •           <option id="">Please select a value</option>
    
  •           <option id="art">Art</option>
    
  •           <option id="artandartifact">Art and
    

Artifact</option>

  •           <option id="exhibit">Exhibit</option>
    
  •           <option id="history">History</option>
    
  •           <option id="scientomology">SCI-Entomology</option>
    
  •           <option id="scifineart">SCI-Fine Art</option>
    
  •           <option id="scigalleryspecimens">SCI-Gallery
    

Specimens</option>

  •           <option id="scigeology">SCI-Geology</option>
    
  •           <option id="sciherbarium">SCI-Herbarium</option>
    
  •           <option id="sciherpetology">SCI-Herpetology</option>
    
  •           <option id="sciicthyology">SCI-Icthyology</option>
    
  •           <option
    

id="sciinvertebrates">SCI-Invertebrates</option>

  •           <option id="scilapidary">SCI-Lapidary</option>
    
  •           <option id="scimalacology">SCI-Malacology</option>
    
  •           <option id="scimammalogy">SCI-Mammalogy</option>
    
  •           <option
    

id="scimiscellaneous">SCI-Miscellaneous</option>

  •           <option id="sciornithology">SCI-Ornithology</option>
    
  •           <option
    

id="scipaleontology">SCI-Paleontology</option>

  •           <option id="sciphoto">SCI-Photo</option>
    
  •           <option id="scisnuffbottles">SCI-Snuff
    

Bottles</option>

  •           <option id="specimen">Specimen</option>
    
  •        </options>
    
  •    </field>
    
  • </section>

+</record>

then according to your last email, I ran "mvn clean install
-DskipTest"
rather than "mvn deploy -DskipTests". I ran this in the application
layer
folder called "application" that contains the pom.xml file. In my

path

it
looks like /home/root/application-source/application/. Then, do I
understand
I also need to run "ant deploy"? I wasn't able to run this in the

same

folder - I got an error saying this is no build file.

I'm going off your previous instructions, as well as the

documentation

on
the wiki for customizing the application layer:

Hi Becky and Al,
One more set of notes on making 'starting out' customizations,
below: this one a customization of options in dropdown menus.
Aron
(Recommendation: start the CollectionSpace server before making the
following changes.  This will help ensure those changes are made
'live.')

  • An example of how to replace the default sets of options in the
    dropdown menus for the Responsible Department and OMCA Collection
    fields.
    The existing documentation on updating these option lists is
    confusing, and wildly out of date; we expect to be updating it in

the

near future.  The customization method shown here as an example
reflects recently-added 'merge' capabilities that allow you to

simply

replicate the block of configuration you want to customize, within a
separate file for your own museum; it will override the

corresponding

configuration block in the default settings:
Actual change(s) made, within the source code tree for
CollectionSpace's Application layer:

You can compare this to the default configuration file for the
Cataloging record, in which the default options for those two

dropdown

menus appear:

To copy (deploy) these changes to the server folder, enter the
following at a command prompt, from within the top-level folder of

the

Application source code tree:
mvn deploy -DskipTests

Sorry I'm not getting this! Do you have any ideas?

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" aronroberts@gmail.com
To: "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Friday, August 16, 2013 1:28:48 PM

Subject: Re: [Talk] deploy mvn error

The key is likely this snippet, from near the beginning of that long
and
singularly unhelpful chain of messages:
"org.collectionspace.chain.csp.config.ConfigException: Error loading
config"

There may have been an error made in whatever configuration file, or
files, were modified.  After they were deployed (copied) to the
server, when
the Application layer read them, it got confused and barfed out this
long
stack trace.

Typically, this means the file(s), after being modified, weren't
well-formed XML - perhaps an ending tag was left out somewhere? - or
they
didn't conform to the Application layer's expectation of what 'tags'
(XML
elements) are expected, in which hierarchical locations within the
file.

Yes, reverting to a snapshot and re-deploying (via 'mvn clean

install

-DskipTests') and restarting Tomcat, should resolve the issue.  You
might
also try, however, using a utility app that can show you differences
between
two files - your current version and your snapshot - and see if the
error is
readily made apparent by looking at those changes in that 'diff'

view.

(If
you're using Mac OS X, there's a list of such apps at
http://apple.stackexchange.com/a/87188)

It's also worth checking the current cspace-app.log and
catalina.{today's
date}.log to see if there may be any log message specifically
pinpointing
the configuration error.

Aron

On Fri, Aug 16, 2013 at 1:16 PM, Al Bersch abersch@museumca.org
wrote:

Hi again,

Ok, I think I must have messed up somewhere when changing the

files

in
the application layer. When I navigated to our tenant, the login
screen is
blank except for a place to put a user name and password. when I
submit my
password, I get this message:  Any idea what I did wrong? Thanks!

I have a snapshot prior to the changes in the application layer,

so

I
can always go back in time and try again.

Al

HTTP Status 400 -
org.collectionspace.chain.controller.BadRequestException: Cannot
initialise
CSPs org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error

loading

config.
See messages for details: summary Exception raised during parsing

at

org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185)

at

org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117)

at

org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at

org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33)

at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at

org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99)

at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at

org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)

at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)

at

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)

at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)

at

org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

at java.lang.Thread.run(Thread.java:724) Caused by:
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error

loading

config.
See messages for details: summary Exception raised during parsing

at

org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64)

at

org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156)

at

org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179)

... 22 more Caused by:
org.collectionspace.chain.csp.config.ConfigException:
Error loading config. See messages for details: summary Exception
raised
during parsing at

org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78)

at

org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74)

at

org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54)

... 24 more


type Status report

message org.collectionspace.chain.controller.BadRequestException:
Cannot
initialise CSPs
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error

loading

config.
See messages for details: summary Exception raised during parsing

at

org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185)

at

org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117)

at

org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at

org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33)

at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at

org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99)

at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at

org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)

at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)

at

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)

at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)

at

org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

at java.lang.Thread.run(Thread.java:724) Caused by:
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error

loading

config.
See messages for details: summary Exception raised during parsing

at

org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64)

at

org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156)

at

org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179)

... 22 more Caused by:
org.collectionspace.chain.csp.config.ConfigException:
Error loading config. See messages for details: summary Exception
raised
during parsing at

org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78)

at

org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74)

at

org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54)

... 24 more

description The request sent by the client was syntactically
incorrect
(org.collectionspace.chain.controller.BadRequestException: Cannot
initialise
CSPs org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error

loading

config.
See messages for details: summary Exception raised during parsing

at

org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185)

at

org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117)

at

org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at

org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33)

at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at

org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99)

at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at

org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)

at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)

at

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)

at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)

at

org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

at java.lang.Thread.run(Thread.java:724) Caused by:
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error

loading

config.
See messages for details: summary Exception raised during parsing

at

org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64)

at

org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156)

at

org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179)

... 22 more Caused by:
org.collectionspace.chain.csp.config.ConfigException:
Error loading config. See messages for details: summary Exception
raised
during parsing at

org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78)

at

org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74)

at

org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54)

... 24 more ).

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


From: "Aron Roberts" aronroberts@gmail.com
To: "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Friday, August 16, 2013 12:58:56 PM
Subject: Re: [Talk] deploy mvn error

Hi Al,

You likely will have success with 'mvn clean install

-DskipTests'

when
building and deploying the App layer with your dropdown list
changes, rather
than 'mvn deploy -DskipTests'.

It's a bit confusing (and I hope I don't need to keep repeating
this
:-), but CollectionSpace Services layer uses Maven to build
artifacts and
Ant buildfiles to deploy (copy) them to the server (hence 'mvn

clean

install' followed by 'ant deploy'), while the Application and UI
layers use
Maven ('mvn install') for both tasks.  There are some historical

and

technical reasons for this difference, not worth going into ...

Aron

On Fri, Aug 16, 2013 at 12:49 PM, Al Bersch <abersch@museumca.org

wrote:

Hello all,

I changed our dropdown lists in Department and Collection in the
application layer source code, and when I ran mvn deploy
-DskipTests I get
this error:

[ERROR] BUILD ERROR
[INFO]


[INFO] Failed to configure plugin parameters for:
org.apache.maven.plugins:maven-deploy-plugin:2.4

check that the following section of the pom.xml is present and
correct:

<distributionManagement> <!-- use the following if you're not using a snapshot version. --> <repository> <id>repo</id> <name>Repository Name</name> <url>scp://host/path/to/repo</url> </repository> <!-- use the following if you ARE using a snapshot version. --> <snapshotRepository> <id>repo</id> <name>Repository Name</name> <url>scp://host/path/to/repo</url> </snapshotRepository> </distributionManagement>

Cause: Class
'org.apache.maven.artifact.repository.ArtifactRepository'
cannot be instantiated

I looked in the pom.xml, and found this:

<!-- The CollectionSpace public Maven repository for "snapshot" artifacts --> <repositories> <repository> <id>libs-snapshot-local</id> <name>libs-snapshot-local</name> <url>
             <snapshots>
                     <enabled>true</enabled>
             </snapshots>

I'm wondering, which repository setting should I use (snapshot or
not
snapshot)? Our installation is on a virtual server in linode.

And, does anyone know where I should set the path to our
repository?
I'm guessing that the error is party due to the url being mapped

to

nightly.collectionspace.org.

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


Talk mailing list
Talk@lists.collectionspace.org

Run it before. The merge should produce valid XML, but it won't work if one of the inputs is malformed. If you look carefully at the exceptions in catalina.out and cspace-app.log, I believe it tells you which file is bad. Ray On Tue, Aug 20, 2013 at 3:54 PM, Al Bersch <abersch@museumca.org> wrote: > Great, thank you both! Should I run it before or after the merge? > > > Al Bersch > Digital Project Coordinator > Oakland Museum of California > 1000 Oak Street, Oakland, CA 94607 > abersch@museumca.org > 510-318-8468 > ------------------------------ > *From: *"Aron Roberts" <aronroberts@gmail.com> > *To: *"Ray Lee" <rhlee@berkeley.edu> > *Cc: *"Al Bersch" <abersch@museumca.org>, "talk" < > talk@lists.collectionspace.org> > *Sent: *Tuesday, August 20, 2013 3:53:29 PM > > *Subject: *Re: [Talk] deploy mvn error > > Thanks, Ray! > > (Al, one easy-to-use checker is at: > http://www.w3schools.com/xml/xml_validator.asp ... you can simply > paste in your XML markup. Some developers here use the commercial > oXygen XML editor, http://www.oxygenxml.com/, which has a variety of > validation features built-in.) > > On Tue, Aug 20, 2013 at 3:49 PM, Ray Lee <rhlee@berkeley.edu> wrote: > > Hi Al, > > The error you're seeing is characteristic of malformed XML in one of your > > configuration files. If you run an XML checker over the files you edited, > > you'll probably catch the problem. > > > > Ray > > > > > > On Tue, Aug 20, 2013 at 3:34 PM, Aron Roberts <aronroberts@gmail.com> > wrote: > >> > >> If it's easiest to use command line tools - you're using an Ubuntu > >> system, yes? - you might try this 'sed' command to remove those > >> specific stray characters: > >> > >> > >> > http://superuser.com/questions/507267/how-to-grep-for-special-character-nul > >> > >> If the merge still fails, you might try a more thorough cleaning of > >> each file; there's an example for doing this (stripping out all but a > >> subset of vanilla, printable USASCII characters from a file) by using > >> a 'tr' command under "Removing all undesirable characters at once" in: > >> > >> http://alvinalexander.com/unix/edu/un010011/ > >> > >> On Tue, Aug 20, 2013 at 3:25 PM, Aron Roberts <aronroberts@gmail.com> > >> wrote: > >> > Hi Al, > >> > > >> >> If it matters, I looked in my settings.xml file and get a big chunk > of > >> >> this: ^@^@^@^@^@^@^. > >> > > >> > It's possible that stray characters in any of the merge files: > >> > settings.xml, local-omca-settings.xml, and/or > >> > omca-collectionobject.xml, might be fouling up the merge attempts. If > >> > you have a way of finding and removing them - such as using BBEdit's > >> > or TextWrangler's (Mac OS X text editors) "Zap Gremlins" feature - > >> > that might help. (That big chunk of ^@ could well be part of the > >> > issue.) > >> > > >> > Using TextWrangler, for instance: > >> > > >> > > http://indesignsecrets.com/zap-gremlins-in-problem-data-merge-files.php > >> > > >> > Aron > >> > > >> > On Tue, Aug 20, 2013 at 3:12 PM, Al Bersch <abersch@museumca.org> > wrote: > >> >> Hi Aron, > >> >> > >> >> Thanks so much for addressing these questions. > >> >> > >> >> I entered the language at the end of your email into my > >> >> /tomcat-main/src/main/resources/omca-tenant.xml file, like this: > >> >> > >> >> <cspace-config tenantname="omca"> > >> >> > >> >> <version>11</version> > >> >> <!-- Note: omca-collectionobject.xml should not appear in the > >> >> 'include' line below --> > >> >> <!-- This line is for merging various settings files > together. > >> >> --> > >> >> <include src="settings.xml,local-omca-settings.xml" > >> >> merge="xmlmerge.properties" > >> >> strip-root="yes" /> > >> >> > >> >> <spec> > >> >> <include src="base-relations.xml"/> > >> >> <include src="base-schemas.xml"/> > >> >> > >> >> <records> > >> >> <enum-blank>Please select a > value</enum-blank> > >> >> <!-- Here's where you can indicate that you > >> >> want to > >> >> merge in your own Cataloging record changes --> > >> >> <include > >> >> src="base-collectionobject.xml,omca-collectionobject.xml" > >> >> merge="xmlmerge.properties"/ > >> >> <include > src="base-procedure-acquisition.xml"/> > >> >> <include src="base-procedure-blobs.xml"/> > >> >> ... > >> >> > >> >> then re-created the omca-collectionobject.xml file (located at > >> >> tomcat-main/src/main/resources/tenants/omca) with this inside it: > >> >> > >> >> +<record id="collection-object"> > >> >> + > >> >> + <section id="identificationInformation"> > >> >> + <repeat id="responsibleDepartments" has-primary="yes"> > >> >> + > >> >> <selector>object-identification-responsible-department</selector> > >> >> + <field id="responsibleDepartment" ui-search="repeatable" > >> >> mini="search" > >> >> + seperate_ui_container="true"> > >> >> + > >> >> <selector>object-identification-responsible-department</selector> > >> >> + <options> > >> >> + <option id="">Please select a value</option> > >> >> + <option id="art">Art</option> > >> >> + <option id="history">History</option> > >> >> + <option id="science">Science</option> > >> >> + <option id="collections">Collections</option> > >> >> + <option id="education">Education</option> > >> >> + <option id="professionalservices">Professional > >> >> Services</option> > >> >> + <option id="multi">Multi</option> > >> >> + </options> > >> >> + </field> > >> >> + </repeat> > >> >> + <field id="collection" ui-search="repeatable" > >> >> seperate_ui_container="true"> > >> >> + <selector>object-identification-collection</selector> > >> >> + <options> > >> >> + <option id="">Please select a value</option> > >> >> + <option id="art">Art</option> > >> >> + <option id="artandartifact">Art and Artifact</option> > >> >> + <option id="exhibit">Exhibit</option> > >> >> + <option id="history">History</option> > >> >> + <option id="scientomology">SCI-Entomology</option> > >> >> + <option id="scifineart">SCI-Fine Art</option> > >> >> + <option id="scigalleryspecimens">SCI-Gallery > >> >> Specimens</option> > >> >> + <option id="scigeology">SCI-Geology</option> > >> >> + <option id="sciherbarium">SCI-Herbarium</option> > >> >> + <option id="sciherpetology">SCI-Herpetology</option> > >> >> + <option id="sciicthyology">SCI-Icthyology</option> > >> >> + <option > >> >> id="sciinvertebrates">SCI-Invertebrates</option> > >> >> + <option id="scilapidary">SCI-Lapidary</option> > >> >> + <option id="scimalacology">SCI-Malacology</option> > >> >> + <option id="scimammalogy">SCI-Mammalogy</option> > >> >> + <option > >> >> id="scimiscellaneous">SCI-Miscellaneous</option> > >> >> + <option id="sciornithology">SCI-Ornithology</option> > >> >> + <option > id="scipaleontology">SCI-Paleontology</option> > >> >> + <option id="sciphoto">SCI-Photo</option> > >> >> + <option id="scisnuffbottles">SCI-Snuff > Bottles</option> > >> >> + <option id="specimen">Specimen</option> > >> >> + </options> > >> >> + </field> > >> >> + </section> > >> >> + > >> >> +</record> > >> >> > >> >> But alas, I'm still getting the same error message when I log into my > >> >> tenant. > >> >> > >> >> If it matters, I looked in my settings.xml file and get a big chunk > of > >> >> this: > >> >> ^@^@^@^@^@^@^. > >> >> > >> >> do you see anything wrong here in the files I copied? > >> >> > >> >> thanks, > >> >> > >> >> 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" <aronroberts@gmail.com> > >> >> To: "Al Bersch" <abersch@museumca.org> > >> >> Cc: "talk" <talk@lists.collectionspace.org> > >> >> Sent: Monday, August 19, 2013 5:39:58 PM > >> >> > >> >> Subject: Re: [Talk] deploy mvn error > >> >> > >> >> Hi Al, > >> >> > >> >> My sincere apologies for these difficulties you've been > encountering. > >> >> > >> >>> It looks like the problem is with merging settings.xml and > >> >>> local-omca-settings.xml? > >> >> > >> >> Yes, that certainly looks like the case. > >> >> > >> >> This line appeared in part of the output from this error, in > >> >> catalina.out: > >> >> > >> >>> 2013-08-19 21:46:13,364 ERROR [http-8180-3] ... Message: Exception > >> >>> raised > >> >>> during parsing > >> >>> Stack : > >> >>> > >> >>> > org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61) > >> >> > >> >> From looking at the Application layer's code at line 61 of > >> >> AssemblingParser.java: > >> >> > >> >> > https://github.com/collectionspace/application/blob/v3.3/csp-impl/src/main/java/org/collectionspace/chain/csp/config/impl/parser/AssemblingParser.java#L61 > >> >> it appears the error is in reading or merging XML content, rather > than > >> >> in > >> >> not finding either of the two files to be merged, or in not being > able > >> >> to > >> >> read them as a result of insufficient access permissions or other > >> >> filesystem-related issues. > >> >> > >> >> It appears that you might potentially be inadvertently trying to > >> >> merge two > >> >> dissimilar things: a settings file for your tenant (which contains > some > >> >> general administrative settings), together with some field-level > >> >> settings > >> >> for a particular record type. > >> >> > >> >> If you'd like to merge custom changes into the Cataloging record, > >> >> such as > >> >> changing the contents of options lists, here's an example of how you > >> >> can > >> >> specify that, as shown line 12 of the tenant 'includes' file for the > >> >> UCJEPS > >> >> herbaria: > >> >> > >> >> > >> >> > https://github.com/cspace-deployment/application/blob/ucjeps_3.2/tomcat-main/src/main/resources/ucjeps-tenant.xml#L12 > >> >> > >> >> Following that example, your > >> >> /tomcat-main/src/main/resources/omca-tenant.xml file might look > >> >> something > >> >> like the following: > >> >> > >> >> <cspace-config tenantname="omca"> > >> >> <version>11</version> > >> >> <!-- Note: omca-collectionobject.xml should not appear in the > >> >> 'include' > >> >> line below --> > >> >> <!-- This line is for merging various settings files together. --> > >> >> <include src="settings.xml,local-settings.xml" > >> >> merge="xmlmerge-settings.properties" strip-root="yes"/> > >> >> ... > >> >> <records> > >> >> <enum-blank>Please select a value</enum-blank> > >> >> <!-- Here's where you can indicate that you want to merge in your > >> >> own > >> >> Cataloging record changes --> > >> >> <include > src="base-collectionobject.xml,omca-collectionobject.xml" > >> >> merge="xmlmerge.properties"/> > >> >> ... > >> >> > >> >> Aron > >> >> > >> >> On Mon, Aug 19, 2013 at 4:28 PM, Al Bersch <abersch@museumca.org> > >> >> wrote: > >> >>> > >> >>> Hi Aron, > >> >>> > >> >>> Thanks so much again for your continued assistance. And for the plug > >> >>> for > >> >>> using github as a backup resource - I'll do that, and also apologize > >> >>> in > >> >>> advance for the cut-and-paste text below. > >> >>> > >> >>> I installed DiffMerge, but I'm not sure what to compare, since the > >> >>> file I > >> >>> added to the omca tenant (omca-collectionobject.xml), wasn't there > in > >> >>> the > >> >>> previous snapshot. I think I'm a little confused. > >> >>> > >> >>> I looked in the cspace-app.log and catalina.out (can you tell me > where > >> >>> I > >> >>> might find catalina.(today'sdate).log?) and here are some snippets, > >> >>> first > >> >>> from cspace-app.log: > >> >>> > >> >>> 2013-08-19 21:46:13,363 WARN [http-8180-3] > >> >>> > >> >>> > [org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:218] > >> >>> Could not merge the include files: > >> >>> settings.xml,local-omca-settings.xml > >> >>> 2013-08-19 21:46:13,364 ERROR [http-8180-3] > >> >>> > >> >>> > [org.collectionspace.chain.csp.config.impl.parser.ConfigLoadingMessagesImpl:16] > >> >>> Message: Exception raised during parsing > >> >>> > >> >>> Stack : > >> >>> > >> >>> > org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61) > >> >>> org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse > >> >>> (62) > >> >>> org.collectionspace.csp.container.impl.CSPManagerImpl.configure (54) > >> >>> org.collectionspace.chain.controller.TenantServlet.load_config (156) > >> >>> org.collectionspace.chain.controller.TenantServlet.setup (179) > >> >>> > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant > >> >>> (117) > >> >>> org.collectionspace.chain.controller.TenantUIServlet.service (568) > >> >>> javax.servlet.http.HttpServlet.service (717) > >> >>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter > (290) > >> >>> org.apache.catalina.core.ApplicationFilterChain.doFilter (206) > >> >>> org.collectionspace.chain.controller.filters.PerflogFilter.doFilter > >> >>> (33) > >> >>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter > (235) > >> >>> org.apache.catalina.core.ApplicationFilterChain.doFilter (206) > >> >>> org.collectionspace.chain.controller.filters.CharSetFilter.doFilter > >> >>> (99) > >> >>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter > (235) > >> >>> org.apache.catalina.core.ApplicationFilterChain.doFilter (206) > >> >>> org.apache.catalina.core.StandardWrapperValve.invoke (233) > >> >>> org.apache.catalina.core.StandardContextValve.invoke (191) > >> >>> org.apache.catalina.core.StandardHostValve.invoke (127) > >> >>> org.apache.catalina.valves.ErrorReportValve.invoke (102) > >> >>> org.apache.catalina.valves.AccessLogValve.invoke (589) > >> >>> org.apache.catalina.core.StandardEngineValve.invoke (109) > >> >>> org.apache.catalina.connector.CoyoteAdapter.service (291) > >> >>> org.apache.coyote.http11.Http11Processor.process (859) > >> >>> > >> >>> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process > >> >>> (602) > >> >>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run (489) > >> >>> java.lang.Thread.run (724) > >> >>> > >> >>> CAUSED BY > >> >>> Message: Could not load source > >> >>> > >> >>> > >> >>> > >> >>> then from catalina.out: > >> >>> > >> >>> 2013-08-19 17:49:25,334 ERROR [main] > >> >>> [org.collectionspace.services.common.config.ConfigUtils:51] No > domain > >> >>> name > >> >>> was specified on call to getRepositoryName() method.2013-08-19 > >> >>> 17:49:25,334 > >> >>> ERROR [main] > >> >>> [org.collectionspace.services.common.config.ConfigUtils:51] No > >> >>> domain name was specified on call to getRepositoryName() > >> >>> method.2013-08-19 > >> >>> 17:49:25,334 ERROR [main] > >> >>> [org.collectionspace.services.common.config.ConfigUtils:51] No > domain > >> >>> name > >> >>> was specified on call to getRepositoryName() method.[INFO] Starting > up > >> >>> the > >> >>> CollectionSpace Services' JAX-RS application.Static initializtion > of: > >> >>> > org.collectionspace.services.common.security.SecurityInterceptor[INFO] > >> >>> CollectionSpace Services' JAX-RS application started.2013-08-19 > >> >>> 17:49:27,339 > >> >>> (0) [http-8180-4] INFO > >> >>> > >> >>> > org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler: > >> >>> XMLMerge result output to: > >> >>> > >> >>> > /usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19 > >> >>> 17:49:29,695 (2356) [http-8180-2] INFO > >> >>> > >> >>> > org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler: > >> >>> XMLMerge result output to: > >> >>> > >> >>> > /usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19 > >> >>> 17:49:29,732 (2393) [net.sf.ehcache.CacheManager@23aeae74] INFO > >> >>> net.sf.ehcache.util.UpdateChecker: New update(s) found: 2.6.5 > >> >>> > >> >>> [ > http://www.terracotta.org/confluence/display/release/Release+Notes+Ehcache+Core+2.6 > ]. > >> >>> Please check http://ehcache.org for the latest version.Could not > get > >> >>> session > >> >>> from CSPACESESSID cookie with value: > >> >>> 31b6c5daf4d4180636604cb25ac9f75f2013-08-19 17:49:47,810 WARN > >> >>> [http-8180-7] > >> >>> > [org.collectionspace.services.common.security.SecurityInterceptor:358] > >> >>> Attempt to logout when Nuxeo login context was null2013-08-19 > >> >>> 17:49:47,953 > >> >>> WARN [http-8180-7] > >> >>> > >> >>> > [org.springframework.security.web.context.HttpSessionSecurityContextRepository:396] > >> >>> Failed to create a session, as response has been committed. Unable > to > >> >>> store > >> >>> SecurityContext.2013-08-19 17:49:48,765 WARN [http-8180-7] > >> >>> > [org.collectionspace.services.common.security.SecurityInterceptor:358] > >> >>> Attempt to logout when Nuxeo login context was null2013-08-19 > >> >>> 17:49:48,773 > >> >>> WARN [http-8180-7] > >> >>> > >> >>> > [org.springframework.security.web.context.HttpSessionSecurityContextRepository:396] > >> >>> Failed to create a session, as response has been committed. Unable > to > >> >>> store > >> >>> SecurityContext.2013-08-19 21:07:17,771 ERROR > >> >>> [ContainerBackgroundProcessor[StandardEngine[Catalina]]] > >> >>> [org.apache.catalina.loader.WebappClassLoader:2191] The web > >> >>> application > >> >>> [/collectionspace] appears to have started a thread named > >> >>> [net.sf.ehcache.CacheManager@23aeae74] but has failed to stop it. > This > >> >>> is > >> >>> very likely to create a memory leak.2013-08-19 21:07:17,772 ERROR > >> >>> [ContainerBackgroundProcessor[StandardEngine[Catalina]]] > >> >>> [org.apache.catalina.loader.WebappClassLoader:2191] The web > >> >>> application > >> >>> [/collectionspace] appears to have started a thread named > >> >>> [MultiThreadedHttpConnectionManager cleanup] but has failed to stop > >> >>> it. This > >> >>> is very likely to create a memory leak.2013-08-19 21:07:17,780 ERROR > >> >>> [ContainerBackgroundProcessor[StandardEngine[Catalina]]] > >> >>> [org.apache.catalina.loader.WebappClassLoader:2453] The web > >> >>> application > >> >>> [/collectionspace] created a ThreadLocal with key of type > >> >>> [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value > >> >>> [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a > >> >>> value of > >> >>> type [java.util.HashMap] (value [{}]) but failed to remove it when > the > >> >>> web > >> >>> application was stopped. This is very likely to create a memory > >> >>> leak.2013-08-19 21:07:17,781 ERROR > >> >>> [ContainerBackgroundProcessor[StandardEngine[Catalina]]] > >> >>> [org.apache.catalina.loader.WebappClassLoader:2453] The web > >> >>> application > >> >>> [/collectionspace] created a ThreadLocal with key of type > >> >>> [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value > >> >>> [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a > >> >>> value of > >> >>> type [java.util.HashMap] (value [{}]) but failed to remove it when > the > >> >>> web > >> >>> application was stopped. This is very likely to create a memory > >> >>> leak.2013-08-19 21:09:34,685 (0) [http-8180-4] WARN > >> >>> > >> >>> > org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler: > >> >>> Could not merge the include files: > >> >>> settings.xml,local-omca-settings.xml > >> >>> > >> >>> > >> >>> It looks like the problem is with merging settings.xml and > >> >>> local-omca-settings.xml? > >> >>> > >> >>> I've tried a second time to create the configuration change in > >> >>> omca-collectionobject.xml (a newly created xml file with only this > >> >>> snippet > >> >>> in it: > >> >>> > >> >>> +<record id="collection-object"> > >> >>> + > >> >>> + <section id="identificationInformation"> > >> >>> + <repeat id="responsibleDepartments" has-primary="yes"> > >> >>> + > >> >>> <selector>object-identification-responsible-department</selector> > >> >>> + <field id="responsibleDepartment" > ui-search="repeatable" > >> >>> mini="search" > >> >>> + seperate_ui_container="true"> > >> >>> + > >> >>> <selector>object-identification-responsible-department</selector> > >> >>> + <options> > >> >>> + <option id="">Please select a value</option> > >> >>> + <option id="art">Art</option> > >> >>> + <option id="history">History</option> > >> >>> + <option id="science">Science</option> > >> >>> + <option id="collections">Collections</option> > >> >>> + <option id="education">Education</option> > >> >>> + <option id="professionalservices">Professional > >> >>> Services</option> > >> >>> + <option id="multi">Multi</option> > >> >>> + </options> > >> >>> + </field> > >> >>> + </repeat> > >> >>> + <field id="collection" ui-search="repeatable" > >> >>> seperate_ui_container="true"> > >> >>> + <selector>object-identification-collection</selector> > >> >>> + <options> > >> >>> + <option id="">Please select a value</option> > >> >>> + <option id="art">Art</option> > >> >>> + <option id="artandartifact">Art and > Artifact</option> > >> >>> + <option id="exhibit">Exhibit</option> > >> >>> + <option id="history">History</option> > >> >>> + <option id="scientomology">SCI-Entomology</option> > >> >>> + <option id="scifineart">SCI-Fine Art</option> > >> >>> + <option id="scigalleryspecimens">SCI-Gallery > >> >>> Specimens</option> > >> >>> + <option id="scigeology">SCI-Geology</option> > >> >>> + <option id="sciherbarium">SCI-Herbarium</option> > >> >>> + <option id="sciherpetology">SCI-Herpetology</option> > >> >>> + <option id="sciicthyology">SCI-Icthyology</option> > >> >>> + <option > >> >>> id="sciinvertebrates">SCI-Invertebrates</option> > >> >>> + <option id="scilapidary">SCI-Lapidary</option> > >> >>> + <option id="scimalacology">SCI-Malacology</option> > >> >>> + <option id="scimammalogy">SCI-Mammalogy</option> > >> >>> + <option > >> >>> id="scimiscellaneous">SCI-Miscellaneous</option> > >> >>> + <option id="sciornithology">SCI-Ornithology</option> > >> >>> + <option > id="scipaleontology">SCI-Paleontology</option> > >> >>> + <option id="sciphoto">SCI-Photo</option> > >> >>> + <option id="scisnuffbottles">SCI-Snuff > >> >>> Bottles</option> > >> >>> + <option id="specimen">Specimen</option> > >> >>> + </options> > >> >>> + </field> > >> >>> + </section> > >> >>> + > >> >>> +</record> > >> >>> > >> >>> > >> >>> > >> >>> then according to your last email, I ran "mvn clean install > >> >>> -DskipTest" > >> >>> rather than "mvn deploy -DskipTests". I ran this in the application > >> >>> layer > >> >>> folder called "application" that contains the pom.xml file. In my > path > >> >>> it > >> >>> looks like /home/root/application-source/application/. Then, do I > >> >>> understand > >> >>> I also need to run "ant deploy"? I wasn't able to run this in the > same > >> >>> folder - I got an error saying this is no build file. > >> >>> > >> >>> I'm going off your previous instructions, as well as the > documentation > >> >>> on > >> >>> the wiki for customizing the application layer: > >> >>> > >> >>> Hi Becky and Al, > >> >>> One more set of notes on making 'starting out' customizations, > >> >>> below: this one a customization of options in dropdown menus. > >> >>> Aron > >> >>> (Recommendation: start the CollectionSpace server before making the > >> >>> following changes. This will help ensure those changes are made > >> >>> 'live.') > >> >>> * An example of how to replace the default sets of options in the > >> >>> dropdown menus for the Responsible Department and OMCA Collection > >> >>> fields. > >> >>> The existing documentation on updating these option lists is > >> >>> confusing, and wildly out of date; we expect to be updating it in > the > >> >>> near future. The customization method shown here as an example > >> >>> reflects recently-added 'merge' capabilities that allow you to > simply > >> >>> replicate the block of configuration you want to customize, within a > >> >>> separate file for your own museum; it will override the > corresponding > >> >>> configuration block in the default settings: > >> >>> Actual change(s) made, within the source code tree for > >> >>> CollectionSpace's Application layer: > >> >>> > >> >>> > >> >>> > https://github.com/aronr/application/commit/b7a47d94fc6d44d0cad74f6444710a35373291c7 > >> >>> You can compare this to the default configuration file for the > >> >>> Cataloging record, in which the default options for those two > dropdown > >> >>> menus appear: > >> >>> > >> >>> > >> >>> > https://github.com/aronr/application/blob/b7a47d94fc6d44d0cad74f6444710a35373291c7/tomcat-main/src/main/resources/defaults/base-collectionobject.xml#L112 > >> >>> To copy (deploy) these changes to the server folder, enter the > >> >>> following at a command prompt, from within the top-level folder of > the > >> >>> Application source code tree: > >> >>> mvn deploy -DskipTests > >> >>> > >> >>> > >> >>> > >> >>> Sorry I'm not getting this! Do you have any ideas? > >> >>> > >> >>> 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" <aronroberts@gmail.com> > >> >>> To: "Al Bersch" <abersch@museumca.org> > >> >>> Cc: "talk" <talk@lists.collectionspace.org> > >> >>> Sent: Friday, August 16, 2013 1:28:48 PM > >> >>> > >> >>> Subject: Re: [Talk] deploy mvn error > >> >>> > >> >>> The key is likely this snippet, from near the beginning of that long > >> >>> and > >> >>> singularly unhelpful chain of messages: > >> >>> "org.collectionspace.chain.csp.config.ConfigException: Error loading > >> >>> config" > >> >>> > >> >>> There may have been an error made in whatever configuration file, or > >> >>> files, were modified. After they were deployed (copied) to the > >> >>> server, when > >> >>> the Application layer read them, it got confused and barfed out this > >> >>> long > >> >>> stack trace. > >> >>> > >> >>> Typically, this means the file(s), after being modified, weren't > >> >>> well-formed XML - perhaps an ending tag was left out somewhere? - or > >> >>> they > >> >>> didn't conform to the Application layer's expectation of what 'tags' > >> >>> (XML > >> >>> elements) are expected, in which hierarchical locations within the > >> >>> file. > >> >>> > >> >>> Yes, reverting to a snapshot and re-deploying (via 'mvn clean > install > >> >>> -DskipTests') and restarting Tomcat, should resolve the issue. You > >> >>> might > >> >>> also try, however, using a utility app that can show you differences > >> >>> between > >> >>> two files - your current version and your snapshot - and see if the > >> >>> error is > >> >>> readily made apparent by looking at those changes in that 'diff' > view. > >> >>> (If > >> >>> you're using Mac OS X, there's a list of such apps at > >> >>> http://apple.stackexchange.com/a/87188) > >> >>> > >> >>> It's also worth checking the current cspace-app.log and > >> >>> catalina.{today's > >> >>> date}.log to see if there may be any log message specifically > >> >>> pinpointing > >> >>> the configuration error. > >> >>> > >> >>> Aron > >> >>> > >> >>> On Fri, Aug 16, 2013 at 1:16 PM, Al Bersch <abersch@museumca.org> > >> >>> wrote: > >> >>> > > >> >>> > Hi again, > >> >>> > > >> >>> > Ok, I think I must have messed up somewhere when changing the > files > >> >>> > in > >> >>> > the application layer. When I navigated to our tenant, the login > >> >>> > screen is > >> >>> > blank except for a place to put a user name and password. when I > >> >>> > submit my > >> >>> > password, I get this message: Any idea what I did wrong? Thanks! > >> >>> > > >> >>> > I have a snapshot prior to the changes in the application layer, > so > >> >>> > I > >> >>> > can always go back in time and try again. > >> >>> > > >> >>> > Al > >> >>> > > >> >>> > HTTP Status 400 - > >> >>> > org.collectionspace.chain.controller.BadRequestException: Cannot > >> >>> > initialise > >> >>> > CSPs org.collectionspace.csp.api.core.CSPDependencyException: > >> >>> > org.collectionspace.chain.csp.config.ConfigException: Error > loading > >> >>> > config. > >> >>> > See messages for details: summary Exception raised during parsing > at > >> >>> > > >> >>> > > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185) > >> >>> > at > >> >>> > > >> >>> > > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117) > >> >>> > at > >> >>> > > >> >>> > > org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568) > >> >>> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at > >> >>> > > >> >>> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > >> >>> > at > >> >>> > > >> >>> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > >> >>> > at > >> >>> > > >> >>> > > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33) > >> >>> > at > >> >>> > > >> >>> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > >> >>> > at > >> >>> > > >> >>> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > >> >>> > at > >> >>> > > >> >>> > > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99) > >> >>> > at > >> >>> > > >> >>> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > >> >>> > at > >> >>> > > >> >>> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > >> >>> > at > >> >>> > > >> >>> > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > >> >>> > at > >> >>> > > >> >>> > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > >> >>> > at > >> >>> > > >> >>> > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > >> >>> > at > >> >>> > > >> >>> > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > >> >>> > at > >> >>> > > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589) > >> >>> > at > >> >>> > > >> >>> > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > >> >>> > at > >> >>> > > >> >>> > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) > >> >>> > at > >> >>> > > >> >>> > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) > >> >>> > at > >> >>> > > >> >>> > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) > >> >>> > at > >> >>> > > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) > >> >>> > at java.lang.Thread.run(Thread.java:724) Caused by: > >> >>> > org.collectionspace.csp.api.core.CSPDependencyException: > >> >>> > org.collectionspace.chain.csp.config.ConfigException: Error > loading > >> >>> > config. > >> >>> > See messages for details: summary Exception raised during parsing > at > >> >>> > > >> >>> > > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64) > >> >>> > at > >> >>> > > >> >>> > > org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156) > >> >>> > at > >> >>> > > >> >>> > > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179) > >> >>> > ... 22 more Caused by: > >> >>> > org.collectionspace.chain.csp.config.ConfigException: > >> >>> > Error loading config. See messages for details: summary Exception > >> >>> > raised > >> >>> > during parsing at > >> >>> > > >> >>> > > org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78) > >> >>> > at > >> >>> > > >> >>> > > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74) > >> >>> > at > >> >>> > > >> >>> > > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54) > >> >>> > ... 24 more > >> >>> > > >> >>> > ________________________________ > >> >>> > > >> >>> > type Status report > >> >>> > > >> >>> > message org.collectionspace.chain.controller.BadRequestException: > >> >>> > Cannot > >> >>> > initialise CSPs > >> >>> > org.collectionspace.csp.api.core.CSPDependencyException: > >> >>> > org.collectionspace.chain.csp.config.ConfigException: Error > loading > >> >>> > config. > >> >>> > See messages for details: summary Exception raised during parsing > at > >> >>> > > >> >>> > > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185) > >> >>> > at > >> >>> > > >> >>> > > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117) > >> >>> > at > >> >>> > > >> >>> > > org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568) > >> >>> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at > >> >>> > > >> >>> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > >> >>> > at > >> >>> > > >> >>> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > >> >>> > at > >> >>> > > >> >>> > > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33) > >> >>> > at > >> >>> > > >> >>> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > >> >>> > at > >> >>> > > >> >>> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > >> >>> > at > >> >>> > > >> >>> > > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99) > >> >>> > at > >> >>> > > >> >>> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > >> >>> > at > >> >>> > > >> >>> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > >> >>> > at > >> >>> > > >> >>> > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > >> >>> > at > >> >>> > > >> >>> > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > >> >>> > at > >> >>> > > >> >>> > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > >> >>> > at > >> >>> > > >> >>> > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > >> >>> > at > >> >>> > > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589) > >> >>> > at > >> >>> > > >> >>> > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > >> >>> > at > >> >>> > > >> >>> > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) > >> >>> > at > >> >>> > > >> >>> > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) > >> >>> > at > >> >>> > > >> >>> > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) > >> >>> > at > >> >>> > > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) > >> >>> > at java.lang.Thread.run(Thread.java:724) Caused by: > >> >>> > org.collectionspace.csp.api.core.CSPDependencyException: > >> >>> > org.collectionspace.chain.csp.config.ConfigException: Error > loading > >> >>> > config. > >> >>> > See messages for details: summary Exception raised during parsing > at > >> >>> > > >> >>> > > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64) > >> >>> > at > >> >>> > > >> >>> > > org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156) > >> >>> > at > >> >>> > > >> >>> > > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179) > >> >>> > ... 22 more Caused by: > >> >>> > org.collectionspace.chain.csp.config.ConfigException: > >> >>> > Error loading config. See messages for details: summary Exception > >> >>> > raised > >> >>> > during parsing at > >> >>> > > >> >>> > > org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78) > >> >>> > at > >> >>> > > >> >>> > > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74) > >> >>> > at > >> >>> > > >> >>> > > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54) > >> >>> > ... 24 more > >> >>> > > >> >>> > description The request sent by the client was syntactically > >> >>> > incorrect > >> >>> > (org.collectionspace.chain.controller.BadRequestException: Cannot > >> >>> > initialise > >> >>> > CSPs org.collectionspace.csp.api.core.CSPDependencyException: > >> >>> > org.collectionspace.chain.csp.config.ConfigException: Error > loading > >> >>> > config. > >> >>> > See messages for details: summary Exception raised during parsing > at > >> >>> > > >> >>> > > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185) > >> >>> > at > >> >>> > > >> >>> > > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117) > >> >>> > at > >> >>> > > >> >>> > > org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568) > >> >>> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at > >> >>> > > >> >>> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > >> >>> > at > >> >>> > > >> >>> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > >> >>> > at > >> >>> > > >> >>> > > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33) > >> >>> > at > >> >>> > > >> >>> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > >> >>> > at > >> >>> > > >> >>> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > >> >>> > at > >> >>> > > >> >>> > > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99) > >> >>> > at > >> >>> > > >> >>> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > >> >>> > at > >> >>> > > >> >>> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > >> >>> > at > >> >>> > > >> >>> > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > >> >>> > at > >> >>> > > >> >>> > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > >> >>> > at > >> >>> > > >> >>> > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > >> >>> > at > >> >>> > > >> >>> > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > >> >>> > at > >> >>> > > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589) > >> >>> > at > >> >>> > > >> >>> > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > >> >>> > at > >> >>> > > >> >>> > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) > >> >>> > at > >> >>> > > >> >>> > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) > >> >>> > at > >> >>> > > >> >>> > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) > >> >>> > at > >> >>> > > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) > >> >>> > at java.lang.Thread.run(Thread.java:724) Caused by: > >> >>> > org.collectionspace.csp.api.core.CSPDependencyException: > >> >>> > org.collectionspace.chain.csp.config.ConfigException: Error > loading > >> >>> > config. > >> >>> > See messages for details: summary Exception raised during parsing > at > >> >>> > > >> >>> > > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64) > >> >>> > at > >> >>> > > >> >>> > > org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156) > >> >>> > at > >> >>> > > >> >>> > > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179) > >> >>> > ... 22 more Caused by: > >> >>> > org.collectionspace.chain.csp.config.ConfigException: > >> >>> > Error loading config. See messages for details: summary Exception > >> >>> > raised > >> >>> > during parsing at > >> >>> > > >> >>> > > org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78) > >> >>> > at > >> >>> > > >> >>> > > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74) > >> >>> > at > >> >>> > > >> >>> > > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54) > >> >>> > ... 24 more ). > >> >>> > > >> >>> > > >> >>> > Al Bersch > >> >>> > Digital Project Coordinator > >> >>> > Oakland Museum of California > >> >>> > 1000 Oak Street, Oakland, CA 94607 > >> >>> > abersch@museumca.org > >> >>> > 510-318-8468 > >> >>> > ________________________________ > >> >>> > From: "Aron Roberts" <aronroberts@gmail.com> > >> >>> > To: "Al Bersch" <abersch@museumca.org> > >> >>> > Cc: "talk" <talk@lists.collectionspace.org> > >> >>> > Sent: Friday, August 16, 2013 12:58:56 PM > >> >>> > Subject: Re: [Talk] deploy mvn error > >> >>> > > >> >>> > Hi Al, > >> >>> > > >> >>> > You likely will have success with 'mvn clean install > -DskipTests' > >> >>> > when > >> >>> > building and deploying the App layer with your dropdown list > >> >>> > changes, rather > >> >>> > than 'mvn deploy -DskipTests'. > >> >>> > > >> >>> > It's a bit confusing (and I hope I don't need to keep repeating > >> >>> > this > >> >>> > :-), but CollectionSpace Services layer uses Maven to build > >> >>> > artifacts and > >> >>> > Ant buildfiles to deploy (copy) them to the server (hence 'mvn > clean > >> >>> > install' followed by 'ant deploy'), while the Application and UI > >> >>> > layers use > >> >>> > Maven ('mvn install') for both tasks. There are some historical > and > >> >>> > technical reasons for this difference, not worth going into ... > >> >>> > > >> >>> > Aron > >> >>> > > >> >>> > > >> >>> > On Fri, Aug 16, 2013 at 12:49 PM, Al Bersch <abersch@museumca.org > > > >> >>> > wrote: > >> >>> >> > >> >>> >> Hello all, > >> >>> >> > >> >>> >> I changed our dropdown lists in Department and Collection in the > >> >>> >> application layer source code, and when I ran mvn deploy > >> >>> >> -DskipTests I get > >> >>> >> this error: > >> >>> >> > >> >>> >> [ERROR] BUILD ERROR > >> >>> >> [INFO] > >> >>> >> > >> >>> >> > ------------------------------------------------------------------------ > >> >>> >> [INFO] Failed to configure plugin parameters for: > >> >>> >> org.apache.maven.plugins:maven-deploy-plugin:2.4 > >> >>> >> > >> >>> >> check that the following section of the pom.xml is present and > >> >>> >> correct: > >> >>> >> > >> >>> >> <distributionManagement> > >> >>> >> <!-- use the following if you're not using a snapshot version. > >> >>> >> --> > >> >>> >> <repository> > >> >>> >> <id>repo</id> > >> >>> >> <name>Repository Name</name> > >> >>> >> <url>scp://host/path/to/repo</url> > >> >>> >> </repository> > >> >>> >> <!-- use the following if you ARE using a snapshot version. --> > >> >>> >> <snapshotRepository> > >> >>> >> <id>repo</id> > >> >>> >> <name>Repository Name</name> > >> >>> >> <url>scp://host/path/to/repo</url> > >> >>> >> </snapshotRepository> > >> >>> >> </distributionManagement> > >> >>> >> > >> >>> >> Cause: Class > >> >>> >> 'org.apache.maven.artifact.repository.ArtifactRepository' > >> >>> >> cannot be instantiated > >> >>> >> > >> >>> >> > >> >>> >> > >> >>> >> I looked in the pom.xml, and found this: > >> >>> >> > >> >>> >> <!-- The CollectionSpace public Maven repository for "snapshot" > >> >>> >> artifacts --> > >> >>> >> <repositories> > >> >>> >> <repository> > >> >>> >> <id>libs-snapshot-local</id> > >> >>> >> <name>libs-snapshot-local</name> > >> >>> >> > >> >>> >> > >> >>> >> <url> > http://nightly.collectionspace.org:8081/artifactory/libs-snapshot-local > </url> > >> >>> >> <snapshots> > >> >>> >> <enabled>true</enabled> > >> >>> >> </snapshots> > >> >>> >> > >> >>> >> > >> >>> >> I'm wondering, which repository setting should I use (snapshot or > >> >>> >> not > >> >>> >> snapshot)? Our installation is on a virtual server in linode. > >> >>> >> > >> >>> >> And, does anyone know where I should set the path to our > >> >>> >> repository? > >> >>> >> I'm guessing that the error is party due to the url being mapped > to > >> >>> >> nightly.collectionspace.org. > >> >>> >> > >> >>> >> 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 > > > > > >
JM
Jesse Martinez
Tue, Aug 20, 2013 11:12 PM

Hi Al,

Just noticed a quick typo in the text you c/p into an earlier email.  It
looks like you might be missing a closing bracket in this line: I don't
know if it's a c/p typo or not, so just thought I'd point it out!

<include src="base-collectionobject.xml,omca-collectionobject.xml"
merge="xmlmerge.properties"/

Also, how are you editing these files? Are you using a cli utility like
emacs or vim? (Might you be using Cygwin on Windows?? I've used this in the
past and there are sometimes encoding issues involved including end line
chars.) I'm trying to deduce if there are encoding issues at play here.

Personally speaking, I like to use a local editor when making quick changes
on a remote server. What works for me on a Mac is a combination of
Cyberduck (free sftp client) (or Transmit, which is well worth its price),
and Sublime Text. Cyberduck can be set to automatically open editable files
in Sublime Text and save them back to the remote server seamlessly. Sublime
Text isn't a full-fledged IDE, but it is light-weight and has a lot of good
tools for easily checking format and syntax based on file type. It's free,
works on multiple OSs and my go-to code editor in a pinch. Aron also
recommends good editors too.

  • Jesse

On Tue, Aug 20, 2013 at 6:12 PM, Al Bersch abersch@museumca.org wrote:

Hi Aron,

Thanks so much for addressing these questions.

I entered the language at the end of your email into my /tomcat-main/src/main/resources/omca-tenant.xml
file, like this:

<cspace-config tenantname="omca">
     <version>11</version>
     <!-- Note: omca-collectionobject.xml should not appear in the

'include' line below -->
<!-- This line is for merging various settings files together. -->
<include src="settings.xml,local-omca-settings.xml" merge="xmlmerge.properties" strip-root="yes" />

     <spec>
             <include src="base-relations.xml"/>
             <include src="base-schemas.xml"/>

             <records>
                     <enum-blank>Please select a value</enum-blank>
                     <!-- Here's where you can indicate that you want

to merge in your own Cataloging record changes -->
<include
src="base-collectionobject.xml,omca-collectionobject.xml"
merge="xmlmerge.properties"/
<include src="base-procedure-acquisition.xml"/>
<include src="base-procedure-blobs.xml"/>
...

then re-created the omca-collectionobject.xml file (located at
tomcat-main/src/main/resources/tenants/omca) with this inside it:

+<record id="collection-object">
+

  • <section id="identificationInformation">
  •    <repeat id="responsibleDepartments" has-primary="yes">
    

<selector>object-identification-responsible-department</selector>

  •        <field id="responsibleDepartment" ui-search="repeatable"
    

mini="search"

  •         seperate_ui_container="true">
    

<selector>object-identification-responsible-department</selector>

  •            <options>
    
  •                <option id="">Please select a value</option>
    
  •                <option id="art">Art</option>
    
  •                <option id="history">History</option>
    
  •                <option id="science">Science</option>
    
  •                <option id="collections">Collections</option>
    
  •                <option id="education">Education</option>
    
  •                <option id="professionalservices">Professional
    

Services</option>

  •                <option id="multi">Multi</option>
    
  •            </options>
    
  •        </field>
    
  •    </repeat>
    
  •    <field id="collection" ui-search="repeatable"
    

seperate_ui_container="true">

  •        <selector>object-identification-collection</selector>
    
  •        <options>
    
  •           <option id="">Please select a value</option>
    
  •           <option id="art">Art</option>
    
  •           <option id="artandartifact">Art and Artifact</option>
    
  •           <option id="exhibit">Exhibit</option>
    
  •           <option id="history">History</option>
    
  •           <option id="scientomology">SCI-Entomology</option>
    
  •           <option id="scifineart">SCI-Fine Art</option>
    
  •           <option id="scigalleryspecimens">SCI-Gallery
    

Specimens</option>

  •           <option id="scigeology">SCI-Geology</option>
    
  •           <option id="sciherbarium">SCI-Herbarium</option>
    
  •           <option id="sciherpetology">SCI-Herpetology</option>
    
  •           <option id="sciicthyology">SCI-Icthyology</option>
    
  •           <option id="sciinvertebrates">SCI-Invertebrates</option>
    
  •           <option id="scilapidary">SCI-Lapidary</option>
    
  •           <option id="scimalacology">SCI-Malacology</option>
    
  •           <option id="scimammalogy">SCI-Mammalogy</option>
    
  •           <option id="scimiscellaneous">SCI-Miscellaneous</option>
    
  •           <option id="sciornithology">SCI-Ornithology</option>
    
  •           <option id="scipaleontology">SCI-Paleontology</option>
    
  •           <option id="sciphoto">SCI-Photo</option>
    
  •           <option id="scisnuffbottles">SCI-Snuff Bottles</option>
    
  •           <option id="specimen">Specimen</option>
    
  •        </options>
    
  •    </field>
    
  • </section>

+</record>

But alas, I'm still getting the same error message when I log into my
tenant.

If it matters, I looked in my settings.xml file and get a big chunk of
this: ^@^@^@^@^@^@^.

do you see anything wrong here in the files I copied?

thanks,

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" aronroberts@gmail.com
*To: *"Al Bersch" abersch@museumca.org
*Cc: *"talk" talk@lists.collectionspace.org
*Sent: *Monday, August 19, 2013 5:39:58 PM

*Subject: *Re: [Talk] deploy mvn error

Hi Al,

My sincere apologies for these difficulties you've been encountering.

It looks like the problem is with merging settings.xml and

local-omca-settings.xml?

Yes, that certainly looks like the case.

This line appeared in part of the output from this error, in
catalina.out:

2013-08-19 21:46:13,364 ERROR [http-8180-3] ... Message: Exception

raised during parsing

Stack :

org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61)

From looking at the Application layer's code at line 61 of
AssemblingParser.java:

https://github.com/collectionspace/application/blob/v3.3/csp-impl/src/main/java/org/collectionspace/chain/csp/config/impl/parser/AssemblingParser.java#L61
it appears the error is in reading or merging XML content, rather than in
not finding either of the two files to be merged, or in not being able to
read them as a result of insufficient access permissions or other
filesystem-related issues.

It appears that you might potentially be inadvertently trying to merge
two dissimilar things: a settings file for your tenant (which contains some
general administrative settings), together with some field-level settings
for a particular record type.

If you'd like to merge custom changes into the Cataloging record, such
as changing the contents of options lists, here's an example of how you can
specify that, as shown line 12 of the tenant 'includes' file for the UCJEPS
herbaria:

https://github.com/cspace-deployment/application/blob/ucjeps_3.2/tomcat-main/src/main/resources/ucjeps-tenant.xml#L12

Following that example, your
/tomcat-main/src/main/resources/omca-tenant.xml file might look something
like the following:

<cspace-config tenantname="omca"> <version>11</version> <!-- Note: omca-collectionobject.xml should not appear in the 'include' line below --> <!-- This line is for merging various settings files together. --> <include src="settings.xml,local-settings.xml" merge="xmlmerge-settings.properties" strip-root="yes"/> ... <records> <enum-blank>Please select a value</enum-blank> <!-- Here's where you can indicate that you want to merge in your own Cataloging record changes --> <include src="base-collectionobject.xml,omca-collectionobject.xml" merge="xmlmerge.properties"/> ...

Aron

On Mon, Aug 19, 2013 at 4:28 PM, Al Bersch abersch@museumca.org wrote:

Hi Aron,

Thanks so much again for your continued assistance. And for the plug for

using github as a backup resource - I'll do that, and also apologize in
advance for the cut-and-paste text below.

I installed DiffMerge, but I'm not sure what to compare, since the file

I added to the omca tenant (omca-collectionobject.xml), wasn't there in the
previous snapshot. I think I'm a little confused.

I looked in the cspace-app.log and catalina.out (can you tell me where I

might find catalina.(today'sdate).log?) and here are some snippets, first
from cspace-app.log:

2013-08-19 21:46:13,363 WARN  [http-8180-3]

[org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:218]
Could not merge the include files: settings.xml,local-omca-settings.xml

2013-08-19 21:46:13,364 ERROR [http-8180-3]

[org.collectionspace.chain.csp.config.impl.parser.ConfigLoadingMessagesImpl:16]
Message: Exception raised during parsing

Stack :

org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61)

org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse (62)
org.collectionspace.csp.container.impl.CSPManagerImpl.configure (54)
org.collectionspace.chain.controller.TenantServlet.load_config (156)
org.collectionspace.chain.controller.TenantServlet.setup (179)
org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant

(117)

org.collectionspace.chain.controller.TenantUIServlet.service (568)
javax.servlet.http.HttpServlet.service (717)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (290)
org.apache.catalina.core.ApplicationFilterChain.doFilter (206)
org.collectionspace.chain.controller.filters.PerflogFilter.doFilter (33)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235)
org.apache.catalina.core.ApplicationFilterChain.doFilter (206)
org.collectionspace.chain.controller.filters.CharSetFilter.doFilter (99)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235)
org.apache.catalina.core.ApplicationFilterChain.doFilter (206)
org.apache.catalina.core.StandardWrapperValve.invoke (233)
org.apache.catalina.core.StandardContextValve.invoke (191)
org.apache.catalina.core.StandardHostValve.invoke (127)
org.apache.catalina.valves.ErrorReportValve.invoke (102)
org.apache.catalina.valves.AccessLogValve.invoke (589)
org.apache.catalina.core.StandardEngineValve.invoke (109)
org.apache.catalina.connector.CoyoteAdapter.service (291)
org.apache.coyote.http11.Http11Processor.process (859)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process

(602)

org.apache.tomcat.util.net.JIoEndpoint$Worker.run (489)
java.lang.Thread.run (724)

CAUSED BY
Message: Could not load source

then from catalina.out:

2013-08-19 17:49:25,334 ERROR [main]

[org.collectionspace.services.common.config.ConfigUtils:51] No domain name
was specified on call to getRepositoryName() method.2013-08-19 17:49:25,334
ERROR [main] [org.collectionspace.services.common.config.ConfigUtils:51] No
domain name was specified on call to getRepositoryName() method.2013-08-19
17:49:25,334 ERROR [main]
[org.collectionspace.services.common.config.ConfigUtils:51] No domain name
was specified on call to getRepositoryName() method.[INFO] Starting up the
CollectionSpace Services' JAX-RS application.Static initializtion of:
org.collectionspace.services.common.security.SecurityInterceptor[INFO]
CollectionSpace Services' JAX-RS application started.2013-08-19
17:49:27,339 (0) [http-8180-4] INFO
org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:
XMLMerge result output to:
/usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19
17:49:29,695 (2356) [http-8180-2] INFO
org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:
XMLMerge result output to:
/usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19
17:49:29,732 (2393) [net.sf.ehcache.CacheManager@23aeae74] INFO
net.sf.ehcache.util.UpdateChecker: New update(s) found: 2.6.5 [
http://www.terracotta.org/confluence/display/release/Release+Notes+Ehcache+Core+2.6].
Please check http://ehcache.org for the latest version.Could not get
session from CSPACESESSID cookie with value:
31b6c5daf4d4180636604cb25ac9f75f2013-08-19 17:49:47,810 WARN  [http-8180-7]
[org.collectionspace.services.common.security.SecurityInterceptor:358]
Attempt to logout when Nuxeo login context was null2013-08-19 17:49:47,953
WARN  [http-8180-7]
[org.springframework.security.web.context.HttpSessionSecurityContextRepository:396]
Failed to create a session, as response has been committed. Unable to store
SecurityContext.2013-08-19 17:49:48,765 WARN  [http-8180-7]
[org.collectionspace.services.common.security.SecurityInterceptor:358]
Attempt to logout when Nuxeo login context was null2013-08-19 17:49:48,773
WARN  [http-8180-7]
[org.springframework.security.web.context.HttpSessionSecurityContextRepository:396]
Failed to create a session, as response has been committed. Unable to store
SecurityContext.2013-08-19 21:07:17,771 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2191] The web application
[/collectionspace] appears to have started a thread named
[net.sf.ehcache.CacheManager@23aeae74] but has failed to stop it. This is
very likely to create a memory leak.2013-08-19 21:07:17,772 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2191] The web application
[/collectionspace] appears to have started a thread named
[MultiThreadedHttpConnectionManager cleanup] but has failed to stop it.
This is very likely to create a memory leak.2013-08-19 21:07:17,780 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2453] The web application
[/collectionspace] created a ThreadLocal with key of type
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a value
of type [java.util.HashMap] (value [{}]) but failed to remove it when the
web application was stopped. This is very likely to create a memory
leak.2013-08-19 21:07:17,781 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2453] The web application
[/collectionspace] created a ThreadLocal with key of type
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a value
of type [java.util.HashMap] (value [{}]) but failed to remove it when the
web application was stopped. This is very likely to create a memory
leak.2013-08-19 21:09:34,685 (0) [http-8180-4] WARN
org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:
Could not merge the include files: settings.xml,local-omca-settings.xml

It looks like the problem is with merging settings.xml and

local-omca-settings.xml?

I've tried a second time to create the configuration change in

omca-collectionobject.xml (a newly created xml file with only this snippet
in it:

+<record id="collection-object">
+

  • <section id="identificationInformation">
  •    <repeat id="responsibleDepartments" has-primary="yes">
    

<selector>object-identification-responsible-department</selector>

  •        <field id="responsibleDepartment" ui-search="repeatable"
    

mini="search"

  •         seperate_ui_container="true">
    

<selector>object-identification-responsible-department</selector>

  •            <options>
    
  •                <option id="">Please select a value</option>
    
  •                <option id="art">Art</option>
    
  •                <option id="history">History</option>
    
  •                <option id="science">Science</option>
    
  •                <option id="collections">Collections</option>
    
  •                <option id="education">Education</option>
    
  •                <option id="professionalservices">Professional
    

Services</option>

  •                <option id="multi">Multi</option>
    
  •            </options>
    
  •        </field>
    
  •    </repeat>
    
  •    <field id="collection" ui-search="repeatable"
    

seperate_ui_container="true">

  •        <selector>object-identification-collection</selector>
    
  •        <options>
    
  •           <option id="">Please select a value</option>
    
  •           <option id="art">Art</option>
    
  •           <option id="artandartifact">Art and Artifact</option>
    
  •           <option id="exhibit">Exhibit</option>
    
  •           <option id="history">History</option>
    
  •           <option id="scientomology">SCI-Entomology</option>
    
  •           <option id="scifineart">SCI-Fine Art</option>
    
  •           <option id="scigalleryspecimens">SCI-Gallery
    

Specimens</option>

  •           <option id="scigeology">SCI-Geology</option>
    
  •           <option id="sciherbarium">SCI-Herbarium</option>
    
  •           <option id="sciherpetology">SCI-Herpetology</option>
    
  •           <option id="sciicthyology">SCI-Icthyology</option>
    
  •           <option id="sciinvertebrates">SCI-Invertebrates</option>
    
  •           <option id="scilapidary">SCI-Lapidary</option>
    
  •           <option id="scimalacology">SCI-Malacology</option>
    
  •           <option id="scimammalogy">SCI-Mammalogy</option>
    
  •           <option id="scimiscellaneous">SCI-Miscellaneous</option>
    
  •           <option id="sciornithology">SCI-Ornithology</option>
    
  •           <option id="scipaleontology">SCI-Paleontology</option>
    
  •           <option id="sciphoto">SCI-Photo</option>
    
  •           <option id="scisnuffbottles">SCI-Snuff Bottles</option>
    
  •           <option id="specimen">Specimen</option>
    
  •        </options>
    
  •    </field>
    
  • </section>

+</record>

then according to your last email, I ran "mvn clean install -DskipTest"

rather than "mvn deploy -DskipTests". I ran this in the application layer
folder called "application" that contains the pom.xml file. In my path it
looks like /home/root/application-source/application/. Then, do I
understand I also need to run "ant deploy"? I wasn't able to run this in
the same folder - I got an error saying this is no build file.

I'm going off your previous instructions, as well as the documentation

on the wiki for customizing the application layer:

Hi Becky and Al,
One more set of notes on making 'starting out' customizations,
below: this one a customization of options in dropdown menus.
Aron
(Recommendation: start the CollectionSpace server before making the
following changes.  This will help ensure those changes are made
'live.')

  • An example of how to replace the default sets of options in the
    dropdown menus for the Responsible Department and OMCA Collection
    fields.
    The existing documentation on updating these option lists is
    confusing, and wildly out of date; we expect to be updating it in the
    near future.  The customization method shown here as an example
    reflects recently-added 'merge' capabilities that allow you to simply
    replicate the block of configuration you want to customize, within a
    separate file for your own museum; it will override the corresponding
    configuration block in the default settings:
    Actual change(s) made, within the source code tree for
    CollectionSpace's Application layer:

You can compare this to the default configuration file for the
Cataloging record, in which the default options for those two dropdown
menus appear:

To copy (deploy) these changes to the server folder, enter the
following at a command prompt, from within the top-level folder of the
Application source code tree:
mvn deploy -DskipTests

Sorry I'm not getting this! Do you have any ideas?

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" aronroberts@gmail.com
To: "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Friday, August 16, 2013 1:28:48 PM

Subject: Re: [Talk] deploy mvn error

The key is likely this snippet, from near the beginning of that long and

singularly unhelpful chain of messages:

"org.collectionspace.chain.csp.config.ConfigException: Error loading

config"

There may have been an error made in whatever configuration file, or

files, were modified.  After they were deployed (copied) to the server,
when the Application layer read them, it got confused and barfed out this
long stack trace.

Typically, this means the file(s), after being modified, weren't

well-formed XML - perhaps an ending tag was left out somewhere? - or they
didn't conform to the Application layer's expectation of what 'tags' (XML
elements) are expected, in which hierarchical locations within the file.

Yes, reverting to a snapshot and re-deploying (via 'mvn clean install

-DskipTests') and restarting Tomcat, should resolve the issue.  You might
also try, however, using a utility app that can show you differences
between two files - your current version and your snapshot - and see if the
error is readily made apparent by looking at those changes in that 'diff'
view.  (If you're using Mac OS X, there's a list of such apps at
http://apple.stackexchange.com/a/87188)

It's also worth checking the current cspace-app.log and

catalina.{today's date}.log to see if there may be any log message
specifically pinpointing the configuration error.

Aron

On Fri, Aug 16, 2013 at 1:16 PM, Al Bersch abersch@museumca.org wrote:

Hi again,

Ok, I think I must have messed up somewhere when changing the files in

the application layer. When I navigated to our tenant, the login screen is
blank except for a place to put a user name and password. when I submit my
password, I get this message:  Any idea what I did wrong? Thanks!

I have a snapshot prior to the changes in the application layer, so I

can always go back in time and try again.

Al

HTTP Status 400 -

org.collectionspace.chain.controller.BadRequestException: Cannot initialise
CSPs org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading config.
See messages for details: summary Exception raised during parsing at
org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185)
at
org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117)
at
org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:724) Caused by:
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading config.
See messages for details: summary Exception raised during parsing at
org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64)
at
org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156)
at
org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179)
... 22 more Caused by:
org.collectionspace.chain.csp.config.ConfigException: Error loading config.
See messages for details: summary Exception raised during parsing at
org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78)
at
org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74)
at
org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54)
... 24 more


type Status report

message org.collectionspace.chain.controller.BadRequestException:

Cannot initialise CSPs
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading config.
See messages for details: summary Exception raised during parsing at
org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185)
at
org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117)
at
org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:724) Caused by:
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading config.
See messages for details: summary Exception raised during parsing at
org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64)
at
org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156)
at
org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179)
... 22 more Caused by:
org.collectionspace.chain.csp.config.ConfigException: Error loading config.
See messages for details: summary Exception raised during parsing at
org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78)
at
org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74)
at
org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54)
... 24 more

description The request sent by the client was syntactically incorrect

(org.collectionspace.chain.controller.BadRequestException: Cannot
initialise CSPs org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading config.
See messages for details: summary Exception raised during parsing at
org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185)
at
org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117)
at
org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:724) Caused by:
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading config.
See messages for details: summary Exception raised during parsing at
org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64)
at
org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156)
at
org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179)
... 22 more Caused by:
org.collectionspace.chain.csp.config.ConfigException: Error loading config.
See messages for details: summary Exception raised during parsing at
org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78)
at
org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74)
at
org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54)
... 24 more ).

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


From: "Aron Roberts" aronroberts@gmail.com
To: "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Friday, August 16, 2013 12:58:56 PM
Subject: Re: [Talk] deploy mvn error

Hi Al,

You likely will have success with 'mvn clean install -DskipTests'

when building and deploying the App layer with your dropdown list changes,
rather than 'mvn deploy -DskipTests'.

It's a bit confusing (and I hope I don't need to keep repeating this

:-), but CollectionSpace Services layer uses Maven to build artifacts and
Ant buildfiles to deploy (copy) them to the server (hence 'mvn clean
install' followed by 'ant deploy'), while the Application and UI layers use
Maven ('mvn install') for both tasks.  There are some historical and
technical reasons for this difference, not worth going into ...

Aron

On Fri, Aug 16, 2013 at 12:49 PM, Al Bersch abersch@museumca.org

wrote:

Hello all,

I changed our dropdown lists in Department and Collection in the

application layer source code, and when I ran mvn deploy -DskipTests I get
this error:

[ERROR] BUILD ERROR
[INFO]


[INFO] Failed to configure plugin parameters for:

org.apache.maven.plugins:maven-deploy-plugin:2.4

check that the following section of the pom.xml is present and

correct:

<distributionManagement> <!-- use the following if you're not using a snapshot version. --> <repository> <id>repo</id> <name>Repository Name</name> <url>scp://host/path/to/repo</url> </repository> <!-- use the following if you ARE using a snapshot version. --> <snapshotRepository> <id>repo</id> <name>Repository Name</name> <url>scp://host/path/to/repo</url> </snapshotRepository> </distributionManagement>

Cause: Class

'org.apache.maven.artifact.repository.ArtifactRepository' cannot be
instantiated

I looked in the pom.xml, and found this:

<!-- The CollectionSpace public Maven repository for "snapshot"

artifacts -->

<repositories> <repository> <id>libs-snapshot-local</id> <name>libs-snapshot-local</name> <url>
             <snapshots>
                     <enabled>true</enabled>
             </snapshots>

I'm wondering, which repository setting should I use (snapshot or not

snapshot)? Our installation is on a virtual server in linode.

And, does anyone know where I should set the path to our repository?

I'm guessing that the error is party due to the url being mapped to
nightly.collectionspace.org.

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

Hi Al, Just noticed a quick typo in the text you c/p into an earlier email. It looks like you might be missing a closing bracket in this line: I don't know if it's a c/p typo or not, so just thought I'd point it out! <include src="base-collectionobject.xml,omca-collectionobject.xml" merge="xmlmerge.properties"/ Also, how are you editing these files? Are you using a cli utility like emacs or vim? (Might you be using Cygwin on Windows?? I've used this in the past and there are sometimes encoding issues involved including end line chars.) I'm trying to deduce if there are encoding issues at play here. Personally speaking, I like to use a local editor when making quick changes on a remote server. What works for me on a Mac is a combination of Cyberduck (free sftp client) (or Transmit, which is well worth its price), and Sublime Text. Cyberduck can be set to automatically open editable files in Sublime Text and save them back to the remote server seamlessly. Sublime Text isn't a full-fledged IDE, but it is light-weight and has a lot of good tools for easily checking format and syntax based on file type. It's free, works on multiple OSs and my go-to code editor in a pinch. Aron also recommends good editors too. - Jesse On Tue, Aug 20, 2013 at 6:12 PM, Al Bersch <abersch@museumca.org> wrote: > Hi Aron, > > Thanks so much for addressing these questions. > > I entered the language at the end of your email into my /tomcat-main/src/main/resources/omca-tenant.xml > file, like this: > > <cspace-config tenantname="omca"> > > <version>11</version> > <!-- Note: omca-collectionobject.xml should not appear in the > 'include' line below --> > <!-- This line is for merging various settings files together. --> > <include src="settings.xml,local-omca-settings.xml" > merge="xmlmerge.properties" > strip-root="yes" /> > > <spec> > <include src="base-relations.xml"/> > <include src="base-schemas.xml"/> > > <records> > <enum-blank>Please select a value</enum-blank> > <!-- Here's where you can indicate that you want > to merge in your own Cataloging record changes --> > <include > src="base-collectionobject.xml,omca-collectionobject.xml" > merge="xmlmerge.properties"/ > <include src="base-procedure-acquisition.xml"/> > <include src="base-procedure-blobs.xml"/> > ... > > then re-created the omca-collectionobject.xml file (located at > tomcat-main/src/main/resources/tenants/omca) with this inside it: > > +<record id="collection-object"> > + > + <section id="identificationInformation"> > + <repeat id="responsibleDepartments" has-primary="yes"> > + > <selector>object-identification-responsible-department</selector> > + <field id="responsibleDepartment" ui-search="repeatable" > mini="search" > + seperate_ui_container="true"> > + > <selector>object-identification-responsible-department</selector> > + <options> > + <option id="">Please select a value</option> > + <option id="art">Art</option> > + <option id="history">History</option> > + <option id="science">Science</option> > + <option id="collections">Collections</option> > + <option id="education">Education</option> > + <option id="professionalservices">Professional > Services</option> > + <option id="multi">Multi</option> > + </options> > + </field> > + </repeat> > + <field id="collection" ui-search="repeatable" > seperate_ui_container="true"> > + <selector>object-identification-collection</selector> > + <options> > + <option id="">Please select a value</option> > + <option id="art">Art</option> > + <option id="artandartifact">Art and Artifact</option> > + <option id="exhibit">Exhibit</option> > + <option id="history">History</option> > + <option id="scientomology">SCI-Entomology</option> > + <option id="scifineart">SCI-Fine Art</option> > + <option id="scigalleryspecimens">SCI-Gallery > Specimens</option> > + <option id="scigeology">SCI-Geology</option> > + <option id="sciherbarium">SCI-Herbarium</option> > + <option id="sciherpetology">SCI-Herpetology</option> > + <option id="sciicthyology">SCI-Icthyology</option> > + <option id="sciinvertebrates">SCI-Invertebrates</option> > + <option id="scilapidary">SCI-Lapidary</option> > + <option id="scimalacology">SCI-Malacology</option> > + <option id="scimammalogy">SCI-Mammalogy</option> > + <option id="scimiscellaneous">SCI-Miscellaneous</option> > + <option id="sciornithology">SCI-Ornithology</option> > + <option id="scipaleontology">SCI-Paleontology</option> > + <option id="sciphoto">SCI-Photo</option> > + <option id="scisnuffbottles">SCI-Snuff Bottles</option> > + <option id="specimen">Specimen</option> > + </options> > + </field> > + </section> > + > +</record> > > But alas, I'm still getting the same error message when I log into my > tenant. > > If it matters, I looked in my settings.xml file and get a big chunk of > this: ^@^@^@^@^@^@^. > > do you see anything wrong here in the files I copied? > > thanks, > > 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" <aronroberts@gmail.com> > *To: *"Al Bersch" <abersch@museumca.org> > *Cc: *"talk" <talk@lists.collectionspace.org> > *Sent: *Monday, August 19, 2013 5:39:58 PM > > *Subject: *Re: [Talk] deploy mvn error > > Hi Al, > > My sincere apologies for these difficulties you've been encountering. > > > It looks like the problem is with merging settings.xml and > local-omca-settings.xml? > > Yes, that certainly looks like the case. > > This line appeared in part of the output from this error, in > catalina.out: > > > 2013-08-19 21:46:13,364 ERROR [http-8180-3] ... Message: Exception > raised during parsing > > Stack : > org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61) > > From looking at the Application layer's code at line 61 of > AssemblingParser.java: > > https://github.com/collectionspace/application/blob/v3.3/csp-impl/src/main/java/org/collectionspace/chain/csp/config/impl/parser/AssemblingParser.java#L61 > it appears the error is in reading or merging XML content, rather than in > not finding either of the two files to be merged, or in not being able to > read them as a result of insufficient access permissions or other > filesystem-related issues. > > It appears that you might potentially be inadvertently trying to merge > two dissimilar things: a settings file for your tenant (which contains some > general administrative settings), together with some field-level settings > for a particular record type. > > If you'd like to merge custom changes into the Cataloging record, such > as changing the contents of options lists, here's an example of how you can > specify that, as shown line 12 of the tenant 'includes' file for the UCJEPS > herbaria: > > > https://github.com/cspace-deployment/application/blob/ucjeps_3.2/tomcat-main/src/main/resources/ucjeps-tenant.xml#L12 > > Following that example, your > /tomcat-main/src/main/resources/omca-tenant.xml file might look something > like the following: > > <cspace-config tenantname="omca"> > <version>11</version> > <!-- Note: omca-collectionobject.xml should not appear in the > 'include' line below --> > <!-- This line is for merging various settings files together. --> > <include src="settings.xml,local-settings.xml" > merge="xmlmerge-settings.properties" strip-root="yes"/> > ... > <records> > <enum-blank>Please select a value</enum-blank> > <!-- Here's where you can indicate that you want to merge in your own > Cataloging record changes --> > <include src="base-collectionobject.xml,omca-collectionobject.xml" > merge="xmlmerge.properties"/> > ... > > Aron > > On Mon, Aug 19, 2013 at 4:28 PM, Al Bersch <abersch@museumca.org> wrote: > > > > Hi Aron, > > > > Thanks so much again for your continued assistance. And for the plug for > using github as a backup resource - I'll do that, and also apologize in > advance for the cut-and-paste text below. > > > > I installed DiffMerge, but I'm not sure what to compare, since the file > I added to the omca tenant (omca-collectionobject.xml), wasn't there in the > previous snapshot. I think I'm a little confused. > > > > I looked in the cspace-app.log and catalina.out (can you tell me where I > might find catalina.(today'sdate).log?) and here are some snippets, first > from cspace-app.log: > > > > 2013-08-19 21:46:13,363 WARN [http-8180-3] > [org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:218] > Could not merge the include files: settings.xml,local-omca-settings.xml > > 2013-08-19 21:46:13,364 ERROR [http-8180-3] > [org.collectionspace.chain.csp.config.impl.parser.ConfigLoadingMessagesImpl:16] > Message: Exception raised during parsing > > > > Stack : > org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61) > > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse (62) > > org.collectionspace.csp.container.impl.CSPManagerImpl.configure (54) > > org.collectionspace.chain.controller.TenantServlet.load_config (156) > > org.collectionspace.chain.controller.TenantServlet.setup (179) > > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant > (117) > > org.collectionspace.chain.controller.TenantUIServlet.service (568) > > javax.servlet.http.HttpServlet.service (717) > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (290) > > org.apache.catalina.core.ApplicationFilterChain.doFilter (206) > > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter (33) > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235) > > org.apache.catalina.core.ApplicationFilterChain.doFilter (206) > > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter (99) > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235) > > org.apache.catalina.core.ApplicationFilterChain.doFilter (206) > > org.apache.catalina.core.StandardWrapperValve.invoke (233) > > org.apache.catalina.core.StandardContextValve.invoke (191) > > org.apache.catalina.core.StandardHostValve.invoke (127) > > org.apache.catalina.valves.ErrorReportValve.invoke (102) > > org.apache.catalina.valves.AccessLogValve.invoke (589) > > org.apache.catalina.core.StandardEngineValve.invoke (109) > > org.apache.catalina.connector.CoyoteAdapter.service (291) > > org.apache.coyote.http11.Http11Processor.process (859) > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process > (602) > > org.apache.tomcat.util.net.JIoEndpoint$Worker.run (489) > > java.lang.Thread.run (724) > > > > CAUSED BY > > Message: Could not load source > > > > > > > > then from catalina.out: > > > > 2013-08-19 17:49:25,334 ERROR [main] > [org.collectionspace.services.common.config.ConfigUtils:51] No domain name > was specified on call to getRepositoryName() method.2013-08-19 17:49:25,334 > ERROR [main] [org.collectionspace.services.common.config.ConfigUtils:51] No > domain name was specified on call to getRepositoryName() method.2013-08-19 > 17:49:25,334 ERROR [main] > [org.collectionspace.services.common.config.ConfigUtils:51] No domain name > was specified on call to getRepositoryName() method.[INFO] Starting up the > CollectionSpace Services' JAX-RS application.Static initializtion of: > org.collectionspace.services.common.security.SecurityInterceptor[INFO] > CollectionSpace Services' JAX-RS application started.2013-08-19 > 17:49:27,339 (0) [http-8180-4] INFO > org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler: > XMLMerge result output to: > /usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19 > 17:49:29,695 (2356) [http-8180-2] INFO > org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler: > XMLMerge result output to: > /usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19 > 17:49:29,732 (2393) [net.sf.ehcache.CacheManager@23aeae74] INFO > net.sf.ehcache.util.UpdateChecker: New update(s) found: 2.6.5 [ > http://www.terracotta.org/confluence/display/release/Release+Notes+Ehcache+Core+2.6]. > Please check http://ehcache.org for the latest version.Could not get > session from CSPACESESSID cookie with value: > 31b6c5daf4d4180636604cb25ac9f75f2013-08-19 17:49:47,810 WARN [http-8180-7] > [org.collectionspace.services.common.security.SecurityInterceptor:358] > Attempt to logout when Nuxeo login context was null2013-08-19 17:49:47,953 > WARN [http-8180-7] > [org.springframework.security.web.context.HttpSessionSecurityContextRepository:396] > Failed to create a session, as response has been committed. Unable to store > SecurityContext.2013-08-19 17:49:48,765 WARN [http-8180-7] > [org.collectionspace.services.common.security.SecurityInterceptor:358] > Attempt to logout when Nuxeo login context was null2013-08-19 17:49:48,773 > WARN [http-8180-7] > [org.springframework.security.web.context.HttpSessionSecurityContextRepository:396] > Failed to create a session, as response has been committed. Unable to store > SecurityContext.2013-08-19 21:07:17,771 ERROR > [ContainerBackgroundProcessor[StandardEngine[Catalina]]] > [org.apache.catalina.loader.WebappClassLoader:2191] The web application > [/collectionspace] appears to have started a thread named > [net.sf.ehcache.CacheManager@23aeae74] but has failed to stop it. This is > very likely to create a memory leak.2013-08-19 21:07:17,772 ERROR > [ContainerBackgroundProcessor[StandardEngine[Catalina]]] > [org.apache.catalina.loader.WebappClassLoader:2191] The web application > [/collectionspace] appears to have started a thread named > [MultiThreadedHttpConnectionManager cleanup] but has failed to stop it. > This is very likely to create a memory leak.2013-08-19 21:07:17,780 ERROR > [ContainerBackgroundProcessor[StandardEngine[Catalina]]] > [org.apache.catalina.loader.WebappClassLoader:2453] The web application > [/collectionspace] created a ThreadLocal with key of type > [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value > [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a value > of type [java.util.HashMap] (value [{}]) but failed to remove it when the > web application was stopped. This is very likely to create a memory > leak.2013-08-19 21:07:17,781 ERROR > [ContainerBackgroundProcessor[StandardEngine[Catalina]]] > [org.apache.catalina.loader.WebappClassLoader:2453] The web application > [/collectionspace] created a ThreadLocal with key of type > [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value > [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a value > of type [java.util.HashMap] (value [{}]) but failed to remove it when the > web application was stopped. This is very likely to create a memory > leak.2013-08-19 21:09:34,685 (0) [http-8180-4] WARN > org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler: > Could not merge the include files: settings.xml,local-omca-settings.xml > > > > > > It looks like the problem is with merging settings.xml and > local-omca-settings.xml? > > > > I've tried a second time to create the configuration change in > omca-collectionobject.xml (a newly created xml file with only this snippet > in it: > > > > +<record id="collection-object"> > > + > > + <section id="identificationInformation"> > > + <repeat id="responsibleDepartments" has-primary="yes"> > > + > <selector>object-identification-responsible-department</selector> > > + <field id="responsibleDepartment" ui-search="repeatable" > mini="search" > > + seperate_ui_container="true"> > > + > <selector>object-identification-responsible-department</selector> > > + <options> > > + <option id="">Please select a value</option> > > + <option id="art">Art</option> > > + <option id="history">History</option> > > + <option id="science">Science</option> > > + <option id="collections">Collections</option> > > + <option id="education">Education</option> > > + <option id="professionalservices">Professional > Services</option> > > + <option id="multi">Multi</option> > > + </options> > > + </field> > > + </repeat> > > + <field id="collection" ui-search="repeatable" > seperate_ui_container="true"> > > + <selector>object-identification-collection</selector> > > + <options> > > + <option id="">Please select a value</option> > > + <option id="art">Art</option> > > + <option id="artandartifact">Art and Artifact</option> > > + <option id="exhibit">Exhibit</option> > > + <option id="history">History</option> > > + <option id="scientomology">SCI-Entomology</option> > > + <option id="scifineart">SCI-Fine Art</option> > > + <option id="scigalleryspecimens">SCI-Gallery > Specimens</option> > > + <option id="scigeology">SCI-Geology</option> > > + <option id="sciherbarium">SCI-Herbarium</option> > > + <option id="sciherpetology">SCI-Herpetology</option> > > + <option id="sciicthyology">SCI-Icthyology</option> > > + <option id="sciinvertebrates">SCI-Invertebrates</option> > > + <option id="scilapidary">SCI-Lapidary</option> > > + <option id="scimalacology">SCI-Malacology</option> > > + <option id="scimammalogy">SCI-Mammalogy</option> > > + <option id="scimiscellaneous">SCI-Miscellaneous</option> > > + <option id="sciornithology">SCI-Ornithology</option> > > + <option id="scipaleontology">SCI-Paleontology</option> > > + <option id="sciphoto">SCI-Photo</option> > > + <option id="scisnuffbottles">SCI-Snuff Bottles</option> > > + <option id="specimen">Specimen</option> > > + </options> > > + </field> > > + </section> > > + > > +</record> > > > > > > > > then according to your last email, I ran "mvn clean install -DskipTest" > rather than "mvn deploy -DskipTests". I ran this in the application layer > folder called "application" that contains the pom.xml file. In my path it > looks like /home/root/application-source/application/. Then, do I > understand I also need to run "ant deploy"? I wasn't able to run this in > the same folder - I got an error saying this is no build file. > > > > I'm going off your previous instructions, as well as the documentation > on the wiki for customizing the application layer: > > > > Hi Becky and Al, > > One more set of notes on making 'starting out' customizations, > > below: this one a customization of options in dropdown menus. > > Aron > > (Recommendation: start the CollectionSpace server before making the > > following changes. This will help ensure those changes are made > > 'live.') > > * An example of how to replace the default sets of options in the > > dropdown menus for the Responsible Department and OMCA Collection > > fields. > > The existing documentation on updating these option lists is > > confusing, and wildly out of date; we expect to be updating it in the > > near future. The customization method shown here as an example > > reflects recently-added 'merge' capabilities that allow you to simply > > replicate the block of configuration you want to customize, within a > > separate file for your own museum; it will override the corresponding > > configuration block in the default settings: > > Actual change(s) made, within the source code tree for > > CollectionSpace's Application layer: > > > https://github.com/aronr/application/commit/b7a47d94fc6d44d0cad74f6444710a35373291c7 > > You can compare this to the default configuration file for the > > Cataloging record, in which the default options for those two dropdown > > menus appear: > > > https://github.com/aronr/application/blob/b7a47d94fc6d44d0cad74f6444710a35373291c7/tomcat-main/src/main/resources/defaults/base-collectionobject.xml#L112 > > To copy (deploy) these changes to the server folder, enter the > > following at a command prompt, from within the top-level folder of the > > Application source code tree: > > mvn deploy -DskipTests > > > > > > > > Sorry I'm not getting this! Do you have any ideas? > > > > 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" <aronroberts@gmail.com> > > To: "Al Bersch" <abersch@museumca.org> > > Cc: "talk" <talk@lists.collectionspace.org> > > Sent: Friday, August 16, 2013 1:28:48 PM > > > > Subject: Re: [Talk] deploy mvn error > > > > The key is likely this snippet, from near the beginning of that long and > singularly unhelpful chain of messages: > > "org.collectionspace.chain.csp.config.ConfigException: Error loading > config" > > > > There may have been an error made in whatever configuration file, or > files, were modified. After they were deployed (copied) to the server, > when the Application layer read them, it got confused and barfed out this > long stack trace. > > > > Typically, this means the file(s), after being modified, weren't > well-formed XML - perhaps an ending tag was left out somewhere? - or they > didn't conform to the Application layer's expectation of what 'tags' (XML > elements) are expected, in which hierarchical locations within the file. > > > > Yes, reverting to a snapshot and re-deploying (via 'mvn clean install > -DskipTests') and restarting Tomcat, should resolve the issue. You might > also try, however, using a utility app that can show you differences > between two files - your current version and your snapshot - and see if the > error is readily made apparent by looking at those changes in that 'diff' > view. (If you're using Mac OS X, there's a list of such apps at > http://apple.stackexchange.com/a/87188) > > > > It's also worth checking the current cspace-app.log and > catalina.{today's date}.log to see if there may be any log message > specifically pinpointing the configuration error. > > > > Aron > > > > On Fri, Aug 16, 2013 at 1:16 PM, Al Bersch <abersch@museumca.org> wrote: > > > > > > Hi again, > > > > > > Ok, I think I must have messed up somewhere when changing the files in > the application layer. When I navigated to our tenant, the login screen is > blank except for a place to put a user name and password. when I submit my > password, I get this message: Any idea what I did wrong? Thanks! > > > > > > I have a snapshot prior to the changes in the application layer, so I > can always go back in time and try again. > > > > > > Al > > > > > > HTTP Status 400 - > org.collectionspace.chain.controller.BadRequestException: Cannot initialise > CSPs org.collectionspace.csp.api.core.CSPDependencyException: > org.collectionspace.chain.csp.config.ConfigException: Error loading config. > See messages for details: summary Exception raised during parsing at > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185) > at > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117) > at > org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) > at java.lang.Thread.run(Thread.java:724) Caused by: > org.collectionspace.csp.api.core.CSPDependencyException: > org.collectionspace.chain.csp.config.ConfigException: Error loading config. > See messages for details: summary Exception raised during parsing at > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64) > at > org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156) > at > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179) > ... 22 more Caused by: > org.collectionspace.chain.csp.config.ConfigException: Error loading config. > See messages for details: summary Exception raised during parsing at > org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78) > at > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74) > at > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54) > ... 24 more > > > > > > ________________________________ > > > > > > type Status report > > > > > > message org.collectionspace.chain.controller.BadRequestException: > Cannot initialise CSPs > org.collectionspace.csp.api.core.CSPDependencyException: > org.collectionspace.chain.csp.config.ConfigException: Error loading config. > See messages for details: summary Exception raised during parsing at > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185) > at > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117) > at > org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) > at java.lang.Thread.run(Thread.java:724) Caused by: > org.collectionspace.csp.api.core.CSPDependencyException: > org.collectionspace.chain.csp.config.ConfigException: Error loading config. > See messages for details: summary Exception raised during parsing at > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64) > at > org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156) > at > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179) > ... 22 more Caused by: > org.collectionspace.chain.csp.config.ConfigException: Error loading config. > See messages for details: summary Exception raised during parsing at > org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78) > at > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74) > at > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54) > ... 24 more > > > > > > description The request sent by the client was syntactically incorrect > (org.collectionspace.chain.controller.BadRequestException: Cannot > initialise CSPs org.collectionspace.csp.api.core.CSPDependencyException: > org.collectionspace.chain.csp.config.ConfigException: Error loading config. > See messages for details: summary Exception raised during parsing at > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185) > at > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117) > at > org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) > at java.lang.Thread.run(Thread.java:724) Caused by: > org.collectionspace.csp.api.core.CSPDependencyException: > org.collectionspace.chain.csp.config.ConfigException: Error loading config. > See messages for details: summary Exception raised during parsing at > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64) > at > org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156) > at > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179) > ... 22 more Caused by: > org.collectionspace.chain.csp.config.ConfigException: Error loading config. > See messages for details: summary Exception raised during parsing at > org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78) > at > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74) > at > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54) > ... 24 more ). > > > > > > > > > Al Bersch > > > Digital Project Coordinator > > > Oakland Museum of California > > > 1000 Oak Street, Oakland, CA 94607 > > > abersch@museumca.org > > > 510-318-8468 > > > ________________________________ > > > From: "Aron Roberts" <aronroberts@gmail.com> > > > To: "Al Bersch" <abersch@museumca.org> > > > Cc: "talk" <talk@lists.collectionspace.org> > > > Sent: Friday, August 16, 2013 12:58:56 PM > > > Subject: Re: [Talk] deploy mvn error > > > > > > Hi Al, > > > > > > You likely will have success with 'mvn clean install -DskipTests' > when building and deploying the App layer with your dropdown list changes, > rather than 'mvn deploy -DskipTests'. > > > > > > It's a bit confusing (and I hope I don't need to keep repeating this > :-), but CollectionSpace Services layer uses Maven to build artifacts and > Ant buildfiles to deploy (copy) them to the server (hence 'mvn clean > install' followed by 'ant deploy'), while the Application and UI layers use > Maven ('mvn install') for both tasks. There are some historical and > technical reasons for this difference, not worth going into ... > > > > > > Aron > > > > > > > > > On Fri, Aug 16, 2013 at 12:49 PM, Al Bersch <abersch@museumca.org> > wrote: > > >> > > >> Hello all, > > >> > > >> I changed our dropdown lists in Department and Collection in the > application layer source code, and when I ran mvn deploy -DskipTests I get > this error: > > >> > > >> [ERROR] BUILD ERROR > > >> [INFO] > ------------------------------------------------------------------------ > > >> [INFO] Failed to configure plugin parameters for: > org.apache.maven.plugins:maven-deploy-plugin:2.4 > > >> > > >> check that the following section of the pom.xml is present and > correct: > > >> > > >> <distributionManagement> > > >> <!-- use the following if you're not using a snapshot version. --> > > >> <repository> > > >> <id>repo</id> > > >> <name>Repository Name</name> > > >> <url>scp://host/path/to/repo</url> > > >> </repository> > > >> <!-- use the following if you ARE using a snapshot version. --> > > >> <snapshotRepository> > > >> <id>repo</id> > > >> <name>Repository Name</name> > > >> <url>scp://host/path/to/repo</url> > > >> </snapshotRepository> > > >> </distributionManagement> > > >> > > >> Cause: Class > 'org.apache.maven.artifact.repository.ArtifactRepository' cannot be > instantiated > > >> > > >> > > >> > > >> I looked in the pom.xml, and found this: > > >> > > >> <!-- The CollectionSpace public Maven repository for "snapshot" > artifacts --> > > >> <repositories> > > >> <repository> > > >> <id>libs-snapshot-local</id> > > >> <name>libs-snapshot-local</name> > > >> <url> > http://nightly.collectionspace.org:8081/artifactory/libs-snapshot-local > </url> > > >> <snapshots> > > >> <enabled>true</enabled> > > >> </snapshots> > > >> > > >> > > >> I'm wondering, which repository setting should I use (snapshot or not > snapshot)? Our installation is on a virtual server in linode. > > >> > > >> And, does anyone know where I should set the path to our repository? > I'm guessing that the error is party due to the url being mapped to > nightly.collectionspace.org. > > >> > > >> 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
Tue, Aug 20, 2013 11:31 PM

Thanks, Jesse!

As yet another possibility, along with the other options mentioned,
the (free) TextWrangler editor can directly open files on a remote
system via SFTP:

http://reviews.cnet.com/8301-13727_7-57502913-263/how-to-use-textwrangler-as-a-remote-file-editor/

On Tue, Aug 20, 2013 at 4:12 PM, Jesse Martinez mjesse@gmail.com wrote:

Hi Al,

Just noticed a quick typo in the text you c/p into an earlier email.  It
looks like you might be missing a closing bracket in this line: I don't know
if it's a c/p typo or not, so just thought I'd point it out!

<include src="base-collectionobject.xml,omca-collectionobject.xml"
merge="xmlmerge.properties"/

Also, how are you editing these files? Are you using a cli utility like
emacs or vim? (Might you be using Cygwin on Windows?? I've used this in the
past and there are sometimes encoding issues involved including end line
chars.) I'm trying to deduce if there are encoding issues at play here.

Personally speaking, I like to use a local editor when making quick changes
on a remote server. What works for me on a Mac is a combination of Cyberduck
(free sftp client) (or Transmit, which is well worth its price), and Sublime
Text. Cyberduck can be set to automatically open editable files in Sublime
Text and save them back to the remote server seamlessly. Sublime Text isn't
a full-fledged IDE, but it is light-weight and has a lot of good tools for
easily checking format and syntax based on file type. It's free, works on
multiple OSs and my go-to code editor in a pinch. Aron also recommends good
editors too.

  • Jesse

On Tue, Aug 20, 2013 at 6:12 PM, Al Bersch abersch@museumca.org wrote:

Hi Aron,

Thanks so much for addressing these questions.

I entered the language at the end of your email into my
/tomcat-main/src/main/resources/omca-tenant.xml file, like this:

<cspace-config tenantname="omca">
     <version>11</version>
     <!-- Note: omca-collectionobject.xml should not appear in the

'include' line below -->
<!-- This line is for merging various settings files together. -->
<include src="settings.xml,local-omca-settings.xml" merge="xmlmerge.properties" strip-root="yes" />

     <spec>
             <include src="base-relations.xml"/>
             <include src="base-schemas.xml"/>

             <records>
                     <enum-blank>Please select a value</enum-blank>
                     <!-- Here's where you can indicate that you want

to merge in your own Cataloging record changes -->
<include
src="base-collectionobject.xml,omca-collectionobject.xml"
merge="xmlmerge.properties"/
<include src="base-procedure-acquisition.xml"/>
<include src="base-procedure-blobs.xml"/>
...

then re-created the omca-collectionobject.xml file (located at
tomcat-main/src/main/resources/tenants/omca) with this inside it:

+<record id="collection-object">
+

  • <section id="identificationInformation">
  •    <repeat id="responsibleDepartments" has-primary="yes">
    

<selector>object-identification-responsible-department</selector>

  •        <field id="responsibleDepartment" ui-search="repeatable"
    

mini="search"

  •         seperate_ui_container="true">
    

<selector>object-identification-responsible-department</selector>

  •            <options>
    
  •                <option id="">Please select a value</option>
    
  •                <option id="art">Art</option>
    
  •                <option id="history">History</option>
    
  •                <option id="science">Science</option>
    
  •                <option id="collections">Collections</option>
    
  •                <option id="education">Education</option>
    
  •                <option id="professionalservices">Professional
    

Services</option>

  •                <option id="multi">Multi</option>
    
  •            </options>
    
  •        </field>
    
  •    </repeat>
    
  •    <field id="collection" ui-search="repeatable"
    

seperate_ui_container="true">

  •        <selector>object-identification-collection</selector>
    
  •        <options>
    
  •           <option id="">Please select a value</option>
    
  •           <option id="art">Art</option>
    
  •           <option id="artandartifact">Art and Artifact</option>
    
  •           <option id="exhibit">Exhibit</option>
    
  •           <option id="history">History</option>
    
  •           <option id="scientomology">SCI-Entomology</option>
    
  •           <option id="scifineart">SCI-Fine Art</option>
    
  •           <option id="scigalleryspecimens">SCI-Gallery
    

Specimens</option>

  •           <option id="scigeology">SCI-Geology</option>
    
  •           <option id="sciherbarium">SCI-Herbarium</option>
    
  •           <option id="sciherpetology">SCI-Herpetology</option>
    
  •           <option id="sciicthyology">SCI-Icthyology</option>
    
  •           <option id="sciinvertebrates">SCI-Invertebrates</option>
    
  •           <option id="scilapidary">SCI-Lapidary</option>
    
  •           <option id="scimalacology">SCI-Malacology</option>
    
  •           <option id="scimammalogy">SCI-Mammalogy</option>
    
  •           <option id="scimiscellaneous">SCI-Miscellaneous</option>
    
  •           <option id="sciornithology">SCI-Ornithology</option>
    
  •           <option id="scipaleontology">SCI-Paleontology</option>
    
  •           <option id="sciphoto">SCI-Photo</option>
    
  •           <option id="scisnuffbottles">SCI-Snuff Bottles</option>
    
  •           <option id="specimen">Specimen</option>
    
  •        </options>
    
  •    </field>
    
  • </section>

+</record>

But alas, I'm still getting the same error message when I log into my
tenant.

If it matters, I looked in my settings.xml file and get a big chunk of
this: ^@^@^@^@^@^@^.

do you see anything wrong here in the files I copied?

thanks,

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" aronroberts@gmail.com
To: "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Monday, August 19, 2013 5:39:58 PM

Subject: Re: [Talk] deploy mvn error

Hi Al,

My sincere apologies for these difficulties you've been encountering.

It looks like the problem is with merging settings.xml and
local-omca-settings.xml?

Yes, that certainly looks like the case.

This line appeared in part of the output from this error, in
catalina.out:

2013-08-19 21:46:13,364 ERROR [http-8180-3] ... Message: Exception
raised during parsing
Stack :
org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61)

From looking at the Application layer's code at line 61 of
AssemblingParser.java:

https://github.com/collectionspace/application/blob/v3.3/csp-impl/src/main/java/org/collectionspace/chain/csp/config/impl/parser/AssemblingParser.java#L61
it appears the error is in reading or merging XML content, rather than in
not finding either of the two files to be merged, or in not being able to
read them as a result of insufficient access permissions or other
filesystem-related issues.

It appears that you might potentially be inadvertently trying to merge
two dissimilar things: a settings file for your tenant (which contains some
general administrative settings), together with some field-level settings
for a particular record type.

If you'd like to merge custom changes into the Cataloging record, such
as changing the contents of options lists, here's an example of how you can
specify that, as shown line 12 of the tenant 'includes' file for the UCJEPS
herbaria:

https://github.com/cspace-deployment/application/blob/ucjeps_3.2/tomcat-main/src/main/resources/ucjeps-tenant.xml#L12

Following that example, your
/tomcat-main/src/main/resources/omca-tenant.xml file might look something
like the following:

<cspace-config tenantname="omca"> <version>11</version> <!-- Note: omca-collectionobject.xml should not appear in the 'include' line below --> <!-- This line is for merging various settings files together. --> <include src="settings.xml,local-settings.xml" merge="xmlmerge-settings.properties" strip-root="yes"/> ... <records> <enum-blank>Please select a value</enum-blank> <!-- Here's where you can indicate that you want to merge in your own Cataloging record changes --> <include src="base-collectionobject.xml,omca-collectionobject.xml" merge="xmlmerge.properties"/> ...

Aron

On Mon, Aug 19, 2013 at 4:28 PM, Al Bersch abersch@museumca.org wrote:

Hi Aron,

Thanks so much again for your continued assistance. And for the plug for
using github as a backup resource - I'll do that, and also apologize in
advance for the cut-and-paste text below.

I installed DiffMerge, but I'm not sure what to compare, since the file
I added to the omca tenant (omca-collectionobject.xml), wasn't there in the
previous snapshot. I think I'm a little confused.

I looked in the cspace-app.log and catalina.out (can you tell me where I
might find catalina.(today'sdate).log?) and here are some snippets, first
from cspace-app.log:

2013-08-19 21:46:13,363 WARN  [http-8180-3]
[org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:218]
Could not merge the include files: settings.xml,local-omca-settings.xml
2013-08-19 21:46:13,364 ERROR [http-8180-3]
[org.collectionspace.chain.csp.config.impl.parser.ConfigLoadingMessagesImpl:16]
Message: Exception raised during parsing

Stack :
org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61)
org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse (62)
org.collectionspace.csp.container.impl.CSPManagerImpl.configure (54)
org.collectionspace.chain.controller.TenantServlet.load_config (156)
org.collectionspace.chain.controller.TenantServlet.setup (179)
org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant
(117)
org.collectionspace.chain.controller.TenantUIServlet.service (568)
javax.servlet.http.HttpServlet.service (717)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (290)
org.apache.catalina.core.ApplicationFilterChain.doFilter (206)
org.collectionspace.chain.controller.filters.PerflogFilter.doFilter (33)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235)
org.apache.catalina.core.ApplicationFilterChain.doFilter (206)
org.collectionspace.chain.controller.filters.CharSetFilter.doFilter (99)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235)
org.apache.catalina.core.ApplicationFilterChain.doFilter (206)
org.apache.catalina.core.StandardWrapperValve.invoke (233)
org.apache.catalina.core.StandardContextValve.invoke (191)
org.apache.catalina.core.StandardHostValve.invoke (127)
org.apache.catalina.valves.ErrorReportValve.invoke (102)
org.apache.catalina.valves.AccessLogValve.invoke (589)
org.apache.catalina.core.StandardEngineValve.invoke (109)
org.apache.catalina.connector.CoyoteAdapter.service (291)
org.apache.coyote.http11.Http11Processor.process (859)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
(602)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run (489)
java.lang.Thread.run (724)

CAUSED BY
Message: Could not load source

then from catalina.out:

2013-08-19 17:49:25,334 ERROR [main]
[org.collectionspace.services.common.config.ConfigUtils:51] No domain name
was specified on call to getRepositoryName() method.2013-08-19 17:49:25,334
ERROR [main] [org.collectionspace.services.common.config.ConfigUtils:51] No
domain name was specified on call to getRepositoryName() method.2013-08-19
17:49:25,334 ERROR [main]
[org.collectionspace.services.common.config.ConfigUtils:51] No domain name
was specified on call to getRepositoryName() method.[INFO] Starting up the
CollectionSpace Services' JAX-RS application.Static initializtion of:
org.collectionspace.services.common.security.SecurityInterceptor[INFO]
CollectionSpace Services' JAX-RS application started.2013-08-19 17:49:27,339
(0) [http-8180-4] INFO
org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:
XMLMerge result output to:
/usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19
17:49:29,695 (2356) [http-8180-2] INFO
org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:
XMLMerge result output to:
/usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19
17:49:29,732 (2393) [net.sf.ehcache.CacheManager@23aeae74] INFO
net.sf.ehcache.util.UpdateChecker: New update(s) found: 2.6.5
[http://www.terracotta.org/confluence/display/release/Release+Notes+Ehcache+Core+2.6].
Please check http://ehcache.org for the latest version.Could not get session
from CSPACESESSID cookie with value:
31b6c5daf4d4180636604cb25ac9f75f2013-08-19 17:49:47,810 WARN  [http-8180-7]
[org.collectionspace.services.common.security.SecurityInterceptor:358]
Attempt to logout when Nuxeo login context was null2013-08-19 17:49:47,953
WARN  [http-8180-7]
[org.springframework.security.web.context.HttpSessionSecurityContextRepository:396]
Failed to create a session, as response has been committed. Unable to store
SecurityContext.2013-08-19 17:49:48,765 WARN  [http-8180-7]
[org.collectionspace.services.common.security.SecurityInterceptor:358]
Attempt to logout when Nuxeo login context was null2013-08-19 17:49:48,773
WARN  [http-8180-7]
[org.springframework.security.web.context.HttpSessionSecurityContextRepository:396]
Failed to create a session, as response has been committed. Unable to store
SecurityContext.2013-08-19 21:07:17,771 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2191] The web application
[/collectionspace] appears to have started a thread named
[net.sf.ehcache.CacheManager@23aeae74] but has failed to stop it. This is
very likely to create a memory leak.2013-08-19 21:07:17,772 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2191] The web application
[/collectionspace] appears to have started a thread named
[MultiThreadedHttpConnectionManager cleanup] but has failed to stop it. This
is very likely to create a memory leak.2013-08-19 21:07:17,780 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2453] The web application
[/collectionspace] created a ThreadLocal with key of type
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a value of
type [java.util.HashMap] (value [{}]) but failed to remove it when the web
application was stopped. This is very likely to create a memory
leak.2013-08-19 21:07:17,781 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2453] The web application
[/collectionspace] created a ThreadLocal with key of type
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a value of
type [java.util.HashMap] (value [{}]) but failed to remove it when the web
application was stopped. This is very likely to create a memory
leak.2013-08-19 21:09:34,685 (0) [http-8180-4] WARN
org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:
Could not merge the include files: settings.xml,local-omca-settings.xml

It looks like the problem is with merging settings.xml and
local-omca-settings.xml?

I've tried a second time to create the configuration change in
omca-collectionobject.xml (a newly created xml file with only this snippet
in it:

+<record id="collection-object">
+

  • <section id="identificationInformation">
  •    <repeat id="responsibleDepartments" has-primary="yes">
    

<selector>object-identification-responsible-department</selector>

  •        <field id="responsibleDepartment" ui-search="repeatable"
    

mini="search"

  •         seperate_ui_container="true">
    

<selector>object-identification-responsible-department</selector>

  •            <options>
    
  •                <option id="">Please select a value</option>
    
  •                <option id="art">Art</option>
    
  •                <option id="history">History</option>
    
  •                <option id="science">Science</option>
    
  •                <option id="collections">Collections</option>
    
  •                <option id="education">Education</option>
    
  •                <option id="professionalservices">Professional
    

Services</option>

  •                <option id="multi">Multi</option>
    
  •            </options>
    
  •        </field>
    
  •    </repeat>
    
  •    <field id="collection" ui-search="repeatable"
    

seperate_ui_container="true">

  •        <selector>object-identification-collection</selector>
    
  •        <options>
    
  •           <option id="">Please select a value</option>
    
  •           <option id="art">Art</option>
    
  •           <option id="artandartifact">Art and Artifact</option>
    
  •           <option id="exhibit">Exhibit</option>
    
  •           <option id="history">History</option>
    
  •           <option id="scientomology">SCI-Entomology</option>
    
  •           <option id="scifineart">SCI-Fine Art</option>
    
  •           <option id="scigalleryspecimens">SCI-Gallery
    

Specimens</option>

  •           <option id="scigeology">SCI-Geology</option>
    
  •           <option id="sciherbarium">SCI-Herbarium</option>
    
  •           <option id="sciherpetology">SCI-Herpetology</option>
    
  •           <option id="sciicthyology">SCI-Icthyology</option>
    
  •           <option id="sciinvertebrates">SCI-Invertebrates</option>
    
  •           <option id="scilapidary">SCI-Lapidary</option>
    
  •           <option id="scimalacology">SCI-Malacology</option>
    
  •           <option id="scimammalogy">SCI-Mammalogy</option>
    
  •           <option id="scimiscellaneous">SCI-Miscellaneous</option>
    
  •           <option id="sciornithology">SCI-Ornithology</option>
    
  •           <option id="scipaleontology">SCI-Paleontology</option>
    
  •           <option id="sciphoto">SCI-Photo</option>
    
  •           <option id="scisnuffbottles">SCI-Snuff Bottles</option>
    
  •           <option id="specimen">Specimen</option>
    
  •        </options>
    
  •    </field>
    
  • </section>

+</record>

then according to your last email, I ran "mvn clean install -DskipTest"
rather than "mvn deploy -DskipTests". I ran this in the application layer
folder called "application" that contains the pom.xml file. In my path it
looks like /home/root/application-source/application/. Then, do I understand
I also need to run "ant deploy"? I wasn't able to run this in the same
folder - I got an error saying this is no build file.

I'm going off your previous instructions, as well as the documentation
on the wiki for customizing the application layer:

Hi Becky and Al,
One more set of notes on making 'starting out' customizations,
below: this one a customization of options in dropdown menus.
Aron
(Recommendation: start the CollectionSpace server before making the
following changes.  This will help ensure those changes are made
'live.')

  • An example of how to replace the default sets of options in the
    dropdown menus for the Responsible Department and OMCA Collection
    fields.
    The existing documentation on updating these option lists is
    confusing, and wildly out of date; we expect to be updating it in the
    near future.  The customization method shown here as an example
    reflects recently-added 'merge' capabilities that allow you to simply
    replicate the block of configuration you want to customize, within a
    separate file for your own museum; it will override the corresponding
    configuration block in the default settings:
    Actual change(s) made, within the source code tree for
    CollectionSpace's Application layer:

https://github.com/aronr/application/commit/b7a47d94fc6d44d0cad74f6444710a35373291c7
You can compare this to the default configuration file for the
Cataloging record, in which the default options for those two dropdown
menus appear:

https://github.com/aronr/application/blob/b7a47d94fc6d44d0cad74f6444710a35373291c7/tomcat-main/src/main/resources/defaults/base-collectionobject.xml#L112
To copy (deploy) these changes to the server folder, enter the
following at a command prompt, from within the top-level folder of the
Application source code tree:
mvn deploy -DskipTests

Sorry I'm not getting this! Do you have any ideas?

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" aronroberts@gmail.com
To: "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Friday, August 16, 2013 1:28:48 PM

Subject: Re: [Talk] deploy mvn error

The key is likely this snippet, from near the beginning of that long and
singularly unhelpful chain of messages:
"org.collectionspace.chain.csp.config.ConfigException: Error loading
config"

There may have been an error made in whatever configuration file, or
files, were modified.  After they were deployed (copied) to the server, when
the Application layer read them, it got confused and barfed out this long
stack trace.

Typically, this means the file(s), after being modified, weren't
well-formed XML - perhaps an ending tag was left out somewhere? - or they
didn't conform to the Application layer's expectation of what 'tags' (XML
elements) are expected, in which hierarchical locations within the file.

Yes, reverting to a snapshot and re-deploying (via 'mvn clean install
-DskipTests') and restarting Tomcat, should resolve the issue.  You might
also try, however, using a utility app that can show you differences between
two files - your current version and your snapshot - and see if the error is
readily made apparent by looking at those changes in that 'diff' view.  (If
you're using Mac OS X, there's a list of such apps at
http://apple.stackexchange.com/a/87188)

It's also worth checking the current cspace-app.log and
catalina.{today's date}.log to see if there may be any log message
specifically pinpointing the configuration error.

Aron

On Fri, Aug 16, 2013 at 1:16 PM, Al Bersch abersch@museumca.org wrote:

Hi again,

Ok, I think I must have messed up somewhere when changing the files in
the application layer. When I navigated to our tenant, the login screen is
blank except for a place to put a user name and password. when I submit my
password, I get this message:  Any idea what I did wrong? Thanks!

I have a snapshot prior to the changes in the application layer, so I
can always go back in time and try again.

Al

HTTP Status 400 -
org.collectionspace.chain.controller.BadRequestException: Cannot initialise
CSPs org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading config.
See messages for details: summary Exception raised during parsing at
org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185)
at
org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117)
at
org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:724) Caused by:
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading config.
See messages for details: summary Exception raised during parsing at
org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64)
at
org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156)
at
org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179)
... 22 more Caused by: org.collectionspace.chain.csp.config.ConfigException:
Error loading config. See messages for details: summary Exception raised
during parsing at
org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78)
at
org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74)
at
org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54)
... 24 more


type Status report

message org.collectionspace.chain.controller.BadRequestException:
Cannot initialise CSPs
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading config.
See messages for details: summary Exception raised during parsing at
org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185)
at
org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117)
at
org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:724) Caused by:
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading config.
See messages for details: summary Exception raised during parsing at
org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64)
at
org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156)
at
org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179)
... 22 more Caused by: org.collectionspace.chain.csp.config.ConfigException:
Error loading config. See messages for details: summary Exception raised
during parsing at
org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78)
at
org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74)
at
org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54)
... 24 more

description The request sent by the client was syntactically incorrect
(org.collectionspace.chain.controller.BadRequestException: Cannot initialise
CSPs org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading config.
See messages for details: summary Exception raised during parsing at
org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185)
at
org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117)
at
org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:724) Caused by:
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading config.
See messages for details: summary Exception raised during parsing at
org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64)
at
org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156)
at
org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179)
... 22 more Caused by: org.collectionspace.chain.csp.config.ConfigException:
Error loading config. See messages for details: summary Exception raised
during parsing at
org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78)
at
org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74)
at
org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54)
... 24 more ).

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


From: "Aron Roberts" aronroberts@gmail.com
To: "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Friday, August 16, 2013 12:58:56 PM
Subject: Re: [Talk] deploy mvn error

Hi Al,

You likely will have success with 'mvn clean install -DskipTests'
when building and deploying the App layer with your dropdown list changes,
rather than 'mvn deploy -DskipTests'.

It's a bit confusing (and I hope I don't need to keep repeating this
:-), but CollectionSpace Services layer uses Maven to build artifacts and
Ant buildfiles to deploy (copy) them to the server (hence 'mvn clean
install' followed by 'ant deploy'), while the Application and UI layers use
Maven ('mvn install') for both tasks.  There are some historical and
technical reasons for this difference, not worth going into ...

Aron

On Fri, Aug 16, 2013 at 12:49 PM, Al Bersch abersch@museumca.org
wrote:

Hello all,

I changed our dropdown lists in Department and Collection in the
application layer source code, and when I ran mvn deploy -DskipTests I get
this error:

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to configure plugin parameters for:
org.apache.maven.plugins:maven-deploy-plugin:2.4

check that the following section of the pom.xml is present and
correct:

<distributionManagement> <!-- use the following if you're not using a snapshot version. --> <repository> <id>repo</id> <name>Repository Name</name> <url>scp://host/path/to/repo</url> </repository> <!-- use the following if you ARE using a snapshot version. --> <snapshotRepository> <id>repo</id> <name>Repository Name</name> <url>scp://host/path/to/repo</url> </snapshotRepository> </distributionManagement>

Cause: Class
'org.apache.maven.artifact.repository.ArtifactRepository' cannot be
instantiated

I looked in the pom.xml, and found this:

<!-- The CollectionSpace public Maven repository for "snapshot" artifacts --> <repositories> <repository> <id>libs-snapshot-local</id> <name>libs-snapshot-local</name>

<url>http://nightly.collectionspace.org:8081/artifactory/libs-snapshot-local</url>
<snapshots>
<enabled>true</enabled>
</snapshots>

I'm wondering, which repository setting should I use (snapshot or not
snapshot)? Our installation is on a virtual server in linode.

And, does anyone know where I should set the path to our repository?
I'm guessing that the error is party due to the url being mapped to
nightly.collectionspace.org.

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, Jesse! As yet another possibility, along with the other options mentioned, the (free) TextWrangler editor can directly open files on a remote system via SFTP: http://reviews.cnet.com/8301-13727_7-57502913-263/how-to-use-textwrangler-as-a-remote-file-editor/ On Tue, Aug 20, 2013 at 4:12 PM, Jesse Martinez <mjesse@gmail.com> wrote: > Hi Al, > > Just noticed a quick typo in the text you c/p into an earlier email. It > looks like you might be missing a closing bracket in this line: I don't know > if it's a c/p typo or not, so just thought I'd point it out! > > <include src="base-collectionobject.xml,omca-collectionobject.xml" > merge="xmlmerge.properties"/ > > Also, how are you editing these files? Are you using a cli utility like > emacs or vim? (Might you be using Cygwin on Windows?? I've used this in the > past and there are sometimes encoding issues involved including end line > chars.) I'm trying to deduce if there are encoding issues at play here. > > Personally speaking, I like to use a local editor when making quick changes > on a remote server. What works for me on a Mac is a combination of Cyberduck > (free sftp client) (or Transmit, which is well worth its price), and Sublime > Text. Cyberduck can be set to automatically open editable files in Sublime > Text and save them back to the remote server seamlessly. Sublime Text isn't > a full-fledged IDE, but it is light-weight and has a lot of good tools for > easily checking format and syntax based on file type. It's free, works on > multiple OSs and my go-to code editor in a pinch. Aron also recommends good > editors too. > > - Jesse > > > On Tue, Aug 20, 2013 at 6:12 PM, Al Bersch <abersch@museumca.org> wrote: >> >> Hi Aron, >> >> Thanks so much for addressing these questions. >> >> I entered the language at the end of your email into my >> /tomcat-main/src/main/resources/omca-tenant.xml file, like this: >> >> <cspace-config tenantname="omca"> >> >> <version>11</version> >> <!-- Note: omca-collectionobject.xml should not appear in the >> 'include' line below --> >> <!-- This line is for merging various settings files together. --> >> <include src="settings.xml,local-omca-settings.xml" >> merge="xmlmerge.properties" >> strip-root="yes" /> >> >> <spec> >> <include src="base-relations.xml"/> >> <include src="base-schemas.xml"/> >> >> <records> >> <enum-blank>Please select a value</enum-blank> >> <!-- Here's where you can indicate that you want >> to merge in your own Cataloging record changes --> >> <include >> src="base-collectionobject.xml,omca-collectionobject.xml" >> merge="xmlmerge.properties"/ >> <include src="base-procedure-acquisition.xml"/> >> <include src="base-procedure-blobs.xml"/> >> ... >> >> then re-created the omca-collectionobject.xml file (located at >> tomcat-main/src/main/resources/tenants/omca) with this inside it: >> >> +<record id="collection-object"> >> + >> + <section id="identificationInformation"> >> + <repeat id="responsibleDepartments" has-primary="yes"> >> + >> <selector>object-identification-responsible-department</selector> >> + <field id="responsibleDepartment" ui-search="repeatable" >> mini="search" >> + seperate_ui_container="true"> >> + >> <selector>object-identification-responsible-department</selector> >> + <options> >> + <option id="">Please select a value</option> >> + <option id="art">Art</option> >> + <option id="history">History</option> >> + <option id="science">Science</option> >> + <option id="collections">Collections</option> >> + <option id="education">Education</option> >> + <option id="professionalservices">Professional >> Services</option> >> + <option id="multi">Multi</option> >> + </options> >> + </field> >> + </repeat> >> + <field id="collection" ui-search="repeatable" >> seperate_ui_container="true"> >> + <selector>object-identification-collection</selector> >> + <options> >> + <option id="">Please select a value</option> >> + <option id="art">Art</option> >> + <option id="artandartifact">Art and Artifact</option> >> + <option id="exhibit">Exhibit</option> >> + <option id="history">History</option> >> + <option id="scientomology">SCI-Entomology</option> >> + <option id="scifineart">SCI-Fine Art</option> >> + <option id="scigalleryspecimens">SCI-Gallery >> Specimens</option> >> + <option id="scigeology">SCI-Geology</option> >> + <option id="sciherbarium">SCI-Herbarium</option> >> + <option id="sciherpetology">SCI-Herpetology</option> >> + <option id="sciicthyology">SCI-Icthyology</option> >> + <option id="sciinvertebrates">SCI-Invertebrates</option> >> + <option id="scilapidary">SCI-Lapidary</option> >> + <option id="scimalacology">SCI-Malacology</option> >> + <option id="scimammalogy">SCI-Mammalogy</option> >> + <option id="scimiscellaneous">SCI-Miscellaneous</option> >> + <option id="sciornithology">SCI-Ornithology</option> >> + <option id="scipaleontology">SCI-Paleontology</option> >> + <option id="sciphoto">SCI-Photo</option> >> + <option id="scisnuffbottles">SCI-Snuff Bottles</option> >> + <option id="specimen">Specimen</option> >> + </options> >> + </field> >> + </section> >> + >> +</record> >> >> But alas, I'm still getting the same error message when I log into my >> tenant. >> >> If it matters, I looked in my settings.xml file and get a big chunk of >> this: ^@^@^@^@^@^@^. >> >> do you see anything wrong here in the files I copied? >> >> thanks, >> >> 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" <aronroberts@gmail.com> >> To: "Al Bersch" <abersch@museumca.org> >> Cc: "talk" <talk@lists.collectionspace.org> >> Sent: Monday, August 19, 2013 5:39:58 PM >> >> Subject: Re: [Talk] deploy mvn error >> >> Hi Al, >> >> My sincere apologies for these difficulties you've been encountering. >> >> > It looks like the problem is with merging settings.xml and >> > local-omca-settings.xml? >> >> Yes, that certainly looks like the case. >> >> This line appeared in part of the output from this error, in >> catalina.out: >> >> > 2013-08-19 21:46:13,364 ERROR [http-8180-3] ... Message: Exception >> > raised during parsing >> > Stack : >> > org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61) >> >> From looking at the Application layer's code at line 61 of >> AssemblingParser.java: >> >> https://github.com/collectionspace/application/blob/v3.3/csp-impl/src/main/java/org/collectionspace/chain/csp/config/impl/parser/AssemblingParser.java#L61 >> it appears the error is in reading or merging XML content, rather than in >> not finding either of the two files to be merged, or in not being able to >> read them as a result of insufficient access permissions or other >> filesystem-related issues. >> >> It appears that you might potentially be inadvertently trying to merge >> two dissimilar things: a settings file for your tenant (which contains some >> general administrative settings), together with some field-level settings >> for a particular record type. >> >> If you'd like to merge custom changes into the Cataloging record, such >> as changing the contents of options lists, here's an example of how you can >> specify that, as shown line 12 of the tenant 'includes' file for the UCJEPS >> herbaria: >> >> >> https://github.com/cspace-deployment/application/blob/ucjeps_3.2/tomcat-main/src/main/resources/ucjeps-tenant.xml#L12 >> >> Following that example, your >> /tomcat-main/src/main/resources/omca-tenant.xml file might look something >> like the following: >> >> <cspace-config tenantname="omca"> >> <version>11</version> >> <!-- Note: omca-collectionobject.xml should not appear in the 'include' >> line below --> >> <!-- This line is for merging various settings files together. --> >> <include src="settings.xml,local-settings.xml" >> merge="xmlmerge-settings.properties" strip-root="yes"/> >> ... >> <records> >> <enum-blank>Please select a value</enum-blank> >> <!-- Here's where you can indicate that you want to merge in your own >> Cataloging record changes --> >> <include src="base-collectionobject.xml,omca-collectionobject.xml" >> merge="xmlmerge.properties"/> >> ... >> >> Aron >> >> On Mon, Aug 19, 2013 at 4:28 PM, Al Bersch <abersch@museumca.org> wrote: >> > >> > Hi Aron, >> > >> > Thanks so much again for your continued assistance. And for the plug for >> > using github as a backup resource - I'll do that, and also apologize in >> > advance for the cut-and-paste text below. >> > >> > I installed DiffMerge, but I'm not sure what to compare, since the file >> > I added to the omca tenant (omca-collectionobject.xml), wasn't there in the >> > previous snapshot. I think I'm a little confused. >> > >> > I looked in the cspace-app.log and catalina.out (can you tell me where I >> > might find catalina.(today'sdate).log?) and here are some snippets, first >> > from cspace-app.log: >> > >> > 2013-08-19 21:46:13,363 WARN [http-8180-3] >> > [org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:218] >> > Could not merge the include files: settings.xml,local-omca-settings.xml >> > 2013-08-19 21:46:13,364 ERROR [http-8180-3] >> > [org.collectionspace.chain.csp.config.impl.parser.ConfigLoadingMessagesImpl:16] >> > Message: Exception raised during parsing >> > >> > Stack : >> > org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61) >> > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse (62) >> > org.collectionspace.csp.container.impl.CSPManagerImpl.configure (54) >> > org.collectionspace.chain.controller.TenantServlet.load_config (156) >> > org.collectionspace.chain.controller.TenantServlet.setup (179) >> > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant >> > (117) >> > org.collectionspace.chain.controller.TenantUIServlet.service (568) >> > javax.servlet.http.HttpServlet.service (717) >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (290) >> > org.apache.catalina.core.ApplicationFilterChain.doFilter (206) >> > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter (33) >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235) >> > org.apache.catalina.core.ApplicationFilterChain.doFilter (206) >> > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter (99) >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235) >> > org.apache.catalina.core.ApplicationFilterChain.doFilter (206) >> > org.apache.catalina.core.StandardWrapperValve.invoke (233) >> > org.apache.catalina.core.StandardContextValve.invoke (191) >> > org.apache.catalina.core.StandardHostValve.invoke (127) >> > org.apache.catalina.valves.ErrorReportValve.invoke (102) >> > org.apache.catalina.valves.AccessLogValve.invoke (589) >> > org.apache.catalina.core.StandardEngineValve.invoke (109) >> > org.apache.catalina.connector.CoyoteAdapter.service (291) >> > org.apache.coyote.http11.Http11Processor.process (859) >> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process >> > (602) >> > org.apache.tomcat.util.net.JIoEndpoint$Worker.run (489) >> > java.lang.Thread.run (724) >> > >> > CAUSED BY >> > Message: Could not load source >> > >> > >> > >> > then from catalina.out: >> > >> > 2013-08-19 17:49:25,334 ERROR [main] >> > [org.collectionspace.services.common.config.ConfigUtils:51] No domain name >> > was specified on call to getRepositoryName() method.2013-08-19 17:49:25,334 >> > ERROR [main] [org.collectionspace.services.common.config.ConfigUtils:51] No >> > domain name was specified on call to getRepositoryName() method.2013-08-19 >> > 17:49:25,334 ERROR [main] >> > [org.collectionspace.services.common.config.ConfigUtils:51] No domain name >> > was specified on call to getRepositoryName() method.[INFO] Starting up the >> > CollectionSpace Services' JAX-RS application.Static initializtion of: >> > org.collectionspace.services.common.security.SecurityInterceptor[INFO] >> > CollectionSpace Services' JAX-RS application started.2013-08-19 17:49:27,339 >> > (0) [http-8180-4] INFO >> > org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler: >> > XMLMerge result output to: >> > /usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19 >> > 17:49:29,695 (2356) [http-8180-2] INFO >> > org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler: >> > XMLMerge result output to: >> > /usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19 >> > 17:49:29,732 (2393) [net.sf.ehcache.CacheManager@23aeae74] INFO >> > net.sf.ehcache.util.UpdateChecker: New update(s) found: 2.6.5 >> > [http://www.terracotta.org/confluence/display/release/Release+Notes+Ehcache+Core+2.6]. >> > Please check http://ehcache.org for the latest version.Could not get session >> > from CSPACESESSID cookie with value: >> > 31b6c5daf4d4180636604cb25ac9f75f2013-08-19 17:49:47,810 WARN [http-8180-7] >> > [org.collectionspace.services.common.security.SecurityInterceptor:358] >> > Attempt to logout when Nuxeo login context was null2013-08-19 17:49:47,953 >> > WARN [http-8180-7] >> > [org.springframework.security.web.context.HttpSessionSecurityContextRepository:396] >> > Failed to create a session, as response has been committed. Unable to store >> > SecurityContext.2013-08-19 17:49:48,765 WARN [http-8180-7] >> > [org.collectionspace.services.common.security.SecurityInterceptor:358] >> > Attempt to logout when Nuxeo login context was null2013-08-19 17:49:48,773 >> > WARN [http-8180-7] >> > [org.springframework.security.web.context.HttpSessionSecurityContextRepository:396] >> > Failed to create a session, as response has been committed. Unable to store >> > SecurityContext.2013-08-19 21:07:17,771 ERROR >> > [ContainerBackgroundProcessor[StandardEngine[Catalina]]] >> > [org.apache.catalina.loader.WebappClassLoader:2191] The web application >> > [/collectionspace] appears to have started a thread named >> > [net.sf.ehcache.CacheManager@23aeae74] but has failed to stop it. This is >> > very likely to create a memory leak.2013-08-19 21:07:17,772 ERROR >> > [ContainerBackgroundProcessor[StandardEngine[Catalina]]] >> > [org.apache.catalina.loader.WebappClassLoader:2191] The web application >> > [/collectionspace] appears to have started a thread named >> > [MultiThreadedHttpConnectionManager cleanup] but has failed to stop it. This >> > is very likely to create a memory leak.2013-08-19 21:07:17,780 ERROR >> > [ContainerBackgroundProcessor[StandardEngine[Catalina]]] >> > [org.apache.catalina.loader.WebappClassLoader:2453] The web application >> > [/collectionspace] created a ThreadLocal with key of type >> > [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value >> > [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a value of >> > type [java.util.HashMap] (value [{}]) but failed to remove it when the web >> > application was stopped. This is very likely to create a memory >> > leak.2013-08-19 21:07:17,781 ERROR >> > [ContainerBackgroundProcessor[StandardEngine[Catalina]]] >> > [org.apache.catalina.loader.WebappClassLoader:2453] The web application >> > [/collectionspace] created a ThreadLocal with key of type >> > [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value >> > [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a value of >> > type [java.util.HashMap] (value [{}]) but failed to remove it when the web >> > application was stopped. This is very likely to create a memory >> > leak.2013-08-19 21:09:34,685 (0) [http-8180-4] WARN >> > org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler: >> > Could not merge the include files: settings.xml,local-omca-settings.xml >> > >> > >> > It looks like the problem is with merging settings.xml and >> > local-omca-settings.xml? >> > >> > I've tried a second time to create the configuration change in >> > omca-collectionobject.xml (a newly created xml file with only this snippet >> > in it: >> > >> > +<record id="collection-object"> >> > + >> > + <section id="identificationInformation"> >> > + <repeat id="responsibleDepartments" has-primary="yes"> >> > + >> > <selector>object-identification-responsible-department</selector> >> > + <field id="responsibleDepartment" ui-search="repeatable" >> > mini="search" >> > + seperate_ui_container="true"> >> > + >> > <selector>object-identification-responsible-department</selector> >> > + <options> >> > + <option id="">Please select a value</option> >> > + <option id="art">Art</option> >> > + <option id="history">History</option> >> > + <option id="science">Science</option> >> > + <option id="collections">Collections</option> >> > + <option id="education">Education</option> >> > + <option id="professionalservices">Professional >> > Services</option> >> > + <option id="multi">Multi</option> >> > + </options> >> > + </field> >> > + </repeat> >> > + <field id="collection" ui-search="repeatable" >> > seperate_ui_container="true"> >> > + <selector>object-identification-collection</selector> >> > + <options> >> > + <option id="">Please select a value</option> >> > + <option id="art">Art</option> >> > + <option id="artandartifact">Art and Artifact</option> >> > + <option id="exhibit">Exhibit</option> >> > + <option id="history">History</option> >> > + <option id="scientomology">SCI-Entomology</option> >> > + <option id="scifineart">SCI-Fine Art</option> >> > + <option id="scigalleryspecimens">SCI-Gallery >> > Specimens</option> >> > + <option id="scigeology">SCI-Geology</option> >> > + <option id="sciherbarium">SCI-Herbarium</option> >> > + <option id="sciherpetology">SCI-Herpetology</option> >> > + <option id="sciicthyology">SCI-Icthyology</option> >> > + <option id="sciinvertebrates">SCI-Invertebrates</option> >> > + <option id="scilapidary">SCI-Lapidary</option> >> > + <option id="scimalacology">SCI-Malacology</option> >> > + <option id="scimammalogy">SCI-Mammalogy</option> >> > + <option id="scimiscellaneous">SCI-Miscellaneous</option> >> > + <option id="sciornithology">SCI-Ornithology</option> >> > + <option id="scipaleontology">SCI-Paleontology</option> >> > + <option id="sciphoto">SCI-Photo</option> >> > + <option id="scisnuffbottles">SCI-Snuff Bottles</option> >> > + <option id="specimen">Specimen</option> >> > + </options> >> > + </field> >> > + </section> >> > + >> > +</record> >> > >> > >> > >> > then according to your last email, I ran "mvn clean install -DskipTest" >> > rather than "mvn deploy -DskipTests". I ran this in the application layer >> > folder called "application" that contains the pom.xml file. In my path it >> > looks like /home/root/application-source/application/. Then, do I understand >> > I also need to run "ant deploy"? I wasn't able to run this in the same >> > folder - I got an error saying this is no build file. >> > >> > I'm going off your previous instructions, as well as the documentation >> > on the wiki for customizing the application layer: >> > >> > Hi Becky and Al, >> > One more set of notes on making 'starting out' customizations, >> > below: this one a customization of options in dropdown menus. >> > Aron >> > (Recommendation: start the CollectionSpace server before making the >> > following changes. This will help ensure those changes are made >> > 'live.') >> > * An example of how to replace the default sets of options in the >> > dropdown menus for the Responsible Department and OMCA Collection >> > fields. >> > The existing documentation on updating these option lists is >> > confusing, and wildly out of date; we expect to be updating it in the >> > near future. The customization method shown here as an example >> > reflects recently-added 'merge' capabilities that allow you to simply >> > replicate the block of configuration you want to customize, within a >> > separate file for your own museum; it will override the corresponding >> > configuration block in the default settings: >> > Actual change(s) made, within the source code tree for >> > CollectionSpace's Application layer: >> > >> > https://github.com/aronr/application/commit/b7a47d94fc6d44d0cad74f6444710a35373291c7 >> > You can compare this to the default configuration file for the >> > Cataloging record, in which the default options for those two dropdown >> > menus appear: >> > >> > https://github.com/aronr/application/blob/b7a47d94fc6d44d0cad74f6444710a35373291c7/tomcat-main/src/main/resources/defaults/base-collectionobject.xml#L112 >> > To copy (deploy) these changes to the server folder, enter the >> > following at a command prompt, from within the top-level folder of the >> > Application source code tree: >> > mvn deploy -DskipTests >> > >> > >> > >> > Sorry I'm not getting this! Do you have any ideas? >> > >> > 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" <aronroberts@gmail.com> >> > To: "Al Bersch" <abersch@museumca.org> >> > Cc: "talk" <talk@lists.collectionspace.org> >> > Sent: Friday, August 16, 2013 1:28:48 PM >> > >> > Subject: Re: [Talk] deploy mvn error >> > >> > The key is likely this snippet, from near the beginning of that long and >> > singularly unhelpful chain of messages: >> > "org.collectionspace.chain.csp.config.ConfigException: Error loading >> > config" >> > >> > There may have been an error made in whatever configuration file, or >> > files, were modified. After they were deployed (copied) to the server, when >> > the Application layer read them, it got confused and barfed out this long >> > stack trace. >> > >> > Typically, this means the file(s), after being modified, weren't >> > well-formed XML - perhaps an ending tag was left out somewhere? - or they >> > didn't conform to the Application layer's expectation of what 'tags' (XML >> > elements) are expected, in which hierarchical locations within the file. >> > >> > Yes, reverting to a snapshot and re-deploying (via 'mvn clean install >> > -DskipTests') and restarting Tomcat, should resolve the issue. You might >> > also try, however, using a utility app that can show you differences between >> > two files - your current version and your snapshot - and see if the error is >> > readily made apparent by looking at those changes in that 'diff' view. (If >> > you're using Mac OS X, there's a list of such apps at >> > http://apple.stackexchange.com/a/87188) >> > >> > It's also worth checking the current cspace-app.log and >> > catalina.{today's date}.log to see if there may be any log message >> > specifically pinpointing the configuration error. >> > >> > Aron >> > >> > On Fri, Aug 16, 2013 at 1:16 PM, Al Bersch <abersch@museumca.org> wrote: >> > > >> > > Hi again, >> > > >> > > Ok, I think I must have messed up somewhere when changing the files in >> > > the application layer. When I navigated to our tenant, the login screen is >> > > blank except for a place to put a user name and password. when I submit my >> > > password, I get this message: Any idea what I did wrong? Thanks! >> > > >> > > I have a snapshot prior to the changes in the application layer, so I >> > > can always go back in time and try again. >> > > >> > > Al >> > > >> > > HTTP Status 400 - >> > > org.collectionspace.chain.controller.BadRequestException: Cannot initialise >> > > CSPs org.collectionspace.csp.api.core.CSPDependencyException: >> > > org.collectionspace.chain.csp.config.ConfigException: Error loading config. >> > > See messages for details: summary Exception raised during parsing at >> > > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185) >> > > at >> > > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117) >> > > at >> > > org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568) >> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at >> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) >> > > at >> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> > > at >> > > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33) >> > > at >> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> > > at >> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> > > at >> > > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99) >> > > at >> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> > > at >> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> > > at >> > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) >> > > at >> > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) >> > > at >> > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) >> > > at >> > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >> > > at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589) >> > > at >> > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) >> > > at >> > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) >> > > at >> > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) >> > > at >> > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) >> > > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) >> > > at java.lang.Thread.run(Thread.java:724) Caused by: >> > > org.collectionspace.csp.api.core.CSPDependencyException: >> > > org.collectionspace.chain.csp.config.ConfigException: Error loading config. >> > > See messages for details: summary Exception raised during parsing at >> > > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64) >> > > at >> > > org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156) >> > > at >> > > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179) >> > > ... 22 more Caused by: org.collectionspace.chain.csp.config.ConfigException: >> > > Error loading config. See messages for details: summary Exception raised >> > > during parsing at >> > > org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78) >> > > at >> > > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74) >> > > at >> > > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54) >> > > ... 24 more >> > > >> > > ________________________________ >> > > >> > > type Status report >> > > >> > > message org.collectionspace.chain.controller.BadRequestException: >> > > Cannot initialise CSPs >> > > org.collectionspace.csp.api.core.CSPDependencyException: >> > > org.collectionspace.chain.csp.config.ConfigException: Error loading config. >> > > See messages for details: summary Exception raised during parsing at >> > > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185) >> > > at >> > > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117) >> > > at >> > > org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568) >> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at >> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) >> > > at >> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> > > at >> > > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33) >> > > at >> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> > > at >> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> > > at >> > > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99) >> > > at >> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> > > at >> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> > > at >> > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) >> > > at >> > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) >> > > at >> > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) >> > > at >> > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >> > > at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589) >> > > at >> > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) >> > > at >> > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) >> > > at >> > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) >> > > at >> > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) >> > > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) >> > > at java.lang.Thread.run(Thread.java:724) Caused by: >> > > org.collectionspace.csp.api.core.CSPDependencyException: >> > > org.collectionspace.chain.csp.config.ConfigException: Error loading config. >> > > See messages for details: summary Exception raised during parsing at >> > > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64) >> > > at >> > > org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156) >> > > at >> > > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179) >> > > ... 22 more Caused by: org.collectionspace.chain.csp.config.ConfigException: >> > > Error loading config. See messages for details: summary Exception raised >> > > during parsing at >> > > org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78) >> > > at >> > > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74) >> > > at >> > > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54) >> > > ... 24 more >> > > >> > > description The request sent by the client was syntactically incorrect >> > > (org.collectionspace.chain.controller.BadRequestException: Cannot initialise >> > > CSPs org.collectionspace.csp.api.core.CSPDependencyException: >> > > org.collectionspace.chain.csp.config.ConfigException: Error loading config. >> > > See messages for details: summary Exception raised during parsing at >> > > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185) >> > > at >> > > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117) >> > > at >> > > org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568) >> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at >> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) >> > > at >> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> > > at >> > > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33) >> > > at >> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> > > at >> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> > > at >> > > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99) >> > > at >> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> > > at >> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> > > at >> > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) >> > > at >> > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) >> > > at >> > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) >> > > at >> > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >> > > at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589) >> > > at >> > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) >> > > at >> > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) >> > > at >> > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) >> > > at >> > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) >> > > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) >> > > at java.lang.Thread.run(Thread.java:724) Caused by: >> > > org.collectionspace.csp.api.core.CSPDependencyException: >> > > org.collectionspace.chain.csp.config.ConfigException: Error loading config. >> > > See messages for details: summary Exception raised during parsing at >> > > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64) >> > > at >> > > org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156) >> > > at >> > > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179) >> > > ... 22 more Caused by: org.collectionspace.chain.csp.config.ConfigException: >> > > Error loading config. See messages for details: summary Exception raised >> > > during parsing at >> > > org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78) >> > > at >> > > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74) >> > > at >> > > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54) >> > > ... 24 more ). >> > > >> > > >> > > Al Bersch >> > > Digital Project Coordinator >> > > Oakland Museum of California >> > > 1000 Oak Street, Oakland, CA 94607 >> > > abersch@museumca.org >> > > 510-318-8468 >> > > ________________________________ >> > > From: "Aron Roberts" <aronroberts@gmail.com> >> > > To: "Al Bersch" <abersch@museumca.org> >> > > Cc: "talk" <talk@lists.collectionspace.org> >> > > Sent: Friday, August 16, 2013 12:58:56 PM >> > > Subject: Re: [Talk] deploy mvn error >> > > >> > > Hi Al, >> > > >> > > You likely will have success with 'mvn clean install -DskipTests' >> > > when building and deploying the App layer with your dropdown list changes, >> > > rather than 'mvn deploy -DskipTests'. >> > > >> > > It's a bit confusing (and I hope I don't need to keep repeating this >> > > :-), but CollectionSpace Services layer uses Maven to build artifacts and >> > > Ant buildfiles to deploy (copy) them to the server (hence 'mvn clean >> > > install' followed by 'ant deploy'), while the Application and UI layers use >> > > Maven ('mvn install') for both tasks. There are some historical and >> > > technical reasons for this difference, not worth going into ... >> > > >> > > Aron >> > > >> > > >> > > On Fri, Aug 16, 2013 at 12:49 PM, Al Bersch <abersch@museumca.org> >> > > wrote: >> > >> >> > >> Hello all, >> > >> >> > >> I changed our dropdown lists in Department and Collection in the >> > >> application layer source code, and when I ran mvn deploy -DskipTests I get >> > >> this error: >> > >> >> > >> [ERROR] BUILD ERROR >> > >> [INFO] >> > >> ------------------------------------------------------------------------ >> > >> [INFO] Failed to configure plugin parameters for: >> > >> org.apache.maven.plugins:maven-deploy-plugin:2.4 >> > >> >> > >> check that the following section of the pom.xml is present and >> > >> correct: >> > >> >> > >> <distributionManagement> >> > >> <!-- use the following if you're not using a snapshot version. --> >> > >> <repository> >> > >> <id>repo</id> >> > >> <name>Repository Name</name> >> > >> <url>scp://host/path/to/repo</url> >> > >> </repository> >> > >> <!-- use the following if you ARE using a snapshot version. --> >> > >> <snapshotRepository> >> > >> <id>repo</id> >> > >> <name>Repository Name</name> >> > >> <url>scp://host/path/to/repo</url> >> > >> </snapshotRepository> >> > >> </distributionManagement> >> > >> >> > >> Cause: Class >> > >> 'org.apache.maven.artifact.repository.ArtifactRepository' cannot be >> > >> instantiated >> > >> >> > >> >> > >> >> > >> I looked in the pom.xml, and found this: >> > >> >> > >> <!-- The CollectionSpace public Maven repository for "snapshot" >> > >> artifacts --> >> > >> <repositories> >> > >> <repository> >> > >> <id>libs-snapshot-local</id> >> > >> <name>libs-snapshot-local</name> >> > >> >> > >> <url>http://nightly.collectionspace.org:8081/artifactory/libs-snapshot-local</url> >> > >> <snapshots> >> > >> <enabled>true</enabled> >> > >> </snapshots> >> > >> >> > >> >> > >> I'm wondering, which repository setting should I use (snapshot or not >> > >> snapshot)? Our installation is on a virtual server in linode. >> > >> >> > >> And, does anyone know where I should set the path to our repository? >> > >> I'm guessing that the error is party due to the url being mapped to >> > >> nightly.collectionspace.org. >> > >> >> > >> 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, Aug 21, 2013 6:30 PM

Hi Aron, Jesse, Ray -

Thanks for all this advice and patience.

I am using vim to edit the xml in a terminal window. I am useing an Ubuntu virtual server. Using SFTP to connect via text wragler is beautiful, but we didn't allow login for root via ssh or ftp, and root owns these files. I suppose I could copy everything over to abersch, and then copy back to root later? Does anyone have a suggestion for best practices using sftp tools to edit?

The XML validator is great. I don't have any errors in omca-collectionobject.xml. And Jesse, thanks for catching that typo in omca-tenant.xml. That was acutally live - my bad!

Checking the logs, it looks like the problem is with settings.xml or local-omca-setitngs.xml. There's nothing in my omca settings.xml file (hence the "null" symbol over and over). would it make sense to re-copy over settings.xml from the "core" tenant into "omca," and make the changes listed in the "creating your tenant" documentation?

Thanks again everyone. This is so beyond helpful.

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" aronroberts@gmail.com
To: "Jesse Martinez" mjesse@gmail.com
Cc: "Al Bersch" abersch@museumca.org, "talk" talk@lists.collectionspace.org
Sent: Tuesday, August 20, 2013 4:31:01 PM
Subject: Re: [Talk] deploy mvn error

Thanks, Jesse!

As yet another possibility, along with the other options mentioned,
the (free) TextWrangler editor can directly open files on a remote
system via SFTP:

http://reviews.cnet.com/8301-13727_7-57502913-263/how-to-use-textwrangler-as-a-remote-file-editor/

On Tue, Aug 20, 2013 at 4:12 PM, Jesse Martinez mjesse@gmail.com wrote:

Hi Al,

Just noticed a quick typo in the text you c/p into an earlier email. It
looks like you might be missing a closing bracket in this line: I don't know
if it's a c/p typo or not, so just thought I'd point it out!

<include src="base-collectionobject.xml,omca-collectionobject.xml"
merge="xmlmerge.properties"/

Also, how are you editing these files? Are you using a cli utility like
emacs or vim? (Might you be using Cygwin on Windows?? I've used this in the
past and there are sometimes encoding issues involved including end line
chars.) I'm trying to deduce if there are encoding issues at play here.

Personally speaking, I like to use a local editor when making quick changes
on a remote server. What works for me on a Mac is a combination of Cyberduck
(free sftp client) (or Transmit, which is well worth its price), and Sublime
Text. Cyberduck can be set to automatically open editable files in Sublime
Text and save them back to the remote server seamlessly. Sublime Text isn't
a full-fledged IDE, but it is light-weight and has a lot of good tools for
easily checking format and syntax based on file type. It's free, works on
multiple OSs and my go-to code editor in a pinch. Aron also recommends good
editors too.

  • Jesse

On Tue, Aug 20, 2013 at 6:12 PM, Al Bersch abersch@museumca.org wrote:

Hi Aron,

Thanks so much for addressing these questions.

I entered the language at the end of your email into my
/tomcat-main/src/main/resources/omca-tenant.xml file, like this:

<cspace-config tenantname="omca">

<version>11</version>

<!-- Note: omca-collectionobject.xml should not appear in the 'include' line below --> <!-- This line is for merging various settings files together. -->

<include src="settings.xml,local-omca-settings.xml" merge="xmlmerge.properties" strip-root="yes" />

<spec> <include src="base-relations.xml"/> <include src="base-schemas.xml"/> <records> <enum-blank>Please select a value</enum-blank> <!-- Here's where you can indicate that you want to merge in your own Cataloging record changes --> <include src="base-collectionobject.xml,omca-collectionobject.xml" merge="xmlmerge.properties"/ <include src="base-procedure-acquisition.xml"/> <include src="base-procedure-blobs.xml"/> ...

then re-created the omca-collectionobject.xml file (located at
tomcat-main/src/main/resources/tenants/omca) with this inside it:

+<record id="collection-object">
+

  • <section id="identificationInformation">
  • <repeat id="responsibleDepartments" has-primary="yes">

<selector>object-identification-responsible-department</selector>

  • <field id="responsibleDepartment" ui-search="repeatable"
    mini="search"
  • seperate_ui_container="true">

<selector>object-identification-responsible-department</selector>

  • <options>
  • <option id="">Please select a value</option>
  • <option id="art">Art</option>
  • <option id="history">History</option>
  • <option id="science">Science</option>
  • <option id="collections">Collections</option>
  • <option id="education">Education</option>
  • <option id="professionalservices">Professional

Services</option>

  • <option id="multi">Multi</option>
  • </options>
  • </field>
  • </repeat>
  • <field id="collection" ui-search="repeatable" seperate_ui_container="true">
  • <selector>object-identification-collection</selector>
  • <options>
  • <option id="">Please select a value</option>
  • <option id="art">Art</option>
  • <option id="artandartifact">Art and Artifact</option>
  • <option id="exhibit">Exhibit</option>
  • <option id="history">History</option>
  • <option id="scientomology">SCI-Entomology</option>
  • <option id="scifineart">SCI-Fine Art</option>
  • <option id="scigalleryspecimens">SCI-Gallery

Specimens</option>

  • <option id="scigeology">SCI-Geology</option>
  • <option id="sciherbarium">SCI-Herbarium</option>
  • <option id="sciherpetology">SCI-Herpetology</option>
  • <option id="sciicthyology">SCI-Icthyology</option>
  • <option id="sciinvertebrates">SCI-Invertebrates</option>
  • <option id="scilapidary">SCI-Lapidary</option>
  • <option id="scimalacology">SCI-Malacology</option>
  • <option id="scimammalogy">SCI-Mammalogy</option>
  • <option id="scimiscellaneous">SCI-Miscellaneous</option>
  • <option id="sciornithology">SCI-Ornithology</option>
  • <option id="scipaleontology">SCI-Paleontology</option>
  • <option id="sciphoto">SCI-Photo</option>
  • <option id="scisnuffbottles">SCI-Snuff Bottles</option>
  • <option id="specimen">Specimen</option>
  • </options>
  • </field>
  • </section>

+</record>

But alas, I'm still getting the same error message when I log into my
tenant.

If it matters, I looked in my settings.xml file and get a big chunk of
this: ^@^@^@^@^@^@^.

do you see anything wrong here in the files I copied?

thanks,

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" aronroberts@gmail.com
To: "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Monday, August 19, 2013 5:39:58 PM

Subject: Re: [Talk] deploy mvn error

Hi Al,

My sincere apologies for these difficulties you've been encountering.

It looks like the problem is with merging settings.xml and
local-omca-settings.xml?

Yes, that certainly looks like the case.

This line appeared in part of the output from this error, in
catalina.out:

2013-08-19 21:46:13,364 ERROR [http-8180-3] ... Message: Exception
raised during parsing
Stack :
org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61)

From looking at the Application layer's code at line 61 of
AssemblingParser.java:

https://github.com/collectionspace/application/blob/v3.3/csp-impl/src/main/java/org/collectionspace/chain/csp/config/impl/parser/AssemblingParser.java#L61
it appears the error is in reading or merging XML content, rather than in
not finding either of the two files to be merged, or in not being able to
read them as a result of insufficient access permissions or other
filesystem-related issues.

It appears that you might potentially be inadvertently trying to merge
two dissimilar things: a settings file for your tenant (which contains some
general administrative settings), together with some field-level settings
for a particular record type.

If you'd like to merge custom changes into the Cataloging record, such
as changing the contents of options lists, here's an example of how you can
specify that, as shown line 12 of the tenant 'includes' file for the UCJEPS
herbaria:

https://github.com/cspace-deployment/application/blob/ucjeps_3.2/tomcat-main/src/main/resources/ucjeps-tenant.xml#L12

Following that example, your
/tomcat-main/src/main/resources/omca-tenant.xml file might look something
like the following:

<cspace-config tenantname="omca"> <version>11</version> <!-- Note: omca-collectionobject.xml should not appear in the 'include' line below --> <!-- This line is for merging various settings files together. --> <include src="settings.xml,local-settings.xml" merge="xmlmerge-settings.properties" strip-root="yes"/> ... <records> <enum-blank>Please select a value</enum-blank> <!-- Here's where you can indicate that you want to merge in your own Cataloging record changes --> <include src="base-collectionobject.xml,omca-collectionobject.xml" merge="xmlmerge.properties"/> ...

Aron

On Mon, Aug 19, 2013 at 4:28 PM, Al Bersch abersch@museumca.org wrote:

Hi Aron,

Thanks so much again for your continued assistance. And for the plug for
using github as a backup resource - I'll do that, and also apologize in
advance for the cut-and-paste text below.

I installed DiffMerge, but I'm not sure what to compare, since the file
I added to the omca tenant (omca-collectionobject.xml), wasn't there in the
previous snapshot. I think I'm a little confused.

I looked in the cspace-app.log and catalina.out (can you tell me where I
might find catalina.(today'sdate).log?) and here are some snippets, first
from cspace-app.log:

2013-08-19 21:46:13,363 WARN [http-8180-3]
[org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:218]
Could not merge the include files: settings.xml,local-omca-settings.xml
2013-08-19 21:46:13,364 ERROR [http-8180-3]
[org.collectionspace.chain.csp.config.impl.parser.ConfigLoadingMessagesImpl:16]
Message: Exception raised during parsing

Stack :
org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61)
org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse (62)
org.collectionspace.csp.container.impl.CSPManagerImpl.configure (54)
org.collectionspace.chain.controller.TenantServlet.load_config (156)
org.collectionspace.chain.controller.TenantServlet.setup (179)
org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant
(117)
org.collectionspace.chain.controller.TenantUIServlet.service (568)
javax.servlet.http.HttpServlet.service (717)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (290)
org.apache.catalina.core.ApplicationFilterChain.doFilter (206)
org.collectionspace.chain.controller.filters.PerflogFilter.doFilter (33)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235)
org.apache.catalina.core.ApplicationFilterChain.doFilter (206)
org.collectionspace.chain.controller.filters.CharSetFilter.doFilter (99)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235)
org.apache.catalina.core.ApplicationFilterChain.doFilter (206)
org.apache.catalina.core.StandardWrapperValve.invoke (233)
org.apache.catalina.core.StandardContextValve.invoke (191)
org.apache.catalina.core.StandardHostValve.invoke (127)
org.apache.catalina.valves.ErrorReportValve.invoke (102)
org.apache.catalina.valves.AccessLogValve.invoke (589)
org.apache.catalina.core.StandardEngineValve.invoke (109)
org.apache.catalina.connector.CoyoteAdapter.service (291)
org.apache.coyote.http11.Http11Processor.process (859)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
(602)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run (489)
java.lang.Thread.run (724)

CAUSED BY
Message: Could not load source

then from catalina.out:

2013-08-19 17:49:25,334 ERROR [main]
[org.collectionspace.services.common.config.ConfigUtils:51] No domain name
was specified on call to getRepositoryName() method.2013-08-19 17:49:25,334
ERROR [main] [org.collectionspace.services.common.config.ConfigUtils:51] No
domain name was specified on call to getRepositoryName() method.2013-08-19
17:49:25,334 ERROR [main]
[org.collectionspace.services.common.config.ConfigUtils:51] No domain name
was specified on call to getRepositoryName() method.[INFO] Starting up the
CollectionSpace Services' JAX-RS application.Static initializtion of:
org.collectionspace.services.common.security.SecurityInterceptor[INFO]
CollectionSpace Services' JAX-RS application started.2013-08-19 17:49:27,339
(0) [http-8180-4] INFO
org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:
XMLMerge result output to:
/usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19
17:49:29,695 (2356) [http-8180-2] INFO
org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:
XMLMerge result output to:
/usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19
17:49:29,732 (2393) [net.sf.ehcache.CacheManager@23aeae74] INFO
net.sf.ehcache.util.UpdateChecker: New update(s) found: 2.6.5
[http://www.terracotta.org/confluence/display/release/Release+Notes+Ehcache+Core+2.6].
Please check http://ehcache.org for the latest version.Could not get session
from CSPACESESSID cookie with value:
31b6c5daf4d4180636604cb25ac9f75f2013-08-19 17:49:47,810 WARN [http-8180-7]
[org.collectionspace.services.common.security.SecurityInterceptor:358]
Attempt to logout when Nuxeo login context was null2013-08-19 17:49:47,953
WARN [http-8180-7]
[org.springframework.security.web.context.HttpSessionSecurityContextRepository:396]
Failed to create a session, as response has been committed. Unable to store
SecurityContext.2013-08-19 17:49:48,765 WARN [http-8180-7]
[org.collectionspace.services.common.security.SecurityInterceptor:358]
Attempt to logout when Nuxeo login context was null2013-08-19 17:49:48,773
WARN [http-8180-7]
[org.springframework.security.web.context.HttpSessionSecurityContextRepository:396]
Failed to create a session, as response has been committed. Unable to store
SecurityContext.2013-08-19 21:07:17,771 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2191] The web application
[/collectionspace] appears to have started a thread named
[net.sf.ehcache.CacheManager@23aeae74] but has failed to stop it. This is
very likely to create a memory leak.2013-08-19 21:07:17,772 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2191] The web application
[/collectionspace] appears to have started a thread named
[MultiThreadedHttpConnectionManager cleanup] but has failed to stop it. This
is very likely to create a memory leak.2013-08-19 21:07:17,780 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2453] The web application
[/collectionspace] created a ThreadLocal with key of type
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a value of
type [java.util.HashMap] (value [{}]) but failed to remove it when the web
application was stopped. This is very likely to create a memory
leak.2013-08-19 21:07:17,781 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2453] The web application
[/collectionspace] created a ThreadLocal with key of type
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a value of
type [java.util.HashMap] (value [{}]) but failed to remove it when the web
application was stopped. This is very likely to create a memory
leak.2013-08-19 21:09:34,685 (0) [http-8180-4] WARN
org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:
Could not merge the include files: settings.xml,local-omca-settings.xml

It looks like the problem is with merging settings.xml and
local-omca-settings.xml?

I've tried a second time to create the configuration change in
omca-collectionobject.xml (a newly created xml file with only this snippet
in it:

+<record id="collection-object">
+

  • <section id="identificationInformation">
  • <repeat id="responsibleDepartments" has-primary="yes">

<selector>object-identification-responsible-department</selector>

  • <field id="responsibleDepartment" ui-search="repeatable"
    mini="search"
  • seperate_ui_container="true">

<selector>object-identification-responsible-department</selector>

  • <options>
  • <option id="">Please select a value</option>
  • <option id="art">Art</option>
  • <option id="history">History</option>
  • <option id="science">Science</option>
  • <option id="collections">Collections</option>
  • <option id="education">Education</option>
  • <option id="professionalservices">Professional

Services</option>

  • <option id="multi">Multi</option>
  • </options>
  • </field>
  • </repeat>
  • <field id="collection" ui-search="repeatable" seperate_ui_container="true">
  • <selector>object-identification-collection</selector>
  • <options>
  • <option id="">Please select a value</option>
  • <option id="art">Art</option>
  • <option id="artandartifact">Art and Artifact</option>
  • <option id="exhibit">Exhibit</option>
  • <option id="history">History</option>
  • <option id="scientomology">SCI-Entomology</option>
  • <option id="scifineart">SCI-Fine Art</option>
  • <option id="scigalleryspecimens">SCI-Gallery

Specimens</option>

  • <option id="scigeology">SCI-Geology</option>
  • <option id="sciherbarium">SCI-Herbarium</option>
  • <option id="sciherpetology">SCI-Herpetology</option>
  • <option id="sciicthyology">SCI-Icthyology</option>
  • <option id="sciinvertebrates">SCI-Invertebrates</option>
  • <option id="scilapidary">SCI-Lapidary</option>
  • <option id="scimalacology">SCI-Malacology</option>
  • <option id="scimammalogy">SCI-Mammalogy</option>
  • <option id="scimiscellaneous">SCI-Miscellaneous</option>
  • <option id="sciornithology">SCI-Ornithology</option>
  • <option id="scipaleontology">SCI-Paleontology</option>
  • <option id="sciphoto">SCI-Photo</option>
  • <option id="scisnuffbottles">SCI-Snuff Bottles</option>
  • <option id="specimen">Specimen</option>
  • </options>
  • </field>
  • </section>

+</record>

then according to your last email, I ran "mvn clean install -DskipTest"
rather than "mvn deploy -DskipTests". I ran this in the application layer
folder called "application" that contains the pom.xml file. In my path it
looks like /home/root/application-source/application/. Then, do I understand
I also need to run "ant deploy"? I wasn't able to run this in the same
folder - I got an error saying this is no build file.

I'm going off your previous instructions, as well as the documentation
on the wiki for customizing the application layer:

Hi Becky and Al,
One more set of notes on making 'starting out' customizations,
below: this one a customization of options in dropdown menus.
Aron
(Recommendation: start the CollectionSpace server before making the
following changes. This will help ensure those changes are made
'live.')

  • An example of how to replace the default sets of options in the
    dropdown menus for the Responsible Department and OMCA Collection
    fields.
    The existing documentation on updating these option lists is
    confusing, and wildly out of date; we expect to be updating it in the
    near future. The customization method shown here as an example
    reflects recently-added 'merge' capabilities that allow you to simply
    replicate the block of configuration you want to customize, within a
    separate file for your own museum; it will override the corresponding
    configuration block in the default settings:
    Actual change(s) made, within the source code tree for
    CollectionSpace's Application layer:

https://github.com/aronr/application/commit/b7a47d94fc6d44d0cad74f6444710a35373291c7
You can compare this to the default configuration file for the
Cataloging record, in which the default options for those two dropdown
menus appear:

https://github.com/aronr/application/blob/b7a47d94fc6d44d0cad74f6444710a35373291c7/tomcat-main/src/main/resources/defaults/base-collectionobject.xml#L112
To copy (deploy) these changes to the server folder, enter the
following at a command prompt, from within the top-level folder of the
Application source code tree:
mvn deploy -DskipTests

Sorry I'm not getting this! Do you have any ideas?

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" aronroberts@gmail.com
To: "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Friday, August 16, 2013 1:28:48 PM

Subject: Re: [Talk] deploy mvn error

The key is likely this snippet, from near the beginning of that long and
singularly unhelpful chain of messages:
"org.collectionspace.chain.csp.config.ConfigException: Error loading
config"

There may have been an error made in whatever configuration file, or
files, were modified. After they were deployed (copied) to the server, when
the Application layer read them, it got confused and barfed out this long
stack trace.

Typically, this means the file(s), after being modified, weren't
well-formed XML - perhaps an ending tag was left out somewhere? - or they
didn't conform to the Application layer's expectation of what 'tags' (XML
elements) are expected, in which hierarchical locations within the file.

Yes, reverting to a snapshot and re-deploying (via 'mvn clean install
-DskipTests') and restarting Tomcat, should resolve the issue. You might
also try, however, using a utility app that can show you differences between
two files - your current version and your snapshot - and see if the error is
readily made apparent by looking at those changes in that 'diff' view. (If
you're using Mac OS X, there's a list of such apps at
http://apple.stackexchange.com/a/87188)

It's also worth checking the current cspace-app.log and
catalina.{today's date}.log to see if there may be any log message
specifically pinpointing the configuration error.

Aron

On Fri, Aug 16, 2013 at 1:16 PM, Al Bersch abersch@museumca.org wrote:

Hi again,

Ok, I think I must have messed up somewhere when changing the files in
the application layer. When I navigated to our tenant, the login screen is
blank except for a place to put a user name and password. when I submit my
password, I get this message: Any idea what I did wrong? Thanks!

I have a snapshot prior to the changes in the application layer, so I
can always go back in time and try again.

Al

HTTP Status 400 -
org.collectionspace.chain.controller.BadRequestException: Cannot initialise
CSPs org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading config.
See messages for details: summary Exception raised during parsing at
org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185)
at
org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117)
at
org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:724) Caused by:
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading config.
See messages for details: summary Exception raised during parsing at
org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64)
at
org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156)
at
org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179)
... 22 more Caused by: org.collectionspace.chain.csp.config.ConfigException:
Error loading config. See messages for details: summary Exception raised
during parsing at
org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78)
at
org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74)
at
org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54)
... 24 more


type Status report

message org.collectionspace.chain.controller.BadRequestException:
Cannot initialise CSPs
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading config.
See messages for details: summary Exception raised during parsing at
org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185)
at
org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117)
at
org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:724) Caused by:
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading config.
See messages for details: summary Exception raised during parsing at
org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64)
at
org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156)
at
org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179)
... 22 more Caused by: org.collectionspace.chain.csp.config.ConfigException:
Error loading config. See messages for details: summary Exception raised
during parsing at
org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78)
at
org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74)
at
org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54)
... 24 more

description The request sent by the client was syntactically incorrect
(org.collectionspace.chain.controller.BadRequestException: Cannot initialise
CSPs org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading config.
See messages for details: summary Exception raised during parsing at
org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185)
at
org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117)
at
org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:724) Caused by:
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading config.
See messages for details: summary Exception raised during parsing at
org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64)
at
org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156)
at
org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179)
... 22 more Caused by: org.collectionspace.chain.csp.config.ConfigException:
Error loading config. See messages for details: summary Exception raised
during parsing at
org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78)
at
org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74)
at
org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54)
... 24 more ).

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


From: "Aron Roberts" aronroberts@gmail.com
To: "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Friday, August 16, 2013 12:58:56 PM
Subject: Re: [Talk] deploy mvn error

Hi Al,

You likely will have success with 'mvn clean install -DskipTests'
when building and deploying the App layer with your dropdown list changes,
rather than 'mvn deploy -DskipTests'.

It's a bit confusing (and I hope I don't need to keep repeating this
:-), but CollectionSpace Services layer uses Maven to build artifacts and
Ant buildfiles to deploy (copy) them to the server (hence 'mvn clean
install' followed by 'ant deploy'), while the Application and UI layers use
Maven ('mvn install') for both tasks. There are some historical and
technical reasons for this difference, not worth going into ...

Aron

On Fri, Aug 16, 2013 at 12:49 PM, Al Bersch abersch@museumca.org
wrote:

Hello all,

I changed our dropdown lists in Department and Collection in the
application layer source code, and when I ran mvn deploy -DskipTests I get
this error:

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to configure plugin parameters for:
org.apache.maven.plugins:maven-deploy-plugin:2.4

check that the following section of the pom.xml is present and
correct:

<distributionManagement> <!-- use the following if you're not using a snapshot version. --> <repository> <id>repo</id> <name>Repository Name</name> <url>scp://host/path/to/repo</url> </repository> <!-- use the following if you ARE using a snapshot version. --> <snapshotRepository> <id>repo</id> <name>Repository Name</name> <url>scp://host/path/to/repo</url> </snapshotRepository> </distributionManagement>

Cause: Class
'org.apache.maven.artifact.repository.ArtifactRepository' cannot be
instantiated

I looked in the pom.xml, and found this:

<!-- The CollectionSpace public Maven repository for "snapshot" artifacts --> <repositories> <repository> <id>libs-snapshot-local</id> <name>libs-snapshot-local</name>

<url>http://nightly.collectionspace.org:8081/artifactory/libs-snapshot-local</url>
<snapshots>
<enabled>true</enabled>
</snapshots>

I'm wondering, which repository setting should I use (snapshot or not
snapshot)? Our installation is on a virtual server in linode.

And, does anyone know where I should set the path to our repository?
I'm guessing that the error is party due to the url being mapped to
nightly.collectionspace.org.

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, Ray - Thanks for all this advice and patience. I am using vim to edit the xml in a terminal window. I am useing an Ubuntu virtual server. Using SFTP to connect via text wragler is beautiful, but we didn't allow login for root via ssh or ftp, and root owns these files. I suppose I could copy everything over to abersch, and then copy back to root later? Does anyone have a suggestion for best practices using sftp tools to edit? The XML validator is great. I don't have any errors in omca-collectionobject.xml. And Jesse, thanks for catching that typo in omca-tenant.xml. That was acutally live - my bad! Checking the logs, it looks like the problem is with settings.xml or local-omca-setitngs.xml. There's nothing in my omca settings.xml file (hence the "null" symbol over and over). would it make sense to re-copy over settings.xml from the "core" tenant into "omca," and make the changes listed in the "creating your tenant" documentation? Thanks again everyone. This is so beyond helpful. 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" <aronroberts@gmail.com> To: "Jesse Martinez" <mjesse@gmail.com> Cc: "Al Bersch" <abersch@museumca.org>, "talk" <talk@lists.collectionspace.org> Sent: Tuesday, August 20, 2013 4:31:01 PM Subject: Re: [Talk] deploy mvn error Thanks, Jesse! As yet another possibility, along with the other options mentioned, the (free) TextWrangler editor can directly open files on a remote system via SFTP: http://reviews.cnet.com/8301-13727_7-57502913-263/how-to-use-textwrangler-as-a-remote-file-editor/ On Tue, Aug 20, 2013 at 4:12 PM, Jesse Martinez <mjesse@gmail.com> wrote: > Hi Al, > > Just noticed a quick typo in the text you c/p into an earlier email. It > looks like you might be missing a closing bracket in this line: I don't know > if it's a c/p typo or not, so just thought I'd point it out! > > <include src="base-collectionobject.xml,omca-collectionobject.xml" > merge="xmlmerge.properties"/ > > Also, how are you editing these files? Are you using a cli utility like > emacs or vim? (Might you be using Cygwin on Windows?? I've used this in the > past and there are sometimes encoding issues involved including end line > chars.) I'm trying to deduce if there are encoding issues at play here. > > Personally speaking, I like to use a local editor when making quick changes > on a remote server. What works for me on a Mac is a combination of Cyberduck > (free sftp client) (or Transmit, which is well worth its price), and Sublime > Text. Cyberduck can be set to automatically open editable files in Sublime > Text and save them back to the remote server seamlessly. Sublime Text isn't > a full-fledged IDE, but it is light-weight and has a lot of good tools for > easily checking format and syntax based on file type. It's free, works on > multiple OSs and my go-to code editor in a pinch. Aron also recommends good > editors too. > > - Jesse > > > On Tue, Aug 20, 2013 at 6:12 PM, Al Bersch <abersch@museumca.org> wrote: >> >> Hi Aron, >> >> Thanks so much for addressing these questions. >> >> I entered the language at the end of your email into my >> /tomcat-main/src/main/resources/omca-tenant.xml file, like this: >> >> <cspace-config tenantname="omca"> >> >> <version>11</version> >> <!-- Note: omca-collectionobject.xml should not appear in the >> 'include' line below --> >> <!-- This line is for merging various settings files together. --> >> <include src="settings.xml,local-omca-settings.xml" >> merge="xmlmerge.properties" >> strip-root="yes" /> >> >> <spec> >> <include src="base-relations.xml"/> >> <include src="base-schemas.xml"/> >> >> <records> >> <enum-blank>Please select a value</enum-blank> >> <!-- Here's where you can indicate that you want >> to merge in your own Cataloging record changes --> >> <include >> src="base-collectionobject.xml,omca-collectionobject.xml" >> merge="xmlmerge.properties"/ >> <include src="base-procedure-acquisition.xml"/> >> <include src="base-procedure-blobs.xml"/> >> ... >> >> then re-created the omca-collectionobject.xml file (located at >> tomcat-main/src/main/resources/tenants/omca) with this inside it: >> >> +<record id="collection-object"> >> + >> + <section id="identificationInformation"> >> + <repeat id="responsibleDepartments" has-primary="yes"> >> + >> <selector>object-identification-responsible-department</selector> >> + <field id="responsibleDepartment" ui-search="repeatable" >> mini="search" >> + seperate_ui_container="true"> >> + >> <selector>object-identification-responsible-department</selector> >> + <options> >> + <option id="">Please select a value</option> >> + <option id="art">Art</option> >> + <option id="history">History</option> >> + <option id="science">Science</option> >> + <option id="collections">Collections</option> >> + <option id="education">Education</option> >> + <option id="professionalservices">Professional >> Services</option> >> + <option id="multi">Multi</option> >> + </options> >> + </field> >> + </repeat> >> + <field id="collection" ui-search="repeatable" >> seperate_ui_container="true"> >> + <selector>object-identification-collection</selector> >> + <options> >> + <option id="">Please select a value</option> >> + <option id="art">Art</option> >> + <option id="artandartifact">Art and Artifact</option> >> + <option id="exhibit">Exhibit</option> >> + <option id="history">History</option> >> + <option id="scientomology">SCI-Entomology</option> >> + <option id="scifineart">SCI-Fine Art</option> >> + <option id="scigalleryspecimens">SCI-Gallery >> Specimens</option> >> + <option id="scigeology">SCI-Geology</option> >> + <option id="sciherbarium">SCI-Herbarium</option> >> + <option id="sciherpetology">SCI-Herpetology</option> >> + <option id="sciicthyology">SCI-Icthyology</option> >> + <option id="sciinvertebrates">SCI-Invertebrates</option> >> + <option id="scilapidary">SCI-Lapidary</option> >> + <option id="scimalacology">SCI-Malacology</option> >> + <option id="scimammalogy">SCI-Mammalogy</option> >> + <option id="scimiscellaneous">SCI-Miscellaneous</option> >> + <option id="sciornithology">SCI-Ornithology</option> >> + <option id="scipaleontology">SCI-Paleontology</option> >> + <option id="sciphoto">SCI-Photo</option> >> + <option id="scisnuffbottles">SCI-Snuff Bottles</option> >> + <option id="specimen">Specimen</option> >> + </options> >> + </field> >> + </section> >> + >> +</record> >> >> But alas, I'm still getting the same error message when I log into my >> tenant. >> >> If it matters, I looked in my settings.xml file and get a big chunk of >> this: ^@^@^@^@^@^@^. >> >> do you see anything wrong here in the files I copied? >> >> thanks, >> >> 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" <aronroberts@gmail.com> >> To: "Al Bersch" <abersch@museumca.org> >> Cc: "talk" <talk@lists.collectionspace.org> >> Sent: Monday, August 19, 2013 5:39:58 PM >> >> Subject: Re: [Talk] deploy mvn error >> >> Hi Al, >> >> My sincere apologies for these difficulties you've been encountering. >> >> > It looks like the problem is with merging settings.xml and >> > local-omca-settings.xml? >> >> Yes, that certainly looks like the case. >> >> This line appeared in part of the output from this error, in >> catalina.out: >> >> > 2013-08-19 21:46:13,364 ERROR [http-8180-3] ... Message: Exception >> > raised during parsing >> > Stack : >> > org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61) >> >> From looking at the Application layer's code at line 61 of >> AssemblingParser.java: >> >> https://github.com/collectionspace/application/blob/v3.3/csp-impl/src/main/java/org/collectionspace/chain/csp/config/impl/parser/AssemblingParser.java#L61 >> it appears the error is in reading or merging XML content, rather than in >> not finding either of the two files to be merged, or in not being able to >> read them as a result of insufficient access permissions or other >> filesystem-related issues. >> >> It appears that you might potentially be inadvertently trying to merge >> two dissimilar things: a settings file for your tenant (which contains some >> general administrative settings), together with some field-level settings >> for a particular record type. >> >> If you'd like to merge custom changes into the Cataloging record, such >> as changing the contents of options lists, here's an example of how you can >> specify that, as shown line 12 of the tenant 'includes' file for the UCJEPS >> herbaria: >> >> >> https://github.com/cspace-deployment/application/blob/ucjeps_3.2/tomcat-main/src/main/resources/ucjeps-tenant.xml#L12 >> >> Following that example, your >> /tomcat-main/src/main/resources/omca-tenant.xml file might look something >> like the following: >> >> <cspace-config tenantname="omca"> >> <version>11</version> >> <!-- Note: omca-collectionobject.xml should not appear in the 'include' >> line below --> >> <!-- This line is for merging various settings files together. --> >> <include src="settings.xml,local-settings.xml" >> merge="xmlmerge-settings.properties" strip-root="yes"/> >> ... >> <records> >> <enum-blank>Please select a value</enum-blank> >> <!-- Here's where you can indicate that you want to merge in your own >> Cataloging record changes --> >> <include src="base-collectionobject.xml,omca-collectionobject.xml" >> merge="xmlmerge.properties"/> >> ... >> >> Aron >> >> On Mon, Aug 19, 2013 at 4:28 PM, Al Bersch <abersch@museumca.org> wrote: >> > >> > Hi Aron, >> > >> > Thanks so much again for your continued assistance. And for the plug for >> > using github as a backup resource - I'll do that, and also apologize in >> > advance for the cut-and-paste text below. >> > >> > I installed DiffMerge, but I'm not sure what to compare, since the file >> > I added to the omca tenant (omca-collectionobject.xml), wasn't there in the >> > previous snapshot. I think I'm a little confused. >> > >> > I looked in the cspace-app.log and catalina.out (can you tell me where I >> > might find catalina.(today'sdate).log?) and here are some snippets, first >> > from cspace-app.log: >> > >> > 2013-08-19 21:46:13,363 WARN [http-8180-3] >> > [org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:218] >> > Could not merge the include files: settings.xml,local-omca-settings.xml >> > 2013-08-19 21:46:13,364 ERROR [http-8180-3] >> > [org.collectionspace.chain.csp.config.impl.parser.ConfigLoadingMessagesImpl:16] >> > Message: Exception raised during parsing >> > >> > Stack : >> > org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61) >> > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse (62) >> > org.collectionspace.csp.container.impl.CSPManagerImpl.configure (54) >> > org.collectionspace.chain.controller.TenantServlet.load_config (156) >> > org.collectionspace.chain.controller.TenantServlet.setup (179) >> > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant >> > (117) >> > org.collectionspace.chain.controller.TenantUIServlet.service (568) >> > javax.servlet.http.HttpServlet.service (717) >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (290) >> > org.apache.catalina.core.ApplicationFilterChain.doFilter (206) >> > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter (33) >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235) >> > org.apache.catalina.core.ApplicationFilterChain.doFilter (206) >> > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter (99) >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235) >> > org.apache.catalina.core.ApplicationFilterChain.doFilter (206) >> > org.apache.catalina.core.StandardWrapperValve.invoke (233) >> > org.apache.catalina.core.StandardContextValve.invoke (191) >> > org.apache.catalina.core.StandardHostValve.invoke (127) >> > org.apache.catalina.valves.ErrorReportValve.invoke (102) >> > org.apache.catalina.valves.AccessLogValve.invoke (589) >> > org.apache.catalina.core.StandardEngineValve.invoke (109) >> > org.apache.catalina.connector.CoyoteAdapter.service (291) >> > org.apache.coyote.http11.Http11Processor.process (859) >> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process >> > (602) >> > org.apache.tomcat.util.net.JIoEndpoint$Worker.run (489) >> > java.lang.Thread.run (724) >> > >> > CAUSED BY >> > Message: Could not load source >> > >> > >> > >> > then from catalina.out: >> > >> > 2013-08-19 17:49:25,334 ERROR [main] >> > [org.collectionspace.services.common.config.ConfigUtils:51] No domain name >> > was specified on call to getRepositoryName() method.2013-08-19 17:49:25,334 >> > ERROR [main] [org.collectionspace.services.common.config.ConfigUtils:51] No >> > domain name was specified on call to getRepositoryName() method.2013-08-19 >> > 17:49:25,334 ERROR [main] >> > [org.collectionspace.services.common.config.ConfigUtils:51] No domain name >> > was specified on call to getRepositoryName() method.[INFO] Starting up the >> > CollectionSpace Services' JAX-RS application.Static initializtion of: >> > org.collectionspace.services.common.security.SecurityInterceptor[INFO] >> > CollectionSpace Services' JAX-RS application started.2013-08-19 17:49:27,339 >> > (0) [http-8180-4] INFO >> > org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler: >> > XMLMerge result output to: >> > /usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19 >> > 17:49:29,695 (2356) [http-8180-2] INFO >> > org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler: >> > XMLMerge result output to: >> > /usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19 >> > 17:49:29,732 (2393) [net.sf.ehcache.CacheManager@23aeae74] INFO >> > net.sf.ehcache.util.UpdateChecker: New update(s) found: 2.6.5 >> > [http://www.terracotta.org/confluence/display/release/Release+Notes+Ehcache+Core+2.6]. >> > Please check http://ehcache.org for the latest version.Could not get session >> > from CSPACESESSID cookie with value: >> > 31b6c5daf4d4180636604cb25ac9f75f2013-08-19 17:49:47,810 WARN [http-8180-7] >> > [org.collectionspace.services.common.security.SecurityInterceptor:358] >> > Attempt to logout when Nuxeo login context was null2013-08-19 17:49:47,953 >> > WARN [http-8180-7] >> > [org.springframework.security.web.context.HttpSessionSecurityContextRepository:396] >> > Failed to create a session, as response has been committed. Unable to store >> > SecurityContext.2013-08-19 17:49:48,765 WARN [http-8180-7] >> > [org.collectionspace.services.common.security.SecurityInterceptor:358] >> > Attempt to logout when Nuxeo login context was null2013-08-19 17:49:48,773 >> > WARN [http-8180-7] >> > [org.springframework.security.web.context.HttpSessionSecurityContextRepository:396] >> > Failed to create a session, as response has been committed. Unable to store >> > SecurityContext.2013-08-19 21:07:17,771 ERROR >> > [ContainerBackgroundProcessor[StandardEngine[Catalina]]] >> > [org.apache.catalina.loader.WebappClassLoader:2191] The web application >> > [/collectionspace] appears to have started a thread named >> > [net.sf.ehcache.CacheManager@23aeae74] but has failed to stop it. This is >> > very likely to create a memory leak.2013-08-19 21:07:17,772 ERROR >> > [ContainerBackgroundProcessor[StandardEngine[Catalina]]] >> > [org.apache.catalina.loader.WebappClassLoader:2191] The web application >> > [/collectionspace] appears to have started a thread named >> > [MultiThreadedHttpConnectionManager cleanup] but has failed to stop it. This >> > is very likely to create a memory leak.2013-08-19 21:07:17,780 ERROR >> > [ContainerBackgroundProcessor[StandardEngine[Catalina]]] >> > [org.apache.catalina.loader.WebappClassLoader:2453] The web application >> > [/collectionspace] created a ThreadLocal with key of type >> > [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value >> > [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a value of >> > type [java.util.HashMap] (value [{}]) but failed to remove it when the web >> > application was stopped. This is very likely to create a memory >> > leak.2013-08-19 21:07:17,781 ERROR >> > [ContainerBackgroundProcessor[StandardEngine[Catalina]]] >> > [org.apache.catalina.loader.WebappClassLoader:2453] The web application >> > [/collectionspace] created a ThreadLocal with key of type >> > [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value >> > [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a value of >> > type [java.util.HashMap] (value [{}]) but failed to remove it when the web >> > application was stopped. This is very likely to create a memory >> > leak.2013-08-19 21:09:34,685 (0) [http-8180-4] WARN >> > org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler: >> > Could not merge the include files: settings.xml,local-omca-settings.xml >> > >> > >> > It looks like the problem is with merging settings.xml and >> > local-omca-settings.xml? >> > >> > I've tried a second time to create the configuration change in >> > omca-collectionobject.xml (a newly created xml file with only this snippet >> > in it: >> > >> > +<record id="collection-object"> >> > + >> > + <section id="identificationInformation"> >> > + <repeat id="responsibleDepartments" has-primary="yes"> >> > + >> > <selector>object-identification-responsible-department</selector> >> > + <field id="responsibleDepartment" ui-search="repeatable" >> > mini="search" >> > + seperate_ui_container="true"> >> > + >> > <selector>object-identification-responsible-department</selector> >> > + <options> >> > + <option id="">Please select a value</option> >> > + <option id="art">Art</option> >> > + <option id="history">History</option> >> > + <option id="science">Science</option> >> > + <option id="collections">Collections</option> >> > + <option id="education">Education</option> >> > + <option id="professionalservices">Professional >> > Services</option> >> > + <option id="multi">Multi</option> >> > + </options> >> > + </field> >> > + </repeat> >> > + <field id="collection" ui-search="repeatable" >> > seperate_ui_container="true"> >> > + <selector>object-identification-collection</selector> >> > + <options> >> > + <option id="">Please select a value</option> >> > + <option id="art">Art</option> >> > + <option id="artandartifact">Art and Artifact</option> >> > + <option id="exhibit">Exhibit</option> >> > + <option id="history">History</option> >> > + <option id="scientomology">SCI-Entomology</option> >> > + <option id="scifineart">SCI-Fine Art</option> >> > + <option id="scigalleryspecimens">SCI-Gallery >> > Specimens</option> >> > + <option id="scigeology">SCI-Geology</option> >> > + <option id="sciherbarium">SCI-Herbarium</option> >> > + <option id="sciherpetology">SCI-Herpetology</option> >> > + <option id="sciicthyology">SCI-Icthyology</option> >> > + <option id="sciinvertebrates">SCI-Invertebrates</option> >> > + <option id="scilapidary">SCI-Lapidary</option> >> > + <option id="scimalacology">SCI-Malacology</option> >> > + <option id="scimammalogy">SCI-Mammalogy</option> >> > + <option id="scimiscellaneous">SCI-Miscellaneous</option> >> > + <option id="sciornithology">SCI-Ornithology</option> >> > + <option id="scipaleontology">SCI-Paleontology</option> >> > + <option id="sciphoto">SCI-Photo</option> >> > + <option id="scisnuffbottles">SCI-Snuff Bottles</option> >> > + <option id="specimen">Specimen</option> >> > + </options> >> > + </field> >> > + </section> >> > + >> > +</record> >> > >> > >> > >> > then according to your last email, I ran "mvn clean install -DskipTest" >> > rather than "mvn deploy -DskipTests". I ran this in the application layer >> > folder called "application" that contains the pom.xml file. In my path it >> > looks like /home/root/application-source/application/. Then, do I understand >> > I also need to run "ant deploy"? I wasn't able to run this in the same >> > folder - I got an error saying this is no build file. >> > >> > I'm going off your previous instructions, as well as the documentation >> > on the wiki for customizing the application layer: >> > >> > Hi Becky and Al, >> > One more set of notes on making 'starting out' customizations, >> > below: this one a customization of options in dropdown menus. >> > Aron >> > (Recommendation: start the CollectionSpace server before making the >> > following changes. This will help ensure those changes are made >> > 'live.') >> > * An example of how to replace the default sets of options in the >> > dropdown menus for the Responsible Department and OMCA Collection >> > fields. >> > The existing documentation on updating these option lists is >> > confusing, and wildly out of date; we expect to be updating it in the >> > near future. The customization method shown here as an example >> > reflects recently-added 'merge' capabilities that allow you to simply >> > replicate the block of configuration you want to customize, within a >> > separate file for your own museum; it will override the corresponding >> > configuration block in the default settings: >> > Actual change(s) made, within the source code tree for >> > CollectionSpace's Application layer: >> > >> > https://github.com/aronr/application/commit/b7a47d94fc6d44d0cad74f6444710a35373291c7 >> > You can compare this to the default configuration file for the >> > Cataloging record, in which the default options for those two dropdown >> > menus appear: >> > >> > https://github.com/aronr/application/blob/b7a47d94fc6d44d0cad74f6444710a35373291c7/tomcat-main/src/main/resources/defaults/base-collectionobject.xml#L112 >> > To copy (deploy) these changes to the server folder, enter the >> > following at a command prompt, from within the top-level folder of the >> > Application source code tree: >> > mvn deploy -DskipTests >> > >> > >> > >> > Sorry I'm not getting this! Do you have any ideas? >> > >> > 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" <aronroberts@gmail.com> >> > To: "Al Bersch" <abersch@museumca.org> >> > Cc: "talk" <talk@lists.collectionspace.org> >> > Sent: Friday, August 16, 2013 1:28:48 PM >> > >> > Subject: Re: [Talk] deploy mvn error >> > >> > The key is likely this snippet, from near the beginning of that long and >> > singularly unhelpful chain of messages: >> > "org.collectionspace.chain.csp.config.ConfigException: Error loading >> > config" >> > >> > There may have been an error made in whatever configuration file, or >> > files, were modified. After they were deployed (copied) to the server, when >> > the Application layer read them, it got confused and barfed out this long >> > stack trace. >> > >> > Typically, this means the file(s), after being modified, weren't >> > well-formed XML - perhaps an ending tag was left out somewhere? - or they >> > didn't conform to the Application layer's expectation of what 'tags' (XML >> > elements) are expected, in which hierarchical locations within the file. >> > >> > Yes, reverting to a snapshot and re-deploying (via 'mvn clean install >> > -DskipTests') and restarting Tomcat, should resolve the issue. You might >> > also try, however, using a utility app that can show you differences between >> > two files - your current version and your snapshot - and see if the error is >> > readily made apparent by looking at those changes in that 'diff' view. (If >> > you're using Mac OS X, there's a list of such apps at >> > http://apple.stackexchange.com/a/87188) >> > >> > It's also worth checking the current cspace-app.log and >> > catalina.{today's date}.log to see if there may be any log message >> > specifically pinpointing the configuration error. >> > >> > Aron >> > >> > On Fri, Aug 16, 2013 at 1:16 PM, Al Bersch <abersch@museumca.org> wrote: >> > > >> > > Hi again, >> > > >> > > Ok, I think I must have messed up somewhere when changing the files in >> > > the application layer. When I navigated to our tenant, the login screen is >> > > blank except for a place to put a user name and password. when I submit my >> > > password, I get this message: Any idea what I did wrong? Thanks! >> > > >> > > I have a snapshot prior to the changes in the application layer, so I >> > > can always go back in time and try again. >> > > >> > > Al >> > > >> > > HTTP Status 400 - >> > > org.collectionspace.chain.controller.BadRequestException: Cannot initialise >> > > CSPs org.collectionspace.csp.api.core.CSPDependencyException: >> > > org.collectionspace.chain.csp.config.ConfigException: Error loading config. >> > > See messages for details: summary Exception raised during parsing at >> > > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185) >> > > at >> > > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117) >> > > at >> > > org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568) >> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at >> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) >> > > at >> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> > > at >> > > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33) >> > > at >> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> > > at >> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> > > at >> > > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99) >> > > at >> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> > > at >> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> > > at >> > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) >> > > at >> > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) >> > > at >> > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) >> > > at >> > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >> > > at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589) >> > > at >> > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) >> > > at >> > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) >> > > at >> > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) >> > > at >> > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) >> > > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) >> > > at java.lang.Thread.run(Thread.java:724) Caused by: >> > > org.collectionspace.csp.api.core.CSPDependencyException: >> > > org.collectionspace.chain.csp.config.ConfigException: Error loading config. >> > > See messages for details: summary Exception raised during parsing at >> > > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64) >> > > at >> > > org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156) >> > > at >> > > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179) >> > > ... 22 more Caused by: org.collectionspace.chain.csp.config.ConfigException: >> > > Error loading config. See messages for details: summary Exception raised >> > > during parsing at >> > > org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78) >> > > at >> > > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74) >> > > at >> > > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54) >> > > ... 24 more >> > > >> > > ________________________________ >> > > >> > > type Status report >> > > >> > > message org.collectionspace.chain.controller.BadRequestException: >> > > Cannot initialise CSPs >> > > org.collectionspace.csp.api.core.CSPDependencyException: >> > > org.collectionspace.chain.csp.config.ConfigException: Error loading config. >> > > See messages for details: summary Exception raised during parsing at >> > > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185) >> > > at >> > > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117) >> > > at >> > > org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568) >> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at >> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) >> > > at >> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> > > at >> > > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33) >> > > at >> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> > > at >> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> > > at >> > > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99) >> > > at >> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> > > at >> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> > > at >> > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) >> > > at >> > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) >> > > at >> > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) >> > > at >> > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >> > > at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589) >> > > at >> > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) >> > > at >> > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) >> > > at >> > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) >> > > at >> > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) >> > > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) >> > > at java.lang.Thread.run(Thread.java:724) Caused by: >> > > org.collectionspace.csp.api.core.CSPDependencyException: >> > > org.collectionspace.chain.csp.config.ConfigException: Error loading config. >> > > See messages for details: summary Exception raised during parsing at >> > > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64) >> > > at >> > > org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156) >> > > at >> > > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179) >> > > ... 22 more Caused by: org.collectionspace.chain.csp.config.ConfigException: >> > > Error loading config. See messages for details: summary Exception raised >> > > during parsing at >> > > org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78) >> > > at >> > > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74) >> > > at >> > > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54) >> > > ... 24 more >> > > >> > > description The request sent by the client was syntactically incorrect >> > > (org.collectionspace.chain.controller.BadRequestException: Cannot initialise >> > > CSPs org.collectionspace.csp.api.core.CSPDependencyException: >> > > org.collectionspace.chain.csp.config.ConfigException: Error loading config. >> > > See messages for details: summary Exception raised during parsing at >> > > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185) >> > > at >> > > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117) >> > > at >> > > org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568) >> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at >> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) >> > > at >> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> > > at >> > > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33) >> > > at >> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> > > at >> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> > > at >> > > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99) >> > > at >> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> > > at >> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> > > at >> > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) >> > > at >> > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) >> > > at >> > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) >> > > at >> > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >> > > at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589) >> > > at >> > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) >> > > at >> > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) >> > > at >> > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) >> > > at >> > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) >> > > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) >> > > at java.lang.Thread.run(Thread.java:724) Caused by: >> > > org.collectionspace.csp.api.core.CSPDependencyException: >> > > org.collectionspace.chain.csp.config.ConfigException: Error loading config. >> > > See messages for details: summary Exception raised during parsing at >> > > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64) >> > > at >> > > org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156) >> > > at >> > > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179) >> > > ... 22 more Caused by: org.collectionspace.chain.csp.config.ConfigException: >> > > Error loading config. See messages for details: summary Exception raised >> > > during parsing at >> > > org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78) >> > > at >> > > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74) >> > > at >> > > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54) >> > > ... 24 more ). >> > > >> > > >> > > Al Bersch >> > > Digital Project Coordinator >> > > Oakland Museum of California >> > > 1000 Oak Street, Oakland, CA 94607 >> > > abersch@museumca.org >> > > 510-318-8468 >> > > ________________________________ >> > > From: "Aron Roberts" <aronroberts@gmail.com> >> > > To: "Al Bersch" <abersch@museumca.org> >> > > Cc: "talk" <talk@lists.collectionspace.org> >> > > Sent: Friday, August 16, 2013 12:58:56 PM >> > > Subject: Re: [Talk] deploy mvn error >> > > >> > > Hi Al, >> > > >> > > You likely will have success with 'mvn clean install -DskipTests' >> > > when building and deploying the App layer with your dropdown list changes, >> > > rather than 'mvn deploy -DskipTests'. >> > > >> > > It's a bit confusing (and I hope I don't need to keep repeating this >> > > :-), but CollectionSpace Services layer uses Maven to build artifacts and >> > > Ant buildfiles to deploy (copy) them to the server (hence 'mvn clean >> > > install' followed by 'ant deploy'), while the Application and UI layers use >> > > Maven ('mvn install') for both tasks. There are some historical and >> > > technical reasons for this difference, not worth going into ... >> > > >> > > Aron >> > > >> > > >> > > On Fri, Aug 16, 2013 at 12:49 PM, Al Bersch <abersch@museumca.org> >> > > wrote: >> > >> >> > >> Hello all, >> > >> >> > >> I changed our dropdown lists in Department and Collection in the >> > >> application layer source code, and when I ran mvn deploy -DskipTests I get >> > >> this error: >> > >> >> > >> [ERROR] BUILD ERROR >> > >> [INFO] >> > >> ------------------------------------------------------------------------ >> > >> [INFO] Failed to configure plugin parameters for: >> > >> org.apache.maven.plugins:maven-deploy-plugin:2.4 >> > >> >> > >> check that the following section of the pom.xml is present and >> > >> correct: >> > >> >> > >> <distributionManagement> >> > >> <!-- use the following if you're not using a snapshot version. --> >> > >> <repository> >> > >> <id>repo</id> >> > >> <name>Repository Name</name> >> > >> <url>scp://host/path/to/repo</url> >> > >> </repository> >> > >> <!-- use the following if you ARE using a snapshot version. --> >> > >> <snapshotRepository> >> > >> <id>repo</id> >> > >> <name>Repository Name</name> >> > >> <url>scp://host/path/to/repo</url> >> > >> </snapshotRepository> >> > >> </distributionManagement> >> > >> >> > >> Cause: Class >> > >> 'org.apache.maven.artifact.repository.ArtifactRepository' cannot be >> > >> instantiated >> > >> >> > >> >> > >> >> > >> I looked in the pom.xml, and found this: >> > >> >> > >> <!-- The CollectionSpace public Maven repository for "snapshot" >> > >> artifacts --> >> > >> <repositories> >> > >> <repository> >> > >> <id>libs-snapshot-local</id> >> > >> <name>libs-snapshot-local</name> >> > >> >> > >> <url>http://nightly.collectionspace.org:8081/artifactory/libs-snapshot-local</url> >> > >> <snapshots> >> > >> <enabled>true</enabled> >> > >> </snapshots> >> > >> >> > >> >> > >> I'm wondering, which repository setting should I use (snapshot or not >> > >> snapshot)? Our installation is on a virtual server in linode. >> > >> >> > >> And, does anyone know where I should set the path to our repository? >> > >> I'm guessing that the error is party due to the url being mapped to >> > >> nightly.collectionspace.org. >> > >> >> > >> 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 >> >
RL
Ray Lee
Wed, Aug 21, 2013 7:06 PM

Hi Al,
Are you saying that in tenants/omca, you have a settings.xml file that's
empty? I'm pretty sure that would cause a problem. The merge probably isn't
expecting an empty file. Yes, I'd copy settings.xml over from either
defaults or the core tenant, and modify it according to the instructions.

Ray

On Wed, Aug 21, 2013 at 11:30 AM, Al Bersch abersch@museumca.org wrote:

Hi Aron, Jesse, Ray -

Thanks for all this advice and patience.

I am using vim to edit the xml in a terminal window. I am useing an Ubuntu
virtual server. Using SFTP to connect via text wragler is beautiful, but
we didn't allow login for root via ssh or ftp, and root owns these files. I
suppose I could copy everything over to abersch, and then copy back to root
later? Does anyone have a suggestion for best practices using sftp tools to
edit?

The XML validator is great. I don't have any errors in
omca-collectionobject.xml.  And Jesse, thanks for catching that typo in
omca-tenant.xml. That was acutally live - my bad!

Checking the logs, it looks like the problem is with settings.xml or
local-omca-setitngs.xml. There's  nothing in my omca settings.xml file
(hence the "null" symbol over and over). would it make sense to re-copy
over settings.xml from the "core" tenant into "omca," and make the changes
listed in the "creating your tenant" documentation?

Thanks again everyone. This is so beyond helpful.

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" aronroberts@gmail.com
*To: *"Jesse Martinez" mjesse@gmail.com

*Cc: *"Al Bersch" abersch@museumca.org, "talk" <
talk@lists.collectionspace.org>
*Sent: *Tuesday, August 20, 2013 4:31:01 PM

*Subject: *Re: [Talk] deploy mvn error

Thanks, Jesse!

As yet another possibility, along with the other options mentioned,
the (free) TextWrangler editor can directly open files on a remote
system via SFTP:

http://reviews.cnet.com/8301-13727_7-57502913-263/how-to-use-textwrangler-as-a-remote-file-editor/

On Tue, Aug 20, 2013 at 4:12 PM, Jesse Martinez mjesse@gmail.com wrote:

Hi Al,

Just noticed a quick typo in the text you c/p into an earlier email.  It
looks like you might be missing a closing bracket in this line: I don't

know

if it's a c/p typo or not, so just thought I'd point it out!

<include src="base-collectionobject.xml,omca-collectionobject.xml"
merge="xmlmerge.properties"/

Also, how are you editing these files? Are you using a cli utility like
emacs or vim? (Might you be using Cygwin on Windows?? I've used this in

the

past and there are sometimes encoding issues involved including end line
chars.) I'm trying to deduce if there are encoding issues at play here.

Personally speaking, I like to use a local editor when making quick

changes

on a remote server. What works for me on a Mac is a combination of

Cyberduck

(free sftp client) (or Transmit, which is well worth its price), and

Sublime

Text. Cyberduck can be set to automatically open editable files in

Sublime

Text and save them back to the remote server seamlessly. Sublime Text

isn't

a full-fledged IDE, but it is light-weight and has a lot of good tools

for

easily checking format and syntax based on file type. It's free, works on
multiple OSs and my go-to code editor in a pinch. Aron also recommends

good

editors too.

  • Jesse

On Tue, Aug 20, 2013 at 6:12 PM, Al Bersch abersch@museumca.org wrote:

Hi Aron,

Thanks so much for addressing these questions.

I entered the language at the end of your email into my
/tomcat-main/src/main/resources/omca-tenant.xml file, like this:

<cspace-config tenantname="omca">
     <version>11</version>
     <!-- Note: omca-collectionobject.xml should not appear in the

'include' line below -->
<!-- This line is for merging various settings files together.

-->

     <include src="settings.xml,local-omca-settings.xml"

merge="xmlmerge.properties"
strip-root="yes" />

     <spec>
             <include src="base-relations.xml"/>
             <include src="base-schemas.xml"/>

             <records>
                     <enum-blank>Please select a value</enum-blank>
                     <!-- Here's where you can indicate that you want

to merge in your own Cataloging record changes -->
<include
src="base-collectionobject.xml,omca-collectionobject.xml"
merge="xmlmerge.properties"/
<include src="base-procedure-acquisition.xml"/>
<include src="base-procedure-blobs.xml"/>
...

then re-created the omca-collectionobject.xml file (located at
tomcat-main/src/main/resources/tenants/omca) with this inside it:

+<record id="collection-object">
+

  • <section id="identificationInformation">
  •    <repeat id="responsibleDepartments" has-primary="yes">
    

<selector>object-identification-responsible-department</selector>

  •        <field id="responsibleDepartment" ui-search="repeatable"
    

mini="search"

  •         seperate_ui_container="true">
    

<selector>object-identification-responsible-department</selector>

  •            <options>
    
  •                <option id="">Please select a value</option>
    
  •                <option id="art">Art</option>
    
  •                <option id="history">History</option>
    
  •                <option id="science">Science</option>
    
  •                <option id="collections">Collections</option>
    
  •                <option id="education">Education</option>
    
  •                <option id="professionalservices">Professional
    

Services</option>

  •                <option id="multi">Multi</option>
    
  •            </options>
    
  •        </field>
    
  •    </repeat>
    
  •    <field id="collection" ui-search="repeatable"
    

seperate_ui_container="true">

  •        <selector>object-identification-collection</selector>
    
  •        <options>
    
  •           <option id="">Please select a value</option>
    
  •           <option id="art">Art</option>
    
  •           <option id="artandartifact">Art and Artifact</option>
    
  •           <option id="exhibit">Exhibit</option>
    
  •           <option id="history">History</option>
    
  •           <option id="scientomology">SCI-Entomology</option>
    
  •           <option id="scifineart">SCI-Fine Art</option>
    
  •           <option id="scigalleryspecimens">SCI-Gallery
    

Specimens</option>

  •           <option id="scigeology">SCI-Geology</option>
    
  •           <option id="sciherbarium">SCI-Herbarium</option>
    
  •           <option id="sciherpetology">SCI-Herpetology</option>
    
  •           <option id="sciicthyology">SCI-Icthyology</option>
    
  •           <option id="sciinvertebrates">SCI-Invertebrates</option>
    
  •           <option id="scilapidary">SCI-Lapidary</option>
    
  •           <option id="scimalacology">SCI-Malacology</option>
    
  •           <option id="scimammalogy">SCI-Mammalogy</option>
    
  •           <option id="scimiscellaneous">SCI-Miscellaneous</option>
    
  •           <option id="sciornithology">SCI-Ornithology</option>
    
  •           <option id="scipaleontology">SCI-Paleontology</option>
    
  •           <option id="sciphoto">SCI-Photo</option>
    
  •           <option id="scisnuffbottles">SCI-Snuff Bottles</option>
    
  •           <option id="specimen">Specimen</option>
    
  •        </options>
    
  •    </field>
    
  • </section>

+</record>

But alas, I'm still getting the same error message when I log into my
tenant.

If it matters, I looked in my settings.xml file and get a big chunk of
this: ^@^@^@^@^@^@^.

do you see anything wrong here in the files I copied?

thanks,

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" aronroberts@gmail.com
To: "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Monday, August 19, 2013 5:39:58 PM

Subject: Re: [Talk] deploy mvn error

Hi Al,

My sincere apologies for these difficulties you've been encountering.

It looks like the problem is with merging settings.xml and
local-omca-settings.xml?

Yes, that certainly looks like the case.

This line appeared in part of the output from this error, in
catalina.out:

2013-08-19 21:46:13,364 ERROR [http-8180-3] ... Message: Exception
raised during parsing
Stack :

org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61)

From looking at the Application layer's code at line 61 of
AssemblingParser.java:

it appears the error is in reading or merging XML content, rather than

in

not finding either of the two files to be merged, or in not being able

to

read them as a result of insufficient access permissions or other
filesystem-related issues.

It appears that you might potentially be inadvertently trying to merge
two dissimilar things: a settings file for your tenant (which contains

some

general administrative settings), together with some field-level

settings

for a particular record type.

If you'd like to merge custom changes into the Cataloging record, such
as changing the contents of options lists, here's an example of how you

can

specify that, as shown line 12 of the tenant 'includes' file for the

UCJEPS

herbaria:

Following that example, your
/tomcat-main/src/main/resources/omca-tenant.xml file might look

something

like the following:

<cspace-config tenantname="omca"> <version>11</version> <!-- Note: omca-collectionobject.xml should not appear in the

'include'

line below -->
<!-- This line is for merging various settings files together. -->
<include src="settings.xml,local-settings.xml" merge="xmlmerge-settings.properties" strip-root="yes"/>
...
<records>
<enum-blank>Please select a value</enum-blank>
<!-- Here's where you can indicate that you want to merge in your

own

Cataloging record changes -->
<include src="base-collectionobject.xml,omca-collectionobject.xml" merge="xmlmerge.properties"/>
...

Aron

On Mon, Aug 19, 2013 at 4:28 PM, Al Bersch abersch@museumca.org

wrote:

Hi Aron,

Thanks so much again for your continued assistance. And for the plug

for

using github as a backup resource - I'll do that, and also apologize

in

advance for the cut-and-paste text below.

I installed DiffMerge, but I'm not sure what to compare, since the

file

I added to the omca tenant (omca-collectionobject.xml), wasn't there

in the

previous snapshot. I think I'm a little confused.

I looked in the cspace-app.log and catalina.out (can you tell me

where I

might find catalina.(today'sdate).log?) and here are some snippets,

first

from cspace-app.log:

2013-08-19 21:46:13,363 WARN  [http-8180-3]

[org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:218]

Could not merge the include files:

settings.xml,local-omca-settings.xml

2013-08-19 21:46:13,364 ERROR [http-8180-3]

[org.collectionspace.chain.csp.config.impl.parser.ConfigLoadingMessagesImpl:16]

Message: Exception raised during parsing

Stack :

org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61)

org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse

(62)

org.collectionspace.csp.container.impl.CSPManagerImpl.configure (54)
org.collectionspace.chain.controller.TenantServlet.load_config (156)
org.collectionspace.chain.controller.TenantServlet.setup (179)
org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant
(117)
org.collectionspace.chain.controller.TenantUIServlet.service (568)
javax.servlet.http.HttpServlet.service (717)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (290)
org.apache.catalina.core.ApplicationFilterChain.doFilter (206)
org.collectionspace.chain.controller.filters.PerflogFilter.doFilter

(33)

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235)
org.apache.catalina.core.ApplicationFilterChain.doFilter (206)
org.collectionspace.chain.controller.filters.CharSetFilter.doFilter

(99)

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235)
org.apache.catalina.core.ApplicationFilterChain.doFilter (206)
org.apache.catalina.core.StandardWrapperValve.invoke (233)
org.apache.catalina.core.StandardContextValve.invoke (191)
org.apache.catalina.core.StandardHostValve.invoke (127)
org.apache.catalina.valves.ErrorReportValve.invoke (102)
org.apache.catalina.valves.AccessLogValve.invoke (589)
org.apache.catalina.core.StandardEngineValve.invoke (109)
org.apache.catalina.connector.CoyoteAdapter.service (291)
org.apache.coyote.http11.Http11Processor.process (859)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process

(602)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run (489)
java.lang.Thread.run (724)

CAUSED BY
Message: Could not load source

then from catalina.out:

2013-08-19 17:49:25,334 ERROR [main]
[org.collectionspace.services.common.config.ConfigUtils:51] No domain

name

was specified on call to getRepositoryName() method.2013-08-19

17:49:25,334

ERROR [main]

[org.collectionspace.services.common.config.ConfigUtils:51] No

domain name was specified on call to getRepositoryName()

method.2013-08-19

17:49:25,334 ERROR [main]
[org.collectionspace.services.common.config.ConfigUtils:51] No domain

name

was specified on call to getRepositoryName() method.[INFO] Starting

up the

CollectionSpace Services' JAX-RS application.Static initializtion of:
org.collectionspace.services.common.security.SecurityInterceptor[INFO]
CollectionSpace Services' JAX-RS application started.2013-08-19

17:49:27,339

(0) [http-8180-4] INFO

org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:

XMLMerge result output to:

/usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19

17:49:29,695 (2356) [http-8180-2] INFO

org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:

XMLMerge result output to:

/usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19

17:49:29,732 (2393) [net.sf.ehcache.CacheManager@23aeae74] INFO
net.sf.ehcache.util.UpdateChecker: New update(s) found: 2.6.5
[

Please check http://ehcache.org for the latest version.Could not get

session

from CSPACESESSID cookie with value:
31b6c5daf4d4180636604cb25ac9f75f2013-08-19 17:49:47,810 WARN

[http-8180-7]

[org.collectionspace.services.common.security.SecurityInterceptor:358]
Attempt to logout when Nuxeo login context was null2013-08-19

17:49:47,953

WARN  [http-8180-7]

[org.springframework.security.web.context.HttpSessionSecurityContextRepository:396]

Failed to create a session, as response has been committed. Unable to

store

SecurityContext.2013-08-19 17:49:48,765 WARN  [http-8180-7]
[org.collectionspace.services.common.security.SecurityInterceptor:358]
Attempt to logout when Nuxeo login context was null2013-08-19

17:49:48,773

WARN  [http-8180-7]

[org.springframework.security.web.context.HttpSessionSecurityContextRepository:396]

Failed to create a session, as response has been committed. Unable to

store

SecurityContext.2013-08-19 21:07:17,771 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2191] The web

application

[/collectionspace] appears to have started a thread named
[net.sf.ehcache.CacheManager@23aeae74] but has failed to stop it.

This is

very likely to create a memory leak.2013-08-19 21:07:17,772 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2191] The web

application

[/collectionspace] appears to have started a thread named
[MultiThreadedHttpConnectionManager cleanup] but has failed to stop

it. This

is very likely to create a memory leak.2013-08-19 21:07:17,780 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2453] The web

application

[/collectionspace] created a ThreadLocal with key of type
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a

value of

type [java.util.HashMap] (value [{}]) but failed to remove it when

the web

application was stopped. This is very likely to create a memory
leak.2013-08-19 21:07:17,781 ERROR
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
[org.apache.catalina.loader.WebappClassLoader:2453] The web

application

[/collectionspace] created a ThreadLocal with key of type
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value
[ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a

value of

type [java.util.HashMap] (value [{}]) but failed to remove it when

the web

application was stopped. This is very likely to create a memory
leak.2013-08-19 21:09:34,685 (0) [http-8180-4] WARN

org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:

Could not merge the include files:

settings.xml,local-omca-settings.xml

It looks like the problem is with merging settings.xml and
local-omca-settings.xml?

I've tried a second time to create the configuration change in
omca-collectionobject.xml (a newly created xml file with only this

snippet

in it:

+<record id="collection-object">
+

  • <section id="identificationInformation">
  •    <repeat id="responsibleDepartments" has-primary="yes">
    

<selector>object-identification-responsible-department</selector>

  •        <field id="responsibleDepartment" ui-search="repeatable"
    

mini="search"

  •         seperate_ui_container="true">
    

<selector>object-identification-responsible-department</selector>

  •            <options>
    
  •                <option id="">Please select a value</option>
    
  •                <option id="art">Art</option>
    
  •                <option id="history">History</option>
    
  •                <option id="science">Science</option>
    
  •                <option id="collections">Collections</option>
    
  •                <option id="education">Education</option>
    
  •                <option id="professionalservices">Professional
    

Services</option>

  •                <option id="multi">Multi</option>
    
  •            </options>
    
  •        </field>
    
  •    </repeat>
    
  •    <field id="collection" ui-search="repeatable"
    

seperate_ui_container="true">

  •        <selector>object-identification-collection</selector>
    
  •        <options>
    
  •           <option id="">Please select a value</option>
    
  •           <option id="art">Art</option>
    
  •           <option id="artandartifact">Art and Artifact</option>
    
  •           <option id="exhibit">Exhibit</option>
    
  •           <option id="history">History</option>
    
  •           <option id="scientomology">SCI-Entomology</option>
    
  •           <option id="scifineart">SCI-Fine Art</option>
    
  •           <option id="scigalleryspecimens">SCI-Gallery
    

Specimens</option>

  •           <option id="scigeology">SCI-Geology</option>
    
  •           <option id="sciherbarium">SCI-Herbarium</option>
    
  •           <option id="sciherpetology">SCI-Herpetology</option>
    
  •           <option id="sciicthyology">SCI-Icthyology</option>
    
  •           <option
    

id="sciinvertebrates">SCI-Invertebrates</option>

  •           <option id="scilapidary">SCI-Lapidary</option>
    
  •           <option id="scimalacology">SCI-Malacology</option>
    
  •           <option id="scimammalogy">SCI-Mammalogy</option>
    
  •           <option
    

id="scimiscellaneous">SCI-Miscellaneous</option>

  •           <option id="sciornithology">SCI-Ornithology</option>
    
  •           <option id="scipaleontology">SCI-Paleontology</option>
    
  •           <option id="sciphoto">SCI-Photo</option>
    
  •           <option id="scisnuffbottles">SCI-Snuff
    

Bottles</option>

  •           <option id="specimen">Specimen</option>
    
  •        </options>
    
  •    </field>
    
  • </section>

+</record>

then according to your last email, I ran "mvn clean install

-DskipTest"

rather than "mvn deploy -DskipTests". I ran this in the application

layer

folder called "application" that contains the pom.xml file. In my

path it

looks like /home/root/application-source/application/. Then, do I

understand

I also need to run "ant deploy"? I wasn't able to run this in the same
folder - I got an error saying this is no build file.

I'm going off your previous instructions, as well as the documentation
on the wiki for customizing the application layer:

Hi Becky and Al,
One more set of notes on making 'starting out' customizations,
below: this one a customization of options in dropdown menus.
Aron
(Recommendation: start the CollectionSpace server before making the
following changes.  This will help ensure those changes are made
'live.')

  • An example of how to replace the default sets of options in the
    dropdown menus for the Responsible Department and OMCA Collection
    fields.
    The existing documentation on updating these option lists is
    confusing, and wildly out of date; we expect to be updating it in the
    near future.  The customization method shown here as an example
    reflects recently-added 'merge' capabilities that allow you to simply
    replicate the block of configuration you want to customize, within a
    separate file for your own museum; it will override the corresponding
    configuration block in the default settings:
    Actual change(s) made, within the source code tree for
    CollectionSpace's Application layer:

You can compare this to the default configuration file for the
Cataloging record, in which the default options for those two dropdown
menus appear:

To copy (deploy) these changes to the server folder, enter the
following at a command prompt, from within the top-level folder of the
Application source code tree:
mvn deploy -DskipTests

Sorry I'm not getting this! Do you have any ideas?

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" aronroberts@gmail.com
To: "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Friday, August 16, 2013 1:28:48 PM

Subject: Re: [Talk] deploy mvn error

The key is likely this snippet, from near the beginning of that long

and

singularly unhelpful chain of messages:
"org.collectionspace.chain.csp.config.ConfigException: Error loading
config"

There may have been an error made in whatever configuration file, or
files, were modified.  After they were deployed (copied) to the

server, when

the Application layer read them, it got confused and barfed out this

long

stack trace.

Typically, this means the file(s), after being modified, weren't
well-formed XML - perhaps an ending tag was left out somewhere? - or

they

didn't conform to the Application layer's expectation of what 'tags'

(XML

elements) are expected, in which hierarchical locations within the

file.

Yes, reverting to a snapshot and re-deploying (via 'mvn clean install
-DskipTests') and restarting Tomcat, should resolve the issue.  You

might

also try, however, using a utility app that can show you differences

between

two files - your current version and your snapshot - and see if the

error is

readily made apparent by looking at those changes in that 'diff'

view.  (If

you're using Mac OS X, there's a list of such apps at
http://apple.stackexchange.com/a/87188)

It's also worth checking the current cspace-app.log and
catalina.{today's date}.log to see if there may be any log message
specifically pinpointing the configuration error.

Aron

On Fri, Aug 16, 2013 at 1:16 PM, Al Bersch abersch@museumca.org

wrote:

Hi again,

Ok, I think I must have messed up somewhere when changing the files

in

the application layer. When I navigated to our tenant, the login

screen is

blank except for a place to put a user name and password. when I

submit my

password, I get this message:  Any idea what I did wrong? Thanks!

I have a snapshot prior to the changes in the application layer, so

I

can always go back in time and try again.

Al

HTTP Status 400 -
org.collectionspace.chain.controller.BadRequestException: Cannot

initialise

CSPs org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading

config.

See messages for details: summary Exception raised during parsing at

org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185)

at

org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117)

at

org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at

org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33)

at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at

org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99)

at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at

org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)

at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)

at

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)

at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)

at

org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

at java.lang.Thread.run(Thread.java:724) Caused by:
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading

config.

See messages for details: summary Exception raised during parsing at

org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64)

at

org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156)

at

org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179)

... 22 more Caused by:

org.collectionspace.chain.csp.config.ConfigException:

Error loading config. See messages for details: summary Exception

raised

during parsing at

org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78)

at

org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74)

at

org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54)

... 24 more


type Status report

message org.collectionspace.chain.controller.BadRequestException:
Cannot initialise CSPs
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading

config.

See messages for details: summary Exception raised during parsing at

org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185)

at

org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117)

at

org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at

org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33)

at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at

org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99)

at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at

org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)

at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)

at

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)

at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)

at

org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

at java.lang.Thread.run(Thread.java:724) Caused by:
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading

config.

See messages for details: summary Exception raised during parsing at

org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64)

at

org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156)

at

org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179)

... 22 more Caused by:

org.collectionspace.chain.csp.config.ConfigException:

Error loading config. See messages for details: summary Exception

raised

during parsing at

org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78)

at

org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74)

at

org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54)

... 24 more

description The request sent by the client was syntactically

incorrect

(org.collectionspace.chain.controller.BadRequestException: Cannot

initialise

CSPs org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading

config.

See messages for details: summary Exception raised during parsing at

org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185)

at

org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117)

at

org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at

org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33)

at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at

org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99)

at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at

org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)

at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)

at

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)

at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)

at

org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

at java.lang.Thread.run(Thread.java:724) Caused by:
org.collectionspace.csp.api.core.CSPDependencyException:
org.collectionspace.chain.csp.config.ConfigException: Error loading

config.

See messages for details: summary Exception raised during parsing at

org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64)

at

org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156)

at

org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179)

... 22 more Caused by:

org.collectionspace.chain.csp.config.ConfigException:

Error loading config. See messages for details: summary Exception

raised

during parsing at

org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78)

at

org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74)

at

org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54)

... 24 more ).

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


From: "Aron Roberts" aronroberts@gmail.com
To: "Al Bersch" abersch@museumca.org
Cc: "talk" talk@lists.collectionspace.org
Sent: Friday, August 16, 2013 12:58:56 PM
Subject: Re: [Talk] deploy mvn error

Hi Al,

You likely will have success with 'mvn clean install -DskipTests'
when building and deploying the App layer with your dropdown list

changes,

rather than 'mvn deploy -DskipTests'.

It's a bit confusing (and I hope I don't need to keep repeating

this

:-), but CollectionSpace Services layer uses Maven to build

artifacts and

Ant buildfiles to deploy (copy) them to the server (hence 'mvn clean
install' followed by 'ant deploy'), while the Application and UI

layers use

Maven ('mvn install') for both tasks.  There are some historical and
technical reasons for this difference, not worth going into ...

Aron

On Fri, Aug 16, 2013 at 12:49 PM, Al Bersch abersch@museumca.org
wrote:

Hello all,

I changed our dropdown lists in Department and Collection in the
application layer source code, and when I ran mvn deploy

-DskipTests I get

this error:

[ERROR] BUILD ERROR
[INFO]


[INFO] Failed to configure plugin parameters for:
org.apache.maven.plugins:maven-deploy-plugin:2.4

check that the following section of the pom.xml is present and
correct:

<distributionManagement> <!-- use the following if you're not using a snapshot version.

-->

<repository> <id>repo</id> <name>Repository Name</name> <url>scp://host/path/to/repo</url> </repository> <!-- use the following if you ARE using a snapshot version. --> <snapshotRepository> <id>repo</id> <name>Repository Name</name> <url>scp://host/path/to/repo</url> </snapshotRepository> </distributionManagement>

Cause: Class
'org.apache.maven.artifact.repository.ArtifactRepository' cannot be
instantiated

I looked in the pom.xml, and found this:

<!-- The CollectionSpace public Maven repository for "snapshot" artifacts --> <repositories> <repository> <id>libs-snapshot-local</id> <name>libs-snapshot-local</name> <url>
             <snapshots>
                     <enabled>true</enabled>
             </snapshots>

I'm wondering, which repository setting should I use (snapshot or

not

snapshot)? Our installation is on a virtual server in linode.

And, does anyone know where I should set the path to our

repository?

I'm guessing that the error is party due to the url being mapped to
nightly.collectionspace.org.

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


Talk mailing list
Talk@lists.collectionspace.org

Hi Al, Are you saying that in tenants/omca, you have a settings.xml file that's empty? I'm pretty sure that would cause a problem. The merge probably isn't expecting an empty file. Yes, I'd copy settings.xml over from either defaults or the core tenant, and modify it according to the instructions. Ray On Wed, Aug 21, 2013 at 11:30 AM, Al Bersch <abersch@museumca.org> wrote: > Hi Aron, Jesse, Ray - > > Thanks for all this advice and patience. > > I am using vim to edit the xml in a terminal window. I am useing an Ubuntu > virtual server. Using SFTP to connect via text wragler is beautiful, but > we didn't allow login for root via ssh or ftp, and root owns these files. I > suppose I could copy everything over to abersch, and then copy back to root > later? Does anyone have a suggestion for best practices using sftp tools to > edit? > > The XML validator is great. I don't have any errors in > omca-collectionobject.xml. And Jesse, thanks for catching that typo in > omca-tenant.xml. That was acutally live - my bad! > > Checking the logs, it looks like the problem is with settings.xml or > local-omca-setitngs.xml. There's nothing in my omca settings.xml file > (hence the "null" symbol over and over). would it make sense to re-copy > over settings.xml from the "core" tenant into "omca," and make the changes > listed in the "creating your tenant" documentation? > > Thanks again everyone. This is so beyond helpful. > > 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" <aronroberts@gmail.com> > *To: *"Jesse Martinez" <mjesse@gmail.com> > > *Cc: *"Al Bersch" <abersch@museumca.org>, "talk" < > talk@lists.collectionspace.org> > *Sent: *Tuesday, August 20, 2013 4:31:01 PM > > *Subject: *Re: [Talk] deploy mvn error > > Thanks, Jesse! > > As yet another possibility, along with the other options mentioned, > the (free) TextWrangler editor can directly open files on a remote > system via SFTP: > > > http://reviews.cnet.com/8301-13727_7-57502913-263/how-to-use-textwrangler-as-a-remote-file-editor/ > > > On Tue, Aug 20, 2013 at 4:12 PM, Jesse Martinez <mjesse@gmail.com> wrote: > > Hi Al, > > > > Just noticed a quick typo in the text you c/p into an earlier email. It > > looks like you might be missing a closing bracket in this line: I don't > know > > if it's a c/p typo or not, so just thought I'd point it out! > > > > <include src="base-collectionobject.xml,omca-collectionobject.xml" > > merge="xmlmerge.properties"/ > > > > Also, how are you editing these files? Are you using a cli utility like > > emacs or vim? (Might you be using Cygwin on Windows?? I've used this in > the > > past and there are sometimes encoding issues involved including end line > > chars.) I'm trying to deduce if there are encoding issues at play here. > > > > Personally speaking, I like to use a local editor when making quick > changes > > on a remote server. What works for me on a Mac is a combination of > Cyberduck > > (free sftp client) (or Transmit, which is well worth its price), and > Sublime > > Text. Cyberduck can be set to automatically open editable files in > Sublime > > Text and save them back to the remote server seamlessly. Sublime Text > isn't > > a full-fledged IDE, but it is light-weight and has a lot of good tools > for > > easily checking format and syntax based on file type. It's free, works on > > multiple OSs and my go-to code editor in a pinch. Aron also recommends > good > > editors too. > > > > - Jesse > > > > > > On Tue, Aug 20, 2013 at 6:12 PM, Al Bersch <abersch@museumca.org> wrote: > >> > >> Hi Aron, > >> > >> Thanks so much for addressing these questions. > >> > >> I entered the language at the end of your email into my > >> /tomcat-main/src/main/resources/omca-tenant.xml file, like this: > >> > >> <cspace-config tenantname="omca"> > >> > >> <version>11</version> > >> <!-- Note: omca-collectionobject.xml should not appear in the > >> 'include' line below --> > >> <!-- This line is for merging various settings files together. > --> > >> <include src="settings.xml,local-omca-settings.xml" > >> merge="xmlmerge.properties" > >> strip-root="yes" /> > >> > >> <spec> > >> <include src="base-relations.xml"/> > >> <include src="base-schemas.xml"/> > >> > >> <records> > >> <enum-blank>Please select a value</enum-blank> > >> <!-- Here's where you can indicate that you want > >> to merge in your own Cataloging record changes --> > >> <include > >> src="base-collectionobject.xml,omca-collectionobject.xml" > >> merge="xmlmerge.properties"/ > >> <include src="base-procedure-acquisition.xml"/> > >> <include src="base-procedure-blobs.xml"/> > >> ... > >> > >> then re-created the omca-collectionobject.xml file (located at > >> tomcat-main/src/main/resources/tenants/omca) with this inside it: > >> > >> +<record id="collection-object"> > >> + > >> + <section id="identificationInformation"> > >> + <repeat id="responsibleDepartments" has-primary="yes"> > >> + > >> <selector>object-identification-responsible-department</selector> > >> + <field id="responsibleDepartment" ui-search="repeatable" > >> mini="search" > >> + seperate_ui_container="true"> > >> + > >> <selector>object-identification-responsible-department</selector> > >> + <options> > >> + <option id="">Please select a value</option> > >> + <option id="art">Art</option> > >> + <option id="history">History</option> > >> + <option id="science">Science</option> > >> + <option id="collections">Collections</option> > >> + <option id="education">Education</option> > >> + <option id="professionalservices">Professional > >> Services</option> > >> + <option id="multi">Multi</option> > >> + </options> > >> + </field> > >> + </repeat> > >> + <field id="collection" ui-search="repeatable" > >> seperate_ui_container="true"> > >> + <selector>object-identification-collection</selector> > >> + <options> > >> + <option id="">Please select a value</option> > >> + <option id="art">Art</option> > >> + <option id="artandartifact">Art and Artifact</option> > >> + <option id="exhibit">Exhibit</option> > >> + <option id="history">History</option> > >> + <option id="scientomology">SCI-Entomology</option> > >> + <option id="scifineart">SCI-Fine Art</option> > >> + <option id="scigalleryspecimens">SCI-Gallery > >> Specimens</option> > >> + <option id="scigeology">SCI-Geology</option> > >> + <option id="sciherbarium">SCI-Herbarium</option> > >> + <option id="sciherpetology">SCI-Herpetology</option> > >> + <option id="sciicthyology">SCI-Icthyology</option> > >> + <option id="sciinvertebrates">SCI-Invertebrates</option> > >> + <option id="scilapidary">SCI-Lapidary</option> > >> + <option id="scimalacology">SCI-Malacology</option> > >> + <option id="scimammalogy">SCI-Mammalogy</option> > >> + <option id="scimiscellaneous">SCI-Miscellaneous</option> > >> + <option id="sciornithology">SCI-Ornithology</option> > >> + <option id="scipaleontology">SCI-Paleontology</option> > >> + <option id="sciphoto">SCI-Photo</option> > >> + <option id="scisnuffbottles">SCI-Snuff Bottles</option> > >> + <option id="specimen">Specimen</option> > >> + </options> > >> + </field> > >> + </section> > >> + > >> +</record> > >> > >> But alas, I'm still getting the same error message when I log into my > >> tenant. > >> > >> If it matters, I looked in my settings.xml file and get a big chunk of > >> this: ^@^@^@^@^@^@^. > >> > >> do you see anything wrong here in the files I copied? > >> > >> thanks, > >> > >> 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" <aronroberts@gmail.com> > >> To: "Al Bersch" <abersch@museumca.org> > >> Cc: "talk" <talk@lists.collectionspace.org> > >> Sent: Monday, August 19, 2013 5:39:58 PM > >> > >> Subject: Re: [Talk] deploy mvn error > >> > >> Hi Al, > >> > >> My sincere apologies for these difficulties you've been encountering. > >> > >> > It looks like the problem is with merging settings.xml and > >> > local-omca-settings.xml? > >> > >> Yes, that certainly looks like the case. > >> > >> This line appeared in part of the output from this error, in > >> catalina.out: > >> > >> > 2013-08-19 21:46:13,364 ERROR [http-8180-3] ... Message: Exception > >> > raised during parsing > >> > Stack : > >> > > org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61) > >> > >> From looking at the Application layer's code at line 61 of > >> AssemblingParser.java: > >> > >> > https://github.com/collectionspace/application/blob/v3.3/csp-impl/src/main/java/org/collectionspace/chain/csp/config/impl/parser/AssemblingParser.java#L61 > >> it appears the error is in reading or merging XML content, rather than > in > >> not finding either of the two files to be merged, or in not being able > to > >> read them as a result of insufficient access permissions or other > >> filesystem-related issues. > >> > >> It appears that you might potentially be inadvertently trying to merge > >> two dissimilar things: a settings file for your tenant (which contains > some > >> general administrative settings), together with some field-level > settings > >> for a particular record type. > >> > >> If you'd like to merge custom changes into the Cataloging record, such > >> as changing the contents of options lists, here's an example of how you > can > >> specify that, as shown line 12 of the tenant 'includes' file for the > UCJEPS > >> herbaria: > >> > >> > >> > https://github.com/cspace-deployment/application/blob/ucjeps_3.2/tomcat-main/src/main/resources/ucjeps-tenant.xml#L12 > >> > >> Following that example, your > >> /tomcat-main/src/main/resources/omca-tenant.xml file might look > something > >> like the following: > >> > >> <cspace-config tenantname="omca"> > >> <version>11</version> > >> <!-- Note: omca-collectionobject.xml should not appear in the > 'include' > >> line below --> > >> <!-- This line is for merging various settings files together. --> > >> <include src="settings.xml,local-settings.xml" > >> merge="xmlmerge-settings.properties" strip-root="yes"/> > >> ... > >> <records> > >> <enum-blank>Please select a value</enum-blank> > >> <!-- Here's where you can indicate that you want to merge in your > own > >> Cataloging record changes --> > >> <include src="base-collectionobject.xml,omca-collectionobject.xml" > >> merge="xmlmerge.properties"/> > >> ... > >> > >> Aron > >> > >> On Mon, Aug 19, 2013 at 4:28 PM, Al Bersch <abersch@museumca.org> > wrote: > >> > > >> > Hi Aron, > >> > > >> > Thanks so much again for your continued assistance. And for the plug > for > >> > using github as a backup resource - I'll do that, and also apologize > in > >> > advance for the cut-and-paste text below. > >> > > >> > I installed DiffMerge, but I'm not sure what to compare, since the > file > >> > I added to the omca tenant (omca-collectionobject.xml), wasn't there > in the > >> > previous snapshot. I think I'm a little confused. > >> > > >> > I looked in the cspace-app.log and catalina.out (can you tell me > where I > >> > might find catalina.(today'sdate).log?) and here are some snippets, > first > >> > from cspace-app.log: > >> > > >> > 2013-08-19 21:46:13,363 WARN [http-8180-3] > >> > > [org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler:218] > >> > Could not merge the include files: > settings.xml,local-omca-settings.xml > >> > 2013-08-19 21:46:13,364 ERROR [http-8180-3] > >> > > [org.collectionspace.chain.csp.config.impl.parser.ConfigLoadingMessagesImpl:16] > >> > Message: Exception raised during parsing > >> > > >> > Stack : > >> > > org.collectionspace.chain.csp.config.impl.parser.AssemblingParser.parse (61) > >> > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse > (62) > >> > org.collectionspace.csp.container.impl.CSPManagerImpl.configure (54) > >> > org.collectionspace.chain.controller.TenantServlet.load_config (156) > >> > org.collectionspace.chain.controller.TenantServlet.setup (179) > >> > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant > >> > (117) > >> > org.collectionspace.chain.controller.TenantUIServlet.service (568) > >> > javax.servlet.http.HttpServlet.service (717) > >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (290) > >> > org.apache.catalina.core.ApplicationFilterChain.doFilter (206) > >> > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter > (33) > >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235) > >> > org.apache.catalina.core.ApplicationFilterChain.doFilter (206) > >> > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter > (99) > >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (235) > >> > org.apache.catalina.core.ApplicationFilterChain.doFilter (206) > >> > org.apache.catalina.core.StandardWrapperValve.invoke (233) > >> > org.apache.catalina.core.StandardContextValve.invoke (191) > >> > org.apache.catalina.core.StandardHostValve.invoke (127) > >> > org.apache.catalina.valves.ErrorReportValve.invoke (102) > >> > org.apache.catalina.valves.AccessLogValve.invoke (589) > >> > org.apache.catalina.core.StandardEngineValve.invoke (109) > >> > org.apache.catalina.connector.CoyoteAdapter.service (291) > >> > org.apache.coyote.http11.Http11Processor.process (859) > >> > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process > >> > (602) > >> > org.apache.tomcat.util.net.JIoEndpoint$Worker.run (489) > >> > java.lang.Thread.run (724) > >> > > >> > CAUSED BY > >> > Message: Could not load source > >> > > >> > > >> > > >> > then from catalina.out: > >> > > >> > 2013-08-19 17:49:25,334 ERROR [main] > >> > [org.collectionspace.services.common.config.ConfigUtils:51] No domain > name > >> > was specified on call to getRepositoryName() method.2013-08-19 > 17:49:25,334 > >> > ERROR [main] > [org.collectionspace.services.common.config.ConfigUtils:51] No > >> > domain name was specified on call to getRepositoryName() > method.2013-08-19 > >> > 17:49:25,334 ERROR [main] > >> > [org.collectionspace.services.common.config.ConfigUtils:51] No domain > name > >> > was specified on call to getRepositoryName() method.[INFO] Starting > up the > >> > CollectionSpace Services' JAX-RS application.Static initializtion of: > >> > org.collectionspace.services.common.security.SecurityInterceptor[INFO] > >> > CollectionSpace Services' JAX-RS application started.2013-08-19 > 17:49:27,339 > >> > (0) [http-8180-4] INFO > >> > > org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler: > >> > XMLMerge result output to: > >> > > /usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19 > >> > 17:49:29,695 (2356) [http-8180-2] INFO > >> > > org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler: > >> > XMLMerge result output to: > >> > > /usr/local/share/apache-tomcat-6.0.33/temp/merged-settings.xml_local-omca-settings.xml-.xml2013-08-19 > >> > 17:49:29,732 (2393) [net.sf.ehcache.CacheManager@23aeae74] INFO > >> > net.sf.ehcache.util.UpdateChecker: New update(s) found: 2.6.5 > >> > [ > http://www.terracotta.org/confluence/display/release/Release+Notes+Ehcache+Core+2.6 > ]. > >> > Please check http://ehcache.org for the latest version.Could not get > session > >> > from CSPACESESSID cookie with value: > >> > 31b6c5daf4d4180636604cb25ac9f75f2013-08-19 17:49:47,810 WARN > [http-8180-7] > >> > [org.collectionspace.services.common.security.SecurityInterceptor:358] > >> > Attempt to logout when Nuxeo login context was null2013-08-19 > 17:49:47,953 > >> > WARN [http-8180-7] > >> > > [org.springframework.security.web.context.HttpSessionSecurityContextRepository:396] > >> > Failed to create a session, as response has been committed. Unable to > store > >> > SecurityContext.2013-08-19 17:49:48,765 WARN [http-8180-7] > >> > [org.collectionspace.services.common.security.SecurityInterceptor:358] > >> > Attempt to logout when Nuxeo login context was null2013-08-19 > 17:49:48,773 > >> > WARN [http-8180-7] > >> > > [org.springframework.security.web.context.HttpSessionSecurityContextRepository:396] > >> > Failed to create a session, as response has been committed. Unable to > store > >> > SecurityContext.2013-08-19 21:07:17,771 ERROR > >> > [ContainerBackgroundProcessor[StandardEngine[Catalina]]] > >> > [org.apache.catalina.loader.WebappClassLoader:2191] The web > application > >> > [/collectionspace] appears to have started a thread named > >> > [net.sf.ehcache.CacheManager@23aeae74] but has failed to stop it. > This is > >> > very likely to create a memory leak.2013-08-19 21:07:17,772 ERROR > >> > [ContainerBackgroundProcessor[StandardEngine[Catalina]]] > >> > [org.apache.catalina.loader.WebappClassLoader:2191] The web > application > >> > [/collectionspace] appears to have started a thread named > >> > [MultiThreadedHttpConnectionManager cleanup] but has failed to stop > it. This > >> > is very likely to create a memory leak.2013-08-19 21:07:17,780 ERROR > >> > [ContainerBackgroundProcessor[StandardEngine[Catalina]]] > >> > [org.apache.catalina.loader.WebappClassLoader:2453] The web > application > >> > [/collectionspace] created a ThreadLocal with key of type > >> > [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value > >> > [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a > value of > >> > type [java.util.HashMap] (value [{}]) but failed to remove it when > the web > >> > application was stopped. This is very likely to create a memory > >> > leak.2013-08-19 21:07:17,781 ERROR > >> > [ContainerBackgroundProcessor[StandardEngine[Catalina]]] > >> > [org.apache.catalina.loader.WebappClassLoader:2453] The web > application > >> > [/collectionspace] created a ThreadLocal with key of type > >> > [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1] (value > >> > [ch.elca.el4j.services.xmlmerge.XmlMergeContext$1@7e421b4f]) and a > value of > >> > type [java.util.HashMap] (value [{}]) but failed to remove it when > the web > >> > application was stopped. This is very likely to create a memory > >> > leak.2013-08-19 21:09:34,685 (0) [http-8180-4] WARN > >> > > org.collectionspace.chain.csp.config.impl.parser.AssemblingContentHandler: > >> > Could not merge the include files: > settings.xml,local-omca-settings.xml > >> > > >> > > >> > It looks like the problem is with merging settings.xml and > >> > local-omca-settings.xml? > >> > > >> > I've tried a second time to create the configuration change in > >> > omca-collectionobject.xml (a newly created xml file with only this > snippet > >> > in it: > >> > > >> > +<record id="collection-object"> > >> > + > >> > + <section id="identificationInformation"> > >> > + <repeat id="responsibleDepartments" has-primary="yes"> > >> > + > >> > <selector>object-identification-responsible-department</selector> > >> > + <field id="responsibleDepartment" ui-search="repeatable" > >> > mini="search" > >> > + seperate_ui_container="true"> > >> > + > >> > <selector>object-identification-responsible-department</selector> > >> > + <options> > >> > + <option id="">Please select a value</option> > >> > + <option id="art">Art</option> > >> > + <option id="history">History</option> > >> > + <option id="science">Science</option> > >> > + <option id="collections">Collections</option> > >> > + <option id="education">Education</option> > >> > + <option id="professionalservices">Professional > >> > Services</option> > >> > + <option id="multi">Multi</option> > >> > + </options> > >> > + </field> > >> > + </repeat> > >> > + <field id="collection" ui-search="repeatable" > >> > seperate_ui_container="true"> > >> > + <selector>object-identification-collection</selector> > >> > + <options> > >> > + <option id="">Please select a value</option> > >> > + <option id="art">Art</option> > >> > + <option id="artandartifact">Art and Artifact</option> > >> > + <option id="exhibit">Exhibit</option> > >> > + <option id="history">History</option> > >> > + <option id="scientomology">SCI-Entomology</option> > >> > + <option id="scifineart">SCI-Fine Art</option> > >> > + <option id="scigalleryspecimens">SCI-Gallery > >> > Specimens</option> > >> > + <option id="scigeology">SCI-Geology</option> > >> > + <option id="sciherbarium">SCI-Herbarium</option> > >> > + <option id="sciherpetology">SCI-Herpetology</option> > >> > + <option id="sciicthyology">SCI-Icthyology</option> > >> > + <option > id="sciinvertebrates">SCI-Invertebrates</option> > >> > + <option id="scilapidary">SCI-Lapidary</option> > >> > + <option id="scimalacology">SCI-Malacology</option> > >> > + <option id="scimammalogy">SCI-Mammalogy</option> > >> > + <option > id="scimiscellaneous">SCI-Miscellaneous</option> > >> > + <option id="sciornithology">SCI-Ornithology</option> > >> > + <option id="scipaleontology">SCI-Paleontology</option> > >> > + <option id="sciphoto">SCI-Photo</option> > >> > + <option id="scisnuffbottles">SCI-Snuff > Bottles</option> > >> > + <option id="specimen">Specimen</option> > >> > + </options> > >> > + </field> > >> > + </section> > >> > + > >> > +</record> > >> > > >> > > >> > > >> > then according to your last email, I ran "mvn clean install > -DskipTest" > >> > rather than "mvn deploy -DskipTests". I ran this in the application > layer > >> > folder called "application" that contains the pom.xml file. In my > path it > >> > looks like /home/root/application-source/application/. Then, do I > understand > >> > I also need to run "ant deploy"? I wasn't able to run this in the same > >> > folder - I got an error saying this is no build file. > >> > > >> > I'm going off your previous instructions, as well as the documentation > >> > on the wiki for customizing the application layer: > >> > > >> > Hi Becky and Al, > >> > One more set of notes on making 'starting out' customizations, > >> > below: this one a customization of options in dropdown menus. > >> > Aron > >> > (Recommendation: start the CollectionSpace server before making the > >> > following changes. This will help ensure those changes are made > >> > 'live.') > >> > * An example of how to replace the default sets of options in the > >> > dropdown menus for the Responsible Department and OMCA Collection > >> > fields. > >> > The existing documentation on updating these option lists is > >> > confusing, and wildly out of date; we expect to be updating it in the > >> > near future. The customization method shown here as an example > >> > reflects recently-added 'merge' capabilities that allow you to simply > >> > replicate the block of configuration you want to customize, within a > >> > separate file for your own museum; it will override the corresponding > >> > configuration block in the default settings: > >> > Actual change(s) made, within the source code tree for > >> > CollectionSpace's Application layer: > >> > > >> > > https://github.com/aronr/application/commit/b7a47d94fc6d44d0cad74f6444710a35373291c7 > >> > You can compare this to the default configuration file for the > >> > Cataloging record, in which the default options for those two dropdown > >> > menus appear: > >> > > >> > > https://github.com/aronr/application/blob/b7a47d94fc6d44d0cad74f6444710a35373291c7/tomcat-main/src/main/resources/defaults/base-collectionobject.xml#L112 > >> > To copy (deploy) these changes to the server folder, enter the > >> > following at a command prompt, from within the top-level folder of the > >> > Application source code tree: > >> > mvn deploy -DskipTests > >> > > >> > > >> > > >> > Sorry I'm not getting this! Do you have any ideas? > >> > > >> > 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" <aronroberts@gmail.com> > >> > To: "Al Bersch" <abersch@museumca.org> > >> > Cc: "talk" <talk@lists.collectionspace.org> > >> > Sent: Friday, August 16, 2013 1:28:48 PM > >> > > >> > Subject: Re: [Talk] deploy mvn error > >> > > >> > The key is likely this snippet, from near the beginning of that long > and > >> > singularly unhelpful chain of messages: > >> > "org.collectionspace.chain.csp.config.ConfigException: Error loading > >> > config" > >> > > >> > There may have been an error made in whatever configuration file, or > >> > files, were modified. After they were deployed (copied) to the > server, when > >> > the Application layer read them, it got confused and barfed out this > long > >> > stack trace. > >> > > >> > Typically, this means the file(s), after being modified, weren't > >> > well-formed XML - perhaps an ending tag was left out somewhere? - or > they > >> > didn't conform to the Application layer's expectation of what 'tags' > (XML > >> > elements) are expected, in which hierarchical locations within the > file. > >> > > >> > Yes, reverting to a snapshot and re-deploying (via 'mvn clean install > >> > -DskipTests') and restarting Tomcat, should resolve the issue. You > might > >> > also try, however, using a utility app that can show you differences > between > >> > two files - your current version and your snapshot - and see if the > error is > >> > readily made apparent by looking at those changes in that 'diff' > view. (If > >> > you're using Mac OS X, there's a list of such apps at > >> > http://apple.stackexchange.com/a/87188) > >> > > >> > It's also worth checking the current cspace-app.log and > >> > catalina.{today's date}.log to see if there may be any log message > >> > specifically pinpointing the configuration error. > >> > > >> > Aron > >> > > >> > On Fri, Aug 16, 2013 at 1:16 PM, Al Bersch <abersch@museumca.org> > wrote: > >> > > > >> > > Hi again, > >> > > > >> > > Ok, I think I must have messed up somewhere when changing the files > in > >> > > the application layer. When I navigated to our tenant, the login > screen is > >> > > blank except for a place to put a user name and password. when I > submit my > >> > > password, I get this message: Any idea what I did wrong? Thanks! > >> > > > >> > > I have a snapshot prior to the changes in the application layer, so > I > >> > > can always go back in time and try again. > >> > > > >> > > Al > >> > > > >> > > HTTP Status 400 - > >> > > org.collectionspace.chain.controller.BadRequestException: Cannot > initialise > >> > > CSPs org.collectionspace.csp.api.core.CSPDependencyException: > >> > > org.collectionspace.chain.csp.config.ConfigException: Error loading > config. > >> > > See messages for details: summary Exception raised during parsing at > >> > > > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185) > >> > > at > >> > > > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117) > >> > > at > >> > > > org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568) > >> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at > >> > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > >> > > at > >> > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > >> > > at > >> > > > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33) > >> > > at > >> > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > >> > > at > >> > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > >> > > at > >> > > > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99) > >> > > at > >> > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > >> > > at > >> > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > >> > > at > >> > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > >> > > at > >> > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > >> > > at > >> > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > >> > > at > >> > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > >> > > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589) > >> > > at > >> > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > >> > > at > >> > > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) > >> > > at > >> > > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) > >> > > at > >> > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) > >> > > at > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) > >> > > at java.lang.Thread.run(Thread.java:724) Caused by: > >> > > org.collectionspace.csp.api.core.CSPDependencyException: > >> > > org.collectionspace.chain.csp.config.ConfigException: Error loading > config. > >> > > See messages for details: summary Exception raised during parsing at > >> > > > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64) > >> > > at > >> > > > org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156) > >> > > at > >> > > > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179) > >> > > ... 22 more Caused by: > org.collectionspace.chain.csp.config.ConfigException: > >> > > Error loading config. See messages for details: summary Exception > raised > >> > > during parsing at > >> > > > org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78) > >> > > at > >> > > > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74) > >> > > at > >> > > > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54) > >> > > ... 24 more > >> > > > >> > > ________________________________ > >> > > > >> > > type Status report > >> > > > >> > > message org.collectionspace.chain.controller.BadRequestException: > >> > > Cannot initialise CSPs > >> > > org.collectionspace.csp.api.core.CSPDependencyException: > >> > > org.collectionspace.chain.csp.config.ConfigException: Error loading > config. > >> > > See messages for details: summary Exception raised during parsing at > >> > > > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185) > >> > > at > >> > > > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117) > >> > > at > >> > > > org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568) > >> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at > >> > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > >> > > at > >> > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > >> > > at > >> > > > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33) > >> > > at > >> > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > >> > > at > >> > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > >> > > at > >> > > > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99) > >> > > at > >> > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > >> > > at > >> > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > >> > > at > >> > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > >> > > at > >> > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > >> > > at > >> > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > >> > > at > >> > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > >> > > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589) > >> > > at > >> > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > >> > > at > >> > > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) > >> > > at > >> > > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) > >> > > at > >> > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) > >> > > at > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) > >> > > at java.lang.Thread.run(Thread.java:724) Caused by: > >> > > org.collectionspace.csp.api.core.CSPDependencyException: > >> > > org.collectionspace.chain.csp.config.ConfigException: Error loading > config. > >> > > See messages for details: summary Exception raised during parsing at > >> > > > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64) > >> > > at > >> > > > org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156) > >> > > at > >> > > > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179) > >> > > ... 22 more Caused by: > org.collectionspace.chain.csp.config.ConfigException: > >> > > Error loading config. See messages for details: summary Exception > raised > >> > > during parsing at > >> > > > org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78) > >> > > at > >> > > > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74) > >> > > at > >> > > > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54) > >> > > ... 24 more > >> > > > >> > > description The request sent by the client was syntactically > incorrect > >> > > (org.collectionspace.chain.controller.BadRequestException: Cannot > initialise > >> > > CSPs org.collectionspace.csp.api.core.CSPDependencyException: > >> > > org.collectionspace.chain.csp.config.ConfigException: Error loading > config. > >> > > See messages for details: summary Exception raised during parsing at > >> > > > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:185) > >> > > at > >> > > > org.collectionspace.chain.controller.TenantUIServlet.serviceUIWTenant(TenantUIServlet.java:117) > >> > > at > >> > > > org.collectionspace.chain.controller.TenantUIServlet.service(TenantUIServlet.java:568) > >> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at > >> > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > >> > > at > >> > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > >> > > at > >> > > > org.collectionspace.chain.controller.filters.PerflogFilter.doFilter(PerflogFilter.java:33) > >> > > at > >> > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > >> > > at > >> > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > >> > > at > >> > > > org.collectionspace.chain.controller.filters.CharSetFilter.doFilter(CharSetFilter.java:99) > >> > > at > >> > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > >> > > at > >> > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > >> > > at > >> > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > >> > > at > >> > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > >> > > at > >> > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > >> > > at > >> > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > >> > > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589) > >> > > at > >> > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > >> > > at > >> > > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) > >> > > at > >> > > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) > >> > > at > >> > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) > >> > > at > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) > >> > > at java.lang.Thread.run(Thread.java:724) Caused by: > >> > > org.collectionspace.csp.api.core.CSPDependencyException: > >> > > org.collectionspace.chain.csp.config.ConfigException: Error loading > config. > >> > > See messages for details: summary Exception raised during parsing at > >> > > > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:64) > >> > > at > >> > > > org.collectionspace.chain.controller.TenantServlet.load_config(TenantServlet.java:156) > >> > > at > >> > > > org.collectionspace.chain.controller.TenantServlet.setup(TenantServlet.java:179) > >> > > ... 22 more Caused by: > org.collectionspace.chain.csp.config.ConfigException: > >> > > Error loading config. See messages for details: summary Exception > raised > >> > > during parsing at > >> > > > org.collectionspace.chain.csp.config.impl.parser.ConfigErrorHandler.fail_if_necessary(ConfigErrorHandler.java:78) > >> > > at > >> > > > org.collectionspace.chain.csp.config.impl.parser.ConfigParser.parse(ConfigParser.java:74) > >> > > at > >> > > > org.collectionspace.csp.container.impl.CSPManagerImpl.configure(CSPManagerImpl.java:54) > >> > > ... 24 more ). > >> > > > >> > > > >> > > Al Bersch > >> > > Digital Project Coordinator > >> > > Oakland Museum of California > >> > > 1000 Oak Street, Oakland, CA 94607 > >> > > abersch@museumca.org > >> > > 510-318-8468 > >> > > ________________________________ > >> > > From: "Aron Roberts" <aronroberts@gmail.com> > >> > > To: "Al Bersch" <abersch@museumca.org> > >> > > Cc: "talk" <talk@lists.collectionspace.org> > >> > > Sent: Friday, August 16, 2013 12:58:56 PM > >> > > Subject: Re: [Talk] deploy mvn error > >> > > > >> > > Hi Al, > >> > > > >> > > You likely will have success with 'mvn clean install -DskipTests' > >> > > when building and deploying the App layer with your dropdown list > changes, > >> > > rather than 'mvn deploy -DskipTests'. > >> > > > >> > > It's a bit confusing (and I hope I don't need to keep repeating > this > >> > > :-), but CollectionSpace Services layer uses Maven to build > artifacts and > >> > > Ant buildfiles to deploy (copy) them to the server (hence 'mvn clean > >> > > install' followed by 'ant deploy'), while the Application and UI > layers use > >> > > Maven ('mvn install') for both tasks. There are some historical and > >> > > technical reasons for this difference, not worth going into ... > >> > > > >> > > Aron > >> > > > >> > > > >> > > On Fri, Aug 16, 2013 at 12:49 PM, Al Bersch <abersch@museumca.org> > >> > > wrote: > >> > >> > >> > >> Hello all, > >> > >> > >> > >> I changed our dropdown lists in Department and Collection in the > >> > >> application layer source code, and when I ran mvn deploy > -DskipTests I get > >> > >> this error: > >> > >> > >> > >> [ERROR] BUILD ERROR > >> > >> [INFO] > >> > >> > ------------------------------------------------------------------------ > >> > >> [INFO] Failed to configure plugin parameters for: > >> > >> org.apache.maven.plugins:maven-deploy-plugin:2.4 > >> > >> > >> > >> check that the following section of the pom.xml is present and > >> > >> correct: > >> > >> > >> > >> <distributionManagement> > >> > >> <!-- use the following if you're not using a snapshot version. > --> > >> > >> <repository> > >> > >> <id>repo</id> > >> > >> <name>Repository Name</name> > >> > >> <url>scp://host/path/to/repo</url> > >> > >> </repository> > >> > >> <!-- use the following if you ARE using a snapshot version. --> > >> > >> <snapshotRepository> > >> > >> <id>repo</id> > >> > >> <name>Repository Name</name> > >> > >> <url>scp://host/path/to/repo</url> > >> > >> </snapshotRepository> > >> > >> </distributionManagement> > >> > >> > >> > >> Cause: Class > >> > >> 'org.apache.maven.artifact.repository.ArtifactRepository' cannot be > >> > >> instantiated > >> > >> > >> > >> > >> > >> > >> > >> I looked in the pom.xml, and found this: > >> > >> > >> > >> <!-- The CollectionSpace public Maven repository for "snapshot" > >> > >> artifacts --> > >> > >> <repositories> > >> > >> <repository> > >> > >> <id>libs-snapshot-local</id> > >> > >> <name>libs-snapshot-local</name> > >> > >> > >> > >> <url> > http://nightly.collectionspace.org:8081/artifactory/libs-snapshot-local > </url> > >> > >> <snapshots> > >> > >> <enabled>true</enabled> > >> > >> </snapshots> > >> > >> > >> > >> > >> > >> I'm wondering, which repository setting should I use (snapshot or > not > >> > >> snapshot)? Our installation is on a virtual server in linode. > >> > >> > >> > >> And, does anyone know where I should set the path to our > repository? > >> > >> I'm guessing that the error is party due to the url being mapped to > >> > >> nightly.collectionspace.org. > >> > >> > >> > >> 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 > >