Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Tomcat in SLL mode
Tomcat in SLL mode [message #185242] Tue, 19 December 2006 14:10 Go to next message
Eclipse User
Originally posted by: rbaisak.nyc.yamaha.com

Hi,
I could able to start tomcat server from eclipse in SSL mode.
However
it is not recognizing my web application. My codebase generally out
side
of tomcat environment and I am using ROOT as the startup directory of
my
application. The content of ROOT.xml is as below

<Context className="org.apache.catalina.core.StandardContext"
cachingAllowed="true"
charsetMapperClass="org.apache.catalina.util.CharsetMapper"
cookies="true"
crossContext="true" debug="5" displayName="ddfdfd" docBase="my
applicationdirectory " workDir="wroking director"
mapperClass="org.apache.catalina.core.StandardContextMapper " path=""
privileged="false" reloadable="true" swallowOutput="false"
useNaming="true"
wrapperClass="org.apache.catalina.core.StandardWrapper">
<Resource
name="jdbc/Test"
scope="Shareable"
type="javax.sql.DataSource"
url="jdbc:dfhjknf"
validationQuery="select tablename from pg_tables where
schemaname =
&#39;gpdb&#39;"
maxIdle="10"
maxActive="20"
maxWait="-1"
driverClassName="dfdf.dkjcd.dfkjdklf"
removeAbandoned="true"
username="portal"
logAbandoned="true"
removeAbandonedTimeout="120"
password="test" />
</Context>

The location of this file :
<Tomcat home>\conf\Catalina\localhost

How can I link above file to new tomcat server created in eclipse
environment so that my application will be deployed.




- Ranjan
Re: Tomcat in SLL mode [message #185341 is a reply to message #185242] Wed, 20 December 2006 15:42 Go to previous message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1287
Registered: July 2009
Senior Member
Be aware that the default is for Eclipse to create a separate instance
of Tomcat, i.e. the location of "conf", "webapps", etc. is under
"<workspace>/.metadata/.plugins/org.eclipse.wst.server.core/tmp? ", not
your Tomcat installation directory. You can have the the Eclipse Tomcat
server use the "conf", "webapps, etc. from your Tomcat installation by
double-clicking on the Tomcat server in the servers view and in the
server editor that opens, uncheck the "Run modules directly from the
workspace..." option, then save. This will make the server in Eclipse
run basically the same thing as your Tomcat server outside of Eclipse.
The disadvantage of this approach is that Eclipse now "owns" your Tomcat
installation. The configuration files found in Eclipse under the
Servers project will overwrite the ones in your Tomcat installation
every time the Tomcat server is started within Eclipse. Also, any
custom JAVA_OPTS you have defined outside of Eclipse will have to be
added to the Tomcat server's launch configuration. In the server
editor, click on "Open launch configuration". In the launch
configuration dialog, switch to the Arguments tab and add any missing
arguments to the "VM Arguments" field.

The alternative is to leave the "Run modules directly from the
workspace..." checked and add the Context to the server.xml found in the
subfolder of the Servers project that corresponds to the Tomcat
server. You would still need to update the launch configuration with any
missing arguments.

If you can live with Eclipse overwriting your Tomcat installation's
conf/server.xml, conf/web.xml, conf/catalina.policy, and
conf/tomcat-users.xml files, the first approach is probably the easier one.

Cheers,
Larry



Ranjan wrote:
> Hi,
> I could able to start tomcat server from eclipse in SSL mode. However
> it is not recognizing my web application. My codebase generally out side
> of tomcat environment and I am using ROOT as the startup directory of my
> application. The content of ROOT.xml is as below
>
> <Context className="org.apache.catalina.core.StandardContext"
> cachingAllowed="true"
> charsetMapperClass="org.apache.catalina.util.CharsetMapper"
> cookies="true"
> crossContext="true" debug="5" displayName="ddfdfd" docBase="my
> applicationdirectory " workDir="wroking director"
> mapperClass="org.apache.catalina.core.StandardContextMapper " path=""
> privileged="false" reloadable="true" swallowOutput="false"
> useNaming="true"
> wrapperClass="org.apache.catalina.core.StandardWrapper">
> <Resource
> name="jdbc/Test"
> scope="Shareable"
> type="javax.sql.DataSource"
> url="jdbc:dfhjknf"
> validationQuery="select tablename from pg_tables where
> schemaname =
> &#39;gpdb&#39;"
> maxIdle="10"
> maxActive="20"
> maxWait="-1"
> driverClassName="dfdf.dkjcd.dfkjdklf"
> removeAbandoned="true"
> username="portal"
> logAbandoned="true"
> removeAbandonedTimeout="120"
> password="test" />
> </Context>
>
> The location of this file :
> <Tomcat home>\conf\Catalina\localhost
>
> How can I link above file to new tomcat server created in eclipse
> environment so that my application will be deployed.
>
>
>
>
> - Ranjan
>
>
Previous Topic:When formatting xml - if I want 'no wrapping' is only option to set to 999?
Next Topic:XML Validations show only in editor area
Goto Forum:
  


Current Time: Sun Apr 20 22:55:43 EDT 2014

Powered by FUDForum. Page generated in 0.02749 seconds