Working with a flexible java project [message #89310] |
Thu, 31 March 2005 19:56  |
Eclipse User |
|
|
|
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 #90271 is a reply to message #90227] |
Mon, 04 April 2005 18:16  |
Eclipse User |
|
|
|
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.
>
|
|
|
Powered by
FUDForum. Page generated in 0.02993 seconds