Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Adapting old project to Web Tools
Adapting old project to Web Tools [message #159706] Wed, 08 February 2006 22:05 Go to next message
Jacob Weber is currently offline Jacob WeberFriend
Messages: 39
Registered: July 2009
Member
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] Thu, 09 February 2006 00:46 Go to previous message
Max Giesbert is currently offline Max GiesbertFriend
Messages: 38
Registered: July 2009
Member
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
>
>
Previous Topic:update the work\Catalina\localhost directory
Next Topic:WTP and Maven plug-in
Goto Forum:
  


Current Time: Wed Apr 24 22:50:13 GMT 2024

Powered by FUDForum. Page generated in 0.02857 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top