Neil Jin Il y a 7 années - Edité I haven't encounter null pointer error. Make sure you have dependency in build.gradle and you have refreashed the gradle project. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Neil Jin Il y a 7 années - Edité I have updated the blog with an example attachment in the bottom. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Pallavi Havale Neil Jin Il y a 7 années Hi Neil, I am facing one issue while build the services that,:SB-service:buildServicePOM relocation to an other version number is not fully supported in Gradle : xml-apis#xml-apis;2.0.2 relocated to xml-apis#xml-apis;1.0.b2.Please update your dependency to directly use the correct version 'xml-apis#xml-apis;1.0.b2'.Thanks In advance !!! Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Neil Jin Pallavi Havale Il y a 7 années I have the same message, but it doesn't interrupt the build service process. It will repoint the dependenty to xml-apis#xml-apis;1.0.b2. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Pallavi Havale Neil Jin Il y a 7 années Thanks Neil !!One more issue i m facing that,I make connection with mysql .After connection ,I am adding the data into the table but it showing me error in popup windowis : Unable to build outputCould not execute build using Gradle distribution 'https://services.gradle.org/distributions/gradle-2.13-bin.zip'Thanks in Advance !!! Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Neil Jin Pallavi Havale Il y a 7 années This is maybe because you gradle version is not correct. Sorry Pallavi, just travel back and got some time to reply. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler triveni bandaru Neil Jin Il y a 7 années Hi Neil,I have created liferay 7 Service builder and MVC portlets and have followed your steps for adding service dependencies in portlet and refreshed gradle module.Now there is no compile time erros and able to import all service classes in my mvc portletI deployed <modulename>-api,<modulename>-service, and mvc portlets in tomcat serverwhen i checked logs , mvc portlet status is installed and getting below error.org.osgi.framework.BundleException: Could not resolve module: module1 [592] Unresolved requirement: Import-Package: com.bookservice.model.implI dont know why dependencies not resolved at run time, please help me Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Neil Jin triveni bandaru Il y a 7 années Is module1 is your mvc portlet module? Veuillez vous identifier pour voter. Répondre en tant que ... Annuler triveni bandaru Neil Jin Il y a 7 années Yes Neil, module1 is my portlet. Thanks for your responseI got the solution from below linkhttps://web.liferay.com/community/forums/-/message_boards/view_message/79177774#_19_message_79179381 Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Pallavi Havale Neil Jin Il y a 7 années Hi Neil, I am facing one issue while build the services that,:SB-service:buildServicePOM relocation to an other version number is not fully supported in Gradle : xml-apis#xml-apis;2.0.2 relocated to xml-apis#xml-apis;1.0.b2.Please update your dependency to directly use the correct version 'xml-apis#xml-apis;1.0.b2'.Thanks In advance !!! Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Neil Jin Pallavi Havale Il y a 7 années I have the same message, but it doesn't interrupt the build service process. It will repoint the dependenty to xml-apis#xml-apis;1.0.b2. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Pallavi Havale Neil Jin Il y a 7 années Thanks Neil !!One more issue i m facing that,I make connection with mysql .After connection ,I am adding the data into the table but it showing me error in popup windowis : Unable to build outputCould not execute build using Gradle distribution 'https://services.gradle.org/distributions/gradle-2.13-bin.zip'Thanks in Advance !!! Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Neil Jin Pallavi Havale Il y a 7 années This is maybe because you gradle version is not correct. Sorry Pallavi, just travel back and got some time to reply. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Neil Jin Pallavi Havale Il y a 7 années I have the same message, but it doesn't interrupt the build service process. It will repoint the dependenty to xml-apis#xml-apis;1.0.b2. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Pallavi Havale Neil Jin Il y a 7 années Thanks Neil !!One more issue i m facing that,I make connection with mysql .After connection ,I am adding the data into the table but it showing me error in popup windowis : Unable to build outputCould not execute build using Gradle distribution 'https://services.gradle.org/distributions/gradle-2.13-bin.zip'Thanks in Advance !!! Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Neil Jin Pallavi Havale Il y a 7 années This is maybe because you gradle version is not correct. Sorry Pallavi, just travel back and got some time to reply. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Pallavi Havale Neil Jin Il y a 7 années Thanks Neil !!One more issue i m facing that,I make connection with mysql .After connection ,I am adding the data into the table but it showing me error in popup windowis : Unable to build outputCould not execute build using Gradle distribution 'https://services.gradle.org/distributions/gradle-2.13-bin.zip'Thanks in Advance !!! Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Neil Jin Pallavi Havale Il y a 7 années This is maybe because you gradle version is not correct. Sorry Pallavi, just travel back and got some time to reply. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Neil Jin Pallavi Havale Il y a 7 années This is maybe because you gradle version is not correct. Sorry Pallavi, just travel back and got some time to reply. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
triveni bandaru Neil Jin Il y a 7 années Hi Neil,I have created liferay 7 Service builder and MVC portlets and have followed your steps for adding service dependencies in portlet and refreshed gradle module.Now there is no compile time erros and able to import all service classes in my mvc portletI deployed <modulename>-api,<modulename>-service, and mvc portlets in tomcat serverwhen i checked logs , mvc portlet status is installed and getting below error.org.osgi.framework.BundleException: Could not resolve module: module1 [592] Unresolved requirement: Import-Package: com.bookservice.model.implI dont know why dependencies not resolved at run time, please help me Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Neil Jin triveni bandaru Il y a 7 années Is module1 is your mvc portlet module? Veuillez vous identifier pour voter. Répondre en tant que ... Annuler triveni bandaru Neil Jin Il y a 7 années Yes Neil, module1 is my portlet. Thanks for your responseI got the solution from below linkhttps://web.liferay.com/community/forums/-/message_boards/view_message/79177774#_19_message_79179381 Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Neil Jin triveni bandaru Il y a 7 années Is module1 is your mvc portlet module? Veuillez vous identifier pour voter. Répondre en tant que ... Annuler triveni bandaru Neil Jin Il y a 7 années Yes Neil, module1 is my portlet. Thanks for your responseI got the solution from below linkhttps://web.liferay.com/community/forums/-/message_boards/view_message/79177774#_19_message_79179381 Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
triveni bandaru Neil Jin Il y a 7 années Yes Neil, module1 is my portlet. Thanks for your responseI got the solution from below linkhttps://web.liferay.com/community/forums/-/message_boards/view_message/79177774#_19_message_79179381 Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Harish Kumar Il y a 7 années Hi Neil,I am using Liferay 7 GA1. I tried to create service builder project as mentioned and using the default service.xml. buildService task succeed but build task failing with following exception. I tried with other service.xml but getting the same error.Exception in thread "main" com.liferay.source.formatter.SourceMismatchException at com.liferay.source.formatter.BaseSourceProcessor.processFormattedFile(BaseSourceProcessor.java:2488) at com.liferay.source.formatter.BaseSourceProcessor.format(BaseSourceProcessor.java:1024) at com.liferay.source.formatter.BaseSourceProcessor$1.call(BaseSourceProcessor.java:106) at com.liferay.source.formatter.BaseSourceProcessor$1.call(BaseSourceProcessor.java:101) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745):modules:service-builder-project:service-builder-project-service:checkSourceFormatting FAILEDFAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':modules:service-builder-project:service-builder-project-service:checkSourceFormatting'.> Process 'command 'C:\Program Files\Java\jdk1.8.0_51\bin\java.exe'' finished with non-zero exit value 1* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.BUILD FAILEDThanks. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Neil Jin Harish Kumar Il y a 7 années If this error appears during build, You can run deploy task instead of build to by pass source formatter. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Harish Kumar Neil Jin Il y a 7 années Thanks for prompt response Neil. It worked !! Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Neil Jin Harish Kumar Il y a 7 années If this error appears during build, You can run deploy task instead of build to by pass source formatter. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Harish Kumar Neil Jin Il y a 7 années Thanks for prompt response Neil. It worked !! Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Harish Kumar Neil Jin Il y a 7 années Thanks for prompt response Neil. It worked !! Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
hemraj sharma Il y a 7 années Hi Neil, Thanks for this blog it provide a great help.But I was facing the same issue as Harish Kumar was facing. I tried by executing the deploy command instead the build. Command executed successfully. But when I checked DB there were no tables created.Please suggest where I have to do changes. I am using 1) Liferay 7.0 with community edition2) mysql version-14.14 Distrib 5.6.303)IDE -3.0.1-ga2-linux32Thanks a lot. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
hemraj sharma Il y a 7 années Hi Neil, Thanks for this blog it provide a great help.But I was facing the same issue as Harish Kumar was facing. I tried by executing the deploy command instead the build. Command executed successfully. But when I checked DB there were no tables created.Please suggest where I have to do changes. I am using 1) Liferay 7.0 with community edition2) mysql version-14.14 Distrib 5.6.303)IDE -3.0.1-ga2-linux32Thanks a lot. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Neil Jin hemraj sharma Il y a 7 années 1, make sure the compiled jar has beed deployed into Liferay2, make sure the module has been activated3, makre sure there's no error during running4, check the db table(s), if not exists, try using control panel -> sys admin to regenerate the table(s). Veuillez vous identifier pour voter. Répondre en tant que ... Annuler hemraj sharma Neil Jin Il y a 7 années Hi Neil,' Thanks, It worked.Thanks a lot. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Neil Jin hemraj sharma Il y a 7 années 1, make sure the compiled jar has beed deployed into Liferay2, make sure the module has been activated3, makre sure there's no error during running4, check the db table(s), if not exists, try using control panel -> sys admin to regenerate the table(s). Veuillez vous identifier pour voter. Répondre en tant que ... Annuler hemraj sharma Neil Jin Il y a 7 années Hi Neil,' Thanks, It worked.Thanks a lot. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
hemraj sharma Neil Jin Il y a 7 années Hi Neil,' Thanks, It worked.Thanks a lot. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
hemraj sharma Il y a 7 années Hi Neil, Thanks for your replies. I came across an issue that if i add an entity in a service builder, or modify an existing Entity in that service builder, The corresponding classes are being created but the Tables in DB are not reflected with the changes(NO new table, and no new field in the table if added.). To achieve the changes I need to do the three steps which were discussed here "https://issues.liferay.com/browse/LPS-67688" under "Only during the development phase". Please suggest any other way if possible, in which I don't need to delete the already created tables in that namespace Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
hemraj sharma Il y a 7 années Hi Neil, Thanks for your replies. I came across an issue that if i add an entity in a service builder, or modify an existing Entity in that service builder, The corresponding classes are being created but the Tables in DB are not reflected with the changes(NO new table, and no new field in the table if added.). To achieve the changes I need to do the three steps which were discussed here "https://issues.liferay.com/browse/LPS-67688" under "Only during the development phase". Please suggest any other way if possible, in which I don't need to delete the already created tables in that namespace Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Neil Jin hemraj sharma Il y a 7 années Yea, this is a known issue. even me, I use to remove tables which is not convenient. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Neil Jin hemraj sharma Il y a 7 années Yea, this is a known issue. even me, I use to remove tables which is not convenient. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Clint Wilde Il y a 7 années Hi Neil,Thanks for the post. I created a service builder project, (using the command line entirely), then created an MVC Portlet using the command line. I deployed the 2 jars just fine, but when I add the dependency to my portlet's build.gradle file, and build within Eclipse, I get errors:Project with path ':modules:tasks:tasks-api' could not be found in root project 'TaskPortlet'.My project structure is this:ParentDir +TaskPortlet +tasks +tasks-api +tasks-service So what do I need to change so my TasksPortlet can see my service jars?Thanks much. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Neil Jin Clint Wilde Il y a 7 années Sorry, just saw your reply.Please if you used the correct method compile project(":modules:tasks:tasks-api") in your TaskPortletSecond, please make your tasks-api and tasks-serverce are sub projects of tasks projecthope it helps Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Neil Jin Clint Wilde Il y a 7 années Sorry, just saw your reply.Please if you used the correct method compile project(":modules:tasks:tasks-api") in your TaskPortletSecond, please make your tasks-api and tasks-serverce are sub projects of tasks projecthope it helps Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Ankit Arora Il y a 7 années Hi I am getting this error :modules:tasks:tasks-service:buildService FAILEDFAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':modules:tasks:tasks-service:buildService'.> Could not resolve all dependencies for configuration ':modules:tasks:tasks-service:serviceBuilder'. > Could not resolve com.liferay:com.liferay.portal.tools.service.builder:1.0.133. Required by: com.liferay.docs.tasks:tasks-service:1.0.0 > Could not resolve com.liferay:com.liferay.portal.tools.service.builder:1.0.133. > Could not get resource 'https://cdn.lfrs.sl/repository.liferay.com/nexus/content/groups/public/com/liferay/com.liferay.portal.tools.service.builder/1.0.133/com.liferay.portal.tools.service.builder-1.0.133.pom'. > Could not GET 'https://cdn.lfrs.sl/repository.liferay.com/nexus/content/groups/public/com/liferay/com.liferay.portal.tools.service.builder/1.0.133/com.liferay.portal.tools.service.builder-1.0.133.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.BUILD FAILEDTotal time: 1.068 secsWhat is it related to. Can Anybody please help me. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Neil Jin Ankit Arora Il y a 7 années it looks like you don't have internet connection for IDE. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler karthik reddy Neil Jin Il y a 7 années Hi Neil thanks for your posts. Is there any way to download jars externally to create a liferay plugin project or module in liferay DXP.Thanks & RegardsKarthik Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Neil Jin karthik reddy Il y a 7 années Hi Karthik, basically, you want to manage jars manually rather than using gradle to download the dependencies. Am I correct? Veuillez vous identifier pour voter. Répondre en tant que ... Annuler karthik reddy Neil Jin Il y a 6 années Hi Neil, Yes I want to manage jars rather than connecting to internet when using eclipse IDE. I am able to download the required jars. Is there any way to configure manually to communicating with Gradle?Thanks & Regardskarthik Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Neil Jin karthik reddy Il y a 6 années Please check this blog: https://web.liferay.com/web/user.26526/blog/-/blogs/osgi-module-dependencies Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Joye Luo Ankit Arora Il y a 7 années I has run into the same problem. But when I change to use Liferay workspace instead of creating those projects stand-alone, it works. So do u use Liferay workspace? Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Neil Jin Joye Luo Il y a 7 années Hi Joye, Yes, I use Liferay workspace. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Neil Jin Ankit Arora Il y a 7 années it looks like you don't have internet connection for IDE. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler karthik reddy Neil Jin Il y a 7 années Hi Neil thanks for your posts. Is there any way to download jars externally to create a liferay plugin project or module in liferay DXP.Thanks & RegardsKarthik Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Neil Jin karthik reddy Il y a 7 années Hi Karthik, basically, you want to manage jars manually rather than using gradle to download the dependencies. Am I correct? Veuillez vous identifier pour voter. Répondre en tant que ... Annuler karthik reddy Neil Jin Il y a 6 années Hi Neil, Yes I want to manage jars rather than connecting to internet when using eclipse IDE. I am able to download the required jars. Is there any way to configure manually to communicating with Gradle?Thanks & Regardskarthik Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Neil Jin karthik reddy Il y a 6 années Please check this blog: https://web.liferay.com/web/user.26526/blog/-/blogs/osgi-module-dependencies Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
karthik reddy Neil Jin Il y a 7 années Hi Neil thanks for your posts. Is there any way to download jars externally to create a liferay plugin project or module in liferay DXP.Thanks & RegardsKarthik Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Neil Jin karthik reddy Il y a 7 années Hi Karthik, basically, you want to manage jars manually rather than using gradle to download the dependencies. Am I correct? Veuillez vous identifier pour voter. Répondre en tant que ... Annuler karthik reddy Neil Jin Il y a 6 années Hi Neil, Yes I want to manage jars rather than connecting to internet when using eclipse IDE. I am able to download the required jars. Is there any way to configure manually to communicating with Gradle?Thanks & Regardskarthik Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Neil Jin karthik reddy Il y a 6 années Please check this blog: https://web.liferay.com/web/user.26526/blog/-/blogs/osgi-module-dependencies Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Neil Jin karthik reddy Il y a 7 années Hi Karthik, basically, you want to manage jars manually rather than using gradle to download the dependencies. Am I correct? Veuillez vous identifier pour voter. Répondre en tant que ... Annuler karthik reddy Neil Jin Il y a 6 années Hi Neil, Yes I want to manage jars rather than connecting to internet when using eclipse IDE. I am able to download the required jars. Is there any way to configure manually to communicating with Gradle?Thanks & Regardskarthik Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Neil Jin karthik reddy Il y a 6 années Please check this blog: https://web.liferay.com/web/user.26526/blog/-/blogs/osgi-module-dependencies Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
karthik reddy Neil Jin Il y a 6 années Hi Neil, Yes I want to manage jars rather than connecting to internet when using eclipse IDE. I am able to download the required jars. Is there any way to configure manually to communicating with Gradle?Thanks & Regardskarthik Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Neil Jin karthik reddy Il y a 6 années Please check this blog: https://web.liferay.com/web/user.26526/blog/-/blogs/osgi-module-dependencies Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Neil Jin karthik reddy Il y a 6 années Please check this blog: https://web.liferay.com/web/user.26526/blog/-/blogs/osgi-module-dependencies Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Joye Luo Ankit Arora Il y a 7 années I has run into the same problem. But when I change to use Liferay workspace instead of creating those projects stand-alone, it works. So do u use Liferay workspace? Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Neil Jin Joye Luo Il y a 7 années Hi Joye, Yes, I use Liferay workspace. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Neil Jin Joye Luo Il y a 7 années Hi Joye, Yes, I use Liferay workspace. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Joye Luo Il y a 7 années Thanks Neil. This blog really help me a lot. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
delang j Il y a 5 années hi neil, can we build service builder portlet and mvc portlet under same under same project like we done in 6.2.tq Veuillez vous identifier pour voter. Répondre en tant que ... Annuler MOHSIN m delang j Il y a 5 années I think its not a good approach to have a service builder portlet and mvc portlet under same dir. You can have a service builder portlet that you can include in your mvc portlet (like this compileOnly project(":modules:MyPortlet-SB:MyPortlet-SB-api")) which will give your mvc portlet complete access to services. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
MOHSIN m delang j Il y a 5 années I think its not a good approach to have a service builder portlet and mvc portlet under same dir. You can have a service builder portlet that you can include in your mvc portlet (like this compileOnly project(":modules:MyPortlet-SB:MyPortlet-SB-api")) which will give your mvc portlet complete access to services. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler