Re: SSL trusted certificate
I' m use CAS for SSO solution. I' ve create a certifiacte for my tomcat and deployed my two applications (CAS server AND client) on the same Tomcat with certificate. You might want to take a look at this: http://shib.kuleuven.be/docs/idp/install-idp-1.3-windows2003.shtml#trust we use the JVM's default truststore --Velpi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Creating context and datasources using Tomcat Manager and Administrator
When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old thread. This makes it harder for other users to find relevant information when searching the lists. This is known as thread hijacking and is behaviour that is frowned upon on this list. Frequent offenders will be removed from the list. It should also be noted that many list subscribers automatically ignore any messages that hijack another thread. The correct procedure is to create a new message with a new subject. This will start a new thread. Mark tomcat-user-owner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat jdbc settings
When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old thread. This makes it harder for other users to find relevant information when searching the lists. This is known as thread hijacking and is behaviour that is frowned upon on this list. Frequent offenders will be removed from the list. It should also be noted that many list subscribers automatically ignore any messages that hijack another thread. The correct procedure is to create a new message with a new subject. This will start a new thread. Mark tomcat-user-owner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Requiring TLS with Tomcat 5.5.12
When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old thread. This makes it harder for other users to find relevant information when searching the lists. This is known as thread hijacking and is behaviour that is frowned upon on this list. Frequent offenders will be removed from the list. It should also be noted that many list subscribers automatically ignore any messages that hijack another thread. The correct procedure is to create a new message with a new subject. This will start a new thread. Mark tomcat-user-owner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Defining two host
When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old thread. This makes it harder for other users to find relevant information when searching the lists. This is known as thread hijacking and is behaviour that is frowned upon on this list. Frequent offenders will be removed from the list. It should also be noted that many list subscribers automatically ignore any messages that hijack another thread. The correct procedure is to create a new message with a new subject. This will start a new thread. Mark tomcat-user-owner > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to enter in Tomcat Administration?
Hello! I`d like to ask you how i can enter in Tomcat Web Server Administrtaion Tool . I don`t now the username and password ? Is there any default adminsitrator username and password? By the way i have Tomcat 5.5.9 installed and working fine. Please help! __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to enter in Tomcat Administration?
Nenad Bosanac wrote: > Hello! > I`d like to ask you how i can enter in Tomcat Web > Server Administrtaion Tool . > I don`t now the username and password ? > Is there any default adminsitrator username and > password? > By the way i have Tomcat 5.5.9 installed and working > fine. Read this: http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html especially http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html#Configuring%20Manager%20Application%20Access Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to enter in Tomcat Administration?
Thank you for your very fast response but ihave same problem again. I try to change tomcat-users.xml and he looks like this /* /** Of course i change this xml file and start tomcat again and try to login like craigmcc(username) and secret(password) and i got this response /* HTTP Status 403 - Access to the requested resource has been denied type Status report message Access to the requested resource has been denied description Access to the specified resource (Access to the requested resource has been denied) has been forbidden. /** What i make wrong? --- Markus Schönhaber <[EMAIL PROTECTED]> wrote: > Nenad Bosanac wrote: > > Hello! > > I`d like to ask you how i can enter in Tomcat Web > > Server Administrtaion Tool . > > I don`t now the username and password ? > > Is there any default adminsitrator username and > > password? > > By the way i have Tomcat 5.5.9 installed and > working > > fine. > > Read this: > http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html > especially > http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html#Configuring%20Manager%20Application%20Access > > Regards > mks > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to enter in Tomcat Administration?
Thank you for your very fast response but ihave same problem again. I try to change tomcat-users.xml and he looks like this /* /** Of course i change this xml file and start tomcat again and try to login like craigmcc(username) and secret(password) and i got this response /* HTTP Status 403 - Access to the requested resource has been denied type Status report message Access to the requested resource has been denied description Access to the specified resource (Access to the requested resource has been denied) has been forbidden. /** What i make wrong? --- Markus Schönhaber <[EMAIL PROTECTED]> wrote: > Nenad Bosanac wrote: > > Hello! > > I`d like to ask you how i can enter in Tomcat Web > > Server Administrtaion Tool . > > I don`t now the username and password ? > > Is there any default adminsitrator username and > > password? > > By the way i have Tomcat 5.5.9 installed and > working > > fine. > > Read this: > http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html > especially > http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html#Configuring%20Manager%20Application%20Access > > Regards > mks > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to enter in Tomcat Administration?
Thank you for your very fast response but ihave same problem again. I try to change tomcat-users.xml and he looks like this /* /** Of course i change this xml file and start tomcat again and try to login like craigmcc(username) and secret(password) and i got this response /* HTTP Status 403 - Access to the requested resource has been denied type Status report message Access to the requested resource has been denied description Access to the specified resource (Access to the requested resource has been denied) has been forbidden. /** What i make wrong? --- Markus Schönhaber <[EMAIL PROTECTED]> wrote: > Nenad Bosanac wrote: > > Hello! > > I`d like to ask you how i can enter in Tomcat Web > > Server Administrtaion Tool . > > I don`t now the username and password ? > > Is there any default adminsitrator username and > > password? > > By the way i have Tomcat 5.5.9 installed and > working > > fine. > > Read this: > http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html > especially > http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html#Configuring%20Manager%20Application%20Access > > Regards > mks > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.lang.StackOverflowError
Hai i am using Tomcat 5.0.14, some times i am getting this exception Mar 11, 2006 3:12:20 PM org.apache.jasper.runtime.JspFactoryImplinternalGetPageContext SEVERE: Exception initializing page context java.lang.StackOverflowError at javax.servlet.http.HttpServletRequestWrapper.getSession( HttpServletRequestWrapper.java:260) at org.apache.catalina.core.ApplicationHttpRequest.getSession( ApplicationHttpRequest.java:556) at javax.servlet.http.HttpServletRequestWrapper.getSession( HttpServletRequestWrapper.java:260) at org.apache.catalina.core.ApplicationHttpRequest.getSession( ApplicationHttpRequest.java:556) at javax.servlet.http.HttpServletRequestWrapper.getSession( HttpServletRequestWrapper.java:260) at org.apache.catalina.core.ApplicationHttpRequest.getSession( ApplicationHttpRequest.java:556) at javax.servlet.http.HttpServletRequestWrapper.getSession( HttpServletRequestWrapper.java:260) at org.apache.catalina.core.ApplicationHttpRequest.getSession( ApplicationHttpRequest.java:556) at javax.servlet.http.HttpServletRequestWrapper.getSession( HttpServletRequestWrapper.java:260) at org.apache.catalina.core.ApplicationHttpRequest.getSession( ApplicationHttpRequest.java:556) at javax.servlet.http.HttpServletRequestWrapper.getSession( HttpServletRequestWrapper.java:260) at org.apache.catalina.core.ApplicationHttpRequest.getSession( ApplicationHttpRequest.java:556) at javax.servlet.http.HttpServletRequestWrapper.getSession( HttpServletRequestWrapper.java:260) at org.apache.catalina.core.ApplicationHttpRequest.getSession( ApplicationHttpRequest.java:556) at javax.servlet.http.HttpServletRequestWrapper.getSession( HttpServletRequestWrapper.java:260) at org.apache.catalina.core.ApplicationHttpRequest.getSession( ApplicationHttpRequest.java:556) at javax.servlet.http.HttpServletRequestWrapper.getSession( HttpServletRequestWrapper.java:260) at org.apache.catalina.core.ApplicationHttpRequest.getSession( ApplicationHttpRequest.java:556) at javax.servlet.http.HttpServletRequestWrapper.getSession( HttpServletRequestWrapper.java:260) at org.apache.catalina.core.ApplicationHttpRequest.getSession( ApplicationHttpRequest.java:556) at javax.servlet.http.HttpServletRequestWrapper.getSession( HttpServletRequestWrapper.java:260) at org.apache.catalina.core.ApplicationHttpRequest.getSession( ApplicationHttpRequest.java:556) at javax.servlet.http.HttpServletRequestWrapper.getSession( HttpServletRequestWrapper.java:260) at org.apache.catalina.core.ApplicationHttpRequest.getSession( ApplicationHttpRequest.java:556) at javax.servlet.http.HttpServletRequestWrapper.getSession( HttpServletRequestWrapper.java:260) at org.apache.catalina.core.ApplicationHttpRequest.getSession( ApplicationHttpRequest.java:556) at javax.servlet.http.HttpServletRequestWrapper.getSession( HttpServletRequestWrapper.java:260) at org.apache.catalina.core.ApplicationHttpRequest.getSession( ApplicationHttpRequest.java:556) at javax.servlet.http.HttpServletRequestWrapper.getSession( HttpServletRequestWrapper.java:260) at org.apache.catalina.core.ApplicationHttpRequest.getSession( ApplicationHttpRequest.java:556) at javax.servlet.http.HttpServletRequestWrapper.getSession( HttpServletRequestWrapper.java:260) at org.apache.catalina.core.ApplicationHttpRequest.getSession( ApplicationHttpRequest.java:556) at javax.servlet.http.HttpServletRequestWrapper.getSession( HttpServletRequestWrapper.java:260) at org.apache.catalina.core.ApplicationHttpRequest.getSession( ApplicationHttpRequest.java:556) at javax.servlet.http.HttpServletRequestWrapper.getSession( HttpServletRequestWrapper.java:260) at org.apache.catalina.core.ApplicationHttpRequest.getSession( ApplicationHttpRequest.java:556) at javax.servlet.http.HttpServletRequestWrapper.getSession( HttpServletRequestWrapper.java:260) at org.apache.catalina.core.ApplicationHttpRequest.getSession( ApplicationHttpRequest.java:556) at javax.servlet.http.HttpServletRequestWrapper.getSession( HttpServletRequestWrapper.java:260) at org.apache.catalina.core.ApplicationHttpRequest.getSession( ApplicationHttpRequest.java:556) at javax.servlet.http.HttpServletRequestWrapper.getSession( HttpServletRequestWrapper.java:260) at org.apache.catalina.core.ApplicationHttpRequest.getSession( ApplicationHttpRequest.java:556) at javax.servlet.http.HttpServletRequestWrapper.getSession( HttpServletRequestWrapper.java:260) at org.apache.catalina.core.ApplicationHttpRequest.getSession( ApplicationHttpRequest.java:556) at javax.servlet.http.HttpServletRequestWrapper.getSession( HttpServletRequestWrapper.java:260) at org.apache.catalina.core.ApplicationHttpRequest.getSession( ApplicationHttpRe
Re: How to enter in Tomcat Administration?
Nenad Bosanac wrote: > Thank you for your very fast response but ihave same > problem again. > I try to change tomcat-users.xml and he looks like > this > > /* > > > > > > >roles="standard,manager" /> Make that . But that shouldn't be the culprit. >roles="tomcat"/> >roles="tomcat,role1"/> >roles="role1"/> > > /** > > Of course i change this xml file and start tomcat > again and try to login like craigmcc(username) and > secret(password) and i got this response > > /* > HTTP Status 403 - Access to the requested resource has > been denied > > type Status report > > message Access to the requested resource has been > denied > > description Access to the specified resource (Access > to the requested resource has been denied) has been > forbidden. > /** > What i make wrong? Hard to tell. Have you configured a RemoteAddrValve to protect the manager app or something like that? Do the logfiles contain any error messages? Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: shared/lib problem
Unless you *HAVE* to put jars in common/lib or shared/lib, don't. You'll save a few bytes of disk space, but waste more time on goofy classloding crap (like this) that will end up costing you more than added disk space would. Larry On 3/10/06, Iratxe Etxeberria Sainz-Ezquerra <[EMAIL PROTECTED]> wrote: > I have a problem with libraries in shared/lib. I am using tomcat > 5.0.28. I have some libraries of the application, (for example > spring-aop.jar..). When I have these libraries in application: in > ..WEB-INF/lib they are loaded ok. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems with JavaMail
Dear all, I'm currently getting the following error when trying to test the JavaMail set up: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect I'm using Tomcat 5.5 and have installed the jar files correctly as stated here: http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html I'm guessing that there's a problem with my SMTP settings. However, (apologise if I sound dense here) but the only mail client I have on my PC is Outlook Express. Am I right in saying then that as well as JavaMail that I need an smtp server? If so where can I get one? If not where am I going wrong? I have the following setups in my files: context.xml: web.xml: JavaMail Connection mail/Session javax.mail.Session Container Finally this is the code i'm testing: Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup("java:comp/env"); Session session = (Session) envCtx.lookup("mail/Session"); Message message = new MimeMessage(session); message.setFrom(new InternetAddress("[EMAIL PROTECTED]")); InternetAddress to[] = new InternetAddress[1]; to[0] = new InternetAddress("[EMAIL PROTECTED]"); message.setRecipients(Message.RecipientType.TO, to); message.setSubject("Test email"); message.setContent("Test email", "text/plain"); Transport.send(message); Can anyone tell me where I'm going wrong? Many thanks Mark Whitby
Re: Problems with JavaMail
Yes, you need an SMTP server. If you've got Outlook Express running, you can use the same server it's using. -- Len On 3/11/06, Mark Whitby <[EMAIL PROTECTED]> wrote: > Dear all, > > I'm currently getting the following error when trying to test the JavaMail > set up: javax.mail.MessagingException: Could not connect to SMTP host: > localhost, port: 25; nested exception is: java.net.ConnectException: > Connection refused: connect > > I'm using Tomcat 5.5 and have installed the jar files correctly as stated > here: http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html > > I'm guessing that there's a problem with my SMTP settings. However, > (apologise if I sound dense here) but the only mail client I have on my PC is > Outlook Express. Am I right in saying then that as well as JavaMail that I > need an smtp server? If so where can I get one? If not where am I going > wrong? > > I have the following setups in my files: > > context.xml: > > > > type="javax.sql.DataSource" > global="jdbc/TestDB"/> > > type="javax.mail.Session" > mail.smtp.host="localhost"/> > > > > web.xml: > > > JavaMail Connection > mail/Session > javax.mail.Session > Container > > > Finally this is the code i'm testing: > > Context initCtx = new InitialContext(); > Context envCtx = (Context) initCtx.lookup("java:comp/env"); > Session session = (Session) envCtx.lookup("mail/Session"); > > Message message = new MimeMessage(session); > message.setFrom(new InternetAddress("[EMAIL PROTECTED]")); > InternetAddress to[] = new InternetAddress[1]; > to[0] = new InternetAddress("[EMAIL PROTECTED]"); > message.setRecipients(Message.RecipientType.TO, to); > message.setSubject("Test email"); > message.setContent("Test email", "text/plain"); > Transport.send(message); > > Can anyone tell me where I'm going wrong? > > Many thanks > > Mark Whitby > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with JavaMail
Thanks for the email Len, So if that's the case where am I going wrong with my code to get the error described in my first email? What settings do I need to change in my current configuration to get my code to work? Many thanks Mark - Original Message - From: "Len Popp" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Saturday, March 11, 2006 3:15 PM Subject: Re: Problems with JavaMail Yes, you need an SMTP server. If you've got Outlook Express running, you can use the same server it's using. -- Len On 3/11/06, Mark Whitby <[EMAIL PROTECTED]> wrote: Dear all, I'm currently getting the following error when trying to test the JavaMail set up: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect I'm using Tomcat 5.5 and have installed the jar files correctly as stated here: http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html I'm guessing that there's a problem with my SMTP settings. However, (apologise if I sound dense here) but the only mail client I have on my PC is Outlook Express. Am I right in saying then that as well as JavaMail that I need an smtp server? If so where can I get one? If not where am I going wrong? I have the following setups in my files: context.xml: web.xml: JavaMail Connection mail/Session javax.mail.Session Container Finally this is the code i'm testing: Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup("java:comp/env"); Session session = (Session) envCtx.lookup("mail/Session"); Message message = new MimeMessage(session); message.setFrom(new InternetAddress("[EMAIL PROTECTED]")); InternetAddress to[] = new InternetAddress[1]; to[0] = new InternetAddress("[EMAIL PROTECTED]"); message.setRecipients(Message.RecipientType.TO, to); message.setSubject("Test email"); message.setContent("Test email", "text/plain"); Transport.send(message); Can anyone tell me where I'm going wrong? Many thanks Mark Whitby - 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 with JavaMail
You need to look at the SMTP server settings in Outlook Express and use the same settings in your JavaMail config. The mail.smtp.host for example shouldn't be "localhost", it should be whatever email server Outlook Express uses (look in Tools > Accounts). -- Len On 3/11/06, Mark Whitby <[EMAIL PROTECTED]> wrote: > Thanks for the email Len, > > So if that's the case where am I going wrong with my code to get the error > described in my first email? What settings do I need to change in my > current configuration to get my code to work? > > Many thanks > > Mark > > - Original Message - > From: "Len Popp" <[EMAIL PROTECTED]> > To: "Tomcat Users List" > Sent: Saturday, March 11, 2006 3:15 PM > Subject: Re: Problems with JavaMail > > > Yes, you need an SMTP server. If you've got Outlook Express running, > you can use the same server it's using. > -- > Len > > On 3/11/06, Mark Whitby <[EMAIL PROTECTED]> wrote: > > Dear all, > > > > I'm currently getting the following error when trying to test the JavaMail > > set up: javax.mail.MessagingException: Could not connect to SMTP host: > > localhost, port: 25; nested exception is: java.net.ConnectException: > > Connection refused: connect > > > > I'm using Tomcat 5.5 and have installed the jar files correctly as stated > > here: http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html > > > > I'm guessing that there's a problem with my SMTP settings. However, > > (apologise if I sound dense here) but the only mail client I have on my PC > > is Outlook Express. Am I right in saying then that as well as JavaMail > > that I need an smtp server? If so where can I get one? If not where am I > > going wrong? > > > > I have the following setups in my files: > > > > context.xml: > > > > > > > > > type="javax.sql.DataSource" > > global="jdbc/TestDB"/> > > > > > type="javax.mail.Session" > > mail.smtp.host="localhost"/> > > > > > > > > web.xml: > > > > > > JavaMail Connection > > mail/Session > > javax.mail.Session > > Container > > > > > > Finally this is the code i'm testing: > > > > Context initCtx = new InitialContext(); > > Context envCtx = (Context) initCtx.lookup("java:comp/env"); > > Session session = (Session) envCtx.lookup("mail/Session"); > > > > Message message = new MimeMessage(session); > > message.setFrom(new InternetAddress("[EMAIL PROTECTED]")); > > InternetAddress to[] = new InternetAddress[1]; > > to[0] = new InternetAddress("[EMAIL PROTECTED]"); > > message.setRecipients(Message.RecipientType.TO, to); > > message.setSubject("Test email"); > > message.setContent("Test email", "text/plain"); > > Transport.send(message); > > > > Can anyone tell me where I'm going wrong? > > > > Many thanks > > > > Mark Whitby > > > > - > 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: How to enter in Tomcat Administration?
Well you said >Make that . But that shouldn't >be the culprit. How i can make username? You said >Hard to tell. Have you configured a RemoteAddrValve >to protect the manager app >or something like that? What is RemoteAddrValve and how can i configure this you also said >Do the logfiles contain any error messages? My log file named localhost.2006-03-11 contain next text: /*** Mar 11, 2006 12:03:47 PM org.apache.catalina.core.ApplicationContext log INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]] Mar 11, 2006 2:02:52 PM org.apache.catalina.core.ApplicationContext log INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]] Mar 11, 2006 4:47:27 PM org.apache.catalina.core.ApplicationContext log INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]] /** I don`t now what`s happing! Is there any good tutorial how to enter in Tomcat Administartion tool or is this so complicated --- Markus Schönhaber <[EMAIL PROTECTED]> wrote: > Nenad Bosanac wrote: > > Thank you for your very fast response but ihave > same > > problem again. > > I try to change tomcat-users.xml and he looks like > > this > > > > /* > > > > > > > > > > > > > >> roles="standard,manager" /> > > Make that . But that shouldn't > be the culprit. > > >> roles="tomcat"/> > >> roles="tomcat,role1"/> > >> roles="role1"/> > > > > /** > > > > Of course i change this xml file and start tomcat > > again and try to login like craigmcc(username) and > > secret(password) and i got this response > > > > /* > > HTTP Status 403 - Access to the requested resource > has > > been denied > > > > type Status report > > > > message Access to the requested resource has been > > denied > > > > description Access to the specified resource > (Access > > to the requested resource has been denied) has > been > > forbidden. > > /** > > What i make wrong? > > Hard to tell. Have you configured a RemoteAddrValve > to protect the manager app > or something like that? > Do the logfiles contain any error messages? > > Regards > mks > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with JavaMail
Len, Thanks very much for your help, my class is now working fine. Ironically enough my smtp server is localhost as I use an ssh client to connect to my Universities mailhost via the ssh connection and then my emails go via that. Mark - Original Message - From: "Len Popp" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Saturday, March 11, 2006 3:32 PM Subject: Re: Problems with JavaMail You need to look at the SMTP server settings in Outlook Express and use the same settings in your JavaMail config. The mail.smtp.host for example shouldn't be "localhost", it should be whatever email server Outlook Express uses (look in Tools > Accounts). -- Len On 3/11/06, Mark Whitby <[EMAIL PROTECTED]> wrote: Thanks for the email Len, So if that's the case where am I going wrong with my code to get the error described in my first email? What settings do I need to change in my current configuration to get my code to work? Many thanks Mark - Original Message - From: "Len Popp" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Saturday, March 11, 2006 3:15 PM Subject: Re: Problems with JavaMail Yes, you need an SMTP server. If you've got Outlook Express running, you can use the same server it's using. -- Len On 3/11/06, Mark Whitby <[EMAIL PROTECTED]> wrote: > Dear all, > > I'm currently getting the following error when trying to test the > JavaMail > set up: javax.mail.MessagingException: Could not connect to SMTP host: > localhost, port: 25; nested exception is: java.net.ConnectException: > Connection refused: connect > > I'm using Tomcat 5.5 and have installed the jar files correctly as > stated > here: http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html > > I'm guessing that there's a problem with my SMTP settings. However, > (apologise if I sound dense here) but the only mail client I have on my > PC > is Outlook Express. Am I right in saying then that as well as JavaMail > that I need an smtp server? If so where can I get one? If not where am > I > going wrong? > > I have the following setups in my files: > > context.xml: > > > > type="javax.sql.DataSource" > global="jdbc/TestDB"/> > > type="javax.mail.Session" > mail.smtp.host="localhost"/> > > > > web.xml: > > > JavaMail Connection > mail/Session > javax.mail.Session > Container > > > Finally this is the code i'm testing: > > Context initCtx = new InitialContext(); > Context envCtx = (Context) initCtx.lookup("java:comp/env"); > Session session = (Session) envCtx.lookup("mail/Session"); > > Message message = new MimeMessage(session); > message.setFrom(new > InternetAddress("[EMAIL PROTECTED]")); > InternetAddress to[] = new InternetAddress[1]; > to[0] = new InternetAddress("[EMAIL PROTECTED]"); > message.setRecipients(Message.RecipientType.TO, to); > message.setSubject("Test email"); > message.setContent("Test email", "text/plain"); > Transport.send(message); > > Can anyone tell me where I'm going wrong? > > Many thanks > > Mark Whitby > - 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: Problems with JavaMail - catching bounced emails - help
Actually I do have one further problem. Is there any way that the program can catch emails that bounce back because the to address is invalid? At the moment they just come into my inbox but I want it so that they cause an error in my code e.g Mail delivery failed: returning message to sender. If the address is invalid e.g [EMAIL PROTECTED] I want an Java exception to catch this rather than just get a bounced email. Is there any way to do this? Mark - Original Message - From: "Mark Whitby" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Saturday, March 11, 2006 3:43 PM Subject: Re: Problems with JavaMail Len, Thanks very much for your help, my class is now working fine. Ironically enough my smtp server is localhost as I use an ssh client to connect to my Universities mailhost via the ssh connection and then my emails go via that. Mark - Original Message - From: "Len Popp" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Saturday, March 11, 2006 3:32 PM Subject: Re: Problems with JavaMail You need to look at the SMTP server settings in Outlook Express and use the same settings in your JavaMail config. The mail.smtp.host for example shouldn't be "localhost", it should be whatever email server Outlook Express uses (look in Tools > Accounts). -- Len On 3/11/06, Mark Whitby <[EMAIL PROTECTED]> wrote: Thanks for the email Len, So if that's the case where am I going wrong with my code to get the error described in my first email? What settings do I need to change in my current configuration to get my code to work? Many thanks Mark - Original Message - From: "Len Popp" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Saturday, March 11, 2006 3:15 PM Subject: Re: Problems with JavaMail Yes, you need an SMTP server. If you've got Outlook Express running, you can use the same server it's using. -- Len On 3/11/06, Mark Whitby <[EMAIL PROTECTED]> wrote: > Dear all, > > I'm currently getting the following error when trying to test the > JavaMail > set up: javax.mail.MessagingException: Could not connect to SMTP host: > localhost, port: 25; nested exception is: java.net.ConnectException: > Connection refused: connect > > I'm using Tomcat 5.5 and have installed the jar files correctly as > stated > here: http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html > > I'm guessing that there's a problem with my SMTP settings. However, > (apologise if I sound dense here) but the only mail client I have on my > PC > is Outlook Express. Am I right in saying then that as well as JavaMail > that I need an smtp server? If so where can I get one? If not where > am I > going wrong? > > I have the following setups in my files: > > context.xml: > > > > type="javax.sql.DataSource" > global="jdbc/TestDB"/> > > type="javax.mail.Session" > mail.smtp.host="localhost"/> > > > > web.xml: > > > JavaMail Connection > mail/Session > javax.mail.Session > Container > > > Finally this is the code i'm testing: > > Context initCtx = new InitialContext(); > Context envCtx = (Context) initCtx.lookup("java:comp/env"); > Session session = (Session) envCtx.lookup("mail/Session"); > > Message message = new MimeMessage(session); > message.setFrom(new > InternetAddress("[EMAIL PROTECTED]")); > InternetAddress to[] = new InternetAddress[1]; > to[0] = new InternetAddress("[EMAIL PROTECTED]"); > message.setRecipients(Message.RecipientType.TO, to); > message.setSubject("Test email"); > message.setContent("Test email", "text/plain"); > Transport.send(message); > > Can anyone tell me where I'm going wrong? > > Many thanks > > Mark Whitby > - 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]
Proper Connection Timeout Values for mod_jk
Hello In the server.xml There is no connection timeout value set What is the default value ? Should the value that is set here be equal to the value set in workers.properties file ? socket_timeout And what is the value set here..also in server.xml (connectionTimeout="connectionTimeout" Much Appreciated - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat (5.0.25 & 5.5.15) manager webapp and UserDatabaseRealm and browser caching
I suddenly encountered Http 403 problem when trying to access my manager app (http://localhost:8080/manager/status) 0) I am using Firefox (1.0.7) browser, the app worked fine until the one ocassion I typed in the wrong password. 1) I see no error messages in any of the log files 2) I do not see the webapp initialization messages such as I did before this event, e.g 2006-03-06 23:13:45 StandardContext[/manager]HTMLManager: init: Things I did, yet I still get 403: 1) Restarted Tomcat several times does not cure this. 2) Removed all files from %CATALINA_BASE%\work\Catlina\localhost\ and restarted Tomcat yet this doesn't cure it. 3) Removed all cookies related to the http://localhost yet this doesn't work. The "manager" app does work when I run up IE browser. Given the things I did there should be no possibility of "cached user across session serialization". [Q] So what could it be that gives the "illusion" of a cached user to the browser ? Tarang __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat (5.0.25 & 5.5.15) manager webapp and UserDatabaseRealm and browser caching
Well i have similar problem ,but i can`t enter anymore my admin tool. what is your default username and password that you enter ? --- Tarang Patel <[EMAIL PROTECTED]> wrote: > I suddenly encountered Http 403 problem when trying > to > access my manager app > (http://localhost:8080/manager/status) > > 0) I am using Firefox (1.0.7) browser, the app > worked > fine until the one ocassion I typed in the wrong > password. > 1) I see no error messages in any of the log files > 2) I do not see the webapp initialization messages > such as I did before this event, e.g > > 2006-03-06 23:13:45 > StandardContext[/manager]HTMLManager: init: > > Things I did, yet I still get 403: > 1) Restarted Tomcat several times does not cure > this. > 2) Removed all files from > %CATALINA_BASE%\work\Catlina\localhost\ > > and restarted Tomcat yet this doesn't cure it. > 3) Removed all cookies related to the > http://localhost > yet this doesn't work. > > The "manager" app does work when I run up IE > browser. > > Given the things I did there should be no > possibility > of "cached user across session serialization". > > [Q] So what could it be that gives the "illusion" of > a > cached user to the browser ? > > Tarang > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat (5.0.25 & 5.5.15) manager webapp and UserDatabaseRealm and browser caching
firefox can cache passwords as well - and particularly seems to cache them in a unexpected way, when moving from different arees on the same host. Try (in firefox 1.5 anyway) in Options: Privacy : Passwords : View Saved passwords Tarang Patel wrote: I suddenly encountered Http 403 problem when trying to access my manager app (http://localhost:8080/manager/status) 0) I am using Firefox (1.0.7) browser, the app worked fine until the one ocassion I typed in the wrong password. [Q] So what could it be that gives the "illusion" of a cached user to the browser ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with JavaMail - catching bounced emails - help
You won't get a Java exception for that because email is delivered asynchronously. The bounce message comes back long after your program has sent the email. To catch these you'll need a program that monitors the inbox and handles the bounce messages appropriately. I don't know of such a program, but it wouldn't surprise me if you could find some code somewhere. -- Len On 3/11/06, Mark Whitby <[EMAIL PROTECTED]> wrote: > Actually I do have one further problem. Is there any way that the program > can catch emails that bounce back because the to address is invalid? At the > moment they just come into my inbox but I want it so that they cause an > error in my code e.g Mail delivery failed: returning message to sender. If > the address is invalid e.g [EMAIL PROTECTED] I want an Java exception to catch > this rather than just get a bounced email. > > Is there any way to do this? > > Mark > > - Original Message - > From: "Mark Whitby" <[EMAIL PROTECTED]> > To: "Tomcat Users List" > Sent: Saturday, March 11, 2006 3:43 PM > Subject: Re: Problems with JavaMail > > > > Len, > > > > Thanks very much for your help, my class is now working fine. Ironically > > enough my smtp server is localhost as I use an ssh client to connect to my > > Universities mailhost via the ssh connection and then my emails go via > > that. > > > > Mark > > > > - Original Message - > > From: "Len Popp" <[EMAIL PROTECTED]> > > To: "Tomcat Users List" > > Sent: Saturday, March 11, 2006 3:32 PM > > Subject: Re: Problems with JavaMail > > > > > > You need to look at the SMTP server settings in Outlook Express and > > use the same settings in your JavaMail config. The mail.smtp.host for > > example shouldn't be "localhost", it should be whatever email server > > Outlook Express uses (look in Tools > Accounts). > > -- > > Len > > > > On 3/11/06, Mark Whitby <[EMAIL PROTECTED]> wrote: > >> Thanks for the email Len, > >> > >> So if that's the case where am I going wrong with my code to get the > >> error > >> described in my first email? What settings do I need to change in my > >> current configuration to get my code to work? > >> > >> Many thanks > >> > >> Mark > >> > >> - Original Message - > >> From: "Len Popp" <[EMAIL PROTECTED]> > >> To: "Tomcat Users List" > >> Sent: Saturday, March 11, 2006 3:15 PM > >> Subject: Re: Problems with JavaMail > >> > >> > >> Yes, you need an SMTP server. If you've got Outlook Express running, > >> you can use the same server it's using. > >> -- > >> Len > >> > >> On 3/11/06, Mark Whitby <[EMAIL PROTECTED]> wrote: > >> > Dear all, > >> > > >> > I'm currently getting the following error when trying to test the > >> > JavaMail > >> > set up: javax.mail.MessagingException: Could not connect to SMTP host: > >> > localhost, port: 25; nested exception is: java.net.ConnectException: > >> > Connection refused: connect > >> > > >> > I'm using Tomcat 5.5 and have installed the jar files correctly as > >> > stated > >> > here: http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html > >> > > >> > I'm guessing that there's a problem with my SMTP settings. However, > >> > (apologise if I sound dense here) but the only mail client I have on my > >> > PC > >> > is Outlook Express. Am I right in saying then that as well as JavaMail > >> > that I need an smtp server? If so where can I get one? If not where > >> > am I > >> > going wrong? > >> > > >> > I have the following setups in my files: > >> > > >> > context.xml: > >> > > >> > > >> > > >> > >> > type="javax.sql.DataSource" > >> > global="jdbc/TestDB"/> > >> > > >> > >> > type="javax.mail.Session" > >> > mail.smtp.host="localhost"/> > >> > > >> > > >> > > >> > web.xml: > >> > > >> > > >> > JavaMail Connection > >> > mail/Session > >> > javax.mail.Session > >> > Container > >> > > >> > > >> > Finally this is the code i'm testing: > >> > > >> > Context initCtx = new InitialContext(); > >> > Context envCtx = (Context) initCtx.lookup("java:comp/env"); > >> > Session session = (Session) envCtx.lookup("mail/Session"); > >> > > >> > Message message = new MimeMessage(session); > >> > message.setFrom(new > >> > InternetAddress("[EMAIL PROTECTED]")); > >> > InternetAddress to[] = new InternetAddress[1]; > >> > to[0] = new InternetAddress("[EMAIL PROTECTED]"); > >> > message.setRecipients(Message.RecipientType.TO, to); > >> > message.setSubject("Test email"); > >> > message.setContent("Test email", "text/plain"); > >> > Transport.send(message); > >> > > >> > Can anyone tell me where I'm going wrong? > >> > > >> > Many thanks > >> > > >> > Mark Whitby > >> > > >> > >> - > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> --
Re: Requiring TLS with Tomcat 5.5.12
"Jeff Krug" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Thu, Mar 09, at 09:19:PM : Bill Barker has proclaimed: >> "Jeff Krug" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >> > Is there a way to disallow the SSL 3.0 protocol? >> > >> >> protocols="TLS" on the tag. > > I added this, but it did not seem to alter the behavior. Here is my > connector tag: > >maxThreads="150" minSpareThreads="25" maxSpareThreads="75" > enableLookups="false" disableUploadTimeout="true" > acceptCount="100" scheme="https" secure="true" > clientAuth="false" sslProtocol="TLS" protocols="TLS" > keystoreType="PKCS12" > keystoreFile="Path:\MyKeyStore.p12" > keystorePass="##" > /> > > I can still connect using the SSL 3.0 protocol. I don't see a protocols > option listed anywhere in the Tomcat docs on Apache.org either. Should > this work? > My bad :(. It should be protocols="TLSv1". And, yes, it's an undocumented option. > I am testing this with openssl on a Linux machine with this command: > > $openssl s_client -ssl3 -connect My_Tomcat_Hostname:443 > > > > --- > New, TLSv1/SSLv3, Cipher is EDH-RSA-DES-CBC3-SHA > Server public key is 512 bit > Compression: NONE > Expansion: NONE > SSL-Session: >Protocol : SSLv3 >Cipher: EDH-RSA-DES-CBC3-SHA >Session-ID: >Session-ID-ctx: >Master-Key: >Key-Arg : None >Start Time: 1142004945 >Timeout : 7200 (sec) >Verify return code: 19 (self signed certificate in certificate chain) > --- > > When I don't force the client on the Linux side to request ssl3, the > protocol specified above is TLSv1 as I want. > > It seems like most products kind of blur the boundaries between TLS and > SSL3 (for example that first line above says TLSv1/SSLv3 as if they are > the same thing). I guess they are nearly identical, but unfortunately > I still need to figure this out. > > Any further ideas for what I can try? > > Thanks, > Jeff Krug - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 3 -- reading props w/xml..
Bill Barker wrote: "Frances" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I'm on Tomcat 3, it comes with an xml-apis.jar, but no docs.. do you know where I can find docs for it.. I'm trying to read properties with xml, can't use loadFromXML() because that method is 1.5-only.. don't know if xml-apis.jar is it, but... why no docs... Urm, you must be getting this from a third-party provider, since no official release of TC 3.x ships with anything as modern as xml-apis.jar. All official TC 3.3.x releases default to crimson if no other XML parser is available. thank you for yr response.. this is at work, then maybe somebody put the xml-api in there.. either way, on my windows machine locally am running Tomcat 5, and that one did come with an xml-apis.jar (I know, I did not put it there..) but also no docs.. I'm on 1.4, what api (& docs) pls do I use for this.. thank you again.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 3 -- reading props w/xml..
"Frances" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Bill Barker wrote: >> "Frances" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >> >>>I'm on Tomcat 3, it comes with an xml-apis.jar, but no docs.. do you >>>know where I can find docs for it.. I'm trying to read properties with >>>xml, can't use loadFromXML() because that method is 1.5-only.. don't >>>know if xml-apis.jar is it, but... why no docs... >>> >> >> >> Urm, you must be getting this from a third-party provider, since no >> official release of TC 3.x ships with anything as modern as xml-apis.jar. >> All official TC 3.3.x releases default to crimson if no other XML parser >> is available. >> > thank you for yr response.. this is at work, then maybe somebody put the > xml-api in there.. either way, on my windows machine locally am running > Tomcat 5, and that one did come with an xml-apis.jar (I know, I did not > put it there..) but also no docs.. I'm on 1.4, what api (& docs) pls do I > use for this.. thank you again.. Using a 1.4 JVM, TC 3.3.x will default to the 1.4 XML parser. With TC 5, you need to install the compatibility pack. Then you get the Xerces parser as the default. Without more info form you, this is pretty much the best I can do. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]