留言板
Error creating Liferay plugin project: FileNotFoundException
Error creating Liferay plugin project: FileNotFoundException
New Member 发布: 1 加入日期: 15-5-15 最近的帖子I'm trying to create a Liferay application (plugin project), as described in the following link:
https://dev.liferay.com/develop/learning-paths/-/knowledge_base/6-2/writing-your-first-liferay-application
When I try to create the Project using the wizard, I get the following error:
Error creating Liferay plugin project. Please see Eclipse error log for more details.
This is the log entry related with the error warning:
!ENTRY com.liferay.ide.project.core 4 0 2015-05-15 09:59:19.248
!MESSAGE Error creating Liferay plugin project.
!STACK 1
org.eclipse.core.runtime.CoreException: Source 'C:\Users\esteban.araujo\workspace\.metadata\.plugins\com.liferay.ide.sdk.core\create\1431694696155' does not exist
at com.liferay.ide.project.core.PluginsSDKProjectProvider.doCreateNewProject(PluginsSDKProjectProvider.java:182)
at com.liferay.ide.project.core.NewLiferayProjectProvider.createNewProject(NewLiferayProjectProvider.java:45)
at com.liferay.ide.project.core.model.NewLiferayPluginProjectOpMethods.execute(NewLiferayPluginProjectOpMethods.java:109)
at com.liferay.ide.project.core.model.NewLiferayPluginProjectOp$Impl.execute(Unknown Source)
at org.eclipse.sapphire.ui.forms.swt.SapphireWizard.performFinish(SapphireWizard.java:370)
at org.eclipse.sapphire.ui.forms.swt.SapphireWizard$3.run(SapphireWizard.java:334)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by: java.io.FileNotFoundException: Source 'C:\Users\esteban.araujo\workspace\.metadata\.plugins\com.liferay.ide.sdk.core\create\1431694696155' does not exist
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1298)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1191)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1160)
at com.liferay.ide.project.core.PluginsSDKProjectProvider.doCreateNewProject(PluginsSDKProjectProvider.java:176)
... 6 more
!SUBENTRY 1 com.liferay.ide.project.core 4 0 2015-05-15 09:59:19.248
!MESSAGE Source 'C:\Users\esteban.araujo\workspace\.metadata\.plugins\com.liferay.ide.sdk.core\create\1431694696155' does not exist
!STACK 0
java.io.FileNotFoundException: Source 'C:\Users\esteban.araujo\workspace\.metadata\.plugins\com.liferay.ide.sdk.core\create\1431694696155' does not exist
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1298)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1191)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1160)
at com.liferay.ide.project.core.PluginsSDKProjectProvider.doCreateNewProject(PluginsSDKProjectProvider.java:176)
at com.liferay.ide.project.core.NewLiferayProjectProvider.createNewProject(NewLiferayProjectProvider.java:45)
at com.liferay.ide.project.core.model.NewLiferayPluginProjectOpMethods.execute(NewLiferayPluginProjectOpMethods.java:109)
at com.liferay.ide.project.core.model.NewLiferayPluginProjectOp$Impl.execute(Unknown Source)
at org.eclipse.sapphire.ui.forms.swt.SapphireWizard.performFinish(SapphireWizard.java:370)
at org.eclipse.sapphire.ui.forms.swt.SapphireWizard$3.run(SapphireWizard.java:334)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
What should I do to solve this issue?
Thanks in advance for your help.
RE: Error creating Liferay plugin project: FileNotFoundException
New Member 帖子: 2 加入日期: 15-5-11 最近的帖子Than you!
RE: Error creating Liferay plugin project: FileNotFoundException
Junior Member 帖子: 89 加入日期: 11-10-8 最近的帖子I didn't reproduce the error you've run into on IDE 2.2.2 with plugins sdk 6.2-ce-ga3 and 6.2.1-ce-ga1, could you try a brand new sdk and see if that works?
RE: Error creating Liferay plugin project: FileNotFoundException
Expert 帖子: 486 加入日期: 14-8-16 最近的帖子you have a problem jdk,
you can give the java jdk path,
it will work,
Regards ,
Ram
RE: Error creating Liferay plugin project: FileNotFoundException
Liferay Legend 帖子: 1123 加入日期: 10-2-16 最近的帖子RE: Error creating Liferay plugin project: FileNotFoundException
New Member 帖子: 23 加入日期: 18-1-16 最近的帖子I have the same issue; even if there are some year between me and the post;
Any way i wasn't able to find how to solve the matter
RE: Error creating Liferay plugin project: FileNotFoundException
New Member 帖子: 13 加入日期: 17-10-9 最近的帖子Hey francesco, can you get the error output in console? Sometimes it due to ivy resolve dependencies from the poor internet (represented on my side), and you can put .ivy folder manually.
RE: Error creating Liferay plugin project: FileNotFoundException
New Member 帖子: 23 加入日期: 18-1-16 最近的帖子Charles,
!ENTRY com.liferay.ide.project.core 4 0 2018-08-15 15:21:05.230 !MESSAGE Error creating Liferay plugin project. !STACK 1 org.eclipse.core.runtime.CoreException: Source '/home/fra/workSpaceLife/.metadata/.plugins/com.liferay.ide.sdk.core/create/1534339252589' does not exist at com.liferay.ide.project.core.PluginsSDKProjectProvider.doCreateNewProject(PluginsSDKProjectProvider.java:170) at com.liferay.ide.project.core.NewLiferayProjectProvider.createNewProject(NewLiferayProjectProvider.java:45) at com.liferay.ide.project.core.model.NewLiferayPluginProjectOpMethods.execute(NewLiferayPluginProjectOpMethods.java:101) at com.liferay.ide.project.core.model.NewLiferayPluginProjectOp$Impl.execute(Unknown Source) at org.eclipse.sapphire.ui.forms.swt.SapphireWizard.performFinish(SapphireWizard.java:352) at org.eclipse.sapphire.ui.forms.swt.SapphireWizard$3.run(SapphireWizard.java:314) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) Caused by: java.io.FileNotFoundException: Source '/home/fra/workSpaceLife/.metadata/.plugins/com.liferay.ide.sdk.core/create/1534339252589' does not exist at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1034) at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:927) at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:896) at com.liferay.ide.project.core.PluginsSDKProjectProvider.doCreateNewProject(PluginsSDKProjectProvider.java:164) ... 6 more !SUBENTRY 1 com.liferay.ide.core 4 0 2018-08-15 15:21:05.231 !MESSAGE Source '/home/fra/workSpaceLife/.metadata/.plugins/com.liferay.ide.sdk.core/create/1534339252589' does not exist !STACK 0 java.io.FileNotFoundException: Source '/home/fra/workSpaceLife/.metadata/.plugins/com.liferay.ide.sdk.core/create/1534339252589' does not exist at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1034) at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:927) at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:896) at com.liferay.ide.project.core.PluginsSDKProjectProvider.doCreateNewProject(PluginsSDKProjectProvider.java:164) at com.liferay.ide.project.core.NewLiferayProjectProvider.createNewProject(NewLiferayProjectProvider.java:45) at com.liferay.ide.project.core.model.NewLiferayPluginProjectOpMethods.execute(NewLiferayPluginProjectOpMethods.java:101) at com.liferay.ide.project.core.model.NewLiferayPluginProjectOp$Impl.execute(Unknown Source) at org.eclipse.sapphire.ui.forms.swt.SapphireWizard.performFinish(SapphireWizard.java:352) at org.eclipse.sapphire.ui.forms.swt.SapphireWizard$3.run(SapphireWizard.java:314) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) !ENTRY com.liferay.ide.project.core 4 0 2018-08-15 15:21:32.171 !MESSAGE Error creating Liferay plugin project. !STACK 1 org.eclipse.core.runtime.CoreException: Source '/home/fra/workSpaceLife/.metadata/.plugins/com.liferay.ide.sdk.core/create/1534339284859' does not exist at com.liferay.ide.project.core.PluginsSDKProjectProvider.doCreateNewProject(PluginsSDKProjectProvider.java:170) at com.liferay.ide.project.core.NewLiferayProjectProvider.createNewProject(NewLiferayProjectProvider.java:45) at com.liferay.ide.project.core.model.NewLiferayPluginProjectOpMethods.execute(NewLiferayPluginProjectOpMethods.java:101) at com.liferay.ide.project.core.model.NewLiferayPluginProjectOp$Impl.execute(Unknown Source) at org.eclipse.sapphire.ui.forms.swt.SapphireWizard.performFinish(SapphireWizard.java:352) at org.eclipse.sapphire.ui.forms.swt.SapphireWizard$3.run(SapphireWizard.java:314) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) Caused by: java.io.FileNotFoundException: Source '/home/fra/workSpaceLife/.metadata/.plugins/com.liferay.ide.sdk.core/create/1534339284859' does not exist at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1034) at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:927) at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:896) at com.liferay.ide.project.core.PluginsSDKProjectProvider.doCreateNewProject(PluginsSDKProjectProvider.java:164) ... 6 more !SUBENTRY 1 com.liferay.ide.core 4 0 2018-08-15 15:21:32.172 !MESSAGE Source '/home/fra/workSpaceLife/.metadata/.plugins/com.liferay.ide.sdk.core/create/1534339284859' does not exist !STACK 0 java.io.FileNotFoundException: Source '/home/fra/workSpaceLife/.metadata/.plugins/com.liferay.ide.sdk.core/create/1534339284859' does not exist at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1034) at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:927) at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:896) at com.liferay.ide.project.core.PluginsSDKProjectProvider.doCreateNewProject(PluginsSDKProjectProvider.java:164) at com.liferay.ide.project.core.NewLiferayProjectProvider.createNewProject(NewLiferayProjectProvider.java:45) at com.liferay.ide.project.core.model.NewLiferayPluginProjectOpMethods.execute(NewLiferayPluginProjectOpMethods.java:101) at com.liferay.ide.project.core.model.NewLiferayPluginProjectOp$Impl.execute(Unknown Source) at org.eclipse.sapphire.ui.forms.swt.SapphireWizard.performFinish(SapphireWizard.java:352) at org.eclipse.sapphire.ui.forms.swt.SapphireWizard$3.run(SapphireWizard.java:314) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
It is the same error as in the original post (more or less);
RE: Error creating Liferay plugin project: FileNotFoundException
New Member 帖子: 13 加入日期: 17-10-9 最近的帖子Hi francesco
Actually I need the console output, if you get such output :
[ivy:resolve]
http://cdn.repository.liferay.com/nexus/content/groups/public/xml-apis/xml-apis/1.4.01/xml-apis-1.4.01.jar
[ivy:resolve]
::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]
:: UNRESOLVED DEPENDENCIES ::
[ivy:resolve]
::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]
:: javax.activation#activation;1.1: not found
It's the reason i said above, your neeed to resolve the dependencies. Here are two ways you can try,
1. open the ivy-settings.xml in plugins root dir.
specifies another repository mirror to resolve dependencies(such as http://maven.aliyun.com/nexus/content/groups/public( worked on my side) or http://repo1.maven.org/maven2 ), or you can choose another fast mirror.
2. The direct way is to put the .ivy cache folder in root dir, but i don't know which plugin version you are using. Same to this post -- https://community.liferay.com/forums/-/message_boards/message/34949524
Hope this get work.
RE: Error creating Liferay plugin project: FileNotFoundException
New Member 帖子: 23 加入日期: 18-1-16 最近的帖子Charles thanks; that error i 've resolved but now it tell me that do not find a file;
RE: Error creating Liferay plugin project: FileNotFoundException
New Member 帖子: 13 加入日期: 17-10-9 最近的帖子Can you post the console output and error logs? That would be helpful.