{"id":26,"date":"2015-01-05T10:53:00","date_gmt":"2015-01-05T10:53:00","guid":{"rendered":"https:\/\/scgindia.in\/lhotsetechnologies\/dev\/2015\/01\/05\/common-error-with-aem-services\/"},"modified":"2019-09-19T13:08:48","modified_gmt":"2019-09-19T13:08:48","slug":"common-error-with-aem-services","status":"publish","type":"post","link":"https:\/\/lhotsetechnologies.com\/blog\/common-error-with-aem-services\/","title":{"rendered":"Common Error with AEM Services"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\">\n<div style=\"text-align: justify;\">&nbsp;<\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">In this post, I will explain a common mistake we make, when we create a simple service class for AEM. Sometime we create a service class using&nbsp;@Service annotation&nbsp; &amp; build our project using &#8211;&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><b><i><span style=\"color: #660000;\">mvn clean install -P&lt;profileName&gt;&nbsp;<\/span><\/i><\/b><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">command. We found an error as shown below<\/span> &#8211;<\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i>[ERROR] Failed to execute goal org.apache.felix:maven-scr-plugin:1.7.4:scr (generate-scr-descriptor) on project blog-bundle: SCR Descriptor parsing had failures (see log) -&gt; [Help 1]<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i>[ERROR]&nbsp;<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i>[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i>[ERROR] Re-run Maven using the -X switch to enable full debug logging.<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i>[ERROR]&nbsp;<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i>[ERROR] For more information about the errors and possible solutions, please read the following articles:<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i>[ERROR] [Help 1] http:\/\/cwiki.apache.org\/confluence\/display\/MAVEN\/MojoFailureException<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i>[ERROR]&nbsp;<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i>[ERROR] After correcting the problems, you can resume the build with the command<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i>[ERROR] &nbsp; mvn &lt;goals&gt; -rf :blog-bundle<\/i><\/span><\/div>\n<div style=\"text-align: justify;\">&nbsp;<\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">the error description provided by logs is not enough to identify this error easily &amp;&nbsp;<\/span><span style=\"color: #274e13;\">when we try to use -X switch for debugging our code then we got some kind of mojo exception as shown below &#8211;<\/span><br><span style=\"color: #274e13;\"><br><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i>[ERROR] Failed to execute goal org.apache.felix:maven-scr-plugin:1.7.4:scr (generate-scr-descriptor) on project blog-bundle: SCR Descriptor parsing had failures (see log) -&gt; [Help 1]<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i>org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.felix:maven-scr-plugin:1.7.4:scr (generate-scr-descriptor) on project blog-bundle: SCR Descriptor parsing had failures (see log)<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i> at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i> at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i> at java.lang.reflect.Method.invoke(Method.java:601)<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i> at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i> at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i>Caused by: org.apache.maven.plugin.MojoFailureException: SCR Descriptor parsing had failures (see log)<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i> at org.apache.felix.scrplugin.mojo.SCRDescriptorMojo.execute(SCRDescriptorMojo.java:204)<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i> &#8230; 19 more<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i>Caused by: org.apache.felix.scrplugin.SCRDescriptorFailureException: SCR Descriptor parsing had failures (see log)<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i> at org.apache.felix.scrplugin.SCRDescriptorGenerator.execute(SCRDescriptorGenerator.java:370)<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i> at org.apache.felix.scrplugin.mojo.SCRDescriptorMojo.execute(SCRDescriptorMojo.java:192)<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i> &#8230; 21 more<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i>[ERROR]&nbsp;<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i>[ERROR]&nbsp;<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i>[ERROR] For more information about the errors and possible solutions, please read the following articles:<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i>[ERROR] [Help 1] http:\/\/cwiki.apache.org\/confluence\/display\/MAVEN\/MojoFailureException<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i>[ERROR]&nbsp;<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i>[ERROR] After correcting the problems, you can resume the build with the command<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i>[ERROR] &nbsp; mvn &lt;goals&gt; -rf :blog-bundle<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-size: 14px;\"><i><br><\/i><\/span><span style=\"color: #274e13;\">at our intelliJ IDEA we got neither a error nor a simple warning. but when we build our project we found a maven-scr-plugin error.&nbsp;<\/span><span style=\"color: #274e13;\">Reason for this error is &#8211;&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">Generally, when we create a class with @Service annotation we implement an interface as&nbsp;shown&nbsp;&#8211;&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><br><\/span><i><span style=\"color: #660000;\">@Component<\/span><\/i><\/div>\n<div style=\"text-align: justify;\"><i><span style=\"color: #660000;\">@Service<\/span><\/i><\/div>\n<div style=\"text-align: justify;\"><i><span style=\"color: #660000;\">public class CommonErrorImpl &nbsp;implements CommonError{<\/span><\/i><\/div>\n<div style=\"text-align: justify;\"><i><span style=\"color: #660000;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#8230;&#8230;&#8230;.<\/span><\/i><\/div>\n<div style=\"text-align: justify;\"><i><span style=\"color: #660000;\">}<\/span><\/i><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">This is the best practice so normally we don&#8217;t forget to implement an interface but sometime we forgot to implement an interface and create a class as follows &#8211;&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><br><\/span><i><span style=\"color: #660000;\">@Component<\/span><\/i><\/div>\n<div style=\"text-align: justify;\"><i><span style=\"color: #660000;\">@Service<\/span><\/i><\/div>\n<div style=\"text-align: justify;\"><i><span style=\"color: #660000;\">public class CommonErrorImpl{<\/span><\/i><\/div>\n<div style=\"text-align: justify;\"><i><span style=\"color: #660000;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#8230;&#8230;&#8230;.<\/span><\/i><\/div>\n<div style=\"text-align: justify;\"><i><span style=\"color: #660000;\">}<\/span><\/i><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><br><\/span><span style=\"color: #274e13;\">this is the case where we found the error.&nbsp;<\/span><span style=\"color: #274e13;\">So to resolve this error we can do 3 things &#8211;&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><b><span style=\"color: #660000;\"><i>1). Implement an interface<\/i><\/span><\/b><\/div>\n<div style=\"text-align: justify;\"><b><span style=\"color: #660000;\"><i>2). Define same class name in @Service annotation as &#8211;&nbsp;<\/i><\/span><\/b><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><br><\/span><i><span style=\"color: #660000;\">@Component<\/span><\/i><\/div>\n<div style=\"text-align: justify;\"><i><span style=\"color: #660000;\">@Service<b>(CommonErrorImpl.class)<\/b><\/span><\/i><\/div>\n<div style=\"text-align: justify;\"><i><span style=\"color: #660000;\">public class CommonErrorImpl{<\/span><\/i><\/div>\n<div style=\"text-align: justify;\"><i><span style=\"color: #660000;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#8230;&#8230;&#8230;.<\/span><\/i><\/div>\n<div style=\"text-align: justify;\"><i><span style=\"color: #660000;\">}<\/span><\/i><\/div>\n<div style=\"text-align: justify;\"><b><span style=\"color: #660000;\"><i><br><\/i><\/span><\/b><b><span style=\"color: #660000;\"><i>3). Check&nbsp;org.apache.felix:maven-scr-plugin:&lt;version&gt; plugin in your project module&#8217;s pom.xml file it should be in this format &#8211;&nbsp;<\/i><\/span><\/b><br><i><span style=\"color: #660000;\">&lt;plugin&gt;<\/span><\/i><br><i><span style=\"color: #660000;\">&nbsp; &nbsp; &nbsp; &lt;groupId&gt;org.apache.felix&lt;\/groupId&gt;<\/span><\/i><br><i><span style=\"color: #660000;\">&nbsp; &nbsp; &nbsp; &lt;artifactId&gt;maven-scr-plugin&lt;\/artifactId&gt;<\/span><\/i><br><i><span style=\"color: #660000;\">&nbsp; &nbsp; &nbsp; &lt;executions&gt;<\/span><\/i><br><i><span style=\"color: #660000;\"><b>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;execution&gt;<\/b><\/span><\/i><br><i><span style=\"color: #660000;\"><b>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;id&gt;generate-scr-descriptor&lt;\/id&gt;<\/b><\/span><\/i><br><i><span style=\"color: #660000;\"><b>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;goals&gt;<\/b><\/span><\/i><br><i><span style=\"color: #660000;\"><b>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;goal&gt;scr&lt;\/goal&gt;<\/b><\/span><\/i><br><i><span style=\"color: #660000;\"><b>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;\/goals&gt;<\/b><\/span><\/i><br><i><span style=\"color: #660000;\"><b>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;\/execution&gt;<\/b><\/span><\/i><br><i><span style=\"color: #660000;\"><b>&nbsp; <\/b>&nbsp; &nbsp; &nbsp; &lt;\/executions&gt;<\/span><\/i><br><i><span style=\"color: #660000;\">&lt;\/plugin&gt;<\/span><\/i><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p><strong>Happy Coding<\/strong><br><strong>Namah Shivay<\/strong><\/p>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; In this post, I will explain a common mistake we make, when we create a simple service class for [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,33,80,88],"tags":[],"class_list":["post-26","post","type-post","status-publish","format-standard","hentry","category-aem","category-cq","category-failed-to-execute-goal-org-apache-felixmaven-scr-plugin1-7-4scr","category-failed-to-execute-goal-org-apache-felixmaven-scr-plugin1-7-4scr-generate-scr-descriptor"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Common Error with AEM Services - AEM Blog | Lhotse Technologies<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/lhotsetechnologies.com\/blog\/common-error-with-aem-services\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Common Error with AEM Services - AEM Blog | Lhotse Technologies\" \/>\n<meta property=\"og:description\" content=\"&nbsp; In this post, I will explain a common mistake we make, when we create a simple service class for [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/lhotsetechnologies.com\/blog\/common-error-with-aem-services\/\" \/>\n<meta property=\"og:site_name\" content=\"AEM Blog | Lhotse Technologies\" \/>\n<meta property=\"article:published_time\" content=\"2015-01-05T10:53:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-09-19T13:08:48+00:00\" \/>\n<meta name=\"author\" content=\"Team Lhotse\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Team Lhotse\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/common-error-with-aem-services\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/common-error-with-aem-services\/\"},\"author\":{\"name\":\"Team Lhotse\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/fd7bee89b050d7c7195fc75b681b053d\"},\"headline\":\"Common Error with AEM Services\",\"datePublished\":\"2015-01-05T10:53:00+00:00\",\"dateModified\":\"2019-09-19T13:08:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/common-error-with-aem-services\/\"},\"wordCount\":880,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#organization\"},\"articleSection\":[\"AEM\",\"CQ\",\"Failed to execute goal org.apache.felix:maven-scr-plugin:1.7.4:scr\",\"Failed to execute goal org.apache.felix:maven-scr-plugin:1.7.4:scr (generate-scr-descriptor)\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/lhotsetechnologies.com\/blog\/common-error-with-aem-services\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/common-error-with-aem-services\/\",\"url\":\"https:\/\/lhotsetechnologies.com\/blog\/common-error-with-aem-services\/\",\"name\":\"Common Error with AEM Services - AEM Blog | Lhotse Technologies\",\"isPartOf\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#website\"},\"datePublished\":\"2015-01-05T10:53:00+00:00\",\"dateModified\":\"2019-09-19T13:08:48+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/common-error-with-aem-services\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/lhotsetechnologies.com\/blog\/common-error-with-aem-services\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/common-error-with-aem-services\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/lhotsetechnologies.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Common Error with AEM Services\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#website\",\"url\":\"https:\/\/lhotsetechnologies.com\/blog\/\",\"name\":\"AEM Blog | Lhotse Technologies\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/lhotsetechnologies.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#organization\",\"name\":\"AEM Blog | Lhotse Technologies\",\"url\":\"https:\/\/lhotsetechnologies.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2019\/07\/lhotse-logo.png\",\"contentUrl\":\"https:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2019\/07\/lhotse-logo.png\",\"width\":539,\"height\":172,\"caption\":\"AEM Blog | Lhotse Technologies\"},\"image\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/fd7bee89b050d7c7195fc75b681b053d\",\"name\":\"Team Lhotse\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"caption\":\"Team Lhotse\"},\"url\":\"https:\/\/lhotsetechnologies.com\/blog\/author\/team-lhotse\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Common Error with AEM Services - AEM Blog | Lhotse Technologies","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/lhotsetechnologies.com\/blog\/common-error-with-aem-services\/","og_locale":"en_US","og_type":"article","og_title":"Common Error with AEM Services - AEM Blog | Lhotse Technologies","og_description":"&nbsp; In this post, I will explain a common mistake we make, when we create a simple service class for [&hellip;]","og_url":"https:\/\/lhotsetechnologies.com\/blog\/common-error-with-aem-services\/","og_site_name":"AEM Blog | Lhotse Technologies","article_published_time":"2015-01-05T10:53:00+00:00","article_modified_time":"2019-09-19T13:08:48+00:00","author":"Team Lhotse","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Team Lhotse","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/lhotsetechnologies.com\/blog\/common-error-with-aem-services\/#article","isPartOf":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/common-error-with-aem-services\/"},"author":{"name":"Team Lhotse","@id":"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/fd7bee89b050d7c7195fc75b681b053d"},"headline":"Common Error with AEM Services","datePublished":"2015-01-05T10:53:00+00:00","dateModified":"2019-09-19T13:08:48+00:00","mainEntityOfPage":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/common-error-with-aem-services\/"},"wordCount":880,"commentCount":0,"publisher":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/#organization"},"articleSection":["AEM","CQ","Failed to execute goal org.apache.felix:maven-scr-plugin:1.7.4:scr","Failed to execute goal org.apache.felix:maven-scr-plugin:1.7.4:scr (generate-scr-descriptor)"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/lhotsetechnologies.com\/blog\/common-error-with-aem-services\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/lhotsetechnologies.com\/blog\/common-error-with-aem-services\/","url":"https:\/\/lhotsetechnologies.com\/blog\/common-error-with-aem-services\/","name":"Common Error with AEM Services - AEM Blog | Lhotse Technologies","isPartOf":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/#website"},"datePublished":"2015-01-05T10:53:00+00:00","dateModified":"2019-09-19T13:08:48+00:00","breadcrumb":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/common-error-with-aem-services\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/lhotsetechnologies.com\/blog\/common-error-with-aem-services\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/lhotsetechnologies.com\/blog\/common-error-with-aem-services\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/lhotsetechnologies.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Common Error with AEM Services"}]},{"@type":"WebSite","@id":"https:\/\/lhotsetechnologies.com\/blog\/#website","url":"https:\/\/lhotsetechnologies.com\/blog\/","name":"AEM Blog | Lhotse Technologies","description":"","publisher":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/lhotsetechnologies.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/lhotsetechnologies.com\/blog\/#organization","name":"AEM Blog | Lhotse Technologies","url":"https:\/\/lhotsetechnologies.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2019\/07\/lhotse-logo.png","contentUrl":"https:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2019\/07\/lhotse-logo.png","width":539,"height":172,"caption":"AEM Blog | Lhotse Technologies"},"image":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/fd7bee89b050d7c7195fc75b681b053d","name":"Team Lhotse","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"Team Lhotse"},"url":"https:\/\/lhotsetechnologies.com\/blog\/author\/team-lhotse\/"}]}},"_links":{"self":[{"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/26","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=26"}],"version-history":[{"count":2,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/26\/revisions"}],"predecessor-version":[{"id":204,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/26\/revisions\/204"}],"wp:attachment":[{"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=26"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=26"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=26"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}