Re: SendMailServlet - problem, debugging tips

2003-02-07 Thread Erik Price


chris schild wrote:

Would anyone be able to provide some debugging tips for Tomcat servlets?


Logging.


Also, what would cause a servlet to be unavailable?


If you didn't map the servlet to a URL-pattern in your web.xml.



Erik


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




Re: SendMailServlet - problem, debugging tips

2003-02-07 Thread tomcat guy
All - thanks for the replies, here are the answers if I missed anything
please let me know!

The SendMailServlet is in the examples, that should be mapped correctly by
default, right?

The web.xml in webapps/examples/WEB-INF is the defualt.  I was assuming
since it came with the examples all would be good as the other servlets are
running fine...

The logs do not seem to tell me a lot.   Any suggestions?

The mail server is running on the local machine.

The From address is valid.

My firewall doesn't appear to be an issue as I have tested with it enabled
and disabled.

Here is my ResourceParams for the mail/Session for localhost:

 ResourceParams name=jdbc/EmployeeAppDb
parameternameuser/namevaluesa/value/parameter
parameternamepassword/namevalue/value/parameter
parameternamedriverClassName/name
  valueorg.hsql.jdbcDriver/value/parameter
parameternamedriverName/name
  valuejdbc:HypersonicSQL:database/value/parameter
  /ResourceParams
  Resource name=mail/Session auth=Container
type=javax.mail.Session/
  ResourceParams name=mail/Session
parameter
  namemail.ctg.com/name
  valuelocalhost/value
/parameter
  /ResourceParams
  ResourceLink name=linkToGlobalResource
global=simpleValue
type=java.lang.Integer/
/Context

Thanks much!
Chris


- Original Message -
From: Erik Price [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, February 07, 2003 10:29 AM
Subject: Re: SendMailServlet - problem, debugging tips




 chris schild wrote:
  Would anyone be able to provide some debugging tips for Tomcat servlets?

 Logging.

  Also, what would cause a servlet to be unavailable?

 If you didn't map the servlet to a URL-pattern in your web.xml.



 Erik


 -
 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: SendMailServlet - problem, debugging tips

2003-02-07 Thread Filip Hanik
parameter
  namemail.ctg.com/name
  valuelocalhost/value
/parameter

the name is invalid

Filip

-Original Message-
From: tomcat guy [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 07, 2003 10:15 AM
To: Tomcat Users List
Subject: Re: SendMailServlet - problem, debugging tips


All - thanks for the replies, here are the answers if I missed anything
please let me know!

The SendMailServlet is in the examples, that should be mapped correctly by
default, right?

The web.xml in webapps/examples/WEB-INF is the defualt.  I was assuming
since it came with the examples all would be good as the other servlets are
running fine...

The logs do not seem to tell me a lot.   Any suggestions?

The mail server is running on the local machine.

The From address is valid.

My firewall doesn't appear to be an issue as I have tested with it enabled
and disabled.

Here is my ResourceParams for the mail/Session for localhost:

 ResourceParams name=jdbc/EmployeeAppDb
parameternameuser/namevaluesa/value/parameter
parameternamepassword/namevalue/value/parameter
parameternamedriverClassName/name
  valueorg.hsql.jdbcDriver/value/parameter
parameternamedriverName/name
  valuejdbc:HypersonicSQL:database/value/parameter
  /ResourceParams
  Resource name=mail/Session auth=Container
type=javax.mail.Session/
  ResourceParams name=mail/Session
parameter
  namemail.ctg.com/name
  valuelocalhost/value
/parameter
  /ResourceParams
  ResourceLink name=linkToGlobalResource
global=simpleValue
type=java.lang.Integer/
/Context

Thanks much!
Chris


- Original Message -
From: Erik Price [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, February 07, 2003 10:29 AM
Subject: Re: SendMailServlet - problem, debugging tips




 chris schild wrote:
  Would anyone be able to provide some debugging tips for Tomcat servlets?

 Logging.

  Also, what would cause a servlet to be unavailable?

 If you didn't map the servlet to a URL-pattern in your web.xml.



 Erik


 -
 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]




Re: SendMailServlet - problem, debugging tips

2003-02-07 Thread tomcat guy
It's not suppose to be the name of the mail server?

- Original Message -
From: Filip Hanik [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, February 07, 2003 12:18 PM
Subject: RE: SendMailServlet - problem, debugging tips


parameter
  namemail.ctg.com/name
  valuelocalhost/value
/parameter

the name is invalid

Filip

-Original Message-
From: tomcat guy [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 07, 2003 10:15 AM
To: Tomcat Users List
Subject: Re: SendMailServlet - problem, debugging tips


All - thanks for the replies, here are the answers if I missed anything
please let me know!

The SendMailServlet is in the examples, that should be mapped correctly by
default, right?

The web.xml in webapps/examples/WEB-INF is the defualt.  I was assuming
since it came with the examples all would be good as the other servlets are
running fine...

The logs do not seem to tell me a lot.   Any suggestions?

The mail server is running on the local machine.

The From address is valid.

My firewall doesn't appear to be an issue as I have tested with it enabled
and disabled.

Here is my ResourceParams for the mail/Session for localhost:

 ResourceParams name=jdbc/EmployeeAppDb
parameternameuser/namevaluesa/value/parameter
parameternamepassword/namevalue/value/parameter
parameternamedriverClassName/name
  valueorg.hsql.jdbcDriver/value/parameter
parameternamedriverName/name
  valuejdbc:HypersonicSQL:database/value/parameter
  /ResourceParams
  Resource name=mail/Session auth=Container
type=javax.mail.Session/
  ResourceParams name=mail/Session
parameter
  namemail.ctg.com/name
  valuelocalhost/value
/parameter
  /ResourceParams
  ResourceLink name=linkToGlobalResource
global=simpleValue
type=java.lang.Integer/
/Context

Thanks much!
Chris


- Original Message -
From: Erik Price [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, February 07, 2003 10:29 AM
Subject: Re: SendMailServlet - problem, debugging tips




 chris schild wrote:
  Would anyone be able to provide some debugging tips for Tomcat servlets?

 Logging.

  Also, what would cause a servlet to be unavailable?

 If you didn't map the servlet to a URL-pattern in your web.xml.



 Erik


 -
 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]


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




Re: SendMailServlet - problem, debugging tips

2003-02-07 Thread tomcat guy
)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)
at java.lang.Thread.run(Thread.java:536)

- Original Message -
From: Filip Hanik [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, February 07, 2003 12:18 PM
Subject: RE: SendMailServlet - problem, debugging tips


parameter
  namemail.ctg.com/name
  valuelocalhost/value
/parameter

the name is invalid

Filip

-Original Message-
From: tomcat guy [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 07, 2003 10:15 AM
To: Tomcat Users List
Subject: Re: SendMailServlet - problem, debugging tips


All - thanks for the replies, here are the answers if I missed anything
please let me know!

The SendMailServlet is in the examples, that should be mapped correctly by
default, right?

The web.xml in webapps/examples/WEB-INF is the defualt.  I was assuming
since it came with the examples all would be good as the other servlets are
running fine...

The logs do not seem to tell me a lot.   Any suggestions?

The mail server is running on the local machine.

The From address is valid.

My firewall doesn't appear to be an issue as I have tested with it enabled
and disabled.

Here is my ResourceParams for the mail/Session for localhost:

 ResourceParams name=jdbc/EmployeeAppDb
parameternameuser/namevaluesa/value/parameter
parameternamepassword/namevalue/value/parameter
parameternamedriverClassName/name
  valueorg.hsql.jdbcDriver/value/parameter
parameternamedriverName/name
  valuejdbc:HypersonicSQL:database/value/parameter
  /ResourceParams
  Resource name=mail/Session auth=Container
type=javax.mail.Session/
  ResourceParams name=mail/Session
parameter
  namemail.ctg.com/name
  valuelocalhost/value
/parameter
  /ResourceParams
  ResourceLink name=linkToGlobalResource
global=simpleValue
type=java.lang.Integer/
/Context

Thanks much!
Chris


- Original Message -
From: Erik Price [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, February 07, 2003 10:29 AM
Subject: Re: SendMailServlet - problem, debugging tips




 chris schild wrote:
  Would anyone be able to provide some debugging tips for Tomcat servlets?

 Logging.

  Also, what would cause a servlet to be unavailable?

 If you didn't map the servlet to a URL-pattern in your web.xml.



 Erik


 -
 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]


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




RE: SendMailServlet - problem, debugging tips

2003-02-07 Thread Filip Hanik
mail.smtp.host is the name of the parameter

parameter
namemail.smtp.host/name
valuemail.ctg.com/value
/parameter

-Original Message-
From: tomcat guy [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 07, 2003 10:43 AM
To: Tomcat Users List
Subject: Re: SendMailServlet - problem, debugging tips


It's not suppose to be the name of the mail server?

- Original Message -
From: Filip Hanik [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, February 07, 2003 12:18 PM
Subject: RE: SendMailServlet - problem, debugging tips


parameter
  namemail.ctg.com/name
  valuelocalhost/value
/parameter

the name is invalid

Filip

-Original Message-
From: tomcat guy [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 07, 2003 10:15 AM
To: Tomcat Users List
Subject: Re: SendMailServlet - problem, debugging tips


All - thanks for the replies, here are the answers if I missed anything
please let me know!

The SendMailServlet is in the examples, that should be mapped correctly by
default, right?

The web.xml in webapps/examples/WEB-INF is the defualt.  I was assuming
since it came with the examples all would be good as the other servlets are
running fine...

The logs do not seem to tell me a lot.   Any suggestions?

The mail server is running on the local machine.

The From address is valid.

My firewall doesn't appear to be an issue as I have tested with it enabled
and disabled.

Here is my ResourceParams for the mail/Session for localhost:

 ResourceParams name=jdbc/EmployeeAppDb
parameternameuser/namevaluesa/value/parameter
parameternamepassword/namevalue/value/parameter
parameternamedriverClassName/name
  valueorg.hsql.jdbcDriver/value/parameter
parameternamedriverName/name
  valuejdbc:HypersonicSQL:database/value/parameter
  /ResourceParams
  Resource name=mail/Session auth=Container
type=javax.mail.Session/
  ResourceParams name=mail/Session
parameter
  namemail.ctg.com/name
  valuelocalhost/value
/parameter
  /ResourceParams
  ResourceLink name=linkToGlobalResource
global=simpleValue
type=java.lang.Integer/
/Context

Thanks much!
Chris


- Original Message -
From: Erik Price [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, February 07, 2003 10:29 AM
Subject: Re: SendMailServlet - problem, debugging tips




 chris schild wrote:
  Would anyone be able to provide some debugging tips for Tomcat servlets?

 Logging.

  Also, what would cause a servlet to be unavailable?

 If you didn't map the servlet to a URL-pattern in your web.xml.



 Erik


 -
 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]


-
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: SendMailServlet - problem, debugging tips

2003-02-07 Thread Erik Price


tomcat guy wrote:


The logs do not seem to tell me a lot.   Any suggestions?


Err, I didn't mean checking the Tomcat logs (though that helps).  I 
meant that one way to debug servlets is to use a logging framework for 
your application like Log4J.

I wish I could be of greater help with respect to the specific problem 
you're having.


Erik


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



Re: SendMailServlet - problem, debugging tips

2003-02-07 Thread tomcat guy
It didn't seem to do the trick. This is gettin a little frustrating.  I
wouldn't mind as the others are working but this is what I am looking for...
Are the error msgs to be going to logs/stderr?

Any other suggestions?


- Original Message -
From: Filip Hanik [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, February 07, 2003 12:43 PM
Subject: RE: SendMailServlet - problem, debugging tips


mail.smtp.host is the name of the parameter

parameter
namemail.smtp.host/name
valuemail.ctg.com/value
/parameter

-Original Message-
From: tomcat guy [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 07, 2003 10:43 AM
To: Tomcat Users List
Subject: Re: SendMailServlet - problem, debugging tips


It's not suppose to be the name of the mail server?

- Original Message -
From: Filip Hanik [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, February 07, 2003 12:18 PM
Subject: RE: SendMailServlet - problem, debugging tips


parameter
  namemail.ctg.com/name
  valuelocalhost/value
/parameter

the name is invalid

Filip

-Original Message-
From: tomcat guy [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 07, 2003 10:15 AM
To: Tomcat Users List
Subject: Re: SendMailServlet - problem, debugging tips


All - thanks for the replies, here are the answers if I missed anything
please let me know!

The SendMailServlet is in the examples, that should be mapped correctly by
default, right?

The web.xml in webapps/examples/WEB-INF is the defualt.  I was assuming
since it came with the examples all would be good as the other servlets are
running fine...

The logs do not seem to tell me a lot.   Any suggestions?

The mail server is running on the local machine.

The From address is valid.

My firewall doesn't appear to be an issue as I have tested with it enabled
and disabled.

Here is my ResourceParams for the mail/Session for localhost:

 ResourceParams name=jdbc/EmployeeAppDb
parameternameuser/namevaluesa/value/parameter
parameternamepassword/namevalue/value/parameter
parameternamedriverClassName/name
  valueorg.hsql.jdbcDriver/value/parameter
parameternamedriverName/name
  valuejdbc:HypersonicSQL:database/value/parameter
  /ResourceParams
  Resource name=mail/Session auth=Container
type=javax.mail.Session/
  ResourceParams name=mail/Session
parameter
  namemail.ctg.com/name
  valuelocalhost/value
/parameter
  /ResourceParams
  ResourceLink name=linkToGlobalResource
global=simpleValue
type=java.lang.Integer/
/Context

Thanks much!
Chris


- Original Message -
From: Erik Price [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, February 07, 2003 10:29 AM
Subject: Re: SendMailServlet - problem, debugging tips




 chris schild wrote:
  Would anyone be able to provide some debugging tips for Tomcat servlets?

 Logging.

  Also, what would cause a servlet to be unavailable?

 If you didn't map the servlet to a URL-pattern in your web.xml.



 Erik


 -
 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]


-
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]




Re: SendMailServlet - problem, debugging tips

2003-02-07 Thread Sean Dockery
Did you restart Tomcat?

tomcat guy [EMAIL PROTECTED] wrote in message
002b01c2cee1$7035c250$6601a8c0@ctg">news:002b01c2cee1$7035c250$6601a8c0@ctg...
 It didn't seem to do the trick. This is gettin a little frustrating.  I
 wouldn't mind as the others are working but this is what I am looking
for...
 Are the error msgs to be going to logs/stderr?

 Any other suggestions?


 - Original Message -
 From: Filip Hanik [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, February 07, 2003 12:43 PM
 Subject: RE: SendMailServlet - problem, debugging tips


 mail.smtp.host is the name of the parameter

 parameter
 namemail.smtp.host/name
 valuemail.ctg.com/value
 /parameter

 -Original Message-
 From: tomcat guy [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 07, 2003 10:43 AM
 To: Tomcat Users List
 Subject: Re: SendMailServlet - problem, debugging tips


 It's not suppose to be the name of the mail server?

 - Original Message -
 From: Filip Hanik [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, February 07, 2003 12:18 PM
 Subject: RE: SendMailServlet - problem, debugging tips


 parameter
   namemail.ctg.com/name
   valuelocalhost/value
 /parameter

 the name is invalid

 Filip

 -Original Message-
 From: tomcat guy [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 07, 2003 10:15 AM
 To: Tomcat Users List
 Subject: Re: SendMailServlet - problem, debugging tips


 All - thanks for the replies, here are the answers if I missed anything
 please let me know!

 The SendMailServlet is in the examples, that should be mapped correctly by
 default, right?

 The web.xml in webapps/examples/WEB-INF is the defualt.  I was assuming
 since it came with the examples all would be good as the other servlets
are
 running fine...

 The logs do not seem to tell me a lot.   Any suggestions?

 The mail server is running on the local machine.

 The From address is valid.

 My firewall doesn't appear to be an issue as I have tested with it enabled
 and disabled.

 Here is my ResourceParams for the mail/Session for localhost:

  ResourceParams name=jdbc/EmployeeAppDb
 parameternameuser/namevaluesa/value/parameter
 parameternamepassword/namevalue/value/parameter
 parameternamedriverClassName/name
   valueorg.hsql.jdbcDriver/value/parameter
 parameternamedriverName/name
   valuejdbc:HypersonicSQL:database/value/parameter
   /ResourceParams
   Resource name=mail/Session auth=Container
 type=javax.mail.Session/
   ResourceParams name=mail/Session
 parameter
   namemail.ctg.com/name
   valuelocalhost/value
 /parameter
   /ResourceParams
   ResourceLink name=linkToGlobalResource
 global=simpleValue
 type=java.lang.Integer/
 /Context

 Thanks much!
 Chris


 - Original Message -
 From: Erik Price [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, February 07, 2003 10:29 AM
 Subject: Re: SendMailServlet - problem, debugging tips


 
 
  chris schild wrote:
   Would anyone be able to provide some debugging tips for Tomcat
servlets?
 
  Logging.
 
   Also, what would cause a servlet to be unavailable?
 
  If you didn't map the servlet to a URL-pattern in your web.xml.
 
 
 
  Erik
 
 
  -
  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]


 -
 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]




Re: SendMailServlet - problem, debugging tips

2003-02-07 Thread tomcat guy
 Did you restart Tomcat?
Yep.

- Original Message -
From: Sean Dockery [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 07, 2003 1:51 PM
Subject: Re: SendMailServlet - problem, debugging tips


 Did you restart Tomcat?

 tomcat guy [EMAIL PROTECTED] wrote in message
 002b01c2cee1$7035c250$6601a8c0@ctg">news:002b01c2cee1$7035c250$6601a8c0@ctg...
  It didn't seem to do the trick. This is gettin a little frustrating.  I
  wouldn't mind as the others are working but this is what I am looking
 for...
  Are the error msgs to be going to logs/stderr?
 
  Any other suggestions?
 
 
  - Original Message -
  From: Filip Hanik [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Friday, February 07, 2003 12:43 PM
  Subject: RE: SendMailServlet - problem, debugging tips
 
 
  mail.smtp.host is the name of the parameter
 
  parameter
  namemail.smtp.host/name
  valuemail.ctg.com/value
  /parameter
 
  -Original Message-
  From: tomcat guy [mailto:[EMAIL PROTECTED]]
  Sent: Friday, February 07, 2003 10:43 AM
  To: Tomcat Users List
  Subject: Re: SendMailServlet - problem, debugging tips
 
 
  It's not suppose to be the name of the mail server?
 
  - Original Message -
  From: Filip Hanik [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Friday, February 07, 2003 12:18 PM
  Subject: RE: SendMailServlet - problem, debugging tips
 
 
  parameter
namemail.ctg.com/name
valuelocalhost/value
  /parameter
 
  the name is invalid
 
  Filip
 
  -Original Message-
  From: tomcat guy [mailto:[EMAIL PROTECTED]]
  Sent: Friday, February 07, 2003 10:15 AM
  To: Tomcat Users List
  Subject: Re: SendMailServlet - problem, debugging tips
 
 
  All - thanks for the replies, here are the answers if I missed anything
  please let me know!
 
  The SendMailServlet is in the examples, that should be mapped correctly
by
  default, right?
 
  The web.xml in webapps/examples/WEB-INF is the defualt.  I was assuming
  since it came with the examples all would be good as the other servlets
 are
  running fine...
 
  The logs do not seem to tell me a lot.   Any suggestions?
 
  The mail server is running on the local machine.
 
  The From address is valid.
 
  My firewall doesn't appear to be an issue as I have tested with it
enabled
  and disabled.
 
  Here is my ResourceParams for the mail/Session for localhost:
 
   ResourceParams name=jdbc/EmployeeAppDb
  parameternameuser/namevaluesa/value/parameter
  parameternamepassword/namevalue/value/parameter
  parameternamedriverClassName/name
valueorg.hsql.jdbcDriver/value/parameter
  parameternamedriverName/name
valuejdbc:HypersonicSQL:database/value/parameter
/ResourceParams
Resource name=mail/Session auth=Container
  type=javax.mail.Session/
ResourceParams name=mail/Session
  parameter
namemail.ctg.com/name
valuelocalhost/value
  /parameter
/ResourceParams
ResourceLink name=linkToGlobalResource
  global=simpleValue
  type=java.lang.Integer/
  /Context
 
  Thanks much!
  Chris
 
 
  - Original Message -
  From: Erik Price [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Friday, February 07, 2003 10:29 AM
  Subject: Re: SendMailServlet - problem, debugging tips
 
 
  
  
   chris schild wrote:
Would anyone be able to provide some debugging tips for Tomcat
 servlets?
  
   Logging.
  
Also, what would cause a servlet to be unavailable?
  
   If you didn't map the servlet to a URL-pattern in your web.xml.
  
  
  
   Erik
  
  
   -
   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]
 
 
  -
  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]



-
To unsubscribe, e-mail: [EMAIL P

Re: SendMailServlet - problem, debugging tips

2003-02-07 Thread Sean Dockery
No.  The content of name is the parameter name--not the name of your SMTP
server.  The content of value is the value of the parameter--that is, your
SMTP server's name.

Try this instead...

parameter
  namemail.smtp.host/name
  valuemail.ctg.com/value
/parameter


--
Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

tomcat guy [EMAIL PROTECTED] wrote in message
01c001c2ced8$d1465360$6601a8c0@ctg">news:01c001c2ced8$d1465360$6601a8c0@ctg...
 It's not suppose to be the name of the mail server?

 - Original Message -
 From: Filip Hanik [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, February 07, 2003 12:18 PM
 Subject: RE: SendMailServlet - problem, debugging tips


 parameter
   namemail.ctg.com/name
   valuelocalhost/value
 /parameter

 the name is invalid

 Filip

 -Original Message-
 From: tomcat guy [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 07, 2003 10:15 AM
 To: Tomcat Users List
 Subject: Re: SendMailServlet - problem, debugging tips


 All - thanks for the replies, here are the answers if I missed anything
 please let me know!

 The SendMailServlet is in the examples, that should be mapped correctly by
 default, right?

 The web.xml in webapps/examples/WEB-INF is the defualt.  I was assuming
 since it came with the examples all would be good as the other servlets
are
 running fine...

 The logs do not seem to tell me a lot.   Any suggestions?

 The mail server is running on the local machine.

 The From address is valid.

 My firewall doesn't appear to be an issue as I have tested with it enabled
 and disabled.

 Here is my ResourceParams for the mail/Session for localhost:

  ResourceParams name=jdbc/EmployeeAppDb
 parameternameuser/namevaluesa/value/parameter
 parameternamepassword/namevalue/value/parameter
 parameternamedriverClassName/name
   valueorg.hsql.jdbcDriver/value/parameter
 parameternamedriverName/name
   valuejdbc:HypersonicSQL:database/value/parameter
   /ResourceParams
   Resource name=mail/Session auth=Container
 type=javax.mail.Session/
   ResourceParams name=mail/Session
 parameter
   namemail.ctg.com/name
   valuelocalhost/value
 /parameter
   /ResourceParams
   ResourceLink name=linkToGlobalResource
 global=simpleValue
 type=java.lang.Integer/
 /Context

 Thanks much!
 Chris


 - Original Message -
 From: Erik Price [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, February 07, 2003 10:29 AM
 Subject: Re: SendMailServlet - problem, debugging tips


 
 
  chris schild wrote:
   Would anyone be able to provide some debugging tips for Tomcat
servlets?
 
  Logging.
 
   Also, what would cause a servlet to be unavailable?
 
  If you didn't map the servlet to a URL-pattern in your web.xml.
 
 
 
  Erik
 
 
  -
  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]




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




Re: SendMailServlet - problem, debugging tips

2003-02-07 Thread tomcat guy
I'll try the log4j... but I be given up for now...

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




Re: SendMailServlet - problem, debugging tips

2003-02-07 Thread Sean Dockery
I'm running out of ideas.  Maybe the problem is with the SMTP connection...

Put the following in a text file named commands.txt (without the snip
tags)...

snip
HELO www.corridortechnology.com
MAIL FROM:[EMAIL PROTECTED]
RCPT TO:[EMAIL PROTECTED]
RCPT TO:[EMAIL PROTECTED]
DATA
Subject: Re: SendMailServlet - problem, debugging tips

Directly connecting to the SMTP server worked!.

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




Re: SendMailServlet - problem, debugging tips

2003-02-07 Thread Sean Dockery
Oh, that's interesting.  It seems that my inline SMTP script reacted with
the gmane SMTP server.

Sean Dockery [EMAIL PROTECTED] wrote in message
b218r3$eea$[EMAIL PROTECTED]">news:b218r3$eea$[EMAIL PROTECTED]...
 I'm running out of ideas.  Maybe the problem is with the SMTP
connection...

 Put the following in a text file named commands.txt (without the snip
 tags)...

 snip
 HELO www.corridortechnology.com
 MAIL FROM:[EMAIL PROTECTED]
 RCPT TO:[EMAIL PROTECTED]
 RCPT TO:[EMAIL PROTECTED]
 DATA
 Subject: Re: SendMailServlet - problem, debugging tips

 Directly connecting to the SMTP server worked!.




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




Re: SendMailServlet - problem, debugging tips

2003-02-07 Thread Sean Dockery
Here was the real message that should have been posted.  The SMTP script
that I included in my previous post apparently interacted with the gmane
SMTP server (their NNTP service relayed my message to tomcat-user).

Sean Dockery [EMAIL PROTECTED] wrote in message news:...
 I'm running out of ideas.  Maybe the problem is with the SMTP
connection...

 Put the following in a text file named commands.txt (without the snip
 tags)...

 snip
 HELO www.corridortechnology.com
 MAIL FROM:[EMAIL PROTECTED]
 RCPT TO:[EMAIL PROTECTED]
 RCPT TO:[EMAIL PROTECTED]
 DATA
 Subject: Re: SendMailServlet - problem, debugging tips

 Directly connecting to the SMTP server worked!.
 .

 QUIT

 /snip

 ...then pipe this to your SMTP server via...

 telnet mail.ctg.com 25  commands.txt



 Sean Dockery [EMAIL PROTECTED] wrote in message
 b20vkr$1ev$[EMAIL PROTECTED]">news:b20vkr$1ev$[EMAIL PROTECTED]...
  No.  The content of name is the parameter name--not the name of your
 SMTP
  server.  The content of value is the value of the parameter--that is,
 your
  SMTP server's name.
 
  Try this instead...
 
  parameter
namemail.smtp.host/name
valuemail.ctg.com/value
  /parameter
 
 
  --
  Sean Dockery
  [EMAIL PROTECTED]
  Certified Java Web Component Developer
  Certified Delphi Programmer
  SBD Consultants
  http://www.sbdconsultants.com
 
  tomcat guy [EMAIL PROTECTED] wrote in message
  01c001c2ced8$d1465360$6601a8c0@ctg">news:01c001c2ced8$d1465360$6601a8c0@ctg...
   It's not suppose to be the name of the mail server?
  
   - Original Message -
   From: Filip Hanik [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Sent: Friday, February 07, 2003 12:18 PM
   Subject: RE: SendMailServlet - problem, debugging tips
  
  
   parameter
 namemail.ctg.com/name
 valuelocalhost/value
   /parameter
  
   the name is invalid
  
   Filip
  
   -Original Message-
   From: tomcat guy [mailto:[EMAIL PROTECTED]]
   Sent: Friday, February 07, 2003 10:15 AM
   To: Tomcat Users List
   Subject: Re: SendMailServlet - problem, debugging tips
  
  
   All - thanks for the replies, here are the answers if I missed
anything
   please let me know!
  
   The SendMailServlet is in the examples, that should be mapped
correctly
 by
   default, right?
  
   The web.xml in webapps/examples/WEB-INF is the defualt.  I was
assuming
   since it came with the examples all would be good as the other
servlets
  are
   running fine...
  
   The logs do not seem to tell me a lot.   Any suggestions?
  
   The mail server is running on the local machine.
  
   The From address is valid.
  
   My firewall doesn't appear to be an issue as I have tested with it
 enabled
   and disabled.
  
   Here is my ResourceParams for the mail/Session for localhost:
  
ResourceParams name=jdbc/EmployeeAppDb
   parameternameuser/namevaluesa/value/parameter
  
parameternamepassword/namevalue/value/parameter
   parameternamedriverClassName/name
 valueorg.hsql.jdbcDriver/value/parameter
   parameternamedriverName/name
 valuejdbc:HypersonicSQL:database/value/parameter
 /ResourceParams
 Resource name=mail/Session auth=Container
   type=javax.mail.Session/
 ResourceParams name=mail/Session
   parameter
 namemail.ctg.com/name
 valuelocalhost/value
   /parameter
 /ResourceParams
 ResourceLink name=linkToGlobalResource
   global=simpleValue
   type=java.lang.Integer/
   /Context
  
   Thanks much!
   Chris
  
  
   - Original Message -
   From: Erik Price [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Sent: Friday, February 07, 2003 10:29 AM
   Subject: Re: SendMailServlet - problem, debugging tips
  
  
   
   
chris schild wrote:
 Would anyone be able to provide some debugging tips for Tomcat
  servlets?
   
Logging.
   
 Also, what would cause a servlet to be unavailable?
   
If you didn't map the servlet to a URL-pattern in your web.xml.
   
   
   
Erik
   
   
  
 -
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]






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




Re: SendMailServlet - problem, debugging tips

2003-02-07 Thread Adam Sherman
On February 7, 2003 04:44 pm, Sean Dockery wrote:
 Here was the real message that should have been posted.  The SMTP script
 that I included in my previous post apparently interacted with the gmane
 SMTP server (their NNTP service relayed my message to tomcat-user).

  .

FYI, putting a single period on a line by itself in a message can get you into 
trouble. (-:

A.

-- 
Adam Sherman
Tritus CG Inc.
http://www.tritus.ca/
+1 (613) 797-6819


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




SendMailServlet - problem, debugging tips

2003-02-06 Thread chris schild
Would anyone be able to provide some debugging tips for Tomcat servlets?

Also, what would cause a servlet to be unavailable?


RE: SendMailServlet - problem, debugging tips

2003-02-06 Thread Raible, Matt
Eclipse has a nice tomcat plugin that you can set breakpoints in servlets...
works awesome for me.

 -Original Message-
 From: chris schild [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 06, 2003 5:38 PM
 To: tomcat
 Subject: SendMailServlet - problem, debugging tips
 
 
 Would anyone be able to provide some debugging tips for 
 Tomcat servlets?
 
 Also, what would cause a servlet to be unavailable?
 


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




Re: SendMailServlet - problem, debugging tips

2003-02-06 Thread chris schild
At this point, I'll take any debugging help I can get!!!  I'll check out
eclipse...

- Original Message -
From: Raible, Matt [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, February 06, 2003 6:40 PM
Subject: RE: SendMailServlet - problem, debugging tips


 Eclipse has a nice tomcat plugin that you can set breakpoints in
servlets...
 works awesome for me.

  -Original Message-
  From: chris schild [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, February 06, 2003 5:38 PM
  To: tomcat
  Subject: SendMailServlet - problem, debugging tips
 
 
  Would anyone be able to provide some debugging tips for
  Tomcat servlets?
 
  Also, what would cause a servlet to be unavailable?
 


 -
 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]