|Classpath Container initialisation issue when generating WTP Project [message #209143]
||Tue, 26 February 2008 15:53
Originally posted by: sducas.sdmda.com|
I work on a Code generator that generate One Dynamic Web Project and One
Utility Module Directly in the workspace...
When I call the project.open()... WTP tries to initialize all classpath
the org.eclipse.jst.j2ee.internal.web.container classpath container call
indirectly the JavaProject.buildStructure() method which tries to access
all initialized containers for calling setChildren(..) on
projectElementInfo...but at this time not all containers are initialized
so the JavaCore tries to return:
manager.getPreviousSessionContainer(containerPath, project); which is
null...(JavaCore line 2530)....
The effect is when I deploy the project half of libraries in classpath
containers (most are USERS LIBRARIES) are not deployed to the server...
I overcomed this problem by linking all my user libraries to the Utility
module instead of the web project and it works, but WTP seems to have
problems when we generate project in the workspace...
By the way... after generating if I close eclipse then restart evrything
works well...but refreshing, closing and reopening project does
nothing...when I go to J2EE Module dependency project preference page, I
deselect all, apply, select all, apply... it works sometime but not
Powered by FUDForum
. Page generated in 0.18566 seconds