RE: Listening on multiple ips

2005-08-12 Thread David Erickson
I know, the problem is this is production environment and im still waiting
for my firewall guy to get back to me on opening those ports up to the
second ip, so really I couldn't have tested it, so I figured the next best
thing would be to run it by the list to see if anyone else had done
something like this.

If I have a hostname (or multiple hostnames) pointing to say the second ip
address, they will still be serviced by the host with the associated ip
address correct?

-David

> -Original Message-
> From: Allistair Crossley [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 12, 2005 10:26 AM
> To: Tomcat Users List
> Subject: RE: Listening on multiple ips
> 
> In the time it took you to write this email you could have tested this!!
> ;o) Looks reasonable so long as you want to connect direct to Tomcat on
> port 80 for each IP ... try it out and get back to us.
> 
> Allistair.
> 
> > -Original Message-
> > From: David Erickson [mailto:[EMAIL PROTECTED]
> > Sent: 12 August 2005 17:20
> > To: tomcat-user@jakarta.apache.org
> > Subject: Listening on multiple ips
> >
> >
> > Hi I was just wondering what the best way to setup tomcat to listen to
> > multiple ip addresses is?  I have a box with 1 nic that has 3
> > ip addresses,
> > the first address port 80 is in use by apache so I want it to
> > listen on the
> > 2nd and 3rd address.  I also need to have different webapps
> > be loaded for
> > each of the addresses it is listening on.  From looking at
> > the conf file I
> > was wondering if I can just create two connectors for each ip
> > address ie:
> >
> >  >maxThreads="150" minSpareThreads="25"
> > maxSpareThreads="75"
> >enableLookups="false" redirectPort="443"
> > acceptCount="100"
> >debug="0" connectionTimeout="2"
> >disableUploadTimeout="true" />
> >
> >  >maxThreads="150" minSpareThreads="25"
> > maxSpareThreads="75"
> >enableLookups="false" redirectPort="443"
> > acceptCount="100"
> >debug="0" connectionTimeout="2"
> >disableUploadTimeout="true" />
> >
> > And then in the engine create two Host elements:
> >
> >>unpackWARs="true" autoDeploy="true"
> >xmlValidation="false" xmlNamespaceAware="false">
> >
> >>unpackWARs="true" autoDeploy="true"
> >xmlValidation="false" xmlNamespaceAware="false">
> >
> >
> > Would this work?
> >
> > Thanks,
> > David
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> 
> ---
> QAS Ltd.
> Registered in England: No 2582055
> Registered in Australia: No 082 851 474
> ---
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.338 / Virus Database: 267.10.6/69 - Release Date: 8/11/2005
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Listening on multiple ips

2005-08-12 Thread David Erickson
Hi I was just wondering what the best way to setup tomcat to listen to
multiple ip addresses is?  I have a box with 1 nic that has 3 ip addresses,
the first address port 80 is in use by apache so I want it to listen on the
2nd and 3rd address.  I also need to have different webapps be loaded for
each of the addresses it is listening on.  From looking at the conf file I
was wondering if I can just create two connectors for each ip address ie:





And then in the engine create two Host elements:

  

  


Would this work?

Thanks,
David


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Log4j Problem w/Tomcat 5.0.24 and JSVC

2004-05-28 Thread David Erickson
Ok this time I got it working for sure, note this is specific to getting
log4j working to log tomcat's classes when launched from jsvc.
1) Download commons-logging.jar and put it in $CATALINA_HOME/bin
2) Download the log4j jar and also put it in $CATALINA_HOME/bin
3) Create your log4j.properties file and put it in
$CATALINA_HOME/common/classes

Here is part of my tomcat jsvc launch script:
JAVA_HOME=/usr/local/java
CATALINA_HOME=/usr/local/tomcat
TOMCAT_PROG=tomcat
TOMCAT_USER="tomcat"
DAEMON_HOME=/usr/local/daemon
TMP_DIR=/var/tmp
LOG4J_CONFIG=log4j.properties
CLASSPATH=$CLASSPATH:\
$JAVA_HOME/lib/tools.jar:\
$DAEMON_HOME/dist/commons-daemon.jar:\
$CATALINA_HOME/bin/bootstrap.jar:\
$CATALINA_HOME/bin/commons-logging.jar:\
$CATALINA_HOME/bin/log4j-1.2.8.jar:\
$CATALINA_HOME/common/classes:\

start() {
echo -n "Starting tomcat: "
chown -R $TOMCAT_USER:$TOMCAT_USER /usr/local/tomcat/*
$DAEMON_HOME/jsvc\
-user $TOMCAT_USER \
-home $JAVA_HOME \
-Dcatalina.home=$CATALINA_HOME \
-Djava.io.tmpdir=$TMP_DIR \
-Dlog4j.configuration=$LOG4J_CONFIG \
-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLo
gger \
-outfile $CATALINA_HOME/logs/catalina.out \
-errfile $CATALINA_HOME/logs/catalina.out \
-Xmx256m \
-cp $CLASSPATH \
org.apache.catalina.startup.Bootstrap
RETVAL=$?
echo
[ $RETVAL = 0 ] && touch /var/lock/subsys/tomcat
return $RETVAL
}

Hope this helps anyone else who has a nightmare getting the classpath and
stuff set correctly =)
-David


- Original Message - 
From: "David Erickson" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, May 28, 2004 2:31 PM
Subject: Re: Log4j Problem w/Tomcat 5.0.24 and JSVC


> Believe me I looked through the archives.. this post doesn't work when
using
> JSVC to launch TC.  And apparently somewhere in the last hour I had
> something working because it generated a console.log but I didn't notice
it
> and then when i did notice it I had changed stuff and it was broken
again...
> *sigh* lol.
> -David
>
> - Original Message - 
> From: "Filip Hanik (lists)" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, May 28, 2004 2:02 PM
> Subject: RE: Log4j Problem w/Tomcat 5.0.24 and JSVC
>
>
> > >After hours of messing around trying to get the log4j to initialize
> >
> > looking in the archives would have saved you hours of work!
> >
http://www.mail-archive.com/[EMAIL PROTECTED]/msg126799.html
> >
> > Filip
> >
> >
> > -Original Message-
> > From: David Erickson [mailto:[EMAIL PROTECTED]
> > Sent: Friday, May 28, 2004 2:53 PM
> > To: Tomcat Users List
> > Subject: Re: Log4j Problem w/Tomcat 5.0.24 and JSVC
> >
> >
> > After hours of messing around trying to get the log4j to initialize with
> > tomcat here's what you need to do:
> >
> > Put the log4j jar file into $CATALINA_HOME/common/lib, and your
> > log4j.properties or log4j.xml into $CATALINA_HOME/common/classes.  Then
> > modify your tomcat jsvc classpath variable to look something like:
> >
> > CLASSPATH=$CLASSPATH:\
> > $JAVA_HOME/lib/tools.jar:\
> > $DAEMON_HOME/dist/commons-daemon.jar:\
> > $CATALINA_HOME/bin/bootstrap.jar:\
> > $CATALINA_HOME/common/lib/log4j-1.2.8.jar:\
> > $CATALINA_HOME/common/classes
> >
> > And wallah everything will work =)
> > -David
> >
> > - Original Message -
> > From: "David Erickson" <[EMAIL PROTECTED]>
> > To: "Tomcat-User List" <[EMAIL PROTECTED]>
> > Sent: Friday, May 28, 2004 11:48 AM
> > Subject: Log4j Problem w/Tomcat 5.0.24 and JSVC
> >
> >
> > > Hey All I am running Tomcat 5.0.24 on a RH9 Machine, at startup using
> > JSVC.
> > > My root problem is I am unable to get tomcat's SSL port to run on
443..
> > > (works peachy on 8443, but when I hit 443 I get nothing it just hangs
> and
> > > timesout).  Well anyway I was trying to get Log4j logging to work so I
> > could
> > > see if tomcat was outputting anything funny, I stuck the log4j jar
into
> > > common/lib, built a log4j.properties file and put it in
common/classes,
> > but
> > > for some reason log4j is not being initializized from that props file,
> its
> > > as if common/classes isn't being read.  Here's the file I am using:
> > >
> > > ##
> > > # Appender Definitions
> > > log4j.appender.ConsoleFile=org.apache.log4j.DailyRollingFileAppender
> > > log4j.appender.ConsoleFile.file

Re: Log4j Problem w/Tomcat 5.0.24 and JSVC

2004-05-28 Thread David Erickson
Believe me I looked through the archives.. this post doesn't work when using
JSVC to launch TC.  And apparently somewhere in the last hour I had
something working because it generated a console.log but I didn't notice it
and then when i did notice it I had changed stuff and it was broken again...
*sigh* lol.
-David

- Original Message - 
From: "Filip Hanik (lists)" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, May 28, 2004 2:02 PM
Subject: RE: Log4j Problem w/Tomcat 5.0.24 and JSVC


> >After hours of messing around trying to get the log4j to initialize
>
> looking in the archives would have saved you hours of work!
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg126799.html
>
> Filip
>
>
> -Original Message-
> From: David Erickson [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 28, 2004 2:53 PM
> To: Tomcat Users List
> Subject: Re: Log4j Problem w/Tomcat 5.0.24 and JSVC
>
>
> After hours of messing around trying to get the log4j to initialize with
> tomcat here's what you need to do:
>
> Put the log4j jar file into $CATALINA_HOME/common/lib, and your
> log4j.properties or log4j.xml into $CATALINA_HOME/common/classes.  Then
> modify your tomcat jsvc classpath variable to look something like:
>
> CLASSPATH=$CLASSPATH:\
> $JAVA_HOME/lib/tools.jar:\
> $DAEMON_HOME/dist/commons-daemon.jar:\
> $CATALINA_HOME/bin/bootstrap.jar:\
> $CATALINA_HOME/common/lib/log4j-1.2.8.jar:\
> $CATALINA_HOME/common/classes
>
> And wallah everything will work =)
> -David
>
> - Original Message -
> From: "David Erickson" <[EMAIL PROTECTED]>
> To: "Tomcat-User List" <[EMAIL PROTECTED]>
> Sent: Friday, May 28, 2004 11:48 AM
> Subject: Log4j Problem w/Tomcat 5.0.24 and JSVC
>
>
> > Hey All I am running Tomcat 5.0.24 on a RH9 Machine, at startup using
> JSVC.
> > My root problem is I am unable to get tomcat's SSL port to run on 443..
> > (works peachy on 8443, but when I hit 443 I get nothing it just hangs
and
> > timesout).  Well anyway I was trying to get Log4j logging to work so I
> could
> > see if tomcat was outputting anything funny, I stuck the log4j jar into
> > common/lib, built a log4j.properties file and put it in common/classes,
> but
> > for some reason log4j is not being initializized from that props file,
its
> > as if common/classes isn't being read.  Here's the file I am using:
> >
> > ##
> > # Appender Definitions
> > log4j.appender.ConsoleFile=org.apache.log4j.DailyRollingFileAppender
> > log4j.appender.ConsoleFile.file=${catalina.home}/logs/console.log
> > log4j.appender.ConsoleFile.datePattern='.'-MM-dd
> > log4j.appender.ConsoleFile.layout=org.apache.log4j.PatternLayout
> > log4j.appender.ConsoleFile.layout.ConversionPattern=%-d [%-5p] %c - %m%n
> >
> >
> > #
> > # Logger Definitions
> > log4j.debug=TRUE
> > log4j.rootLogger=ERROR, ConsoleFile
> > log4j.logger.org.apache=DEBUG, ConsoleFile
> > log4j.logger.org.apache.commons=ERROR, ConsoleFile
> >
> > its not creating my console.log file or anything, and I'm getting no
debug
> > output to the catalina.out file created by jsvc.  My webapp also uses
> log4j
> > and in its prop's i set log4j's debug to be on and it told me there was
no
> > rootlogger.. so somehow this file is not being parsed.  Permissions are
> > good, set as tomcat/tomcat the user that jsvc delegates to.  I'm at a
loss
> > as to what is goin on, my windows dev box has this same setup and works
> > great.  The only diff is its not using jsvc, is that a possible problem
> > here?  For kicks and giggles I added the catalina_home/common/lib and
> > classes dirs to jsvc's classpath it launches with but that didnt help
> > either.
> >
> > Help appreciated!!
> > -David
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.676 / Virus Database: 438 - Release Date: 5/3/2004
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.676 / Virus Database: 438 - Release Date: 5/3/2004
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Log4j Problem w/Tomcat 5.0.24 and JSVC

2004-05-28 Thread David Erickson
After hours of messing around trying to get the log4j to initialize with
tomcat here's what you need to do:

Put the log4j jar file into $CATALINA_HOME/common/lib, and your
log4j.properties or log4j.xml into $CATALINA_HOME/common/classes.  Then
modify your tomcat jsvc classpath variable to look something like:

CLASSPATH=$CLASSPATH:\
$JAVA_HOME/lib/tools.jar:\
$DAEMON_HOME/dist/commons-daemon.jar:\
$CATALINA_HOME/bin/bootstrap.jar:\
$CATALINA_HOME/common/lib/log4j-1.2.8.jar:\
$CATALINA_HOME/common/classes

And wallah everything will work =)
-David

- Original Message - 
From: "David Erickson" <[EMAIL PROTECTED]>
To: "Tomcat-User List" <[EMAIL PROTECTED]>
Sent: Friday, May 28, 2004 11:48 AM
Subject: Log4j Problem w/Tomcat 5.0.24 and JSVC


> Hey All I am running Tomcat 5.0.24 on a RH9 Machine, at startup using
JSVC.
> My root problem is I am unable to get tomcat's SSL port to run on 443..
> (works peachy on 8443, but when I hit 443 I get nothing it just hangs and
> timesout).  Well anyway I was trying to get Log4j logging to work so I
could
> see if tomcat was outputting anything funny, I stuck the log4j jar into
> common/lib, built a log4j.properties file and put it in common/classes,
but
> for some reason log4j is not being initializized from that props file, its
> as if common/classes isn't being read.  Here's the file I am using:
>
> ##
> # Appender Definitions
> log4j.appender.ConsoleFile=org.apache.log4j.DailyRollingFileAppender
> log4j.appender.ConsoleFile.file=${catalina.home}/logs/console.log
> log4j.appender.ConsoleFile.datePattern='.'-MM-dd
> log4j.appender.ConsoleFile.layout=org.apache.log4j.PatternLayout
> log4j.appender.ConsoleFile.layout.ConversionPattern=%-d [%-5p] %c - %m%n
>
>
> #
> # Logger Definitions
> log4j.debug=TRUE
> log4j.rootLogger=ERROR, ConsoleFile
> log4j.logger.org.apache=DEBUG, ConsoleFile
> log4j.logger.org.apache.commons=ERROR, ConsoleFile
>
> its not creating my console.log file or anything, and I'm getting no debug
> output to the catalina.out file created by jsvc.  My webapp also uses
log4j
> and in its prop's i set log4j's debug to be on and it told me there was no
> rootlogger.. so somehow this file is not being parsed.  Permissions are
> good, set as tomcat/tomcat the user that jsvc delegates to.  I'm at a loss
> as to what is goin on, my windows dev box has this same setup and works
> great.  The only diff is its not using jsvc, is that a possible problem
> here?  For kicks and giggles I added the catalina_home/common/lib and
> classes dirs to jsvc's classpath it launches with but that didnt help
> either.
>
> Help appreciated!!
> -David
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Log4j Problem w/Tomcat 5.0.24 and JSVC

2004-05-28 Thread David Erickson
Hey All I am running Tomcat 5.0.24 on a RH9 Machine, at startup using JSVC.
My root problem is I am unable to get tomcat's SSL port to run on 443..
(works peachy on 8443, but when I hit 443 I get nothing it just hangs and
timesout).  Well anyway I was trying to get Log4j logging to work so I could
see if tomcat was outputting anything funny, I stuck the log4j jar into
common/lib, built a log4j.properties file and put it in common/classes, but
for some reason log4j is not being initializized from that props file, its
as if common/classes isn't being read.  Here's the file I am using:

##
# Appender Definitions
log4j.appender.ConsoleFile=org.apache.log4j.DailyRollingFileAppender
log4j.appender.ConsoleFile.file=${catalina.home}/logs/console.log
log4j.appender.ConsoleFile.datePattern='.'-MM-dd
log4j.appender.ConsoleFile.layout=org.apache.log4j.PatternLayout
log4j.appender.ConsoleFile.layout.ConversionPattern=%-d [%-5p] %c - %m%n


#
# Logger Definitions
log4j.debug=TRUE
log4j.rootLogger=ERROR, ConsoleFile
log4j.logger.org.apache=DEBUG, ConsoleFile
log4j.logger.org.apache.commons=ERROR, ConsoleFile

its not creating my console.log file or anything, and I'm getting no debug
output to the catalina.out file created by jsvc.  My webapp also uses log4j
and in its prop's i set log4j's debug to be on and it told me there was no
rootlogger.. so somehow this file is not being parsed.  Permissions are
good, set as tomcat/tomcat the user that jsvc delegates to.  I'm at a loss
as to what is goin on, my windows dev box has this same setup and works
great.  The only diff is its not using jsvc, is that a possible problem
here?  For kicks and giggles I added the catalina_home/common/lib and
classes dirs to jsvc's classpath it launches with but that didnt help
either.

Help appreciated!!
-David


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Servlet-Mapping Question, recursive capable?

2004-02-25 Thread David Erickson
I hope they hurry up and do it... it's not that big of a change and it would
make life much easier..  for that matter it really annoys me how when your
extension mapping, say *.do for struts, the servlet strips what you
extension mapped off when it sends it to the servlet.  IE if you matched
/actions/blah.do with a *.do mapping, struts only gets /actions/blah to
match by..
-David

- Original Message - 
From: "Daniel Gibby" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 25, 2004 6:54 AM
Subject: Re: Servlet-Mapping Question, recursive capable?


> I'm just predicting the future, and I think eventually the ** convention
> will be adopted in many systems and specs. I'm kinda going off topic, so
> sorry.
>
> dangby
>
> Tim Funk wrote:
>
> > The mapping rules are dictated by the servlet spec. Its not tomcat
> > specific.
> >
> > -Tim
> >
> > Daniel Gibby wrote:
> >
> >> Too bad though. I really like ant's recursive matching capabilities.
> >> I think that eventually a 'rebash' shell will be written that
> >> supports ** as recursive so that
> >> grep catalina **/docs/*.java
> >> would look for only java files in a subdirectory somewhere named docs
> >> with the text catalina in it. How nice would that be!
> >>
> >> Then apache and tomcat will decide on supporting this as well...
> >>
> >> Daniel Gibby
> >>
> >> Tim Funk wrote:
> >>
> >>> No. You can prefix match or file extension match, but not both at
> >>> the same time.
> >>>
> >>> -Tim
> >>>
> >>> David Erickson wrote:
> >>>
> >>>> Hi I would like to do something like:
> >>>> 
> >>>>
> >>>> action
> >>>>
> >>>> /docs/**.pdf
> >>>>
> >>>> 
> >>>>
> >>>>
> >>>>
> >>>> So that anything in the /docs/ folder AND ANY of its subfolders
> >>>> with the
> >>>> .pdf extension gets sent to my action servlet.
> >>>>
> >>>> Is that possible with tomcat 4.1.24?  If not does anybody know the
> >>>> class
> >>>> that matches those things so I can alter it?
> >>>>
> >>>> Thanks!
> >>>>
> >>>> -David
> >>>
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Servlet-Mapping Question, recursive capable?

2004-02-24 Thread David Erickson
Hi I would like to do something like:


action

/docs/**.pdf





So that anything in the /docs/ folder AND ANY of its subfolders with the
.pdf extension gets sent to my action servlet.

Is that possible with tomcat 4.1.24?  If not does anybody know the class
that matches those things so I can alter it?

Thanks!

-David


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: getting Server.XML properties in servlets?

2003-12-24 Thread David Erickson
Ok I'm having some problems getting this value from my app.. here's what I
have put into my server.xml:
 
  
  


according to the docs:
name: The name of the environment entry to be created, relative to the
java:comp/env context.

from my servlet I try getting that using:
InitialContext ctx = new InitialContext();

String mailServer = (String)ctx.lookup("java:comp/env/mailServer");

String mailUser = (String)ctx.lookup("java:comp/env/mailUser");

however this throws an exception:

javax.naming.NameNotFoundException: Name mailServer is not bound in this
Context
 at org.apache.naming.NamingContext.lookup(NamingContext.java:811)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:822)

Any Ideas?  I also tried setting it in server.xml to be "mail/mailServer"
then looking it up as "java:comp/env/mail/mailServer" but it through the
same exception saying Name mail is not bound in this Context.

Thanks in advance,
David

- Original Message - 
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, December 24, 2003 1:05 PM
Subject: RE: getting Server.XML properties in servlets?



Howdy,
You can use env-entry-ref for this (read the servlet specification on
this web.xml property and tomcat's JNDI How-To document for the
server.xml  element).

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: David Erickson [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, December 24, 2003 2:58 PM
>To: Tomcat-User List
>Subject: getting Server.XML properties in servlets?
>
>Hi I am working on an app that relies on an address to a mail server..
and
>the mail server's address is different inside our network due to proxy
>stuff
>than it is from outside, and our app will be deployed in both places.
Is
>it
>possible for me to set some kind of property inside my server.xml file
then
>from within my servlet be able to get that property?
>
>thanks!
>-David
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: getting Server.XML properties in servlets?

2003-12-24 Thread David Erickson
Thanks!
-David
- Original Message - 
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, December 24, 2003 1:05 PM
Subject: RE: getting Server.XML properties in servlets?



Howdy,
You can use env-entry-ref for this (read the servlet specification on
this web.xml property and tomcat's JNDI How-To document for the
server.xml  element).

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: David Erickson [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, December 24, 2003 2:58 PM
>To: Tomcat-User List
>Subject: getting Server.XML properties in servlets?
>
>Hi I am working on an app that relies on an address to a mail server..
and
>the mail server's address is different inside our network due to proxy
>stuff
>than it is from outside, and our app will be deployed in both places.
Is
>it
>possible for me to set some kind of property inside my server.xml file
then
>from within my servlet be able to get that property?
>
>thanks!
>-David
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



getting Server.XML properties in servlets?

2003-12-24 Thread David Erickson
Hi I am working on an app that relies on an address to a mail server.. and
the mail server's address is different inside our network due to proxy stuff
than it is from outside, and our app will be deployed in both places.  Is it
possible for me to set some kind of property inside my server.xml file then
from within my servlet be able to get that property?

thanks!
-David


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Link to Integrating Tomcat into Apache?

2003-10-02 Thread David Erickson
Jeez I don't know how I missed that :P  I did find another one but of course
Jakarta's docs are better.
Thanks a bunch
-David

- Original Message - 
From: "David Rees" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, October 02, 2003 12:12 PM
Subject: Re: Link to Integrating Tomcat into Apache?


> On Thu, October 2, 2003 1at 1:02 am, David Erickson sent the following
> > Hey I've been trying to find a good tutorial or how to on integrating
> > tomcat
> > into apache.. can anyone provide a link? Preferably Apache 2.x and
tomcat
> > 4.1.x
>
> Did you bother looking at the Jakarta Tomcat site?
>
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html
>
> -Dave
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Link to Integrating Tomcat into Apache?

2003-10-02 Thread David Erickson
Hey I've been trying to find a good tutorial or how to on integrating tomcat
into apache.. can anyone provide a link? Preferably Apache 2.x and tomcat
4.1.x
thanks!


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat integration into Apache and PHP support

2003-10-01 Thread David Erickson
Hi we have been developing a webapp using Tomcat 4.1.24.  We have come to a
point where we would like to add a forum based on PHP.. I gave the php
running in a servlet a try but never fully got it functioning the way I'd
like.  We are now evaluating running apache and plugging tomcat into it
along with PHP.

Some questions:
1) Supposing our webapp context is /salesweb, do all the files like *.html
*.jsp etc get routed through to tomcat?  Our security is based on filters so
its essential all incoming requests go through tomcat.
2) Would a php request go through tomcat's filters and to the php engine or
would it hit apache and go straight to php?
3) Can we continue to start and stop contexts and rebuild etc using ant like
we have been doing thus far?

Thanks,
David


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Setting up Eclipse to debug Struts classes in Tomcat?

2003-08-25 Thread David Erickson
I know I have read that you can use eclipse to remote debug tomcat, but is it possible 
to have eclipse debug struts action classes that are being executed by Tomcat?  And is 
there anywhere that documents how that would work.. I'd love to know what the value of 
some variables are at runtime etc when I'm having problems with it.. thanks in advance!
-D


Reloading a webapp?

2003-06-13 Thread David Erickson
Hi I am doing some webapp developement and am modifying classes that are in use by 
Struts, so anytime I want to check on the app I must compile then reload tomcat to 
reload the classes.  Is there anyway to have tomcat reload a webapp while it is still 
running?  Using version 4.1. something =)
Thanks-

Re: Problem executing Servlets with Tomcat 4.1.24

2003-06-07 Thread David Erickson
Ya that fixed it, thank you so much! This problem has been driving me CRAZY
you have no idea =P
-David

- Original Message - 
From: "Reynir Hübner" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Saturday, June 07, 2003 4:12 AM
Subject: RE: Problem executing Servlets with Tomcat 4.1.24


I am guessing that you do not have a mapping on the invoker servlet in
web.xml

Open the /tomcat_home/conf/web.xml  and
Unremark the block that mapps the invoker to /servlet/*

Hope it helps
-reynir



> -Original Message-
> From: David Erickson [mailto:[EMAIL PROTECTED]
> Sent: 7. júní 2003 05:42
> To: [EMAIL PROTECTED]
> Subject: Problem executing Servlets with Tomcat 4.1.24
>
>
> Hi I'm new to the whole java scene but I'm trying to get some
> example and test servlets running and having all kinds of
> problems.  I have a working tiny servlet thats compiled as
> ExampleServlet.class.  However the only place I can get
> tomcat to execute it is when i put it in the (tomcat home
> dir)\webapps\examples\WEB-INF\classes dir with the rest of
> the examples. When I create my own directory under (tomcat
> home dir)\webapps\begjsp\WEB-INF\classes and put it there it
> will not execute it i get the error 404 type Status report
>
> message /begjsp/servlet/ExampleServlet
>
> description The requested resource
> (/begjsp/servlet/ExampleServlet) is not available
>
> Which is highly annoying.  When I run the manager and list
> the running webapps it lists the begjsp as being deployed and
> running.  Makes no sense! This is basically a default
> install..  and I read there is a web.xml file that generally
> goes into the WEB-INF\ folder but I am missing one, it should
> run even without one correct?  Here's my class code just
> incase I screwed it up somehow.. but it works in the examples
> folder..:
>
>
>
> import java.io.*;
> import javax.servlet.*;
> import javax.servlet.http.*;
>
> public class ExampleServlet extends HttpServlet
> {
>
>  public void doGet(HttpServletRequest request,
> HttpServletResponse response)
>   throws ServletException, IOException
>  {
>   PrintWriter out;
>   String title = "Servlet Example";
>   response.setContentType("text/html");
>   out = response.getWriter();
>   out.println("");
>   out.println(title);
>   out.println("");
>   out.println("This is an example servlet.");
>   out.println("");
>   out.close();
>  }
>  public void doPost(HttpServletRequest request, HttpServletResponse
> response)
>   throws ServletException, IOException
>  {
>   doGet(request, response);
>  }
> }
>
>
> Any and ALL help appreciated =)
>
> -Halcyon
>
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem executing Servlets with Tomcat 4.1.24

2003-06-06 Thread David Erickson
Hi I'm new to the whole java scene but I'm trying to get some example and
test servlets running and having all kinds of problems.  I have a working
tiny servlet thats compiled as ExampleServlet.class.  However the only place
I can get tomcat to execute it is when i put it in the (tomcat home
dir)\webapps\examples\WEB-INF\classes dir with the rest of the examples.
When I create my own directory under (tomcat home
dir)\webapps\begjsp\WEB-INF\classes and put it there it will not execute it
i get the error 404
type Status report

message /begjsp/servlet/ExampleServlet

description The requested resource (/begjsp/servlet/ExampleServlet) is not
available

Which is highly annoying.  When I run the manager and list the running
webapps it lists the begjsp as being deployed and running.  Makes no sense!
This is basically a default install..  and I read there is a web.xml file
that generally goes into the WEB-INF\ folder but I am missing one, it should
run even without one correct?  Here's my class code just incase I screwed it
up somehow.. but it works in the examples folder..:



import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class ExampleServlet extends HttpServlet
{

 public void doGet(HttpServletRequest request, HttpServletResponse response)
  throws ServletException, IOException
 {
  PrintWriter out;
  String title = "Servlet Example";
  response.setContentType("text/html");
  out = response.getWriter();
  out.println("");
  out.println(title);
  out.println("");
  out.println("This is an example servlet.");
  out.println("");
  out.close();
 }
 public void doPost(HttpServletRequest request, HttpServletResponse
response)
  throws ServletException, IOException
 {
  doGet(request, response);
 }
}


Any and ALL help appreciated =)

-Halcyon