Adapting old project to Web Tools [message #159706] |
Wed, 08 February 2006 17:05  |
Eclipse User |
|
|
|
I have a J2EE (Struts) project that I'd like to convert to use Web Tools. I
tried creating a new Dynamic Web Project to use as an example, and changed
my project to look similar. This basically involved copying the .settings
directory, and updating the .classpath and .project files.
Eclipse now recognizes it as a Web Tools project, and lets me deploy it on a
server (Tomcat 5.0.28). But the server can't find my web.xml file when it
starts up, and I think it's because I misconfigured things. My project looks
like this:
project
WEB-INF/classes
WEB-INF/src
index.jsp
And my .settings/.component file looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId">
<wb-module deploy-name="project">
<wb-resource deploy-path="/WEB-INF/classes" source-path="/WEB-INF/src"/>
<wb-resource deploy-path="/" source-path="/WEB-INF/"/>
<property name="context-root" value="project"/>
<property name="java-output-path" value="/WEB-INF/classes/"/>
</wb-module>
</project-modules>
Another problem is that when I hit http://localhost:8080/project/, it looks
in the WEB-INF directory (probably because of the second wb-resource line)
instead of the project root. But if I remove that line I get build errors.
Any ideas? Thanks,
Jacob
|
|
|
Re: Adapting old project to Web Tools [message #159775 is a reply to message #159706] |
Wed, 08 February 2006 19:46  |
Eclipse User |
|
|
|
I don't your problemas are related to the update, as i experience the
same problems from time to time.
some hints:
-make a clean rebuild of your project
-make sure web.xml and lib folder are in the right places. the classes
path should not (except for its root) make trouble in deploying.
-in the latest integration builds: check your context root in the
project properties under J2EE
maybe it helps. afterall the whole tomcat support could be doing better
in my opion.
But guys, it's a great tool anyway! thx a lot
cheers
Max
Jacob Weber wrote:
> I have a J2EE (Struts) project that I'd like to convert to use Web Tools. I
> tried creating a new Dynamic Web Project to use as an example, and changed
> my project to look similar. This basically involved copying the .settings
> directory, and updating the .classpath and .project files.
>
> Eclipse now recognizes it as a Web Tools project, and lets me deploy it on a
> server (Tomcat 5.0.28). But the server can't find my web.xml file when it
> starts up, and I think it's because I misconfigured things. My project looks
> like this:
> project
> WEB-INF/classes
> WEB-INF/src
> index.jsp
>
> And my .settings/.component file looks like this:
> <?xml version="1.0" encoding="UTF-8"?>
> <project-modules id="moduleCoreId">
> <wb-module deploy-name="project">
> <wb-resource deploy-path="/WEB-INF/classes" source-path="/WEB-INF/src"/>
> <wb-resource deploy-path="/" source-path="/WEB-INF/"/>
> <property name="context-root" value="project"/>
> <property name="java-output-path" value="/WEB-INF/classes/"/>
> </wb-module>
> </project-modules>
>
> Another problem is that when I hit http://localhost:8080/project/, it looks
> in the WEB-INF directory (probably because of the second wb-resource line)
> instead of the project root. But if I remove that line I get build errors.
>
> Any ideas? Thanks,
> Jacob
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.10537 seconds