Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » WTP1.0 webapp resource link entries? Help!
WTP1.0 webapp resource link entries? Help! [message #154951] Thu, 05 January 2006 14:53 Go to next message
Aimee Ukasick is currently offline Aimee UkasickFriend
Messages: 5
Registered: July 2009
Junior Member
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 18:42 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
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
>
Previous Topic:jboss server runtime cannot be found
Next Topic:SchoolSchedule table with error
Goto Forum:
  


Current Time: Fri Sep 20 21:52:45 GMT 2024

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

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

Back to the top