convert existing project structure to wtp [message #106252] |
Fri, 20 May 2005 08:31  |
Eclipse User |
|
|
|
Originally posted by: mark_lybarger.yahoo.com
is there some documentation on how to convert an existing project
structure (that's a web application) to be able to run under the eclipse
webtools?
|
|
|
ear support - Re: convert existing project structure to wtp [message #106304 is a reply to message #106252] |
Fri, 20 May 2005 10:33  |
Eclipse User |
|
|
|
Originally posted by: mark_lybarger.yahoo.com
for those interested, i found that in the .wtpmodules file you can change
the WebContent and JavaSource folders there. my existing project
structure was:
myProject/Java Source
myProject/Web Content
using the webtools project, and creating a sample flex java project, and a
sample java web module, the webtools seemed to create a structure like:
myFlexProject/myWebModule/JavaSource
myFlexProject/myWebModule/WebContent
so, I close down eclipse, and modify the the .wtpmodules file so the
JavaSource and WebContent match what I need. now i can run my web
application on the container from within eclipse!! another hurdle was that
our application uses a System.getProperty("MYENVIRONMENT") to decide on
which group of configuration files to load. I had to modify the
jboss401.serverdef (not included yet with the webtools install) to include
our environment variable. It'd be nice if I could have a cool gui to add
environment variables for my server runtime, but once you dig and find the
needed place... It seems like a hack.
next, our project structure is a little more complicated for each web
module, we actually have a corresponding ear module. why we're deploying
each web module from an ear? i don't know. i go through the quick wizzard
to create a new enterprise application, i choose my web project to be
included in the ear. then, when i right click on the enterprise
application and select run on server, i get a popup window that says "Did
not find anything to deploy on a server". does wtp support ear deployment
yet? looking in bugs.eclipse.org, i find this bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=88289
which says that ear support is delayed until M5. is ear support available
in cvs at all? i'm afraid our team cannot wait until july for a release
that supports ear deployment.
i tried adding a deploy.j2ee.ear target in the jboss401.xml, but that
didn't seem to help at all. any thoughts/comments would be most
appreciated!
thanks!
|
|
|
Powered by
FUDForum. Page generated in 0.06680 seconds