Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » WTP 1.5.4 Problem
WTP 1.5.4 Problem [message #193975] Tue, 05 June 2007 16:10 Go to next message
Eclipse User
Originally posted by: ranavishal.gmail.com

Hi All,

I am using wtp 1.5.4 with tomcat 5.5
Can anyone tell me where my dynamic web project are deployed in tomcat
within the eclipse?
The reason I am looking for this because I want to add a file into the
deployed web application in tomcat

Also is there any way to override the deployement of the web projects?

Thanks
Vishal
Re: WTP 1.5.4 Problem [message #194025 is a reply to message #193975] Wed, 06 June 2007 03:05 Go to previous messageGo to next message
Eclipse User
Originally posted by: ranavishal.gmail.com

I got the tomcat deployed directory its
workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp 0\wtpwebapps\
for wtp 2.0
but I have to manually copy the files into this directory, Is there a way to
automatically deploy some extra files

I found a file org.eclipse.wst.common.component in .settings folder edited
it to deploy my extra files but
its not copying

Thanks
Vishal


"Vishal Rana" <ranavishal@gmail.com> wrote in message
news:f44g08$299$1@build.eclipse.org...
> Hi All,
>
> I am using wtp 1.5.4 with tomcat 5.5
> Can anyone tell me where my dynamic web project are deployed in tomcat
> within the eclipse?
> The reason I am looking for this because I want to add a file into the
> deployed web application in tomcat
>
> Also is there any way to override the deployement of the web projects?
>
> Thanks
> Vishal
>
>
Re: WTP 1.5.4 Problem [message #194042 is a reply to message #194025] Wed, 06 June 2007 08:12 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1305
Registered: July 2009
Senior Member
If still interested in WTP 1.5.4, see this Tomcat FAQ question:

http://www.eclipse.org/webtools/faq/TomcatServerFAQ.php#info _04

Note that this FAQ still needs to be updated with WTP 2.0 information.

As for copying the extra files, it would help to know what files and
where you want to copy them. I assume just adding them somewhere under
the WebContent folder of your Dynamic Web Project isn't what you are
looking for. Modifying the ".component" file is the only option in some
cases. What were your edits?

Cheers,
Larry

Vishal Rana wrote:
> I got the tomcat deployed directory its
> workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp 0\wtpwebapps\
> for wtp 2.0
> but I have to manually copy the files into this directory, Is there a way to
> automatically deploy some extra files
>
> I found a file org.eclipse.wst.common.component in .settings folder edited
> it to deploy my extra files but
> its not copying
>
> Thanks
> Vishal
>
>
> "Vishal Rana" <ranavishal@gmail.com> wrote in message
> news:f44g08$299$1@build.eclipse.org...
>> Hi All,
>>
>> I am using wtp 1.5.4 with tomcat 5.5
>> Can anyone tell me where my dynamic web project are deployed in tomcat
>> within the eclipse?
>> The reason I am looking for this because I want to add a file into the
>> deployed web application in tomcat
>>
>> Also is there any way to override the deployement of the web projects?
>>
>> Thanks
>> Vishal
>>
>>
>
>
Re: WTP 1.5.4 Problem [message #194143 is a reply to message #194042] Thu, 07 June 2007 05:07 Go to previous messageGo to next message
Eclipse User
Originally posted by: ranavishal.gmail.com

Thanks Larry

The link was helpful :)
I edited the .component file by adding the following line
<wb-resource deploy-path="/" source-path="/WebContent"/>
to copy the xml file from the project's root directory but it doesn't work
as it should

Thanks
Vishal

"Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
news:f468cc$8ck$1@build.eclipse.org...
> If still interested in WTP 1.5.4, see this Tomcat FAQ question:
>
> http://www.eclipse.org/webtools/faq/TomcatServerFAQ.php#info _04
>
> Note that this FAQ still needs to be updated with WTP 2.0 information.
>
> As for copying the extra files, it would help to know what files and where
> you want to copy them. I assume just adding them somewhere under the
> WebContent folder of your Dynamic Web Project isn't what you are looking
> for. Modifying the ".component" file is the only option in some cases.
> What were your edits?
>
> Cheers,
> Larry
>
> Vishal Rana wrote:
>> I got the tomcat deployed directory its
>> workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp 0\wtpwebapps\
>> for wtp 2.0
>> but I have to manually copy the files into this directory, Is there a way
>> to automatically deploy some extra files
>>
>> I found a file org.eclipse.wst.common.component in .settings folder
>> edited it to deploy my extra files but
>> its not copying
>>
>> Thanks
>> Vishal
>>
>>
>> "Vishal Rana" <ranavishal@gmail.com> wrote in message
>> news:f44g08$299$1@build.eclipse.org...
>>> Hi All,
>>>
>>> I am using wtp 1.5.4 with tomcat 5.5
>>> Can anyone tell me where my dynamic web project are deployed in tomcat
>>> within the eclipse?
>>> The reason I am looking for this because I want to add a file into the
>>> deployed web application in tomcat
>>>
>>> Also is there any way to override the deployement of the web projects?
>>>
>>> Thanks
>>> Vishal
>>>
>>>
>>
Re: WTP 1.5.4 Problem [message #194150 is a reply to message #194143] Thu, 07 June 2007 08:12 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1305
Registered: July 2009
Senior Member
That line looks like the standard line that copies contents of the
"WebContent" folder of your project to the root of the published webapp.
I would assume it was a different line you added.

Cheers,
Larry

Vishal Rana wrote:
> Thanks Larry
>
> The link was helpful :)
> I edited the .component file by adding the following line
> <wb-resource deploy-path="/" source-path="/WebContent"/>
> to copy the xml file from the project's root directory but it doesn't work
> as it should
>
> Thanks
> Vishal
>
> "Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
> news:f468cc$8ck$1@build.eclipse.org...
>> If still interested in WTP 1.5.4, see this Tomcat FAQ question:
>>
>> http://www.eclipse.org/webtools/faq/TomcatServerFAQ.php#info _04
>>
>> Note that this FAQ still needs to be updated with WTP 2.0 information.
>>
>> As for copying the extra files, it would help to know what files and where
>> you want to copy them. I assume just adding them somewhere under the
>> WebContent folder of your Dynamic Web Project isn't what you are looking
>> for. Modifying the ".component" file is the only option in some cases.
>> What were your edits?
>>
>> Cheers,
>> Larry
>>
>> Vishal Rana wrote:
>>> I got the tomcat deployed directory its
>>> workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp 0\wtpwebapps\
>>> for wtp 2.0
>>> but I have to manually copy the files into this directory, Is there a way
>>> to automatically deploy some extra files
>>>
>>> I found a file org.eclipse.wst.common.component in .settings folder
>>> edited it to deploy my extra files but
>>> its not copying
>>>
>>> Thanks
>>> Vishal
>>>
>>>
>>> "Vishal Rana" <ranavishal@gmail.com> wrote in message
>>> news:f44g08$299$1@build.eclipse.org...
>>>> Hi All,
>>>>
>>>> I am using wtp 1.5.4 with tomcat 5.5
>>>> Can anyone tell me where my dynamic web project are deployed in tomcat
>>>> within the eclipse?
>>>> The reason I am looking for this because I want to add a file into the
>>>> deployed web application in tomcat
>>>>
>>>> Also is there any way to override the deployement of the web projects?
>>>>
>>>> Thanks
>>>> Vishal
>>>>
>>>>
>
>
Re: WTP 1.5.4 Problem [message #194170 is a reply to message #194150] Thu, 07 June 2007 14:14 Go to previous messageGo to next message
Eclipse User
Originally posted by: ranavishal.gmail.com

oops you are right! actually I added this line
<wb-resource deploy-path="../" source-path="*.xml"/>

"Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
news:f48so8$vs4$1@build.eclipse.org...
> That line looks like the standard line that copies contents of the
> "WebContent" folder of your project to the root of the published webapp. I
> would assume it was a different line you added.
>
> Cheers,
> Larry
>
> Vishal Rana wrote:
>> Thanks Larry
>>
>> The link was helpful :)
>> I edited the .component file by adding the following line
>> <wb-resource deploy-path="/" source-path="/WebContent"/>
>> to copy the xml file from the project's root directory but it doesn't
>> work as it should
>>
>> Thanks
>> Vishal
>>
>> "Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
>> news:f468cc$8ck$1@build.eclipse.org...
>>> If still interested in WTP 1.5.4, see this Tomcat FAQ question:
>>>
>>> http://www.eclipse.org/webtools/faq/TomcatServerFAQ.php#info _04
>>>
>>> Note that this FAQ still needs to be updated with WTP 2.0 information.
>>>
>>> As for copying the extra files, it would help to know what files and
>>> where
>>> you want to copy them. I assume just adding them somewhere under the
>>> WebContent folder of your Dynamic Web Project isn't what you are looking
>>> for. Modifying the ".component" file is the only option in some cases.
>>> What were your edits?
>>>
>>> Cheers,
>>> Larry
>>>
>>> Vishal Rana wrote:
>>>> I got the tomcat deployed directory its
>>>> workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp 0\wtpwebapps\
>>>> for wtp 2.0
>>>> but I have to manually copy the files into this directory, Is there a
>>>> way
>>>> to automatically deploy some extra files
>>>>
>>>> I found a file org.eclipse.wst.common.component in .settings folder
>>>> edited it to deploy my extra files but
>>>> its not copying
>>>>
>>>> Thanks
>>>> Vishal
>>>>
>>>>
>>>> "Vishal Rana" <ranavishal@gmail.com> wrote in message
>>>> news:f44g08$299$1@build.eclipse.org...
>>>>> Hi All,
>>>>>
>>>>> I am using wtp 1.5.4 with tomcat 5.5
>>>>> Can anyone tell me where my dynamic web project are deployed in tomcat
>>>>> within the eclipse?
>>>>> The reason I am looking for this because I want to add a file into the
>>>>> deployed web application in tomcat
>>>>>
>>>>> Also is there any way to override the deployement of the web projects?
>>>>>
>>>>> Thanks
>>>>> Vishal
>>>>>
>>>>>
>>
Re: WTP 1.5.4 Problem [message #194178 is a reply to message #194170] Thu, 07 June 2007 15:26 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1305
Registered: July 2009
Senior Member
I'm not sure exactly what <wb-resource> supports, but I wouldn't assume
it supports much more than what WTP needs for "normal" operation. Thus,
I'm doubtful that "*.xml" is valid as a source-path. I would guess that
it needs to point to a folder or a file. Also, the deploy-path of "../"
means you are copying the file to a location outside of the webapp, i.e.
to the "webapps" folder where Tomcat is running. I'm not sure if that
is what you want, or if it is, I'd be somewhat surprised if it worked
correctly. It may need to be "/" for the root of the webapp, or some
subfolder of it. With respect to the source-path, I believe your
choices are to include a <web-resource> for each file individually, or
put them in their own subfolder of your project and specify the subfolder.

Cheers,
Larry

Vishal Rana wrote:
> oops you are right! actually I added this line
> <wb-resource deploy-path="../" source-path="*.xml"/>
>
> "Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
> news:f48so8$vs4$1@build.eclipse.org...
>> That line looks like the standard line that copies contents of the
>> "WebContent" folder of your project to the root of the published webapp. I
>> would assume it was a different line you added.
>>
>> Cheers,
>> Larry
>>
>> Vishal Rana wrote:
>>> Thanks Larry
>>>
>>> The link was helpful :)
>>> I edited the .component file by adding the following line
>>> <wb-resource deploy-path="/" source-path="/WebContent"/>
>>> to copy the xml file from the project's root directory but it doesn't
>>> work as it should
>>>
>>> Thanks
>>> Vishal
>>>
>>> "Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
>>> news:f468cc$8ck$1@build.eclipse.org...
>>>> If still interested in WTP 1.5.4, see this Tomcat FAQ question:
>>>>
>>>> http://www.eclipse.org/webtools/faq/TomcatServerFAQ.php#info _04
>>>>
>>>> Note that this FAQ still needs to be updated with WTP 2.0 information.
>>>>
>>>> As for copying the extra files, it would help to know what files and
>>>> where
>>>> you want to copy them. I assume just adding them somewhere under the
>>>> WebContent folder of your Dynamic Web Project isn't what you are looking
>>>> for. Modifying the ".component" file is the only option in some cases.
>>>> What were your edits?
>>>>
>>>> Cheers,
>>>> Larry
>>>>
>>>> Vishal Rana wrote:
>>>>> I got the tomcat deployed directory its
>>>>> workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp 0\wtpwebapps\
>>>>> for wtp 2.0
>>>>> but I have to manually copy the files into this directory, Is there a
>>>>> way
>>>>> to automatically deploy some extra files
>>>>>
>>>>> I found a file org.eclipse.wst.common.component in .settings folder
>>>>> edited it to deploy my extra files but
>>>>> its not copying
>>>>>
>>>>> Thanks
>>>>> Vishal
>>>>>
>>>>>
>>>>> "Vishal Rana" <ranavishal@gmail.com> wrote in message
>>>>> news:f44g08$299$1@build.eclipse.org...
>>>>>> Hi All,
>>>>>>
>>>>>> I am using wtp 1.5.4 with tomcat 5.5
>>>>>> Can anyone tell me where my dynamic web project are deployed in tomcat
>>>>>> within the eclipse?
>>>>>> The reason I am looking for this because I want to add a file into the
>>>>>> deployed web application in tomcat
>>>>>>
>>>>>> Also is there any way to override the deployement of the web projects?
>>>>>>
>>>>>> Thanks
>>>>>> Vishal
>>>>>>
>>>>>>
>
Re: WTP 1.5.4 Problem [message #194185 is a reply to message #194178] Fri, 08 June 2007 05:34 Go to previous message
Eclipse User
Originally posted by: ranavishal.gmail.com

I tried putting my files into the WebContent folder... and its working :)

My requirement was to put extra files into the project's deployed direcotory
in the tomcat instance
because the contents of the WebContent folder goes directly into the
org.eclipse.wst.server.core\tmp0\wtpwebapps\project's root\ for WTP 2.0
that's why I got my files exactly where I wanted...

Thanks for your support Larry

Cheers
Vishal

"Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
news:f49m5t$epm$1@build.eclipse.org...
> I'm not sure exactly what <wb-resource> supports, but I wouldn't assume it
> supports much more than what WTP needs for "normal" operation. Thus,
> I'm doubtful that "*.xml" is valid as a source-path. I would guess that
> it needs to point to a folder or a file. Also, the deploy-path of "../"
> means you are copying the file to a location outside of the webapp, i.e.
> to the "webapps" folder where Tomcat is running. I'm not sure if that is
> what you want, or if it is, I'd be somewhat surprised if it worked
> correctly. It may need to be "/" for the root of the webapp, or some
> subfolder of it. With respect to the source-path, I believe your choices
> are to include a <web-resource> for each file individually, or put them
> in their own subfolder of your project and specify the subfolder.
>
> Cheers,
> Larry
>
> Vishal Rana wrote:
>> oops you are right! actually I added this line
>> <wb-resource deploy-path="../" source-path="*.xml"/>
>>
>> "Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
>> news:f48so8$vs4$1@build.eclipse.org...
>>> That line looks like the standard line that copies contents of the
>>> "WebContent" folder of your project to the root of the published webapp.
>>> I would assume it was a different line you added.
>>>
>>> Cheers,
>>> Larry
>>>
>>> Vishal Rana wrote:
>>>> Thanks Larry
>>>>
>>>> The link was helpful :)
>>>> I edited the .component file by adding the following line
>>>> <wb-resource deploy-path="/" source-path="/WebContent"/>
>>>> to copy the xml file from the project's root directory but it doesn't
>>>> work as it should
>>>>
>>>> Thanks
>>>> Vishal
>>>>
>>>> "Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
>>>> news:f468cc$8ck$1@build.eclipse.org...
>>>>> If still interested in WTP 1.5.4, see this Tomcat FAQ question:
>>>>>
>>>>> http://www.eclipse.org/webtools/faq/TomcatServerFAQ.php#info _04
>>>>>
>>>>> Note that this FAQ still needs to be updated with WTP 2.0 information.
>>>>>
>>>>> As for copying the extra files, it would help to know what files and
>>>>> where
>>>>> you want to copy them. I assume just adding them somewhere under the
>>>>> WebContent folder of your Dynamic Web Project isn't what you are
>>>>> looking
>>>>> for. Modifying the ".component" file is the only option in some
>>>>> cases.
>>>>> What were your edits?
>>>>>
>>>>> Cheers,
>>>>> Larry
>>>>>
>>>>> Vishal Rana wrote:
>>>>>> I got the tomcat deployed directory its
>>>>>> workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp 0\wtpwebapps\
>>>>>> for wtp 2.0
>>>>>> but I have to manually copy the files into this directory, Is there a
>>>>>> way
>>>>>> to automatically deploy some extra files
>>>>>>
>>>>>> I found a file org.eclipse.wst.common.component in .settings folder
>>>>>> edited it to deploy my extra files but
>>>>>> its not copying
>>>>>>
>>>>>> Thanks
>>>>>> Vishal
>>>>>>
>>>>>>
>>>>>> "Vishal Rana" <ranavishal@gmail.com> wrote in message
>>>>>> news:f44g08$299$1@build.eclipse.org...
>>>>>>> Hi All,
>>>>>>>
>>>>>>> I am using wtp 1.5.4 with tomcat 5.5
>>>>>>> Can anyone tell me where my dynamic web project are deployed in
>>>>>>> tomcat
>>>>>>> within the eclipse?
>>>>>>> The reason I am looking for this because I want to add a file into
>>>>>>> the
>>>>>>> deployed web application in tomcat
>>>>>>>
>>>>>>> Also is there any way to override the deployement of the web
>>>>>>> projects?
>>>>>>>
>>>>>>> Thanks
>>>>>>> Vishal
>>>>>>>
>>>>>>>
>>
Previous Topic:Help testing new packages
Next Topic:Dali: Not correctly mapping column name 'class'
Goto Forum:
  


Current Time: Wed Aug 20 16:37:55 EDT 2014

Powered by FUDForum. Page generated in 0.01809 seconds