Ant Build Script Fails to Invoke Manager with "install" command

2002-12-30 Thread David Diskin
Can anyone suggest what's wrong?  As a relative newbie, I've been 
modifying and using the example build.xml file provided with the 
tomcat-docs.  I am using it from Intellij IDEA.  It's working fine, 
except I can't get the install target to work.  The catalina-ant.jar 
file has been added to the Build File Properties Additional Classpath in 
IDEA's Ant Dialog.

I am getting a http 401 authentication error.  I have provided a 
build.properties file in the top level directory and Ant seems to find 
it ok.

I see the message:  "Loading c:\Projects\BookClubEmail\build.properties"

Here's the build.properties file:

manager.password="lydlyd"
manager.username="diskind"

Here's the text version of the ANT IDEA Message Window:

install
C:\Projects\BookClubEmail\build.xml:367: java.io.IOException: Server 
returned HTTP response code: 401 for URL: 
http://localhost:8080/manager/install?path=%2FBookClubEmail&war=file%3A%2F%2FC%3A%5CProjects%5CBookClubEmail%2Fbuild
C:\Projects\BookClubEmail\build.xml:367: java.io.IOException: Server 
returned HTTP response code: 401 for URL: 
http://localhost:8080/manager/install?path=%2FBookClubEmail&war=file%3A%2F%2FC%3A%5CProjects%5CBookClubEmail%2Fbuild
C:\Projects\BookClubEmail\build.xml:367: java.io.IOException: Server 
returned HTTP response code: 401 for URL: 
http://localhost:8080/manager/install?path=%2FBookClubEmail&war=file%3A%2F%2FC%3A%5CProjects%5CBookClubEmail%2Fbuild

Build completed with 3 errors. Time: 11 s


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Re: Newbie: Java Mail Problem

2002-12-30 Thread David Diskin
I resolved the problem.  It turns out that I had not really stopped and 
restarted the Tomcat service after reconfiguring server.xml, even though 
I thought I had.   Now, it works fine.  Thanks everyone!

David

Burden, Parker wrote:

David-

It looks like something strange is happening with your configuration.  I am
not familiar with the example that you are talking about, but if you look at
the exception, it looks like it is trying to connect to port 25 (smtp) of
localhost, and not your verizon SMTP server.  Localhost normally resolves to
your own machine (your XP box in this case), and I doubt you have an SMTP
server running there, and thus the connection failure.

Perhaps there is another location you must use to specify the verizon
server?  On a related note, be prepared to potentially have problems once
you have the example pointed to the right server.  Not all servers allow
"ad-hoc" connections to their SMTP server.  If you find yourself in this
boat (it pointing to verizon but still getting connection failures) let me
know and I can try to step you through debugging SMTP connectivity errors.


Parker Burden
Senior Systems Engineer JC4I/INRI/DMS
757-249-1234
[EMAIL PROTECTED]


-Original Message-----
From: David Diskin [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, December 28, 2002 4:32 PM
To: [EMAIL PROTECTED]
Subject: Newbie: Java Mail Problem

I've just set up Tomcat  4.1.18 on my Windows XP Home  PC.   I installed 
it as a service.  I have no problem connecting to the Tomcat main web 
page.  I reconfigured conf/server.xml and changed to value of 
mail.smtp.host to "smtp.verizon.net", my  isp mail server.  However, 
when I go to run the jsp send mail example, I get the following 
exception.  Can anyone help on  this?
==
ENCOUNTERED EXCEPTION: javax.mail.SendFailedException: Sending failed; 
nested exception is: javax.mail.MessagingException: Could not connect to 
SMTP host: localhost, port: 25; nested exception is: 
java.net.ConnectException: Connection refused: connect

javax.mail.SendFailedException: Sending failed;
 nested exception is: 
	javax.mail.MessagingException: Could not connect to SMTP host:
localhost, port: 25;
 nested exception is: 
	java.net.ConnectException: Connection refused: connect
	at javax.mail.Transport.send0(Transport.java:219)
	at javax.mail.Transport.send(Transport.java:81)
	at SendMailServlet.doPost(SendMailServlet.java:75)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
	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.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:493)
	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.StandardContext.invoke(StandardContext.java:2415)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	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

Re: Newbie: Java Mail Problem

2002-12-30 Thread David Diskin
Parker,

Hi.  What a surprise to get a reply from someone I actually know.   I 
"solved" the problem, but I forgot to notify the list.  It turned out 
that Tomcat wasn't actually shut down and restarted properly.  Now, it 
works fine.  Have a happy New Year!

David

Burden, Parker wrote:

David-

It looks like something strange is happening with your configuration.  I am
not familiar with the example that you are talking about, but if you look at
the exception, it looks like it is trying to connect to port 25 (smtp) of
localhost, and not your verizon SMTP server.  Localhost normally resolves to
your own machine (your XP box in this case), and I doubt you have an SMTP
server running there, and thus the connection failure.

Perhaps there is another location you must use to specify the verizon
server?  On a related note, be prepared to potentially have problems once
you have the example pointed to the right server.  Not all servers allow
"ad-hoc" connections to their SMTP server.  If you find yourself in this
boat (it pointing to verizon but still getting connection failures) let me
know and I can try to step you through debugging SMTP connectivity errors.


Parker Burden
Senior Systems Engineer JC4I/INRI/DMS
757-249-1234
[EMAIL PROTECTED]


-Original Message-
From: David Diskin [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, December 28, 2002 4:32 PM
To: [EMAIL PROTECTED]
Subject: Newbie: Java Mail Problem

I've just set up Tomcat  4.1.18 on my Windows XP Home  PC.   I installed 
it as a service.  I have no problem connecting to the Tomcat main web 
page.  I reconfigured conf/server.xml and changed to value of 
mail.smtp.host to "smtp.verizon.net", my  isp mail server.  However, 
when I go to run the jsp send mail example, I get the following 
exception.  Can anyone help on  this?
==
ENCOUNTERED EXCEPTION: javax.mail.SendFailedException: Sending failed; 
nested exception is: javax.mail.MessagingException: Could not connect to 
SMTP host: localhost, port: 25; nested exception is: 
java.net.ConnectException: Connection refused: connect

javax.mail.SendFailedException: Sending failed;
 nested exception is: 
	javax.mail.MessagingException: Could not connect to SMTP host:
localhost, port: 25;
 nested exception is: 
	java.net.ConnectException: Connection refused: connect
	at javax.mail.Transport.send0(Transport.java:219)
	at javax.mail.Transport.send(Transport.java:81)
	at SendMailServlet.doPost(SendMailServlet.java:75)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
	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.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:493)
	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.StandardContext.invoke(StandardContext.java:2415)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	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.apa

Re: Newbie: Java Mail Problem

2002-12-28 Thread David Diskin
yes, I stopped and restarted the Tomcat service.

Denis Haskin wrote:


From the error, looks like it's still trying to connect to an smtp 
server at localhost.  Did you restart Tomcat after changing 
mail.smtp.host?

dwh

David Diskin wrote:

I've just set up Tomcat  4.1.18 on my Windows XP Home  PC.   I 
installed it as a service.  I have no problem connecting to the 
Tomcat main web page.  I reconfigured conf/server.xml and changed to 
value of mail.smtp.host to "smtp.verizon.net", my  isp mail server.  
However, when I go to run the jsp send mail example, I get the 
following exception.  Can anyone help on  this?
==
ENCOUNTERED EXCEPTION: javax.mail.SendFailedException: Sending 
failed; nested exception is: javax.mail.MessagingException: Could not 
connect to SMTP host: localhost, port: 25; nested exception is: 
java.net.ConnectException: Connection refused: connect



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





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




Newbie: Java Mail Problem

2002-12-28 Thread David Diskin
I've just set up Tomcat  4.1.18 on my Windows XP Home  PC.   I installed 
it as a service.  I have no problem connecting to the Tomcat main web 
page.  I reconfigured conf/server.xml and changed to value of 
mail.smtp.host to "smtp.verizon.net", my  isp mail server.  However, 
when I go to run the jsp send mail example, I get the following 
exception.  Can anyone help on  this?
==
ENCOUNTERED EXCEPTION: javax.mail.SendFailedException: Sending failed; 
nested exception is: javax.mail.MessagingException: Could not connect to 
SMTP host: localhost, port: 25; nested exception is: 
java.net.ConnectException: Connection refused: connect

javax.mail.SendFailedException: Sending failed;
 nested exception is: 
	javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;
 nested exception is: 
	java.net.ConnectException: Connection refused: connect
	at javax.mail.Transport.send0(Transport.java:219)
	at javax.mail.Transport.send(Transport.java:81)
	at SendMailServlet.doPost(SendMailServlet.java:75)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.StandardContext.invoke(StandardContext.java:2415)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.invokeNext(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.processConnection(Http11Protocol.java:386)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
	at java.lang.Thread.run(Thread.java:536)