|
Re: Tomcat Server Startup Configuration [message #535800 is a reply to message #535788] |
Tue, 25 May 2010 16:42 |
Larry Isaacs Messages: 1354 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
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02077 seconds