Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » context XML : how to add Resource values?
context XML : how to add Resource values? [message #215477] Mon, 16 June 2008 15:11 Go to next message
jeff porter is currently offline jeff porterFriend
Messages: 9
Registered: July 2009
Junior Member
Hello all,

I've been driven mad by this problem, and I'm hoping someone here can help
me out please.

I've started on a project thats been in existence for many years.
Hence I'm stuck with Tomcat 5.0.28.
I've managed to get it to build etc via linking in files/directorys.

My problem is this...

When eclipse publishses to Tomcat 5.0.28 it creates its own app context
file & I want (need) to insert Resource / ResourceParams tags.

but eclipse generates this file and so doesn't contain what I want.

I can see the file deployed at this location...
C:\tools\workspaceTip\.metadata\.plugins\org.eclipse.wst.ser ver.core\tmp1\conf\Catalina\localhost\star.xml

The tags I want to add are for creating a datasource connection.

I've created the 'star' context via a "Tomcat 5.0.28" server & its
"modules" tab.


Any advice would be great!
Re: context XML : how to add Resource values? [message #215521 is a reply to message #215477] Mon, 16 June 2008 20:21 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
Jeff Porter wrote:
>
> Hello all,
>
> I've been driven mad by this problem, and I'm hoping someone here can
> help me out please.
>
> I've started on a project thats been in existence for many years.
> Hence I'm stuck with Tomcat 5.0.28.
> I've managed to get it to build etc via linking in files/directorys.
>
> My problem is this...
>
> When eclipse publishses to Tomcat 5.0.28 it creates its own app context
> file & I want (need) to insert Resource / ResourceParams tags.
>
> but eclipse generates this file and so doesn't contain what I want.
>
> I can see the file deployed at this location...
> C:\tools\workspaceTip\.metadata\.plugins\org.eclipse.wst.ser ver.core\tmp1\conf\Catalina\localhost\star.xml
>
>
> The tags I want to add are for creating a datasource connection.
>
> I've created the 'star' context via a "Tomcat 5.0.28" server & its
> "modules" tab.
>
>
> Any advice would be great!
>
>
>
>

See if this helps:
http://wiki.eclipse.org/WTP_Tomcat_FAQ#How_do_I_specify_the_ Tomcat_context_configuration_for_my_Web_Application.3F

Cheers,
Larry
Re: context XML : how to add Resource values? [message #215748 is a reply to message #215521] Wed, 18 June 2008 14:36 Go to previous messageGo to next message
jeff porter is currently offline jeff porterFriend
Messages: 9
Registered: July 2009
Junior Member
Thanks for that Larry.

I'm still stuck though.

I have my web module defined for Tomcat 5.0.28 &
"publish module contexts to separate XML files" selected.

But I still can't see how to put extra stuff in
/conf/Catalina/localhost/app.xml

I've tried adding my XML below to the server.xml, but that doesn't seem to
work.
(the xml gets published, but doesn't work)

XML
<Resource name="jdbc/isi" auth="Container" type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/isi">
<parameter>
<name>driverClassName</name>
<value>oracle.jdbc.driver.OracleDriver</value>
</parameter>
...snip...

Does anyone has any ideas?

Thanks
Jeff
Re: context XML : how to add Resource values? [message #215756 is a reply to message #215521] Wed, 18 June 2008 14:56 Go to previous message
jeff porter is currently offline jeff porterFriend
Messages: 9
Registered: July 2009
Junior Member
I've done it! yea!

started over again & it worked!

must of messed something up along the way.

:-)
Previous Topic:Adding the RichFaces into the palette of the WTP JSP Editor
Next Topic:Determine if file has errors
Goto Forum:
  


Current Time: Thu Apr 25 08:41:10 GMT 2024

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

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

Back to the top