talk@lists.collectionspace.org

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

View all threads

Stuck on an XML error when trying to add a field to Exhibition procedure

PM
Peter Murray
Sun, Sep 20, 2015 8:59 PM

I'm adding a field to the Exhibition procedure.  There error on the screen and in the cspace-services.log log file is:

2015-09-20 13:37:58,044 ERROR [http-bio-8180-exec-10] [org.collectionspace.services.exhibition.ExhibitionResource:496] org.collectionspace.services.exhibition.ExhibitionResource detail: org.dom4j.DocumentException: Error on line 2 of document  : Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>". Nested exception: Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>".
-- message: Error on line 2 of document  : Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>". Nested exception: Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>".
-- Stack Trace:
--      org.dom4j.DocumentException: Error on line 2 of document  : Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>". Nested exception: Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>".
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.dom4j.io.SAXReader.read(SAXReader.java:365)

The CSpace config is in this GitHub repository:

https://github.com/cherryhill/sdmom-tenant-config/tree/SDMoM-51

I have added the field:

https://github.com/cherryhill/sdmom-tenant-config/blob/SDMoM-51/application/sdmom-procedure-exhibition.xml

...and updated the sdmom-tenant.xml file:

https://github.com/cherryhill/sdmom-tenant-config/blob/SDMoM-51/application-tenant.xml#L21

All of the XML files are well-formed.  I've also run the mvn clean install -DskipTests command in the collectionspace-source/{application,ui} directories and run ant deploy_services_artifacts in collectionspace-source/services/services/JaxRsServiceProvider directory (along with the requisite stop-and-start of tomcat).  The field appears in the web UI with the appropriate label, and the above error occurs when I try to save the record.  When I look at the merged-base-procedure-exhibition.xml_sdmom-procedure-exhibition.xml-.xml file (in Tomcat's temp directory), the new field is there:

https://gist.github.com/dltj/361e6947e4399eab838a#file-merged-base-procedure-exhibition-xml_sdmom-procedure-exhibition-xml-xml-L44

I'm guessing the exhibitions_commonexhibition_sdmom is something that is automatically generated, but I can't find the XML file where that tag is used (presumably somewhere in the cspace-services webapp).

Thoughts?

Peter

Peter Murray
Dev/Ops Lead and Project Manager
Cherry Hill Company

I'm adding a field to the Exhibition procedure. There error on the screen and in the cspace-services.log log file is: 2015-09-20 13:37:58,044 ERROR [http-bio-8180-exec-10] [org.collectionspace.services.exhibition.ExhibitionResource:496] org.collectionspace.services.exhibition.ExhibitionResource detail: org.dom4j.DocumentException: Error on line 2 of document : Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>". Nested exception: Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>". -- message: Error on line 2 of document : Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>". Nested exception: Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>". -- Stack Trace: -- org.dom4j.DocumentException: Error on line 2 of document : Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>". Nested exception: Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>". at org.dom4j.io.SAXReader.read(SAXReader.java:482) at org.dom4j.io.SAXReader.read(SAXReader.java:365) The CSpace config is in this GitHub repository: https://github.com/cherryhill/sdmom-tenant-config/tree/SDMoM-51 I have added the field: https://github.com/cherryhill/sdmom-tenant-config/blob/SDMoM-51/application/sdmom-procedure-exhibition.xml ...and updated the sdmom-tenant.xml file: https://github.com/cherryhill/sdmom-tenant-config/blob/SDMoM-51/application-tenant.xml#L21 All of the XML files are well-formed. I've also run the `mvn clean install -DskipTests` command in the `collectionspace-source/{application,ui}` directories and run `ant deploy_services_artifacts` in `collectionspace-source/services/services/JaxRsServiceProvider` directory (along with the requisite stop-and-start of tomcat). The field appears in the web UI with the appropriate label, and the above error occurs when I try to save the record. When I look at the merged-base-procedure-exhibition.xml_sdmom-procedure-exhibition.xml-.xml file (in Tomcat's `temp` directory), the new field is there: https://gist.github.com/dltj/361e6947e4399eab838a#file-merged-base-procedure-exhibition-xml_sdmom-procedure-exhibition-xml-xml-L44 I'm guessing the `exhibitions_commonexhibition_sdmom` is something that is automatically generated, but I can't find the XML file where that tag is used (presumably somewhere in the cspace-services webapp). Thoughts? Peter -- Peter Murray Dev/Ops Lead and Project Manager Cherry Hill Company
JM
Jesse Martinez
Mon, Sep 21, 2015 12:01 AM

Hi Peter,

One thing that I see that might be a point of interest is to use the plural
form of the procedure for naming the extension schema in the
services-record-path element. Try "exhibitions_sdmom".

Jesse

On Sun, Sep 20, 2015 at 4:59 PM, Peter Murray pmurray@chillco.com wrote:

I'm adding a field to the Exhibition procedure.  There error on the screen
and in the cspace-services.log log file is:

2015-09-20 13:37:58,044 ERROR [http-bio-8180-exec-10]
[org.collectionspace.services.exhibition.ExhibitionResource:496]
org.collectionspace.services.exhibition.ExhibitionResource detail:
org.dom4j.DocumentException: Error on line 2 of document  : Element type
"ns2:exhibitions_commonexhibition_sdmom" must be followed by either
attribute specifications, ">" or "/>". Nested exception: Element type
"ns2:exhibitions_commonexhibition_sdmom" must be followed by either
attribute specifications, ">" or "/>".
-- message: Error on line 2 of document  : Element type
"ns2:exhibitions_commonexhibition_sdmom" must be followed by either
attribute specifications, ">" or "/>". Nested exception: Element type
"ns2:exhibitions_commonexhibition_sdmom" must be followed by either
attribute specifications, ">" or "/>".
-- Stack Trace:
--      org.dom4j.DocumentException: Error on line 2 of document  :
Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by
either attribute specifications, ">" or "/>". Nested exception: Element
type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either
attribute specifications, ">" or "/>".
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.dom4j.io.SAXReader.read(SAXReader.java:365)

The CSpace config is in this GitHub repository:

https://github.com/cherryhill/sdmom-tenant-config/tree/SDMoM-51

I have added the field:

https://github.com/cherryhill/sdmom-tenant-config/blob/SDMoM-51/application/sdmom-procedure-exhibition.xml

...and updated the sdmom-tenant.xml file:

https://github.com/cherryhill/sdmom-tenant-config/blob/SDMoM-51/application-tenant.xml#L21

All of the XML files are well-formed.  I've also run the mvn clean install -DskipTests command in the
collectionspace-source/{application,ui} directories and run ant deploy_services_artifacts in
collectionspace-source/services/services/JaxRsServiceProvider directory
(along with the requisite stop-and-start of tomcat).  The field appears in
the web UI with the appropriate label, and the above error occurs when I
try to save the record.  When I look at the
merged-base-procedure-exhibition.xml_sdmom-procedure-exhibition.xml-.xml
file (in Tomcat's temp directory), the new field is there:

https://gist.github.com/dltj/361e6947e4399eab838a#file-merged-base-procedure-exhibition-xml_sdmom-procedure-exhibition-xml-xml-L44

I'm guessing the exhibitions_commonexhibition_sdmom is something that is
automatically generated, but I can't find the XML file where that tag is
used (presumably somewhere in the cspace-services webapp).

Thoughts?

Peter

Peter Murray
Dev/Ops Lead and Project Manager
Cherry Hill Company


Talk mailing list
Talk@lists.collectionspace.org

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

Hi Peter, One thing that I see that might be a point of interest is to use the plural form of the procedure for naming the extension schema in the services-record-path element. Try "exhibitions_sdmom". Jesse On Sun, Sep 20, 2015 at 4:59 PM, Peter Murray <pmurray@chillco.com> wrote: > I'm adding a field to the Exhibition procedure. There error on the screen > and in the cspace-services.log log file is: > > 2015-09-20 13:37:58,044 ERROR [http-bio-8180-exec-10] > [org.collectionspace.services.exhibition.ExhibitionResource:496] > org.collectionspace.services.exhibition.ExhibitionResource detail: > org.dom4j.DocumentException: Error on line 2 of document : Element type > "ns2:exhibitions_commonexhibition_sdmom" must be followed by either > attribute specifications, ">" or "/>". Nested exception: Element type > "ns2:exhibitions_commonexhibition_sdmom" must be followed by either > attribute specifications, ">" or "/>". > -- message: Error on line 2 of document : Element type > "ns2:exhibitions_commonexhibition_sdmom" must be followed by either > attribute specifications, ">" or "/>". Nested exception: Element type > "ns2:exhibitions_commonexhibition_sdmom" must be followed by either > attribute specifications, ">" or "/>". > -- Stack Trace: > -- org.dom4j.DocumentException: Error on line 2 of document : > Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by > either attribute specifications, ">" or "/>". Nested exception: Element > type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either > attribute specifications, ">" or "/>". > at org.dom4j.io.SAXReader.read(SAXReader.java:482) > at org.dom4j.io.SAXReader.read(SAXReader.java:365) > > > The CSpace config is in this GitHub repository: > > https://github.com/cherryhill/sdmom-tenant-config/tree/SDMoM-51 > > I have added the field: > > > https://github.com/cherryhill/sdmom-tenant-config/blob/SDMoM-51/application/sdmom-procedure-exhibition.xml > > ...and updated the sdmom-tenant.xml file: > > > https://github.com/cherryhill/sdmom-tenant-config/blob/SDMoM-51/application-tenant.xml#L21 > > All of the XML files are well-formed. I've also run the `mvn clean > install -DskipTests` command in the > `collectionspace-source/{application,ui}` directories and run `ant > deploy_services_artifacts` in > `collectionspace-source/services/services/JaxRsServiceProvider` directory > (along with the requisite stop-and-start of tomcat). The field appears in > the web UI with the appropriate label, and the above error occurs when I > try to save the record. When I look at the > merged-base-procedure-exhibition.xml_sdmom-procedure-exhibition.xml-.xml > file (in Tomcat's `temp` directory), the new field is there: > > > https://gist.github.com/dltj/361e6947e4399eab838a#file-merged-base-procedure-exhibition-xml_sdmom-procedure-exhibition-xml-xml-L44 > > I'm guessing the `exhibitions_commonexhibition_sdmom` is something that is > automatically generated, but I can't find the XML file where that tag is > used (presumably somewhere in the cspace-services webapp). > > Thoughts? > > > Peter > -- > Peter Murray > Dev/Ops Lead and Project Manager > Cherry Hill Company > > > _______________________________________________ > Talk mailing list > Talk@lists.collectionspace.org > > http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org >
PM
Peter Murray
Mon, Sep 21, 2015 8:55 PM

Thank you for the suggestion, Jesse.  Unfortunately, that didn't seem to work.  Same symptoms.  I even added a "selector" to the field definition.  Diff here:

https://github.com/cherryhill/sdmom-tenant-config/commit/4664114c763a7764800e674a687de0c4a83378da https://github.com/cherryhill/sdmom-tenant-config/commit/4664114c763a7764800e674a687de0c4a83378da

Other suggestions?

Peter

On Sep 20, 2015, at 8:01 PM, Jesse Martinez mjesse@gmail.com wrote:

Hi Peter,

One thing that I see that might be a point of interest is to use the plural form of the procedure for naming the extension schema in the services-record-path element. Try "exhibitions_sdmom".

Jesse

On Sun, Sep 20, 2015 at 4:59 PM, Peter Murray <pmurray@chillco.com mailto:pmurray@chillco.com> wrote:
I'm adding a field to the Exhibition procedure.  There error on the screen and in the cspace-services.log log file is:

2015-09-20 13:37:58,044 ERROR [http-bio-8180-exec-10] [org.collectionspace.services.exhibition.ExhibitionResource:496] org.collectionspace.services.exhibition.ExhibitionResource detail: org.dom4j.DocumentException: Error on line 2 of document  : Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>". Nested exception: Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>".
-- message: Error on line 2 of document  : Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>". Nested exception: Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>".
-- Stack Trace:
--      org.dom4j.DocumentException: Error on line 2 of document  : Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>". Nested exception: Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>".
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.dom4j.io.SAXReader.read(SAXReader.java:365)

The CSpace config is in this GitHub repository:

https://github.com/cherryhill/sdmom-tenant-config/tree/SDMoM-51 https://github.com/cherryhill/sdmom-tenant-config/tree/SDMoM-51

I have added the field:

https://github.com/cherryhill/sdmom-tenant-config/blob/SDMoM-51/application/sdmom-procedure-exhibition.xml https://github.com/cherryhill/sdmom-tenant-config/blob/SDMoM-51/application/sdmom-procedure-exhibition.xml

...and updated the sdmom-tenant.xml file:

https://github.com/cherryhill/sdmom-tenant-config/blob/SDMoM-51/application-tenant.xml#L21 https://github.com/cherryhill/sdmom-tenant-config/blob/SDMoM-51/application-tenant.xml#L21

All of the XML files are well-formed.  I've also run the mvn clean install -DskipTests command in the collectionspace-source/{application,ui} directories and run ant deploy_services_artifacts in collectionspace-source/services/services/JaxRsServiceProvider directory (along with the requisite stop-and-start of tomcat).  The field appears in the web UI with the appropriate label, and the above error occurs when I try to save the record.  When I look at the merged-base-procedure-exhibition.xml_sdmom-procedure-exhibition.xml-.xml file (in Tomcat's temp directory), the new field is there:

https://gist.github.com/dltj/361e6947e4399eab838a#file-merged-base-procedure-exhibition-xml_sdmom-procedure-exhibition-xml-xml-L44 https://gist.github.com/dltj/361e6947e4399eab838a#file-merged-base-procedure-exhibition-xml_sdmom-procedure-exhibition-xml-xml-L44

I'm guessing the exhibitions_commonexhibition_sdmom is something that is automatically generated, but I can't find the XML file where that tag is used (presumably somewhere in the cspace-services webapp).

Thoughts?

Peter

--
Peter Murray
Dev/Ops Lead and Project Manager
Cherry Hill Company

Thank you for the suggestion, Jesse. Unfortunately, that didn't seem to work. Same symptoms. I even added a "selector" to the field definition. Diff here: https://github.com/cherryhill/sdmom-tenant-config/commit/4664114c763a7764800e674a687de0c4a83378da <https://github.com/cherryhill/sdmom-tenant-config/commit/4664114c763a7764800e674a687de0c4a83378da> Other suggestions? Peter > On Sep 20, 2015, at 8:01 PM, Jesse Martinez <mjesse@gmail.com> wrote: > > Hi Peter, > > One thing that I see that might be a point of interest is to use the plural form of the procedure for naming the extension schema in the services-record-path element. Try "exhibitions_sdmom". > > Jesse > > On Sun, Sep 20, 2015 at 4:59 PM, Peter Murray <pmurray@chillco.com <mailto:pmurray@chillco.com>> wrote: > I'm adding a field to the Exhibition procedure. There error on the screen and in the cspace-services.log log file is: > > 2015-09-20 13:37:58,044 ERROR [http-bio-8180-exec-10] [org.collectionspace.services.exhibition.ExhibitionResource:496] org.collectionspace.services.exhibition.ExhibitionResource detail: org.dom4j.DocumentException: Error on line 2 of document : Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>". Nested exception: Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>". > -- message: Error on line 2 of document : Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>". Nested exception: Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>". > -- Stack Trace: > -- org.dom4j.DocumentException: Error on line 2 of document : Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>". Nested exception: Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>". > at org.dom4j.io.SAXReader.read(SAXReader.java:482) > at org.dom4j.io.SAXReader.read(SAXReader.java:365) > > > The CSpace config is in this GitHub repository: > > https://github.com/cherryhill/sdmom-tenant-config/tree/SDMoM-51 <https://github.com/cherryhill/sdmom-tenant-config/tree/SDMoM-51> > > I have added the field: > > https://github.com/cherryhill/sdmom-tenant-config/blob/SDMoM-51/application/sdmom-procedure-exhibition.xml <https://github.com/cherryhill/sdmom-tenant-config/blob/SDMoM-51/application/sdmom-procedure-exhibition.xml> > > ...and updated the sdmom-tenant.xml file: > > https://github.com/cherryhill/sdmom-tenant-config/blob/SDMoM-51/application-tenant.xml#L21 <https://github.com/cherryhill/sdmom-tenant-config/blob/SDMoM-51/application-tenant.xml#L21> > > All of the XML files are well-formed. I've also run the `mvn clean install -DskipTests` command in the `collectionspace-source/{application,ui}` directories and run `ant deploy_services_artifacts` in `collectionspace-source/services/services/JaxRsServiceProvider` directory (along with the requisite stop-and-start of tomcat). The field appears in the web UI with the appropriate label, and the above error occurs when I try to save the record. When I look at the merged-base-procedure-exhibition.xml_sdmom-procedure-exhibition.xml-.xml file (in Tomcat's `temp` directory), the new field is there: > > https://gist.github.com/dltj/361e6947e4399eab838a#file-merged-base-procedure-exhibition-xml_sdmom-procedure-exhibition-xml-xml-L44 <https://gist.github.com/dltj/361e6947e4399eab838a#file-merged-base-procedure-exhibition-xml_sdmom-procedure-exhibition-xml-xml-L44> > > I'm guessing the `exhibitions_commonexhibition_sdmom` is something that is automatically generated, but I can't find the XML file where that tag is used (presumably somewhere in the cspace-services webapp). > > Thoughts? > > > Peter -- Peter Murray Dev/Ops Lead and Project Manager Cherry Hill Company
RL
Ray Lee
Mon, Sep 21, 2015 9:05 PM

Hi Peter,
In your application-tenant.xml, you have

<include src="base-procedure-exhibition.xml,sdmom-procedure-exhibition.xml" merge="xmlmerge-settings.properties"/>

The merge configuration should be xmlmerge.properties. The
xmlmerge-settings.properties configuration is only intended for use with
the *-settings.xml files.

Ray

On Mon, Sep 21, 2015 at 1:55 PM, Peter Murray pmurray@chillco.com wrote:

Thank you for the suggestion, Jesse.  Unfortunately, that didn't seem to
work.  Same symptoms.  I even added a "selector" to the field definition.
Diff here:

https://github.com/cherryhill/sdmom-tenant-config/commit/4664114c763a7764800e674a687de0c4a83378da

Other suggestions?

Peter

On Sep 20, 2015, at 8:01 PM, Jesse Martinez mjesse@gmail.com wrote:

Hi Peter,

One thing that I see that might be a point of interest is to use the
plural form of the procedure for naming the extension schema in the
services-record-path element. Try "exhibitions_sdmom".

Jesse

On Sun, Sep 20, 2015 at 4:59 PM, Peter Murray pmurray@chillco.com wrote:

I'm adding a field to the Exhibition procedure.  There error on the
screen and in the cspace-services.log log file is:

2015-09-20 13:37:58,044 ERROR [http-bio-8180-exec-10]
[org.collectionspace.services.exhibition.ExhibitionResource:496]
org.collectionspace.services.exhibition.ExhibitionResource detail:
org.dom4j.DocumentException: Error on line 2 of document  : Element type
"ns2:exhibitions_commonexhibition_sdmom" must be followed by either
attribute specifications, ">" or "/>". Nested exception: Element type
"ns2:exhibitions_commonexhibition_sdmom" must be followed by either
attribute specifications, ">" or "/>".
-- message: Error on line 2 of document  : Element type
"ns2:exhibitions_commonexhibition_sdmom" must be followed by either
attribute specifications, ">" or "/>". Nested exception: Element type
"ns2:exhibitions_commonexhibition_sdmom" must be followed by either
attribute specifications, ">" or "/>".
-- Stack Trace:
--      org.dom4j.DocumentException: Error on line 2 of document  :
Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by
either attribute specifications, ">" or "/>". Nested exception: Element
type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either
attribute specifications, ">" or "/>".
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.dom4j.io.SAXReader.read(SAXReader.java:365)

The CSpace config is in this GitHub repository:

https://github.com/cherryhill/sdmom-tenant-config/tree/SDMoM-51

I have added the field:

https://github.com/cherryhill/sdmom-tenant-config/blob/SDMoM-51/application/sdmom-procedure-exhibition.xml

...and updated the sdmom-tenant.xml file:

https://github.com/cherryhill/sdmom-tenant-config/blob/SDMoM-51/application-tenant.xml#L21

All of the XML files are well-formed.  I've also run the mvn clean install -DskipTests command in the
collectionspace-source/{application,ui} directories and run ant deploy_services_artifacts in
collectionspace-source/services/services/JaxRsServiceProvider directory
(along with the requisite stop-and-start of tomcat).  The field appears in
the web UI with the appropriate label, and the above error occurs when I
try to save the record.  When I look at the
merged-base-procedure-exhibition.xml_sdmom-procedure-exhibition.xml-.xml
file (in Tomcat's temp directory), the new field is there:

https://gist.github.com/dltj/361e6947e4399eab838a#file-merged-base-procedure-exhibition-xml_sdmom-procedure-exhibition-xml-xml-L44

I'm guessing the exhibitions_commonexhibition_sdmom is something that
is automatically generated, but I can't find the XML file where that tag is
used (presumably somewhere in the cspace-services webapp).

Thoughts?

Peter

--
Peter Murray
Dev/Ops Lead and Project Manager
Cherry Hill Company


Talk mailing list
Talk@lists.collectionspace.org

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

Hi Peter, In your application-tenant.xml, you have *<include src="base-procedure-exhibition.xml,sdmom-procedure-exhibition.xml" merge="xmlmerge-settings.properties"/>* The merge configuration should be xmlmerge.properties. The xmlmerge-settings.properties configuration is only intended for use with the *-settings.xml files. Ray On Mon, Sep 21, 2015 at 1:55 PM, Peter Murray <pmurray@chillco.com> wrote: > Thank you for the suggestion, Jesse. Unfortunately, that didn't seem to > work. Same symptoms. I even added a "selector" to the field definition. > Diff here: > > > https://github.com/cherryhill/sdmom-tenant-config/commit/4664114c763a7764800e674a687de0c4a83378da > > Other suggestions? > > > Peter > > On Sep 20, 2015, at 8:01 PM, Jesse Martinez <mjesse@gmail.com> wrote: > > Hi Peter, > > One thing that I see that might be a point of interest is to use the > plural form of the procedure for naming the extension schema in the > services-record-path element. Try "exhibitions_sdmom". > > Jesse > > On Sun, Sep 20, 2015 at 4:59 PM, Peter Murray <pmurray@chillco.com> wrote: > >> I'm adding a field to the Exhibition procedure. There error on the >> screen and in the cspace-services.log log file is: >> >> 2015-09-20 13:37:58,044 ERROR [http-bio-8180-exec-10] >> [org.collectionspace.services.exhibition.ExhibitionResource:496] >> org.collectionspace.services.exhibition.ExhibitionResource detail: >> org.dom4j.DocumentException: Error on line 2 of document : Element type >> "ns2:exhibitions_commonexhibition_sdmom" must be followed by either >> attribute specifications, ">" or "/>". Nested exception: Element type >> "ns2:exhibitions_commonexhibition_sdmom" must be followed by either >> attribute specifications, ">" or "/>". >> -- message: Error on line 2 of document : Element type >> "ns2:exhibitions_commonexhibition_sdmom" must be followed by either >> attribute specifications, ">" or "/>". Nested exception: Element type >> "ns2:exhibitions_commonexhibition_sdmom" must be followed by either >> attribute specifications, ">" or "/>". >> -- Stack Trace: >> -- org.dom4j.DocumentException: Error on line 2 of document : >> Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by >> either attribute specifications, ">" or "/>". Nested exception: Element >> type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either >> attribute specifications, ">" or "/>". >> at org.dom4j.io.SAXReader.read(SAXReader.java:482) >> at org.dom4j.io.SAXReader.read(SAXReader.java:365) >> >> >> The CSpace config is in this GitHub repository: >> >> https://github.com/cherryhill/sdmom-tenant-config/tree/SDMoM-51 >> >> I have added the field: >> >> >> https://github.com/cherryhill/sdmom-tenant-config/blob/SDMoM-51/application/sdmom-procedure-exhibition.xml >> >> ...and updated the sdmom-tenant.xml file: >> >> >> https://github.com/cherryhill/sdmom-tenant-config/blob/SDMoM-51/application-tenant.xml#L21 >> >> All of the XML files are well-formed. I've also run the `mvn clean >> install -DskipTests` command in the >> `collectionspace-source/{application,ui}` directories and run `ant >> deploy_services_artifacts` in >> `collectionspace-source/services/services/JaxRsServiceProvider` directory >> (along with the requisite stop-and-start of tomcat). The field appears in >> the web UI with the appropriate label, and the above error occurs when I >> try to save the record. When I look at the >> merged-base-procedure-exhibition.xml_sdmom-procedure-exhibition.xml-.xml >> file (in Tomcat's `temp` directory), the new field is there: >> >> >> https://gist.github.com/dltj/361e6947e4399eab838a#file-merged-base-procedure-exhibition-xml_sdmom-procedure-exhibition-xml-xml-L44 >> >> I'm guessing the `exhibitions_commonexhibition_sdmom` is something that >> is automatically generated, but I can't find the XML file where that tag is >> used (presumably somewhere in the cspace-services webapp). >> >> Thoughts? >> >> >> Peter > > > -- > Peter Murray > Dev/Ops Lead and Project Manager > Cherry Hill Company > > > > > _______________________________________________ > Talk mailing list > Talk@lists.collectionspace.org > > http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org > >
PM
Peter Murray
Mon, Sep 21, 2015 9:20 PM

Thank you, Ray.  Thank you, Jesse.  I now have a working new text field in my Exhibition procedure.  I don't know why I started using xmlmerge-settings.properties ... I thought I was following the documentation closely (https://wiki.collectionspace.org/display/DOC/How+to+add+a+field https://wiki.collectionspace.org/display/DOC/How+to+add+a+field), and it is correct.

Peter

On Sep 21, 2015, at 5:05 PM, Ray Lee rhlee@berkeley.edu wrote:

Hi Peter,
In your application-tenant.xml, you have

<include src="base-procedure-exhibition.xml,sdmom-procedure-exhibition.xml" merge="xmlmerge-settings.properties"/>

The merge configuration should be xmlmerge.properties. The xmlmerge-settings.properties configuration is only intended for use with the *-settings.xml files.

Ray

On Mon, Sep 21, 2015 at 1:55 PM, Peter Murray <pmurray@chillco.com mailto:pmurray@chillco.com> wrote:
Thank you for the suggestion, Jesse.  Unfortunately, that didn't seem to work.  Same symptoms.  I even added a "selector" to the field definition.  Diff here:

https://github.com/cherryhill/sdmom-tenant-config/commit/4664114c763a7764800e674a687de0c4a83378da https://github.com/cherryhill/sdmom-tenant-config/commit/4664114c763a7764800e674a687de0c4a83378da

Other suggestions?

Peter

On Sep 20, 2015, at 8:01 PM, Jesse Martinez <mjesse@gmail.com mailto:mjesse@gmail.com> wrote:

Hi Peter,

One thing that I see that might be a point of interest is to use the plural form of the procedure for naming the extension schema in the services-record-path element. Try "exhibitions_sdmom".

Jesse

On Sun, Sep 20, 2015 at 4:59 PM, Peter Murray <pmurray@chillco.com mailto:pmurray@chillco.com> wrote:
I'm adding a field to the Exhibition procedure.  There error on the screen and in the cspace-services.log log file is:

2015-09-20 13:37:58,044 ERROR [http-bio-8180-exec-10] [org.collectionspace.services.exhibition.ExhibitionResource:496] org.collectionspace.services.exhibition.ExhibitionResource detail: org.dom4j.DocumentException: Error on line 2 of document  : Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>". Nested exception: Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>".
-- message: Error on line 2 of document  : Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>". Nested exception: Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>".
-- Stack Trace:
--      org.dom4j.DocumentException: Error on line 2 of document  : Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>". Nested exception: Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>".
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.dom4j.io.SAXReader.read(SAXReader.java:365)

The CSpace config is in this GitHub repository:

https://github.com/cherryhill/sdmom-tenant-config/tree/SDMoM-51 https://github.com/cherryhill/sdmom-tenant-config/tree/SDMoM-51

I have added the field:

https://github.com/cherryhill/sdmom-tenant-config/blob/SDMoM-51/application/sdmom-procedure-exhibition.xml https://github.com/cherryhill/sdmom-tenant-config/blob/SDMoM-51/application/sdmom-procedure-exhibition.xml

...and updated the sdmom-tenant.xml file:

https://github.com/cherryhill/sdmom-tenant-config/blob/SDMoM-51/application-tenant.xml#L21 https://github.com/cherryhill/sdmom-tenant-config/blob/SDMoM-51/application-tenant.xml#L21

All of the XML files are well-formed.  I've also run the mvn clean install -DskipTests command in the collectionspace-source/{application,ui} directories and run ant deploy_services_artifacts in collectionspace-source/services/services/JaxRsServiceProvider directory (along with the requisite stop-and-start of tomcat).  The field appears in the web UI with the appropriate label, and the above error occurs when I try to save the record.  When I look at the merged-base-procedure-exhibition.xml_sdmom-procedure-exhibition.xml-.xml file (in Tomcat's temp directory), the new field is there:

https://gist.github.com/dltj/361e6947e4399eab838a#file-merged-base-procedure-exhibition-xml_sdmom-procedure-exhibition-xml-xml-L44 https://gist.github.com/dltj/361e6947e4399eab838a#file-merged-base-procedure-exhibition-xml_sdmom-procedure-exhibition-xml-xml-L44

I'm guessing the exhibitions_commonexhibition_sdmom is something that is automatically generated, but I can't find the XML file where that tag is used (presumably somewhere in the cspace-services webapp).

Thoughts?

Peter

--
Peter Murray
Dev/Ops Lead and Project Manager
Cherry Hill Company

Thank you, Ray. Thank you, Jesse. I now have a working new text field in my Exhibition procedure. I don't know why I started using `xmlmerge-settings.properties` ... I thought I was following the documentation closely (https://wiki.collectionspace.org/display/DOC/How+to+add+a+field <https://wiki.collectionspace.org/display/DOC/How+to+add+a+field>), and it is correct. Peter > On Sep 21, 2015, at 5:05 PM, Ray Lee <rhlee@berkeley.edu> wrote: > > Hi Peter, > In your application-tenant.xml, you have > > <include src="base-procedure-exhibition.xml,sdmom-procedure-exhibition.xml" merge="xmlmerge-settings.properties"/> > > The merge configuration should be xmlmerge.properties. The xmlmerge-settings.properties configuration is only intended for use with the *-settings.xml files. > > Ray > > > On Mon, Sep 21, 2015 at 1:55 PM, Peter Murray <pmurray@chillco.com <mailto:pmurray@chillco.com>> wrote: > Thank you for the suggestion, Jesse. Unfortunately, that didn't seem to work. Same symptoms. I even added a "selector" to the field definition. Diff here: > > https://github.com/cherryhill/sdmom-tenant-config/commit/4664114c763a7764800e674a687de0c4a83378da <https://github.com/cherryhill/sdmom-tenant-config/commit/4664114c763a7764800e674a687de0c4a83378da> > > Other suggestions? > > > Peter > >> On Sep 20, 2015, at 8:01 PM, Jesse Martinez <mjesse@gmail.com <mailto:mjesse@gmail.com>> wrote: >> >> Hi Peter, >> >> One thing that I see that might be a point of interest is to use the plural form of the procedure for naming the extension schema in the services-record-path element. Try "exhibitions_sdmom". >> >> Jesse >> >> On Sun, Sep 20, 2015 at 4:59 PM, Peter Murray <pmurray@chillco.com <mailto:pmurray@chillco.com>> wrote: >> I'm adding a field to the Exhibition procedure. There error on the screen and in the cspace-services.log log file is: >> >> 2015-09-20 13:37:58,044 ERROR [http-bio-8180-exec-10] [org.collectionspace.services.exhibition.ExhibitionResource:496] org.collectionspace.services.exhibition.ExhibitionResource detail: org.dom4j.DocumentException: Error on line 2 of document : Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>". Nested exception: Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>". >> -- message: Error on line 2 of document : Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>". Nested exception: Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>". >> -- Stack Trace: >> -- org.dom4j.DocumentException: Error on line 2 of document : Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>". Nested exception: Element type "ns2:exhibitions_commonexhibition_sdmom" must be followed by either attribute specifications, ">" or "/>". >> at org.dom4j.io.SAXReader.read(SAXReader.java:482) >> at org.dom4j.io.SAXReader.read(SAXReader.java:365) >> >> >> The CSpace config is in this GitHub repository: >> >> https://github.com/cherryhill/sdmom-tenant-config/tree/SDMoM-51 <https://github.com/cherryhill/sdmom-tenant-config/tree/SDMoM-51> >> >> I have added the field: >> >> https://github.com/cherryhill/sdmom-tenant-config/blob/SDMoM-51/application/sdmom-procedure-exhibition.xml <https://github.com/cherryhill/sdmom-tenant-config/blob/SDMoM-51/application/sdmom-procedure-exhibition.xml> >> >> ...and updated the sdmom-tenant.xml file: >> >> https://github.com/cherryhill/sdmom-tenant-config/blob/SDMoM-51/application-tenant.xml#L21 <https://github.com/cherryhill/sdmom-tenant-config/blob/SDMoM-51/application-tenant.xml#L21> >> >> All of the XML files are well-formed. I've also run the `mvn clean install -DskipTests` command in the `collectionspace-source/{application,ui}` directories and run `ant deploy_services_artifacts` in `collectionspace-source/services/services/JaxRsServiceProvider` directory (along with the requisite stop-and-start of tomcat). The field appears in the web UI with the appropriate label, and the above error occurs when I try to save the record. When I look at the merged-base-procedure-exhibition.xml_sdmom-procedure-exhibition.xml-.xml file (in Tomcat's `temp` directory), the new field is there: >> >> https://gist.github.com/dltj/361e6947e4399eab838a#file-merged-base-procedure-exhibition-xml_sdmom-procedure-exhibition-xml-xml-L44 <https://gist.github.com/dltj/361e6947e4399eab838a#file-merged-base-procedure-exhibition-xml_sdmom-procedure-exhibition-xml-xml-L44> >> >> I'm guessing the `exhibitions_commonexhibition_sdmom` is something that is automatically generated, but I can't find the XML file where that tag is used (presumably somewhere in the cspace-services webapp). >> >> Thoughts? >> >> >> Peter -- Peter Murray Dev/Ops Lead and Project Manager Cherry Hill Company