WTP1.0 webapp resource link entries? Help! [message #154951] |
Thu, 05 January 2006 09:53  |
Eclipse User |
|
|
|
I just upgraded to WTP1.0 from WTP0.7.1 and am using Tomcat 5.0.28.
I have several resources (database, mail) defined in the server.xml file.
The problem is with ResourceLinks in the Context area. With WTP0.7.1, I
put the webapp context information in the server.xml within the
<Context..> tags created by Eclipse. With WTP1.0, the <Context> entry in
the server.xml gets rewritten every time I run the webapp. I tried putting
the webapp's context file (<webapp>.xml) in the
metadata\....org.eclipse.wst.server.core\tmp0\conf\Catalina\ localhost
directory, as I would in production, but still the webapp couldn't find
the resources because Eclipse is creating the <Context> entry in the
server.xml file.
Help! What am I missing? How do I configure webapp ResourceLinks in WTP?
I am also encountering numerous performance issues that I did not
experience with WTP0.7.1.
Thanks for any help.
aimee
|
|
|
Re: WTP1.0 webapp resource link entries? Help! [message #155034 is a reply to message #154951] |
Thu, 05 January 2006 13:42  |
Eclipse User |
|
|
|
Aimee,
Add a WebContent/META-INF/context.xml file to your project and put the
<Context> you need in there. The path and docBase attributes should be
appropriate for packaging the project as a war file and deploying to
Tomcat. Those attributes get tweaked as needed by WTP when all the
other info in the file gets added to the server.xml found under .metadata.
Cheers,
Larry
Aimee wrote:
> I just upgraded to WTP1.0 from WTP0.7.1 and am using Tomcat 5.0.28.
> I have several resources (database, mail) defined in the server.xml
> file. The problem is with ResourceLinks in the Context area. With
> WTP0.7.1, I put the webapp context information in the server.xml within
> the <Context..> tags created by Eclipse. With WTP1.0, the <Context>
> entry in the server.xml gets rewritten every time I run the webapp. I
> tried putting the webapp's context file (<webapp>.xml) in the
> metadata\....org.eclipse.wst.server.core\tmp0\conf\Catalina\ localhost
> directory, as I would in production, but still the webapp couldn't find
> the resources because Eclipse is creating the <Context> entry in the
> server.xml file.
>
> Help! What am I missing? How do I configure webapp ResourceLinks in WTP?
>
>
> I am also encountering numerous performance issues that I did not
> experience with WTP0.7.1.
>
> Thanks for any help.
>
> aimee
>
|
|
|
Powered by
FUDForum. Page generated in 0.04219 seconds