Skip to Content
0

Crystal Server 2016 Restful Web Service 500 Server Error

Feb 23, 2017 at 06:54 PM

79

avatar image

I'm using Crystal Server 2016 and have RESTful Web Service enabled on port 6405. What I'm trying to achieve is to create a login token.

When making a POST and GET request to http://{server}:6405/biprws/logon/long uri I get back a 500 server error and in the response it says the connection is closed. When looking at the WebApplicationContaierServer_trace I see this exception raised in the logs:

SEVERE: Exception Processing ErrorPage[errorCode=500, location=/httperror_500.jsp]
javax.servlet.ServletException: Servlet.init() for servlet boerws threw exception
	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1309)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)
	at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:864)
	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:721)
	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:488)
	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411)
	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
	at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:476)
	at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:345)
	at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:437)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:208)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:812)
Caused by: java.lang.NoSuchFieldError: servletTransportFactory
	at com.sap.bip.rs.server.servlet.BIPRESTServlet.createServletController(BIPRESTServlet.java:26)
	at org.apache.cxf.transport.servlet.CXFNonSpringServlet.init(CXFNonSpringServlet.java:87)
	at org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet.init(CXFNonSpringJaxrsServlet.java:91)
	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)
	... 21 more

For the POST request I have the following header and body set:

Header:
Accept: application/xml
Content-Type: application/xml

Body:
<attrs xmlns="http://www.sap.com/rws/bip">
 <attr name="userName" type="string">adminUser</attr>
 <attr name="password" type="string">password</attr>
 <attr name="auth" type="string"
	possibilities="secEnterprise,secLDAP,secWinAD">secEnterprise</attr>
</attrs>

Is there any configurations settings on tomcat or through the CMC that need to be changed to prevent the error.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers