Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Tomcat Server Startup Configuration
Tomcat Server Startup Configuration [message #535788] Tue, 25 May 2010 12:18 Go to next message
Shelli Orton is currently offline Shelli Orton
Messages: 73
Registered: September 2009
Member
I am having an issue deploying a portlet in a Liferay/Tomcat installation when I start up Tomcat via the startup.bat script. However, the portlet deploys fine when I start up Tomcat via Eclipse.

So, I'm thinking there's some config that Eclipse does on start up that is different that allows the portlet to be deployed. I'm trying to figure out what that difference is.

I have added a Server in Eclipse with this run config arguments:

Program arguments:
run

VM arguments:
-Dcatalina.base="C:\Program Files\liferay-portal-5.2.3-tomcat-6.0\tomcat-6.0.18"
-Dcatalina.home="C:\Program Files\liferay-portal-5.2.3-tomcat-6.0\tomcat-6.0.18"
-Dwtp.deploy="C:\Program Files\liferay-portal-5.2.3-tomcat-6.0\tomcat-6.0.18\webapps"
-Djava.endorsed.dirs="C:\Program Files\liferay-portal-5.2.3-tomcat-6.0\tomcat-6.0.18\endorsed "
-XX:MaxPermSize=512m
-Djava.io.tmpdir="C:\Program Files\liferay-portal-5.2.3-tomcat-6.0\tomcat-6.0.18\temp"

Does Eclipse use the startup.bat and shutdown.bat scripts which is what I use when starting Tomcat manually? If not, what does it use?

Thanks!
Re: Tomcat Server Startup Configuration [message #535800 is a reply to message #535788] Tue, 25 May 2010 12:42 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1296
Registered: July 2009
Senior Member
sdoca wrote:
> I am having an issue deploying a portlet in a Liferay/Tomcat
> installation when I start up Tomcat via the startup.bat script.
> However, the portlet deploys fine when I start up Tomcat via Eclipse.
>
> So, I'm thinking there's some config that Eclipse does on start up that
> is different that allows the portlet to be deployed. I'm trying to
> figure out what that difference is.
>
> I have added a Server in Eclipse with this run config arguments:
>
> Program arguments: run
>
> VM arguments:
> -Dcatalina.base="C:\Program
> Files\liferay-portal-5.2.3-tomcat-6.0\tomcat-6.0.18"
> -Dcatalina.home="C:\Program
> Files\liferay-portal-5.2.3-tomcat-6.0\tomcat-6.0.18"
> -Dwtp.deploy="C:\Program
> Files\liferay-portal-5.2.3-tomcat-6.0\tomcat-6.0.18\webapps"
> -Djava.endorsed.dirs="C:\Program
> Files\liferay-portal-5.2.3-tomcat-6.0\tomcat-6.0.18\endorsed "
> -XX:MaxPermSize=512m
> -Djava.io.tmpdir="C:\Program
> Files\liferay-portal-5.2.3-tomcat-6.0\tomcat-6.0.18\temp"
>
> Does Eclipse use the startup.bat and shutdown.bat scripts which is what
> I use when starting Tomcat manually? If not, what does it use?
>
> Thanks!

You can start the Tomcat server in Eclipse, switch to the Debug
perspective and in the Debug view, right-click on the "javaw.exe" item
and select Properties. The dialog that appears will show the command
line Eclipse used to spawn the JVM that runs the server. You can also,
edit the catalina.bat file to duplicate the line that starts the JVM,
then put "echo " at the beginning of that line so the command executed
by the startup.bat is also displayed. You can then compare the two to
see if there are any differences that matter.

The Tomcat support in Eclipse doesn't attempt to use the batch scripts.
For details about the Tomcat support in WTP, see the WTP Tomcat FAQ[1].

Cheers,
Larry

[1] http://wiki.eclipse.org/WTP_Tomcat_FAQ
Re: Tomcat Server Startup Configuration [message #535824 is a reply to message #535800] Tue, 25 May 2010 16:13 Go to previous messageGo to next message
Shelli Orton is currently offline Shelli Orton
Messages: 73
Registered: September 2009
Member
Thanks for the information about the server runtime environmnents. I can't see anything differences that explain my issue, but it's good information to know how to get.
Re: Tomcat Server Startup Configuration [message #535828 is a reply to message #535824] Tue, 25 May 2010 16:50 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1296
Registered: July 2009
Senior Member
sdoca wrote:
> Thanks for the information about the server runtime environmnents. I
> can't see anything differences that explain my issue, but it's good
> information to know how to get.

If you paste the command line from Eclipse into a DOS Command window and
execute it, does that Tomcat show the issue? If not, you can
incrementally merge the differences until you find one that triggers the
issue.

Cheers,
Larry
Re: Tomcat Server Startup Configuration [message #536025 is a reply to message #535828] Wed, 26 May 2010 12:47 Go to previous message
Shelli Orton is currently offline Shelli Orton
Messages: 73
Registered: September 2009
Member
Hi,

Starting Tomcat using the Eclipse command allows me to deploy the portlets. Hopefully I'll have some time in the next couple of days to tweak the startup scripts so that I can use them. I spent some time trying to work through them yesterday but got lost in the calls from one bat file to another. Sad

Thanks again for all your help!
Previous Topic:Eclipse error during geneation of java source code from wsdl.
Next Topic:How to get hold of appropriate Document object for XML Content Assist ?
Goto Forum:
  


Current Time: Wed Jul 23 16:20:56 EDT 2014

Powered by FUDForum. Page generated in 0.02066 seconds