Hi ,

I'm using Dspace-Cris 5.8 , when I want to test rest api , I found the 
/rest/test, /rest/communities , the /rest/collections , the /rest/items and 
the /rest/bitstreams

are work well , but when I try to login like the introduced by the document 
, it returned error 500

curl -H "Content-Type: application/json" --data 
'{"email":"[email protected]", "password":"123456"}' 
http://localhost:8080/rest/login
<!doctype html><html lang="en"><head><title>HTTP Status 500 – Internal 
Server Error</title><style type="text/css">h1 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
 
h2 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
 
h3 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
 
body 
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} b 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} 
p 
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}
 
a {color:black;} a.name {color:black;} .line 
{height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP 
Status 500 – Internal Server Error</h1><hr class="line" /><p><b>Type</b> 
Exception Report</p ><p><b>Message</b> Servlet execution threw an 
exception</p ><p><b>Description</b> The server encountered an unexpected 
condition that prevented it from fulfilling the request.</p 
><p><b>Exception</b></p ><pre>javax.servlet.ServletException: Servlet 
execution threw an exception
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
</pre><p><b>Root Cause</b></p ><pre>java.lang.NoSuchMethodError: 
com.fasterxml.jackson.jaxrs.cfg.EndpointConfigBase.&lt;init&gt;(Lcom&#47;fasterxml&#47;jackson&#47;databind&#47;cfg&#47;MapperConfig;)V
com.fasterxml.jackson.jaxrs.json.JsonEndpointConfig.&lt;init&gt;(JsonEndpointConfig.java:30)
com.fasterxml.jackson.jaxrs.json.JsonEndpointConfig.forReading(JsonEndpointConfig.java:36)
com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider._configForReading(JacksonJsonProvider.java:217)
com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider._configForReading(JacksonJsonProvider.java:45)
com.fasterxml.jackson.jaxrs.base.ProviderBase._configForReading(ProviderBase.java:467)
com.fasterxml.jackson.jaxrs.base.ProviderBase.readFrom(ProviderBase.java:775)
com.sun.jersey.spi.container.ContainerRequest.getEntity(ContainerRequest.java:490)
com.sun.jersey.server.impl.model.method.dispatch.EntityParamDispatchProvider$EntityInjectable.getValue(EntityParamDispatchProvider.java:123)
com.sun.jersey.server.impl.inject.InjectableValuesProvider.getInjectableValues(InjectableValuesProvider.java:86)
com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$EntityParamInInvoker.getParams(AbstractResourceMethodDispatchProvider.java:153)
com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:203)
com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)
javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
</pre><p><b>Note</b> The full stack trace of the root cause is available in 
the server logs.</p ><hr class="line" /><h3>Apache 
Tomcat/8.5.32</h3></body></html>h

What I have changed is replace the glassfish jersey 2.22.x to 
sun.jersey1.19 cause it report can't find sun.jersey.

Maybe some advice?  

Appreciate for your help.

-- 
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 Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-community.
For more options, visit https://groups.google.com/d/optout.

Reply via email to