フォーラム

ホーム » Liferay IDE » English

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Gregory Amerson
Problem while installing Dynamic Web Module 2.5
2010/06/22 13:42
答え

Gregory Amerson

LIFERAY STAFF

ランク: Liferay Legend

投稿: 1032

参加年月日: 2010/02/16

最近の投稿

Dave Weitzel:

I can create new hook project fine but when trying to create a new portlet project I get "Failed while installing Dynamic Web Module 2.5" error message (null pointer). I can see docroot/WEB-INF/src folder, JRE and docroot but no liferay jars or Portlet plugin APi files.


Could you do the following steps to try to help determine the reason for the error?

1. Open error log (Ctrl+3, type "Error Log")
2. Delete error log (red X)
3. Restart and try to replicate the problem
4. Capture the contents of the log (copy any errors logged) and paste them here.

That should help us figure out what is going wrong. Thanks!
Dave Weitzel
RE: Problem while installing Dynamic Web Module 2.5
2010/06/23 11:28
答え

Dave Weitzel

ランク: Regular Member

投稿: 203

参加年月日: 2009/11/18

最近の投稿

Here is content of the error log:

!ENTRY org.eclipse.jst.j2ee 4 0 2010-06-23 14:25:12.295
!MESSAGE Exception thrown.
!STACK 0
java.lang.NullPointerException: No IModelProvider exists for project P/newportlet-portlet of version: Dynamic Web Module 2.5
at org.eclipse.jst.j2ee.model.ModelProviderManager.getModelProvider(ModelProviderManager.java:99)
at org.eclipse.jst.j2ee.web.project.facet.WebFacetInstallDelegate.createWeb25DeploymentDescriptor(WebFacetInstallDelegate.java:220)
at org.eclipse.jst.j2ee.web.project.facet.WebFacetInstallDelegate.execute(WebFacetInstallDelegate.java:117)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.callDelegate(FacetedProject.java:1467)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.modifyInternal(FacetedProject.java:438)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChangesInternal(FacetedProject.java:1171)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.access$2(FacetedProject.java:1107)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject$5.run(FacetedProject.java:1089)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChanges(FacetedProject.java:1099)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectWorkingCopy.commitChanges(FacetedProjectWorkingCopy.java:1958)
at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard.performFinish(ModifyFacetedProjectWizard.java:400)
at org.eclipse.wst.web.ui.internal.wizards.NewProjectDataModelFacetWizard.performFinish(NewProjectDataModelFacetWizard.java:279)
at com.liferay.ide.eclipse.project.ui.wizard.NewPluginProjectWizard.performFinish(NewPluginProjectWizard.java:180)
at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard$3.run(ModifyFacetedProjectWizard.java:331)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard$4.run(ModifyFacetedProjectWizard.java:345)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

!ENTRY org.eclipse.wst.common.project.facet.core 4 0 2010-06-23 14:25:12.368
!MESSAGE Failed while installing Dynamic Web Module 2.5.
!STACK 0
java.lang.NullPointerException
at org.eclipse.jst.j2ee.web.project.facet.WebFacetInstallDelegate.createWeb25DeploymentDescriptor(WebFacetInstallDelegate.java:247)
at org.eclipse.jst.j2ee.web.project.facet.WebFacetInstallDelegate.execute(WebFacetInstallDelegate.java:117)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.callDelegate(FacetedProject.java:1467)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.modifyInternal(FacetedProject.java:438)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChangesInternal(FacetedProject.java:1171)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.access$2(FacetedProject.java:1107)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject$5.run(FacetedProject.java:1089)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChanges(FacetedProject.java:1099)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectWorkingCopy.commitChanges(FacetedProjectWorkingCopy.java:1958)
at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard.performFinish(ModifyFacetedProjectWizard.java:400)
at org.eclipse.wst.web.ui.internal.wizards.NewProjectDataModelFacetWizard.performFinish(NewProjectDataModelFacetWizard.java:279)
at com.liferay.ide.eclipse.project.ui.wizard.NewPluginProjectWizard.performFinish(NewPluginProjectWizard.java:180)
at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard$3.run(ModifyFacetedProjectWizard.java:331)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard$4.run(ModifyFacetedProjectWizard.java:345)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Gregory Amerson
RE: Problem while installing Dynamic Web Module 2.5
2010/06/23 11:33
答え

Gregory Amerson

LIFERAY STAFF

ランク: Liferay Legend

投稿: 1032

参加年月日: 2010/02/16

最近の投稿

Try this:

  1. Open new portlet plugin project wizard
  2. On 2nd page, change dynamic web module version to 2.4


See if that allows the wizard to continue.
Dave Weitzel
RE: Problem while installing Dynamic Web Module 2.5
2010/06/24 7:08
答え

Dave Weitzel

ランク: Regular Member

投稿: 203

参加年月日: 2009/11/18

最近の投稿

That seems to work
Thanks

starting to get to grips with both the IDE and how to extend Liferay
Gregory Amerson
RE: Problem while installing Dynamic Web Module 2.5
2010/06/24 7:12
答え

Gregory Amerson

LIFERAY STAFF

ランク: Liferay Legend

投稿: 1032

参加年月日: 2010/02/16

最近の投稿

Glad you got up and running.
Robin Keith
RE: Problem while installing Dynamic Web Module 2.5
2010/12/15 7:05
答え

Robin Keith

ランク: New Member

投稿: 7

参加年月日: 2010/10/26

最近の投稿

I also had this problem. I solved it by upgrading my Eclipse install from the plain java version to the java EE version (same version no. i.e. 3.6 32bit Windows). The java version doesn't have web tools - might be related to that.
Gregory Amerson
RE: Problem while installing Dynamic Web Module 2.5
2010/12/15 8:26
答え

Gregory Amerson

LIFERAY STAFF

ランク: Liferay Legend

投稿: 1032

参加年月日: 2010/02/16

最近の投稿

Correct Keith, Liferay IDE requires the Web version of the Eclipse developer package. Theoretically it is possible to install Liferay IDE into a java only package and all the necessary dependencies should get downloaded but as you saw that doesn't exactly work. Using the Java for EE developers (web includes version) should always work.
Mohan Tyagi
RE: Problem while installing Dynamic Web Module 2.5
2011/09/28 11:06
答え

Mohan Tyagi

ランク: New Member

投稿: 2

参加年月日: 2011/09/28

最近の投稿

Hi Amerson,
after changing to dynamic web module version to 2.4,
will it work on other IDE which support dynamic web module version to 2.5

Thanks In advaced
Mohan
Gregory Amerson
RE: Problem while installing Dynamic Web Module 2.5
2011/09/28 17:56
答え

Gregory Amerson

LIFERAY STAFF

ランク: Liferay Legend

投稿: 1032

参加年月日: 2010/02/16

最近の投稿

Hi Mohan,

The default Liferay Project is web facet version 2.5 but there is no reason it can't work with 2.4. However, the facet preference UI may not let you move it backwards, but there is no reason you can't edit the file manually if you run into problems
1<project>/.settings/org.eclipse.wst.common.project.facet.core.xml
and switch the jst.web facet to version 2.4
Joaquin Cabal
RE: Problem while installing Dynamic Web Module 2.5
2012/07/16 14:59
答え

Joaquin Cabal

ランク: Junior Member

投稿: 54

参加年月日: 2009/09/07

最近の投稿

You can see this Url where there is a solution:
http://www.liferay.com/community/forums/-/message_boards/message/14882483