AB
Al Bersch
Fri, Aug 16, 2013 7:49 PM
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:
<blockquote>
<!-- 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>
</blockquote>
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
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:
<blockquote>
<!-- 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>
</blockquote>
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
AR
Aron Roberts
Fri, Aug 16, 2013 7:58 PM
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,
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
>
>
AB
Al Bersch
Fri, Aug 16, 2013 8:07 PM
Hi Aron,
Thanks a bunch. I ran mvn clean install -DskipTests and got a successful build. Appreciate the help!
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: "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:
<blockquote>
[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:
<blockquote>
<!-- 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>
</blockquote>
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
</blockquote>
Hi Aron,
Thanks a bunch. I ran mvn clean install -DskipTests and got a successful build. Appreciate the help!
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: "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:
<blockquote>
[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:
<blockquote>
<!-- 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>
</blockquote>
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
</blockquote>
AB
Al Bersch
Fri, Aug 16, 2013 8:16 PM
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
----- Original Message -----
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:
<blockquote>
[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:
<blockquote>
<!-- 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>
</blockquote>
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
</blockquote>
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
----- Original Message -----
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:
<blockquote>
[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:
<blockquote>
<!-- 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>
</blockquote>
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
</blockquote>
AR
Aron Roberts
Fri, Aug 16, 2013 8:28 PM
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.
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 ).
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 ...
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'
I looked in the pom.xml, and found this:
<!-- The CollectionSpace public Maven repository for "snapshot"
<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.
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
Fri, Aug 16, 2013 8:41 PM
This also suggests a broader 'best practice': since a CollectionSpace
system is, for the most part, configured by changing individual
configuration files, it often can be helpful to use a version control
system - much like software developers use - to snapshot individual changes
and groups of changes, to show the differences between those changes, and
to be able to rollback to a previous version when needed.
For the UC Berkeley implementations of CollectionSpace, for instance, the
Museum Informatics team here uses Git and GitHub to manage changes. An
example of changes made for the UC Botanical Garden as they transitioned to
their version 3.3 system:
https://github.com/cspace-deployment/application/commits/botgarden_3.3
And an example of how even a single change to a dropdown list, however
trivial, can be snapshotted and documented via a Git commit:
https://github.com/cspace-deployment/application/commit/af99413f16e800f63d12aa9a5bab2f729bfdb349
There's a bit of an initial learning curve involved in working this way,
but once you're comfortable with this paradigm, working with changes goes
from 'riding on a high wire without a net' (save for manual snapshots or
backups, whenever you remember to make them), to 'riding on a high wire
with a harness and a plethora of nets below you, one per change, along with
replay-able videotapes of every maneuver'.
Aron
On Fri, Aug 16, 2013 at 1:28 PM, Aron Roberts aronroberts@gmail.com wrote:
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.
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 ).
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 ...
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'
I looked in the pom.xml, and found this:
<!-- The CollectionSpace public Maven repository for "snapshot"
<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.
This also suggests a broader 'best practice': since a CollectionSpace
system is, for the most part, configured by changing individual
configuration files, it often can be helpful to use a version control
system - much like software developers use - to snapshot individual changes
and groups of changes, to show the differences between those changes, and
to be able to rollback to a previous version when needed.
For the UC Berkeley implementations of CollectionSpace, for instance, the
Museum Informatics team here uses Git and GitHub to manage changes. An
example of changes made for the UC Botanical Garden as they transitioned to
their version 3.3 system:
https://github.com/cspace-deployment/application/commits/botgarden_3.3
And an example of how even a single change to a dropdown list, however
trivial, can be snapshotted and documented via a Git commit:
https://github.com/cspace-deployment/application/commit/af99413f16e800f63d12aa9a5bab2f729bfdb349
There's a bit of an initial learning curve involved in working this way,
but once you're comfortable with this paradigm, working with changes goes
from 'riding on a high wire without a net' (save for manual snapshots or
backups, whenever you remember to make them), to 'riding on a high wire
with a harness and a plethora of nets below you, one per change, along with
replay-able videotapes of every maneuver'.
Aron
On Fri, Aug 16, 2013 at 1:28 PM, Aron Roberts <aronroberts@gmail.com> wrote:
> 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
> >>
> >
> >
>
AB
Al Bersch
Mon, Aug 19, 2013 11:28 PM
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:
<blockquote>
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-.xml 2013-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-.xml 2013-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: 31b6c5daf4d4180636604cb25ac9f75f 2013-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 null 2013-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 null 2013-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
</blockquote>
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:
<blockquote>
+<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>
</blockquote>
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:
<blockquote>
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
</blockquote>
<blockquote>
</blockquote>
Sorry I'm not getting this! Do you have any ideas?
Thanks again,
Al
<blockquote>
<blockquote>
</blockquote>
</blockquote>
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: "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,
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:
<blockquote>
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-.xml 2013-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-.xml 2013-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: 31b6c5daf4d4180636604cb25ac9f75f 2013-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 null 2013-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 null 2013-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
</blockquote>
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:
<blockquote>
+<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>
</blockquote>
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:
<blockquote>
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
</blockquote>
<blockquote>
</blockquote>
Sorry I'm not getting this! Do you have any ideas?
Thanks again,
Al
<blockquote>
<blockquote>
</blockquote>
</blockquote>
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: "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 12:39 AM
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
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
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
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
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
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">
+
<selector>object-identification-responsible-department</selector>
<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
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
-
<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
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.
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.
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 ).
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 ...
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'
I looked in the pom.xml, and found this:
<!-- The CollectionSpace public Maven repository for "snapshot"
<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.
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 12:50 AM
A few quick responses to some of your other questions:
I looked in the cspace-app.log and catalina.out (can you tell me where I
might find catalina.(today'sdate).log?)
Sorry, that was a placeholder to indicate log files that are written once a
day, with names that include their relevant dates, such as
'catalina.2013-08-19.log', in $CATALINA_HOME/logs. Looking in the big 'ol
catalina.out is just fine, too - thanks for sending the detailed error
message, as that really helped!
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/.
Sounds good! That should copy (deploy) the changes you made within the
Application layer source code folder to the Tomcat server folder, putting
all of the relevant files - both the ones you've modified and the ones
you've left alone - in the right places.
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.
That makes sense. You shouldn't need to run "ant deploy" in the source
code for CollectionSpace's Application or UI layers; just within the
Services layer. In the other two layers (Application and UI), running "mvn
install" (or to first clean up temporary folders and afterwards avoid
running time-consuming tests, "mvn clean install -DskipTests"), should be
all you need to do.
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">
+
<selector>object-identification-responsible-department</selector>
mini="search"
<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>
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.
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 ).
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 ...
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'
I looked in the pom.xml, and found this:
<!-- The CollectionSpace public Maven repository for "snapshot"
<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.
A few quick responses to some of your other questions:
> I looked in the cspace-app.log and catalina.out (can you tell me where I
might find catalina.(today'sdate).log?)
Sorry, that was a placeholder to indicate log files that are written once a
day, with names that include their relevant dates, such as
'catalina.2013-08-19.log', in $CATALINA_HOME/logs. Looking in the big 'ol
catalina.out is just fine, too - thanks for sending the detailed error
message, as that really helped!
> 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/.
Sounds good! That should copy (deploy) the changes you made within the
Application layer source code folder to the Tomcat server folder, putting
all of the relevant files - both the ones you've modified and the ones
you've left alone - in the right places.
> 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.
That makes sense. You shouldn't need to run "ant deploy" in the source
code for CollectionSpace's Application or UI layers; just within the
Services layer. In the other two layers (Application and UI), running "mvn
install" (or to first clean up temporary folders and afterwards avoid
running time-consuming tests, "mvn clean install -DskipTests"), should be
all you need to do.
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
> >>
> >
> >
>
>
AB
Al Bersch
Tue, Aug 20, 2013 10:12 PM
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
----- Original Message -----
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,
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
----- Original Message -----
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
> >>
> >
> >
>