Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Howto change deploying path
Howto change deploying path [message #171330] Thu, 15 June 2006 09:47 Go to next message
Mauro Gajetti is currently offline Mauro GajettiFriend
Messages: 2
Registered: July 2009
Junior Member
Hello, I have some problems deploying a war file on eclipse.
I checked the deployed dir and it was damaged because the war has deeply
nested dir structure and Windows Xp seems truncate some filenames with
very long pathname (more than 255 chars).
The same war works well if i deploy it on Tomcat directly.
Can I change the deploy path on Eclipse?
Can someone help me?
Thanks,
Mauro Gajetti
Re: Howto change deploying path [message #171350 is a reply to message #171330] Thu, 15 June 2006 15:14 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
There is already an enhancement request to make this configurable:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=107722

In the meantime, if a short workspace path won't cut it, then your only
alternative is to disable "Run modules directly from the workspace".
You can double-click the server in the workspace to open the Tomcat
server configuration editor. Uncheck "Run modules directly from the
workspace..." option and save. This will cause the projects to be
deployed to the Tomcat installation instead of the default location
under your workspace. Be aware that WTP "owns" the Tomcat installation
at that point, i.e. the Tomcat files under the Servers project in your
workspace are the "masters". Install an additional Tomcat using the zip
for this purpose if you don't want to mess with your original Tomcat
installation.

Cheers,
Larry


Mauro Gajetti wrote:
> Hello, I have some problems deploying a war file on eclipse.
> I checked the deployed dir and it was damaged because the war has deeply
> nested dir structure and Windows Xp seems truncate some filenames with
> very long pathname (more than 255 chars).
> The same war works well if i deploy it on Tomcat directly.
> Can I change the deploy path on Eclipse?
> Can someone help me?
> Thanks,
> Mauro Gajetti
Re: Howto change deploying path [message #171456 is a reply to message #171350] Fri, 16 June 2006 08:48 Go to previous messageGo to next message
Mauro Gajetti is currently offline Mauro GajettiFriend
Messages: 2
Registered: July 2009
Junior Member
Thanks a lot for the answer,
I would like to know what happens, if I choose to uncheck "Run modules
directly..", to my already deployed web apps on Tomcat,
will they be active when I start the server from Eclipse?
If I have one project with the same name on Eclipse will be overwrite on
Tomcat?
Can I see the web apps deployed on Tomcat and not present in Eclipse
Projects and can I choose to de/activate them?

Thanks,
Mauro Gajetti

Larry Isaacs ha scritto:
> There is already an enhancement request to make this configurable:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=107722
>
> In the meantime, if a short workspace path won't cut it, then your only
> alternative is to disable "Run modules directly from the workspace". You
> can double-click the server in the workspace to open the Tomcat server
> configuration editor. Uncheck "Run modules directly from the
> workspace..." option and save. This will cause the projects to be
> deployed to the Tomcat installation instead of the default location
> under your workspace. Be aware that WTP "owns" the Tomcat installation
> at that point, i.e. the Tomcat files under the Servers project in your
> workspace are the "masters". Install an additional Tomcat using the zip
> for this purpose if you don't want to mess with your original Tomcat
> installation.
>
> Cheers,
> Larry
>
>
> Mauro Gajetti wrote:
>> Hello, I have some problems deploying a war file on eclipse.
>> I checked the deployed dir and it was damaged because the war has
>> deeply nested dir structure and Windows Xp seems truncate some
>> filenames with very long pathname (more than 255 chars).
>> The same war works well if i deploy it on Tomcat directly.
>> Can I change the deploy path on Eclipse?
>> Can someone help me?
>> Thanks,
>> Mauro Gajetti
Re: Howto change deploying path [message #171481 is a reply to message #171456] Fri, 16 June 2006 13:56 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
You ask a good question. I would recommend removing the projects first,
changing the option, then re-adding the projects. If you have already
deployed Eclipse projects to your currently installed Tomcat in a
fashion that is useful to you, I would recommend installing an
additional "test" Tomcat from a zip for use from within Eclipse. If the
two need to run at the same time, alter the port numbers for one of them.

With "Run modules..." unchecked, you will be able to see the standard
web applications that come with the installed Tomcat. If you go with a
"test" Tomcat, you can alter it's configuration to suit your testing
needs without disturbing your current Tomcat.

I haven't tested the scenario of changing this option while there are
projects added. I would assume that there would be problems. The
publishing code isn't aware that this kind of mode switch is possible in
the server, and is likely to behave badly in this situation. I have had
the idea in the past, and may implement in WTP 2.0, that the choice of
this behavior would be offered when the server is created, but wouldn't
be changeable afterward. You would have to create, or re-create, the
server to switch this option.

Cheers,
Larry


Mauro Gajetti wrote:
> Thanks a lot for the answer,
> I would like to know what happens, if I choose to uncheck "Run modules
> directly..", to my already deployed web apps on Tomcat,
> will they be active when I start the server from Eclipse?
> If I have one project with the same name on Eclipse will be overwrite on
> Tomcat?
> Can I see the web apps deployed on Tomcat and not present in Eclipse
> Projects and can I choose to de/activate them?
>
> Thanks,
> Mauro Gajetti
>
> Larry Isaacs ha scritto:
>> There is already an enhancement request to make this configurable:
>>
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=107722
>>
>> In the meantime, if a short workspace path won't cut it, then your
>> only alternative is to disable "Run modules directly from the
>> workspace". You can double-click the server in the workspace to open
>> the Tomcat server configuration editor. Uncheck "Run modules directly
>> from the workspace..." option and save. This will cause the projects
>> to be deployed to the Tomcat installation instead of the default
>> location under your workspace. Be aware that WTP "owns" the Tomcat
>> installation at that point, i.e. the Tomcat files under the Servers
>> project in your workspace are the "masters". Install an additional
>> Tomcat using the zip for this purpose if you don't want to mess with
>> your original Tomcat installation.
>>
>> Cheers,
>> Larry
>>
>>
>> Mauro Gajetti wrote:
>>> Hello, I have some problems deploying a war file on eclipse.
>>> I checked the deployed dir and it was damaged because the war has
>>> deeply nested dir structure and Windows Xp seems truncate some
>>> filenames with very long pathname (more than 255 chars).
>>> The same war works well if i deploy it on Tomcat directly.
>>> Can I change the deploy path on Eclipse?
>>> Can someone help me?
>>> Thanks,
>>> Mauro Gajetti
Previous Topic:XSLT
Next Topic:3.2 Migration Question
Goto Forum:
  


Current Time: Sat Apr 20 05:31:15 GMT 2024

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

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

Back to the top