This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 81372 - Enterprise Resource folder not defined in freeform webproject
Summary: Enterprise Resource folder not defined in freeform webproject
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Freeform (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: David Konecny
Depends on:
Blocks: 81237 89477
  Show dependency tree
Reported: 2006-07-28 19:55 UTC by Nitya Doraisamy
Modified: 2011-11-28 08:33 UTC (History)
2 users (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Nitya Doraisamy 2006-07-28 19:55:28 UTC
Create a web freeform project. The created project's does not
have property for used for Enterprise Resources - resource.dir

This is causing issues with UseDatabaseAction, Sun Server Resources etc. , all
of which depend on obtaining this value from the project
Comment 1 Radko Najman 2006-07-31 10:15:03 UTC
I'm confused with this issue. Freeform project doesn't use project.propertis
file, properties are stored in project.xml.
If is not used by freeform, what do you mean by "created
project's"? Could you clarify it more, please?
Nevertheless you are right, freeform project doesn't care about resource.dir.
Comment 2 Nitya Doraisamy 2006-07-31 17:20:31 UTC
Is resource creation not supported for web freeform or did I miss a huge chunk
of discussion.

The plugins use getEnterpriseResourceDirectory() to identify the directory in
which resources will be created. This is available in EJB freeform project. But
the web freeform does not provide this. Without this value, the resources will
not get created in the correct location for web freeform project (appserver
plugin) and in UseDatabase action calls, there are exceptions being generated.
SO what is the equivalent in web freeform.
Comment 3 Radko Najman 2006-08-01 13:06:18 UTC
From my point of view resource creation is not supported in web freeform
project. There is no "resource.dir" property defined in this project which means
that getEnterpriseResourceDirectory() method is not implemented and UI for
setting this property is missing as well. Is it enough to set resource.dir for
resource creation? Don't you need also server instance? Server instance is not
set in web freeform too.

Do we want to fix it in 5.5? It sounds to me like a new feature in web freeform
so can we do it now?
Comment 4 Petr Jiricka 2006-08-01 13:24:33 UTC
I don't believe this was ever supported in freeform project. This is a
substantial change, I think we will need to introduce the concept of target
server instance for freeform projects, which will also be useful for other areas
(e.g. JPA support). Let's make this an enhancement for NB 6.0.
Comment 5 Radko Najman 2006-08-03 15:37:06 UTC
Changing to enhancement as Petr proposed.
Comment 6 Nitya Doraisamy 2006-08-04 19:10:50 UTC
Just an FYI, the EJB freeform project does support this feature. So the lack of
this support does not apply to all freeform projects.