Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » hi
hi [message #149185] Fri, 25 November 2005 10:07 Go to next message
Eclipse UserFriend
Originally posted by: ranavishal.gmail.com

Hi All

I am using eclipse 3.1.1 with webtools 0.7.1 and Tomcat 5.5

In my application I am using TOMCAT_HOME/conf/Catalina/localhost/data.xml as
the configuration file which contains information about the database
connection

but whenever I run tomcat from eclipse it doesn't take this file and fails

Any Solution to this?

Regards,
Vishal
Re: hi [message #149191 is a reply to message #149185] Fri, 25 November 2005 10:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ranavishal.gmail.com

The data.xml file is like

<Context docBase="${catalina.home}/webapps/tudu.war"

reloadable="true">


<Resource name="jdbc/tudu"

url="jdbc:mysql://localhost:3306/tudu"

username="root"

password="root"

description="Tudu database"

driverClassName="com.mysql.jdbc.Driver"

maxActive="100"

maxIdle="30"

maxWait="10000"

type="javax.sql.DataSource"

auth="Container" />


</Context>



"Vishal Rana" <ranavishal@gmail.com> wrote in message
news:dm79g0$s9g$1@news.eclipse.org...
> Hi All
>
> I am using eclipse 3.1.1 with webtools 0.7.1 and Tomcat 5.5
>
> In my application I am using TOMCAT_HOME/conf/Catalina/localhost/data.xml
> as the configuration file which contains information about the database
> connection
>
> but whenever I run tomcat from eclipse it doesn't take this file and fails
>
> Any Solution to this?
>
> Regards,
> Vishal
>
Re: hi [message #149684 is a reply to message #149191] Tue, 29 November 2005 09:09 Go to previous message
Eclipse UserFriend
Execute in Eclipse Run -> Run... and select the launch configuration for
your server. Then select the Arguments tab and examine the VM Arguments
field. The catalina.base System property defined there probably points
to a location under the ".metadata" directory of your workspace. This
is done so that you can one or more servers in Eclipse without modifying
the original installation.

If you want the Tomcat server in Eclipse to modify your Tomcat
installation, right-click the server in the Servers view and select
Open. Uncheck the "Run modules directly from the workspace" option and
save. Now server configuration files and webapps will be written to
your Tomcat installation.

Larry

Vishal Rana wrote:
> The data.xml file is like
>
> <Context docBase="${catalina.home}/webapps/tudu.war"
>
> reloadable="true">
>
>
> <Resource name="jdbc/tudu"
>
> url="jdbc:mysql://localhost:3306/tudu"
>
> username="root"
>
> password="root"
>
> description="Tudu database"
>
> driverClassName="com.mysql.jdbc.Driver"
>
> maxActive="100"
>
> maxIdle="30"
>
> maxWait="10000"
>
> type="javax.sql.DataSource"
>
> auth="Container" />
>
>
> </Context>
>
>
>
> "Vishal Rana" <ranavishal@gmail.com> wrote in message
> news:dm79g0$s9g$1@news.eclipse.org...
>
>>Hi All
>>
>>I am using eclipse 3.1.1 with webtools 0.7.1 and Tomcat 5.5
>>
>>In my application I am using TOMCAT_HOME/conf/Catalina/localhost/data.xml
>>as the configuration file which contains information about the database
>>connection
>>
>>but whenever I run tomcat from eclipse it doesn't take this file and fails
>>
>>Any Solution to this?
>>
>>Regards,
>>Vishal
>>
>
>
>
Previous Topic:WTP 100% when saving resource
Next Topic:Server runtime lost
Goto Forum:
  


Current Time: Mon Jul 14 11:25:25 EDT 2025

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

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

Back to the top