Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Working with a flexible java project
Working with a flexible java project [message #89310] Thu, 31 March 2005 19:56 Go to next message
Eclipse UserFriend
Originally posted by: mugwai2.icogitate.com

Hi. I am seeing some problems working with the new flexible java
projects. Could someone help me figure these out? I am not sure
whether I am doing something wrong, or whether these are related to the
new project structure, or if they are a result of something else. I am
using the I20050331 integration build:

1. I cannot create an EJB module if I choose not to add it to an EAR --
the following exception comes up as I press finish in the wizard:

java.lang.reflect.InvocationTargetException
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:355)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:289)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 824)
at
org.eclipse.wst.common.frameworks.internal.ui.WTPWizard.perf ormFinish(WTPWizard.java:242)
at
org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:670)
...............

2. XDoclet appears to no longer create any server specific descriptors
or source artifacts -- I see it running during project build, but no
extra descriptors or source artifacts are created. This used to work
for me a few weeks ago. I have WebLogic 8.1 selected as my server
runtime for the project and also have it turned on on the XDoclet
ejbDoclet preferences page.

2. The new generic servers tree in the New Server Runtime dialog has no
visible labels. I can still select the blank items and continue,
though. I get the following exception when expanding the generic tree:

java.lang.NullPointerException
at
org.eclipse.jface.resource.DeviceResourceManager.allocate(De viceResourceManager.java:57)
at
org.eclipse.jface.resource.AbstractResourceManager.create(Ab stractResourceManager.java:87)
at
org.eclipse.jface.resource.ResourceManager.createImageWithDe fault(ResourceManager.java:104)
at org.eclipse.jface.resource.ImageRegistry.get(ImageRegistry.j ava:203)
at
org.eclipse.wst.server.ui.internal.ImageResource.getImage(Im ageResource.java:166)
at
org.eclipse.wst.server.ui.internal.viewers.RuntimeTypeTreeLa belProvider.getImageImpl(RuntimeTypeTreeLabelProvider.java:3 2)
at
org.eclipse.wst.server.ui.internal.viewers.AbstractTreeLabel Provider.getImage(AbstractTreeLabelProvider.java:39)
at
org.eclipse.jface.viewers.StructuredViewer.buildLabel(Struct uredViewer.java:1731)
.............

Thanks for any help
-Helen
Re: Working with a flexible java project [message #89551 is a reply to message #89310] Fri, 01 April 2005 11:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gercan.REMOVEME.acm.org

Let me answer question 3. Generic servers were missing the icons and
property files in the early I-builds. We have noticed that and I fixed
it in the latest I-build. If you switch to a later build It should work
fine.

Helen wrote:
> Hi. I am seeing some problems working with the new flexible java
> projects. Could someone help me figure these out? I am not sure
> whether I am doing something wrong, or whether these are related to the
> new project structure, or if they are a result of something else. I am
> using the I20050331 integration build:
>
> 1. I cannot create an EJB module if I choose not to add it to an EAR --
> the following exception comes up as I press finish in the wizard:
>
> java.lang.reflect.InvocationTargetException
> at
> org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:355)
>
> at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:289)
> at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 824)
> at
> org.eclipse.wst.common.frameworks.internal.ui.WTPWizard.perf ormFinish(WTPWizard.java:242)
>
> at
> org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:670)
> ..............
>
> 2. XDoclet appears to no longer create any server specific descriptors
> or source artifacts -- I see it running during project build, but no
> extra descriptors or source artifacts are created. This used to work
> for me a few weeks ago. I have WebLogic 8.1 selected as my server
> runtime for the project and also have it turned on on the XDoclet
> ejbDoclet preferences page.
>
> 2. The new generic servers tree in the New Server Runtime dialog has no
> visible labels. I can still select the blank items and continue,
> though. I get the following exception when expanding the generic tree:
>
> java.lang.NullPointerException
> at
> org.eclipse.jface.resource.DeviceResourceManager.allocate(De viceResourceManager.java:57)
>
> at
> org.eclipse.jface.resource.AbstractResourceManager.create(Ab stractResourceManager.java:87)
>
> at
> org.eclipse.jface.resource.ResourceManager.createImageWithDe fault(ResourceManager.java:104)
>
> at org.eclipse.jface.resource.ImageRegistry.get(ImageRegistry.j ava:203)
> at
> org.eclipse.wst.server.ui.internal.ImageResource.getImage(Im ageResource.java:166)
>
> at
> org.eclipse.wst.server.ui.internal.viewers.RuntimeTypeTreeLa belProvider.getImageImpl(RuntimeTypeTreeLabelProvider.java:3 2)
>
> at
> org.eclipse.wst.server.ui.internal.viewers.AbstractTreeLabel Provider.getImage(AbstractTreeLabelProvider.java:39)
>
> at
> org.eclipse.jface.viewers.StructuredViewer.buildLabel(Struct uredViewer.java:1731)
>
> ............
>
> Thanks for any help
> -Helen
Re: Working with a flexible java project [message #89581 is a reply to message #89551] Fri, 01 April 2005 14:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mugwai2.icogitate.com

Thanks for your response, Gorkem. I tried the latest nightly build
(N20050401), and the icons and labels do appear properly in the generic
server tree.
The EJB module creation problem appears to have gone away too.

However, my progress ends there -- now I cannot add any beans to an EJB
module, or create any other types of modules -- get this type of
exception when pressing Next in the Select a Wizard dialog :

org.eclipse.wst.common.internal.emfworkbench.edit.ClientAcce ssRegistryException
This exception was generated to indicate an invalid usage of reference
counts. Please examine the stack trace.
Client Access Exception of type DANGLING_REFERENCE

at
org.eclipse.wst.common.internal.emfworkbench.edit.ClientAcce ssRegistry.complain(ClientAccessRegistry.java:87)
at
org.eclipse.wst.common.internal.emfworkbench.edit.ClientAcce ssRegistry.complain(ClientAccessRegistry.java:82)
at
org.eclipse.wst.common.internal.emfworkbench.edit.ClientAcce ssRegistry.access(ClientAccessRegistry.java:43)
at
org.eclipse.wst.common.internal.emfworkbench.integration.Edi tModel.access(EditModel.java:905)
at
org.eclipse.wst.common.internal.emfworkbench.EMFWorkbenchCon text.getEditModelForRead(EMFWorkbenchContext.java:124)
at
org.eclipse.wst.common.internal.emfworkbench.integration.Edi tModelNature.getEditModelForRead(EditModelNature.java:49)
at
org.eclipse.wst.common.internal.emfworkbench.integration.Edi tModelNature.getEditModelForRead(EditModelNature.java:39)
at
org.eclipse.wst.common.modulecore.ModuleCoreNature.getModule StructuralModelForRead(ModuleCoreNature.java:241)
at org.eclipse.wst.common.modulecore.ModuleCore.<init>(ModuleCore.java:329)
at
org.eclipse.wst.common.modulecore.ModuleCore.getModuleCoreFo rRead(ModuleCore.java:109)
at
org.eclipse.jst.j2ee.ejb.annotation.ui.internal.NewEjbWizard .getDefaultEjbProject(NewEjbWizard.java:70)
at
org.eclipse.jst.j2ee.ejb.annotation.ui.internal.AddSessionEj bWizard.createDefaultModel(AddSessionEjbWizard.java:59)
at
org.eclipse.jst.j2ee.ejb.annotation.ui.internal.NewEjbWizard .init(NewEjbWizard.java:56)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizardNode.java:173)
at
org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:101)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(WorkbenchWizardSelectionPage.java:92)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDial og.java:741)


Thanks
-Helen

Gorkem Ercan wrote:

> Let me answer question 3. Generic servers were missing the icons and
> property files in the early I-builds. We have noticed that and I fixed
> it in the latest I-build. If you switch to a later build It should work
> fine.
>
> Helen wrote:
>
>> Hi. I am seeing some problems working with the new flexible java
>> projects. Could someone help me figure these out? I am not sure
>> whether I am doing something wrong, or whether these are related to
>> the new project structure, or if they are a result of something else.
>> I am using the I20050331 integration build:
>>
>> 1. I cannot create an EJB module if I choose not to add it to an EAR
>> -- the following exception comes up as I press finish in the wizard:
>>
>> java.lang.reflect.InvocationTargetException
>> at
>> org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:355)
>>
>> at
>> org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:289)
>> at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 824)
>> at
>> org.eclipse.wst.common.frameworks.internal.ui.WTPWizard.perf ormFinish(WTPWizard.java:242)
>>
>> at
>> org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:670)
>>
>> ..............
>>
>> 2. XDoclet appears to no longer create any server specific
>> descriptors or source artifacts -- I see it running during project
>> build, but no extra descriptors or source artifacts are created. This
>> used to work for me a few weeks ago. I have WebLogic 8.1 selected as
>> my server runtime for the project and also have it turned on on the
>> XDoclet ejbDoclet preferences page.
>>
>> 2. The new generic servers tree in the New Server Runtime dialog has
>> no visible labels. I can still select the blank items and continue,
>> though. I get the following exception when expanding the generic tree:
>>
>> java.lang.NullPointerException
>> at
>> org.eclipse.jface.resource.DeviceResourceManager.allocate(De viceResourceManager.java:57)
>>
>> at
>> org.eclipse.jface.resource.AbstractResourceManager.create(Ab stractResourceManager.java:87)
>>
>> at
>> org.eclipse.jface.resource.ResourceManager.createImageWithDe fault(ResourceManager.java:104)
>>
>> at
>> org.eclipse.jface.resource.ImageRegistry.get(ImageRegistry.j ava:203)
>> at
>> org.eclipse.wst.server.ui.internal.ImageResource.getImage(Im ageResource.java:166)
>>
>> at
>> org.eclipse.wst.server.ui.internal.viewers.RuntimeTypeTreeLa belProvider.getImageImpl(RuntimeTypeTreeLabelProvider.java:3 2)
>>
>> at
>> org.eclipse.wst.server.ui.internal.viewers.AbstractTreeLabel Provider.getImage(AbstractTreeLabelProvider.java:39)
>>
>> at
>> org.eclipse.jface.viewers.StructuredViewer.buildLabel(Struct uredViewer.java:1731)
>>
>> ............
>>
>> Thanks for any help
>> -Helen
Re: Working with a flexible java project [message #90227 is a reply to message #89581] Mon, 04 April 2005 16:41 Go to previous messageGo to next message
Eclipse UserFriend
Helen wrote:

> Thanks for your response, Gorkem. I tried the latest nightly build
> (N20050401), and the icons and labels do appear properly in the generic
> server tree.
> The EJB module creation problem appears to have gone away too.

> However, my progress ends there -- now I cannot add any beans to an EJB
> module, or create any other types of modules -- get this type of
> exception when pressing Next in the Select a Wizard dialog :

Thanks Helen, as you know, recent Nightly builds haven't been stable, and
everything touching J2EE module creation has been trying to keep up with
Flexible project API changes.

I will make sure simple EJB creation scenarios are working in this weeks
Intergration build.
Re: Working with a flexible java project [message #90271 is a reply to message #90227] Mon, 04 April 2005 18:16 Go to previous message
Eclipse UserFriend
Originally posted by: mugwai2.icogitate.com

Thanks for your response, Chuck. Yes, I realise there are a lot of
changes happening, which is why I haven't entered these issues into
bugzilla -- I just thought it might be helpful for you guys to know some
of the basic things that are intermittently not quite right at the moment.
Since I have your attention here :-) maybe I can ask you a few minor
questions about flexible java projects and module creation in general:

1. Currently the flexible project creation wizard is under the Java
category in the wizards dialog. Will it stay there? Its current
position implies that it can be used for any type of project, not just
J2EE/Web related, but the wizard contents do require selecting a server.
Was this intentional?

2. When creating a new J2EE type -- EJB/Web/EAR, etc, it would be nice
if the new flex project and new module wizards were available from the
J2EE type wizards, so you could create what you need, if it's not
available yet. Currently, if you don't have an ejb module, for
instance, and you try to create an ejb, you have to close the ejb
wizard, and go create the module, and then go back to the ejb wizard.

3. Is the J2EE explorer gone from WTP features? I can understand why
that might be the case with the flexible project structure, since you
can have multiple modules and types in a project, and the J2EE explorer
showed project types broken down by module types, but just wanted to
make sure. It was a useful view into a J2EE workspace.

4. This is even more minor, but just an observation -- EJB is a
separate wizard category in the wizards dialog from J2EE -- I would
expect it to be under the J2EE category, since that's what it is -- that
is the first logically intuitive place that I look for it, and when I
don't find it there, I look outside J2EE.


Thanks a lot
-Helen

Chuck Bridgham wrote:

> Helen wrote:
>
>> Thanks for your response, Gorkem. I tried the latest nightly build
>> (N20050401), and the icons and labels do appear properly in the
>> generic server tree.
>> The EJB module creation problem appears to have gone away too.
>
>
>> However, my progress ends there -- now I cannot add any beans to an
>> EJB module, or create any other types of modules -- get this type of
>> exception when pressing Next in the Select a Wizard dialog :
>
>
> Thanks Helen, as you know, recent Nightly builds haven't been stable, and
> everything touching J2EE module creation has been trying to keep up with
> Flexible project API changes.
> I will make sure simple EJB creation scenarios are working in this weeks
> Intergration build.
>
Previous Topic:conflicting content-type's ?
Next Topic:Content Assist with </> tags
Goto Forum:
  


Current Time: Tue May 13 18:38:26 EDT 2025

Powered by FUDForum. Page generated in 0.02993 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top