convert existing project to webtools - my status [message #123480] |
Wed, 20 July 2005 10:50 |
Eclipse User |
|
|
|
Originally posted by: mark_lybarger.nospam.yahoo.com
this topic has come up before, but i haven't been successfull thus far.
we have existing projects in cvs which other developers are currently
using WSAD/WAS to develop the projects.
i've been told that wtp will "convert" a wsad project to wtp when it opens
it, but i'm not seeing that happen.
i've also read that i can "check out project as.." and tell the wizard
that it's a wtp. the trouble is that the .project, .classpath and all
other . files are checked into cvs. thus, i'm not able to select "check
out as".
my solution was to checkout the project from cli, then add the projects to
the workspace. the trouble there was that i couldn't specify the java
source folder when adding a new project, and i couldn't specify the web
content folder. my folder are (wsad legacy) "Java Source" and "Web
Content". i had to hack up the .wtpmodules and .classpath i believe
manually to set the right folders. is there a way to specify these folders
when creating a new dynamic web project?
after that, the web.xml that i had in Web Content/WEB-INF wasn't getting
picked up, so i manually copied mine into the .deployables folder. then i
published again, and it seemed to pick up my web.xml.
the next issue was that the application.xml wasn't getting picked up. my
war has an ear that it's deployed with. the existing ear project is setup
like:
earProj/META-INF/application.xml
but after adding it to wtp, it put a a setup like:
earProj/earProj/META-INF/application.xml.
(and still the existing setup was left intact). perhaps i need to again
modify the .wtpmodules file? is there a way to specify this when adding
an ear module?
the final major issue that i have is with deployment. i have a startup
servlet that generates a bunch of xml files (data island files) on startup
if the files don't already exist. this process takes quite some time
(almost 5 minutes) on win2k (much much faster on linux for some reason).
i think it'd be in my best interest if the .ear would be deployed as an
exploded ear. i'm using jboss, and every time i deploy the application, a
new .tmp folder is created for the new deployment. this causes the xml
generation to happen each time. is is possible to run the ear and war as
exploded apps? i know with jboss, i can create folders such as
default/deploy/myEar/myWar
and have the contents of the ear/war unzipped respectively in the folders.
any thoughts / comments would be most appreciated. we'd like to migrate
the dev team to using webtools, but we need to be able to save a file in
the editor, and have it quickly available on the app server.
|
|
|
Powered by
FUDForum. Page generated in 0.05554 seconds