Getting an error on the Liferay trainingGetting an error on the Liferay traininghttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1205196152024-03-29T08:39:50Z2024-03-29T08:39:50ZRE: RE: Getting an error on the Liferay trainingAnu Narayananhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1205248062020-12-30T20:34:08Z2020-12-30T20:34:08Z<p>I got it resolved. I had to put the version number. Entered the
following lines and it is compiling fine now</p>
<p> compileOnly group: "javax.portlet", name:
"portlet-api", version: "2.0"<br /> compileOnly
group: "javax.servlet", name: "javax.servlet-api",
version: "3.0.1"</p>Anu Narayanan2020-12-30T20:34:08ZRE: Getting an error on the Liferay trainingAnu Narayananhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1205247942020-12-30T20:24:52Z2020-12-30T20:24:52Z<p>Related issue :- When I build my jar, I get the following error </p>
<p> </p>
<p>Execution failed for task ':gradebook-service:compileJava'.<br />>
Could not resolve all files for configuration
':gradebook-service:compileClasspath'.<br /> > Could not find
javax.portlet:portlet-api:.<br /> Required by:<br />
project :gradebook-service<br /> > Could not find
javax.servlet:javax.servlet-api:.<br /> Required by:<br />
project :gradebook-service</p>
<p> </p>
<p>I have the following dependencies in my build.gradle </p>
<p> compileOnly group: "javax.portlet", name:
"portlet-api"<br /> compileOnly group:
"javax.servlet", name: "javax.servlet-api"</p>Anu Narayanan2020-12-30T20:24:52ZRE: Getting an error on the Liferay trainingAnu Narayananhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1205246882020-12-30T14:29:50Z2020-12-30T14:29:50Z<p>I add dependencies to the build path by right clicking the project
-> Build Path -> Configure Build Path and added the external
jars, javax.servlet.jar and portlet-api-3.0.0.jar. The error goes away
temporarily but when I refresh the gradle, the added jars are gone and
the error is showing again. </p>Anu Narayanan2020-12-30T14:29:50ZRE: Getting an error on the Liferay trainingOlaf Kockhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1205198322020-12-30T09:13:26Z2020-12-30T09:13:26Z<p>Can you elaborate on "it goes away"? How do you add the
dependencies to the build path?</p>Olaf Kock2020-12-30T09:13:26ZGetting an error on the Liferay trainingAnu Narayananhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1205196142020-12-29T18:39:22Z2020-12-29T18:39:21Z<p>I am following the training 'Backend Modules- Developing real world
applications' and getting an error in the 'AssignmentServiceSoap.java'</p>
<p>"The type javax.servlet.http.HttpServletRequest cannot be
resolved. It is indirectly referenced fr