Re: [dspace-tech] Re: Integration Dspace + tematres

2020-09-16 Thread Paul Münch
Hello,

unfortunately I have no idea of Tematres, but as in the error mentioned,
there is no such class as
'org.dspace.content.authority.TematresSponsorship'. You configured this
class in the authority control settings, but did you implemented it? The
name of your class is 'TematresProtocol'. To understand how the
authority plugins work, you should take a look into the other
preimplemented classes.

I hope this helps and kind regards,

Paul Münch

Am 17.09.20 um 01:56 schrieb lucas@gmail.com:
> Has anyone ever needed to implement something new in dspace? my
> difficulty is in making dspace see a new .java class.
>
> thanks, advanced.
>
>
> Em segunda-feira, 14 de setembro de 2020 às 19:58:14 UTC-3,
> lucas@gmail.com escreveu:
>
> Tematres is a software for generating controlled vocabulary, which
> I am trying to use as a controlled vocabulary in Dspace version 6.3.
> The idea is to use it as a web service, I used
> SHERPARoMEOJournalTitle as an example to implement my class that I
> called of TematresProtocol.java
> 
> 
>  in 
> DSpaceSource/dspace-api/src/main/java/org/dspace/content/authority.
>
> 1- Then compiled via the maven command:
>                  mvn -U package
>
> 2- Later, I deployed with ant:
>      cd DSpaceSource/dspace/target/dspace-installer
>      ant fresh_install
>
> 3- To make the service effective, I configured dspace.cfg as
> explained in 
> 
> https://wiki.lyrasis.org/display/DSPACE/Authority+Control+of+Metadata+Values#AuthorityControlofMetadataValues-AddingChoiceAuthorityPlugin:
>
> #  Authority Control Settings  #
> plugin.named.org.dspace.content.authority.ChoiceAuthority = \
>  org.dspace.content.authority.SampleAuthority = Sample, \
>  org.dspace.content.authority.SHERPARoMEOPublisher = SRPublisher, \
>  org.dspace.content.authority.SHERPARoMEOJournalTitle =
> SRJournalTitle, \
>  org.dspace.content.authority.TematresSponsorship =
> TematresSponsorship, \
>  org.dspace.content.authority.SolrAuthority = SolrAuthorAuthority
>  
> tematres.url = https://tesaurosjuventude.mdh.gov.br/vocab/services.php
>
>  choices.plugin.dc.title.alternative = TematresSponsorship
>  choices.presentation.dc.title.alternative = lookup
>  authority.controlled.dc.title.alternative = true
>
>
> 4- After restarting tomcat, and trying to perform a submission,
> dspace throws the error below:
> javax.servlet.ServletException: org.apache.jasper.JasperException:
> org.dspace.core.PluginInstantiationException: Cannot load plugin
> class:  
> java.lang.ClassNotFoundException:org.dspace.content.authority.TematresSponsorship
>
> Has anyone done something similar? do you know how you could solve
> this problem?
>
> To make it easier I am attaching the class TematresProtocol.java
> 
> .
>
> I also checked and TematresProtocol.class is in the directory lib
> at dspace-api-6.3.jar and is included.
>
> Thanks, advanced.
>
>
>  
>
>
> -- 
> All messages to this mailing list should adhere to the DuraSpace Code
> of Conduct: https://duraspace.org/about/policies/code-of-conduct/
> ---
> You received this message because you are subscribed to the Google
> Groups "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to dspace-tech+unsubscr...@googlegroups.com
> .
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dspace-tech/c70673a1-48d7-4183-9c3e-1472db786280n%40googlegroups.com
> .

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/7e1ffece-681a-f221-247b-a88db56236ec%40staff.uni-marburg.de.


[dspace-tech] Re: Integration Dspace + tematres

2020-09-16 Thread lucas....@gmail.com
Has anyone ever needed to implement something new in dspace? my difficulty 
is in making dspace see a new .java class.

thanks, advanced.


Em segunda-feira, 14 de setembro de 2020 às 19:58:14 UTC-3, 
lucas@gmail.com escreveu:

> Tematres is a software for generating controlled vocabulary, which I am 
> trying to use as a controlled vocabulary in Dspace version 6.3.
> The idea is to use it as a web service, I used SHERPARoMEOJournalTitle as 
> an example to implement my class that I called of TematresProtocol.java 
> 
>  in 
> DSpaceSource/dspace-api/src/main/java/org/dspace/content/authority.
>
> 1- Then compiled via the maven command:
>  mvn -U package
>
> 2- Later, I deployed with ant:
>  cd DSpaceSource/dspace/target/dspace-installer
>  ant fresh_install
>
> 3- To make the service effective, I configured dspace.cfg as explained in  
> https://wiki.lyrasis.org/display/DSPACE/Authority+Control+of+Metadata+Values#AuthorityControlofMetadataValues-AddingChoiceAuthorityPlugin
> :
>
> #  Authority Control Settings  #
> plugin.named.org.dspace.content.authority.ChoiceAuthority = \
>  org.dspace.content.authority.SampleAuthority = Sample, \
>  org.dspace.content.authority.SHERPARoMEOPublisher = SRPublisher, \
>  org.dspace.content.authority.SHERPARoMEOJournalTitle = SRJournalTitle, \
>  org.dspace.content.authority.TematresSponsorship = TematresSponsorship, \
>  org.dspace.content.authority.SolrAuthority = SolrAuthorAuthority
>  
> tematres.url = https://tesaurosjuventude.mdh.gov.br/vocab/services.php
>
>  choices.plugin.dc.title.alternative = TematresSponsorship
>  choices.presentation.dc.title.alternative = lookup
>  authority.controlled.dc.title.alternative = true
>
>
> 4- After restarting tomcat, and trying to perform a submission, dspace 
> throws the error below:
> javax.servlet.ServletException: org.apache.jasper.JasperException: 
> org.dspace.core.PluginInstantiationException: Cannot load plugin 
> class:  
> java.lang.ClassNotFoundException:org.dspace.content.authority.TematresSponsorship
>
> Has anyone done something similar? do you know how you could solve this 
> problem?
>
> To make it easier I am attaching the class TematresProtocol.java 
> 
> .
>
> I also checked and TematresProtocol.class is in the directory lib at 
> dspace-api-6.3.jar and is included.
>
> Thanks, advanced.
>
>
>  
>
>
>

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/c70673a1-48d7-4183-9c3e-1472db786280n%40googlegroups.com.