Cannot Resolve Symbol 'myapi'
MyApi was perfectly fine before. I added Objectify to the dependencies, along with some endpoints, and all of a sudden it says that MyApi isn't a thing! Here's where I call it: imp
Solution 1:
Found the problem! I believe it is the whitespace that I had in my web.xml document in the <param-value>
element in the backend side of the project.
This
<?xml version="1.0" encoding="utf-8"?><web-appxmlns="http://java.sun.com/xml/ns/javaee"version="2.5"><servlet><servlet-name>SystemServiceServlet</servlet-name><servlet-class>com.google.api.server.spi.SystemServiceServlet</servlet-class><init-param><param-name>services</param-name><param-value>com.ip.grademe.server.MyEndpoint, com.ip.grademe.server.UserEndpoint, com.ip.grademe.server.UniversityEndpoint</param-value></init-param></servlet><servlet-mapping><servlet-name>SystemServiceServlet</servlet-name><url-pattern>/_ah/spi/*</url-pattern></servlet-mapping><welcome-file-list><welcome-file>index.html</welcome-file></welcome-file-list></web-app>
was changed to this
<?xml version="1.0" encoding="utf-8"?><web-appxmlns="http://java.sun.com/xml/ns/javaee"version="2.5"><servlet><servlet-name>SystemServiceServlet</servlet-name><servlet-class>com.google.api.server.spi.SystemServiceServlet</servlet-class><init-param><param-name>services</param-name><param-value>com.ip.grademe.server.MyEndpoint,com.ip.grademe.server.UserEndpoint,com.ip.grademe.server.UniversityEndpoint</param-value></init-param></servlet><servlet-mapping><servlet-name>SystemServiceServlet</servlet-name><url-pattern>/_ah/spi/*</url-pattern></servlet-mapping><welcome-file-list><welcome-file>index.html</welcome-file></welcome-file-list></web-app>
and it worked!
Post a Comment for "Cannot Resolve Symbol 'myapi'"