javax.mail

2004-02-11 Thread Duncan Smith
Hi, sorry if this is the wrong mailing list but I think most people here
are Java programmers so:

I am using javax.mail to send a mail to myself if a particular problem
occurs on the server.  My code seems to work but, but it does not use
the smtp server which I am specifying. I cannot find a problem in my
code as it seems to be identical to examples which I have found.

I use the line:
props.put(mail.smtp.host, mysmtphost);

to specify the smtp server (which is on a differant computer) but the
mail is being sent through the smtp server running on the same machine
as the jsp. Has anyone else had this problem at all, or am I just doing
something wrong?

-Duncan


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



Re: Tomcat 4.1.29 and J2SDK1.4.2

2004-02-02 Thread Duncan Smith
Hi.

I had same problem when upgrading JDKs.

After downloading and installing  jakarta-tomcat-4.1.29-LE-jdk14.exe instead of 
jakarta-tomcat-4.1.29.exe it worked fine.
(http://apache.mirrors.rossfell.co.uk/dist/jakarta/tomcat-4/v4.1.29/bin/jakarta-tomcat-4.1.29-LE-jdk14.exe)

Hope this helps.
Duncan Smith
www.pennymail.com


Maarten van Heiningen wrote:

 Hi,

 I´m using Tomcat 4.1.29 on a windows 2000 machine in combination with j2sdk1.4.2_03 
 s.e.

 I used to run this tomcat version under jdk1.3.1_02 and all worked well. Because of 
 better results under Ant I wanted to upgrade the sdk version.

 Now my tomcat will not start and is complaining about the JVM. I have changed the 
 JAVA_HOME and the JSSE_HOME env. settings and restarted but no result.

 Any sugestions?

 Maarten
 ==
 System Manager event viewer error messages:

 The Apache Tomcat 4.1 service failed to start.

 Could not load the Java Virtual Machine.

 The LoadLibrary function failed for the following reason: The specified module could 
 not be found.


 ==

 This communication together with any attachments transmitted with it (this E-Mail) 
 is intended only for the use of the addressee and may contain information which is 
 privileged and confidential.  If the reader of this E-Mail is not the intended 
 recipient or the employee or agent responsible for delivering it to the intended 
 recipient you are hereby notified that any use, dissemination, forwarding, printing 
 or copying of this E-Mail is strictly prohibited.  Addressees should check this 
 E-mail for viruses.  The Company makes no representations as regards the absence of 
 viruses in this E-Mail.  If you have received this E-Mail in error please notify our 
 ISe Response Team immediately by telephone on +44 (0)20 8896 5828 or via e-mail at 
 [EMAIL PROTECTED]  Please then immediately delete, erase or otherwise destroy this 
 E-Mail and any copies of it.

 Any opinions expressed in this E-Mail are those of the author and do not necessarily 
 constitute the views of the Company.  Nothing in this E-Mail shall bind the Company 
 in any contract or obligation.

 For the purposes of this E-Mail the Company means The Carphone Warehouse Group Plc 
 and/or any of its subsidiaries.

 Please feel free to visit our website:  http:// www.carphonewarehouse.com or 
 http://www.phonehouse.com

 The Carphone Warehouse Group Plc (Registered in England No. 3253714) North Acton 
 Business Park, Wales Farm Road, London W3 6RS


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



Re: comercial license

2004-01-30 Thread Duncan Smith
Yeah, the local pizza delivery shop will go out of business otherwise.

(Only joking guys :-) )

Michael Mangeng wrote:

 Hi

 Stop thinking you do somthing bad - simply use the software provided.

 If you think the programmers from the apache project have done good work
 - feel free to donate money to the apache project.
 Infos at http://www.apache.org - they can need it.

 Welcome in the World of Open and Free Software :-)

 greets,
 mike

 FRANCOIS Dufour wrote:

 
  the name off the web site is http://entre-nous.qc.tc
 
 
  [EMAIL PROTECTED]
  administrateur http://entre-nous.qc.tc
 
 
 
 
 
  From: Shapira, Yoav [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: RE: comercial license
  Date: Fri, 30 Jan 2004 09:16:17 -0500
 
 
  Howdy,
 
  but i would have prefered a license granted by apache to the name off
  the
  website
 
  What name off of what web site?
 
  Yoav Shapira
 
 
 
  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]
 
 
  _
  MSN Search, le moteur de recherche qui pense comme vous !
  http://fr.ca.search.msn.com/
 
 
  -
  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: Login page only via SSL

2003-12-29 Thread Duncan Smith
Adding this to your web.xml should work:

security-constraint
 web-resource-collection
  web-resource-nameSSL/web-resource-name
  url-pattern/login.jsp/url-pattern
 /web-resource-collection
 user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
 /user-data-constraint

/security-constraint

login-config
 auth-methodBASIC/auth-method
 realm-nameSSL/realm-name
/login-config

Hope this helps
-Duncan Smith
www.pennymail.com



Pranas wrote:

 Hello all gurus,



 Could somebody explain me how to force Tomcat 4.1 using SSL for strictly only for 
 login page?



 Thanks,

 Pranas


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



Re: Realms question

2003-12-19 Thread Duncan Smith
If you switch to using a realm, you can use wildcards in the constraints
so that it applies to a whole directory?

Whether this is useful obviously depend on whether you have all your JSPs
in the same directory or you could have a *.jsp wildcard to cover all
jsps. Will depend on your naming conventions for the servlets.

- Duncan
www.pennymail.com

Riaan Oberholzer wrote:

 Hi,

 I have a web-app that defines different roles, so a
 user do not have access to all jsp/servlets in the
 web-app. Depending on his role. An admin user e.g. can
 see pages to edit data, while a 'normal' user can only
 view it.

 What's the best way to enforce this security?

 I am no doing it by storing the user object (once
 logged in) in the session and per jsp/servlet checking
 his status as the very first action. Its works well,
 so should I keep this or move to using a realm?

 If I do move to a Realm, I assume I would have to set
 up a security constraint for every jsp/servlet (or
 groups thereof? Any hints  tips to optimize this?

 Thanks

 __
 Do you Yahoo!?
 New Yahoo! Photos - easier uploading and sharing.
 http://photos.yahoo.com/

 -
 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: CSS in War file

2003-12-15 Thread Duncan Smith
Sorry. Was a error in my server.xml that I had made.
The server was in fact only serving the home page and nothing else, but
seems to be working now.

Thanks for the suggestions

-Duncan
www.pennymail.com

Duncan Smith wrote:

 I've just started deploying a web app as a war file instead of uploading
 individual files. Everything works except my styles don't load.

 The stylesheet is added to the war file in the same location as before,
 but if I try to request the css file on it's own I get a
 java.lang.NullPointerException
 error.

 Any suggestions anyone?

 - Duncan
 www.pennymail.com

 -
 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: Problems using Files from a central machine

2003-12-12 Thread Duncan Smith
The problem is, tomcat is running as a service and as such does not have access to the 
drives that are mapped when
you are logged on.

The way arround it is the use the full path of the server.

eg:  //hostname/sharename/sites\biteme

Hope this helps
- Duncan
www.pennymail.com

[EMAIL PROTECTED] wrote:

 system config:
 2 machines
 both are win2k boxes

 machine 1 has apache with tomcat 5.0.16
 and jk mod  the webapps/files and content are on this box
 machine 2 has just tomcat 5.0.16

 both machines can serve local files but i want them to use a central server (just 
 have the files on one machine)

 the server xml file for machine 1 is:
 Server port=11005 shutdown=SHUTDOWN debug=0
 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
 debug=0/
 Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
 debug=0/
 GlobalNamingResources
 Resource name=UserDatabase auth=Container
 type=org.apache.catalina.UserDatabase
 description=User database that can be updated and saved
 /Resource
 ResourceParams name=UserDatabase
 parameter
 namefactory/name
 valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
 /parameter
 parameter
 namepathname/name
 valueconf/tomcat-users.xml/value
 /parameter
 /ResourceParams
 /GlobalNamingResources
 Service name=Tomcat-Standalone
 Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75
 enableLookups=false redirectPort=8443 acceptCount=100
 debug=0 connectionTimeout=2
 disableUploadTimeout=true /

 Connector port=11009
 enableLookups=false redirectPort=8443 debug=0
 protocol=AJP/1.3 /
 Engine jvmRoute=tomcat1 name=Tomcat-Standalone defaultHost=etrak-plus.com 
 debug=0
 Logger className=org.apache.catalina.logger.FileLogger
 prefix=catalina_log. suffix=.txt
 timestamp=true/
 Realm className=org.apache.catalina.realm.UserDatabaseRealm
 debug=0 resourceName=UserDatabase/
 Host name=etrak-plus.com debug=0 appBase=g:/sites/thesportsregister/
 unpackWARs=true autoDeploy=true
 Aliaswww.etrak-plus.com/Alias
 Context path=/ docBase=/ debug=0/
 Logger className=org.apache.catalina.logger.FileLogger
 directory=c:/home/sites/thesportsregister/logs prefix=thesportsregister.com_log. 
 suffix=.txt
 timestamp=true/
 /Host
 /Engine
 /Service
 /Server
 the server.xml file for machine 2 is:

 Server port=11005 shutdown=SHUTDOWN debug=0
 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
 debug=0/
 Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
 debug=0/
 GlobalNamingResources
 Resource name=UserDatabase auth=Container
 type=org.apache.catalina.UserDatabase
 description=User database that can be updated and saved
 /Resource
 ResourceParams name=UserDatabase
 parameter
 namefactory/name
 valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
 /parameter
 parameter
 namepathname/name
 valueconf/tomcat-users.xml/value
 /parameter
 /ResourceParams
 /GlobalNamingResources
 Service name=Catalina
 Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75
 enableLookups=false redirectPort=8443 acceptCount=100
 debug=0 connectionTimeout=2
 disableUploadTimeout=true /
 Connector port=11009
 enableLookups=false redirectPort=8443 debug=0
 protocol=AJP/1.3 /
 Engine jvmRoute=tomcat2 name=Tomcat-Standalone defaultHost=etrak-plus.com 
 debug=0
 Logger className=org.apache.catalina.logger.FileLogger
 prefix=catalina_log. suffix=.txt
 timestamp=true/
 Realm className=org.apache.catalina.realm.UserDatabaseRealm
 debug=0 resourceName=UserDatabase/
 Host name=etrak-plus.com debug=0 appBase=H:/sites/biteme
 unpackWARs=true autoDeploy=true
 Aliaswww.etrak-plus.com/Alias
 Context path=/ docBase=/ debug=0/
 Logger className=org.apache.catalina.logger.FileLogger
 directory=H:/sites/biteme/logs prefix=localhost_log. suffix=.txt
 timestamp=true/
 /Host
 /Engine
 /Service
 /Server

 where H:/ is mapped to the c drive of the other machine.

 error i recive when starting server 2:

 java.lang.IllegalArgumentException: Document base H:\sites\biteme does not exist or 
 is not a readable directory
 at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:185)
 at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3851)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4073)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:816)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)
 at org.apache.catalina.core.StandardService.start(StandardService.java:519)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2343)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at 

Re: javax.mail.SendFailedException: Sending failed

2003-12-12 Thread Duncan Smith
The 'Relaying Denied' indicates that it is your SMTP server rejecting the request.

If you haven't tried it already, it may be worth trying the send a mail from a 
standard mail client on the
machine to test this?

-Duncan
www.pennymail.com

Ashwin Kutty wrote:

 Was wondering if someone could help me out here.  I am trying a product
 out called DSPACE which gives the following error in catalina.out

 2003-12-12 08:53:34,957 INFO  org.dspace.app.webui.servlet.RegisterServlet
 @ anonymous:session_id=B3D285B12E90E6BCCAF3E4097712D59B:error_emai$
 javax.mail.SendFailedException: Sending failed;
   nested exception is:
 javax.mail.SendFailedException: Invalid Addresses;
   nested exception is:
 javax.mail.SendFailedException: 550 5.7.1 [EMAIL PROTECTED]...
 Relaying denied

 at javax.mail.Transport.send0(Transport.java:219)
 at javax.mail.Transport.send(Transport.java:81)
 at org.dspace.core.Email.send(Email.java:259)
 at
 org.dspace.eperson.AccountManager.sendEmail(AccountManager.java:291)
 at
 org.dspace.eperson.AccountManager.sendInfo(AccountManager.java:251)
 at
 org.dspace.eperson.AccountManager.sendRegistrationInfo(AccountManager.java:96)
 at
 org.dspace.app.webui.servlet.RegisterServlet.processEnterEmail(RegisterServlet.java:272)
 at
 org.dspace.app.webui.servlet.RegisterServlet.doDSPost(RegisterServlet.java:206)
 at
 org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:153)
 at
 org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:110)
 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:256)
 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.valves.CertificatesValve.invoke(CertificatesValve.java:246)
 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:2416)
 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:171)
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:601)
 at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
 at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
 at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
 at java.lang.Thread.run(Thread.java:534)

 I have used valid domains and e-mail addresses, but the error still
 appears.  Tomcat has in its server.xml file the name of the server and the
 IP in the value tag under mail/Session Resource.  There are no
 

Re: javax.mail.SendFailedException: Sending failed

2003-12-12 Thread Duncan Smith
Still may be worth trying to send a mail from a differant application on the same
machine, such as trying to send create a mail message through telnet.

That way you can be sure whether it is your app or the mail setup.

-Duncan
www.pennymail.com

Ashwin Kutty wrote:

 The SMTP host is the same machine as the page being served are at.
 Sendmail is configured to allow relaying from the localhost.

 On Fri, 12 Dec 2003, Ben Souther wrote:

  Looks like you were trying to send to a SMTP host that doesn't allow relaying.
 
 
 
  On Friday 12 December 2003 08:16 am, Ashwin Kutty wrote:
   Was wondering if someone could help me out here.  I am trying a product
   out called DSPACE which gives the following error in catalina.out
  
   2003-12-12 08:53:34,957 INFO  org.dspace.app.webui.servlet.RegisterServlet
   @ anonymous:session_id=B3D285B12E90E6BCCAF3E4097712D59B:error_emai$
   javax.mail.SendFailedException: Sending failed;
 nested exception is:
   javax.mail.SendFailedException: Invalid Addresses;
 nested exception is:
   javax.mail.SendFailedException: 550 5.7.1 [EMAIL PROTECTED]...
   Relaying denied
  
   at javax.mail.Transport.send0(Transport.java:219)
   at javax.mail.Transport.send(Transport.java:81)
   at org.dspace.core.Email.send(Email.java:259)
   at
   org.dspace.eperson.AccountManager.sendEmail(AccountManager.java:291)
   at
   org.dspace.eperson.AccountManager.sendInfo(AccountManager.java:251)
   at
   org.dspace.eperson.AccountManager.sendRegistrationInfo(AccountManager.java:
  96) at
   org.dspace.app.webui.servlet.RegisterServlet.processEnterEmail(RegisterServ
  let.java:272) at
   org.dspace.app.webui.servlet.RegisterServlet.doDSPost(RegisterServlet.java:
  206) at
   org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.jav
  a:153) at
   org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:110)
   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(Applicatio
  nFilterChain.java:247) at
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
  hain.java:193) at
   org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
  ava:256) at
   org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
  keNext(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.j
  ava:191) at
   org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
  keNext(StandardPipeline.java:643) at
   org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:
  246) at
   org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
  keNext(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:2416)
   at
   org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:18
  0) at
   org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
  keNext(StandardPipeline.java:643) at
   org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve
  .java:171) at
   org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
  keNext(StandardPipeline.java:641) at
   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:17
  2) at
   org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
  keNext(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.jav
  a:174) at
   org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
  keNext(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:601)
   at
   org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn
  ection(Http11Protocol.java:392) at
   org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
   at
   

Re: javax.mail.SendFailedException: Sending failed

2003-12-12 Thread Duncan Smith
OK. Are you able to publis the source for the file thats generating the error?

-Duncan
www.pennymail.com

Ashwin Kutty wrote:

 Tested and it worked fine.  I telnetted in from another box that was added
 in the relay list and sent a message with no problems.  I also set my smtp
 server add in my mail client as this server and it sent the message out
 with no errors.

 On Fri, 12 Dec 2003, Duncan Smith wrote:

  Still may be worth trying to send a mail from a differant application on the same
  machine, such as trying to send create a mail message through telnet.
 
  That way you can be sure whether it is your app or the mail setup.
 
  -Duncan
  www.pennymail.com
 
  Ashwin Kutty wrote:
 
   The SMTP host is the same machine as the page being served are at.
   Sendmail is configured to allow relaying from the localhost.
  
   On Fri, 12 Dec 2003, Ben Souther wrote:
  
Looks like you were trying to send to a SMTP host that doesn't allow relaying.
   
   
   
On Friday 12 December 2003 08:16 am, Ashwin Kutty wrote:
 Was wondering if someone could help me out here.  I am trying a product
 out called DSPACE which gives the following error in catalina.out

 2003-12-12 08:53:34,957 INFO  org.dspace.app.webui.servlet.RegisterServlet
 @ anonymous:session_id=B3D285B12E90E6BCCAF3E4097712D59B:error_emai$
 javax.mail.SendFailedException: Sending failed;
   nested exception is:
 javax.mail.SendFailedException: Invalid Addresses;
   nested exception is:
 javax.mail.SendFailedException: 550 5.7.1 [EMAIL PROTECTED]...
 Relaying denied

 at javax.mail.Transport.send0(Transport.java:219)
 at javax.mail.Transport.send(Transport.java:81)
 at org.dspace.core.Email.send(Email.java:259)
 at
 org.dspace.eperson.AccountManager.sendEmail(AccountManager.java:291)
 at
 org.dspace.eperson.AccountManager.sendInfo(AccountManager.java:251)
 at
 org.dspace.eperson.AccountManager.sendRegistrationInfo(AccountManager.java:
96) at
 org.dspace.app.webui.servlet.RegisterServlet.processEnterEmail(RegisterServ
let.java:272) at
 org.dspace.app.webui.servlet.RegisterServlet.doDSPost(RegisterServlet.java:
206) at
 org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.jav
a:153) at
 org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:110)
 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(Applicatio
nFilterChain.java:247) at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
hain.java:193) at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
ava:256) at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
keNext(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.j
ava:191) at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
keNext(StandardPipeline.java:643) at
 org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:
246) at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
keNext(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:2416)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:18
0) at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
keNext(StandardPipeline.java:643) at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve
.java:171) at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
keNext(StandardPipeline.java:641) at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:17
2) at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
keNext(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.jav
a:174) at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
keNext

CSS in War file

2003-12-12 Thread Duncan Smith
I've just started deploying a web app as a war file instead of uploading
individual files. Everything works except my styles don't load.

The stylesheet is added to the war file in the same location as before,
but if I try to request the css file on it's own I get a
java.lang.NullPointerException
error.

Any suggestions anyone?

- Duncan
www.pennymail.com


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



Re: CSS in War file

2003-12-12 Thread Duncan Smith
When I request a page which should have the styles applied, they are not.

If I try to request the css file on it's own from a browser, I get the NPE

(ie. www.pennymail.com/pennymail.css)

-Duncan
www.pennymail.com

Wendy Smoak wrote:

  From: Duncan Smith [mailto:[EMAIL PROTECTED]

  The stylesheet is added to the war file in the same location
  as before,

 Where in the .war file is the stylesheet?

  but if I try to request the css file on it's own I get a
  java.lang.NullPointerException error.

 How are you requesting the CSS?  With a browser?  Where are you seeing
 the NPE, browser window, or in a log file?

 --
 Wendy Smoak
 Application Systems Analyst, Sr.
 ASU IA Information Resources Management

 -
 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: File Writing

2003-12-05 Thread Duncan Smith
Solved it.

Needed \r\n to terminate line instead of just \n

-Duncan

Duncan wrote:

 I am trying to write a list into a file, but when I read the file after
 it has been written it is always missing the first one or two lines.
 When writing the file, I also output to the screen, and all the lines
 appear on the screen.

 Any ideas? , code is listed below.

 Cheers, Duncan.

 FileWriter fwFreeList = new FileWriter(sFreeListPath + /hello.txt);
 String sValues[] = request.getParameterValues(freeList);
 for (int i=0; i  sValues.length; i++)
 {
out.print(sValues[i] + br);
fwFreeList.write(sValues[i] + \n);
 }
 fwFreeList.close();

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



UserDatabase

2003-10-08 Thread Duncan Smith
Is there an easy way to administer the tomcat-users.xml file?

I need to give a superuser access to add/delete users, but don't want to 
give access to the admin application.

Any suggestions?
Cheers,
Duncan, Decker Telecom Ltd
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Serving other files as JSPs

2003-09-26 Thread Duncan Smith
Is it possible to serve other files extentions as JSPs?

ie. if I had a file hello.bob, would I be able to run JSP code in it.

I have tried adding and extra servlet entry in the web.xml identical
to the JSP one but with a differant name and have also tried ading an
extra servlet-mapping for both my servlet entry and also for the JSP
servlet entry but the page are being returned to me as text (with the
code still in it).

Any suggestions?


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



Re: Serving other files as JSPs

2003-09-26 Thread Duncan Smith
thanks.

I was sure that I had tried that before, but I just tried it again and it worked. 
Probably made a spelling mistake before.

Cheers, Duncan.

Shapira, Yoav wrote:

 Howdy,
 All you should add is another servlet-mapping tag for the JSP servlet
 with the extension of the files you want (e.g. *.bob).

 Yoav Shapira
 Millennium ChemInformatics

 -Original Message-
 From: Duncan Smith [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 26, 2003 10:43 AM
 To: Tomcat Users List
 Subject: Serving other files as JSPs
 
 Is it possible to serve other files extentions as JSPs?
 
 ie. if I had a file hello.bob, would I be able to run JSP code in it.
 
 I have tried adding and extra servlet entry in the web.xml identical
 to the JSP one but with a differant name and have also tried ading an
 extra servlet-mapping for both my servlet entry and also for the
 JSP
 servlet entry but the page are being returned to me as text (with the
 code still in it).
 
 Any suggestions?
 
 
 -
 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: Error Finding config file: workers2.properties

2003-09-26 Thread Duncan Smith
I had same problem.
I found that if the workers2.properties file was supposed to be in
{apache-home}/conf/

Good luck :-)
Duncan Smith
Decker Telecom Ltd

Rhugga wrote:

 I get this error during tomcat 4.2.27 startup:

 INFO: Starting Coyote HTTP/1.1 on port 8443
 [Fri Sep 26 07:54:52 2003] (error ) [jk_config_file.c (279)]
 config.update(): Can't find config file ${serverRoot}/conf/workers2.pr
 operties
 [Fri Sep 26 07:54:52 2003] ( info ) [jk_config.c (251)]
 config.setAttribute() Error setting config: file ${serverRoot}/conf/workers
 2.properties
 [Fri Sep 26 07:54:52 2003] ( info ) [jk_logger_file.c (184)]
 Initializing log file stderr
 [Fri Sep 26 07:54:52 2003] (error ) [jk_shm.c (333)]  shm.init(): No file
 [Fri Sep 26 07:54:52 2003] ( info ) [jk_workerEnv.c (403)]
 workerEnv.init() ok ${serverRoot}/conf/workers2.properties

 Here is the connector definition from server.xml:

 !-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=true serverRoot=/usr/local/jakarta-tomcat-4.1.27
   acceptCount=100 debug=5 scheme=https secure=true
   useURIValidationHack=false disableUploadTimeout=true
  Factory
  className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
  clientAuth=false protocol=TLS /
  parameter
  nameserverRoot/name
  value/usr/local/jakarta-tomcat-4.1.27/value
  /parameter
 /Connector

 My workers2.properties file is here:
 ganja:/usr/local/tomcat/conf #ls -l
 /usr/local/jakarta-tomcat-4.1.27/conf/workers2.properties
 -rw-r--r--   1 tomcat   httpd258 Aug 30 23:14
 /usr/local/jakarta-tomcat-4.1.27/conf/workers2.properties

 The contents of this file are as follows:
 [shm]
 file=/usr/local/jakarta-tomcat-4.1.27/logs/shm.file
 size=1048576

 # Example unixsocket channel.
 [channel.un:unixsocket]
 file=/usr/local/jakarta-tomcat-4.1.27/work/jk2_tomcat.socket

 # define the worker
 [ajp13:unixsocket]
 channel=channel.un:unixsocket

 Any ideas?

 Thx,
 Chuck

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



Tomcat+SSL 404 error

2003-09-25 Thread Duncan Smith
I've just updgraded from tomcat 4.0 to 4.1.

In my web.xml I have the following:

  security-constraint
web-resource-collection
  web-resource-namePennymail Secure/web-resource-name
  url-pattern/secure/*/url-pattern
  http-methodGET/http-method
  http-methodPOST/http-method
/web-resource-collection
user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
  /security-constraint

This worked fine in 4.0, but when I put it in in 4.1 any page that I
request returns:

HTTP Status 404 - /page.jsp
message /page.jsp
description The requested resource (/page.jsp) is not available.
Apache Tomcat/4.1.27-LE-jdk14

Without this entry, i can connect via ssl (port 443) but I need these
pages restricted to only ssl.

Anyone any idea why? Cheers, Duncan.




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



Re: IE problem, new session created for new browser instance

2002-01-21 Thread Duncan Smith

We find this feature of IE very useful. As users have to log into one of our sites, 
having a differant session for each browser instance is very useful as we can track 
multiple users logged on on
the same machine in differant browser windows. Am am confused as to why Netscape is 
working in that situation, but then we all know how unpredictable it can be :-)

You could create your own cookie and retreive it when a new browser window is 
activated? You haven't said why you would want a session to be persistant across 
differant instances of the browser so
this is the only suggestion I can make.

Duncan

korimilli vijay wrote:

 Hi,

 I am stuck in my project because of the session creation problem in IE. I am using 
IE browser 6.0 and tomcat 4.0.1.

 When i open two browser instances of IE, they are creating two http sessions. I am 
expecting, that the new browser instance should find any already open session and not 
to create a new sesion.

 I have enabled all cookies in the browser privacy preferences. When i try the same 
on netscape 6, it is working perfect and not creating any new sessions.

 It would be of great help, if someone can give me any solution.

 Advanced thanks,

 Vijay

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: error using jsse: cannot recover key

2002-01-18 Thread Duncan Smith

You haven't said what OS you are using, but I had the same problem with
Win2K.

I found that after generating the key I had to then move it from my user
directory under c:\docs and setts\(user) and move it to c:\docs and
setts\defaut user\.

Just a suggestion.

Duncan.

Mehul S Dave wrote:

 Hello,

   i have generated the RSA key by using keytool  then as per the
 configuration i have done the setting in the server.xml file.
 I am using jsse for SSL. when i start my server then it gives me
 java.io.IOException:Cannot recover  key

 Please resolve the problem
 Thanks
 Mehul

 *
 Mehul S Dave
 Scientific Officer,(STCS Dept.).
 School of Technology and Computer Science
 Tata Institute of Fundamental Research
 Phone -091 22 2152971 Extn - 2550
 Mumbai .
 webpage:- http://www.ecom.tifr.res.in/~mehul
   http://www.tifr.res.in/~mehul
 
 (Keep Smiling Forever)))
 

 *

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Session timeouts

2002-01-15 Thread Duncan Smith

Hello all.

I want to set the session timeout for a web app. In the example web.xml
it says that the the value is is seconds, but in book I have about
Tomcat 4 it says that it's in minutes.

Does anyone know which one is right?

Many thanks
Duncan.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: JSSE 1.0.2

2001-12-31 Thread Duncan Smith

Sorry. I was configuring JRE right, but I was configuring the wrong JRE. I'm new
to java and didn't know that JRE came with the JDK, so I installed it seperatly.

Many thanks for your help

Duncan




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: JSSE 1.0.2

2001-12-24 Thread Duncan Smith

Thanks. I've already added that line to the security file but it was in
jre\lib\security. I don't beleive that I am running the security manager, but I
am still getting that same message
(java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError:
javax/net/ServerSocketFactory) in the log.

Any other suggestions?

Many thanks, Duncan.

Renato wrote:

 You need to include the security provider in your java.security file:

 security.provider.3=com.sun.net.ssl.internal.ssl.Provider

 Also, are you running tomcat with a security manager ? if so, make sure you
 have jre\lib\ext with permissions.

 Renato - Brazil

 On Fri, 21 Dec 2001 17:16:49 +, Duncan Smith [EMAIL PROTECTED]
 escreveu :

  Hello.
  I've just downloaded JSSE 1.0.2 and put the three .jar files in
  jre\lib\ext directory.
 
  I've uncommented the example SSl connector in server.xml, but when I
  restart, I get this error in the stdout.log:
 
  Exception during startup processing
  java.lang.reflect.InvocationTargetException:
  java.lang.NoClassDefFoundError: javax/net/ServerSocketFactory
 
  Can anybody help?
 
  Many thanks in advance, Duncan.
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




JSSE 1.0.2

2001-12-21 Thread Duncan Smith

Hello.
I've just downloaded JSSE 1.0.2 and put the three .jar files in
jre\lib\ext directory.

I've uncommented the example SSl connector in server.xml, but when I
restart, I get this error in the stdout.log:

Exception during startup processing
java.lang.reflect.InvocationTargetException:
java.lang.NoClassDefFoundError: javax/net/ServerSocketFactory

Can anybody help?

Many thanks in advance, Duncan.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Directory browsing

2001-12-13 Thread Duncan Smith

Hi all.

How does one disable directory browsing for a Context (or even a
Service)?

Many thanks
Duncan


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Web Apps

2001-12-12 Thread Duncan Smith

Can anybody please point me in the direction for a good help/tutorial
file for editing and adding Web Apps in Tomcat 4?

Cheers
Duncan


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: can't have multiple occurrences of language

2001-12-11 Thread Duncan Smith

Cheers. Fixed the prob.

Anonymity can be to ones advantage by the way.

Fred.

Justin Rowles wrote:

  I've just moved a system of ours from Jrun to Tomcat. A page which did
  run on Jrun now come comes up with this error on Tomcat : 'Page
  directive: can't have multiple occurrences of language'. Can anybody
  help?

 Duncan, also known as Andy,

 Have you checked that you don't have multiple occurrences of the language
 directive?!  It looks like this:

%@ page language=java

 Cheers, apols for the sarcasm, I'm in a funny mood.  Well, I think so ;-)

 J.
 --
 You're only jealous cos the little penguins are talking to me.

 ***
 For more information on Ordnance Survey products and services,
 visit our web site at http://www.ordnancesurvey.co.uk
 ***

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]