Tomcat Security and Struts

2009-04-22 Thread Mighty Tornado
Tomcat 6Struts 1.3 OS: MacOS X - Leopard Hi, I am trying to make sure my app requires a login. So I configured the following in my deployment descriptor: security-constraint web-resource-collection web-resource-nameadmin/web-resource-name url-pattern*.do/url-pattern

Re: Tomcat Security and Struts

2009-04-22 Thread Mighty Tornado
chuck.caldar...@unisys.com wrote: From: Mighty Tornado [mailto:mighty.torn...@gmail.com] Subject: Tomcat Security and Struts I am trying to make sure my app requires a login. So I configured the following in my deployment descriptor: security-constraint web-resource-collection

Re: Tomcat Security and Struts

2009-04-22 Thread Mighty Tornado
I think the following might be a problem. When I access the application I get this error in the browser:Firefox can't establish a connection to the server at localhost:8443 But Tomcat is supposed to listen on port 8080 - and it has been for my app, until I put in the security feature. any way

Re: Tomcat Security and Struts

2009-04-22 Thread Mighty Tornado
How can I make the request to port 8443 actually succeed? On Wed, Apr 22, 2009 at 2:40 PM, Hassan Schroeder hassan.schroe...@gmail.com wrote: On Wed, Apr 22, 2009 at 11:16 AM, Mighty Tornado mighty.torn...@gmail.com wrote: I think the following might be a problem. When I access

javax.naming.NamingException: Cannot create resource instance

2009-04-06 Thread Mighty Tornado
JVM: 1.5.0_16Tomcat: 6.0.16 2 OS: Mac OS X Leopard Hi, I defined the following context.xml under META-INF: ?xml version=1.0 encoding=UTF-8? Context path=/Household docBase=Household debug=5 reloadable=true crossContext=true Resource auth=Container description=DB Connection

Re: javax.naming.NamingException: Cannot create resource instance

2009-04-06 Thread Mighty Tornado
I added the same entry to context.xml under $CATALINA/conf and it did work. Could there be something else wrong? On Mon, Apr 6, 2009 at 12:30 PM, Pid p...@pidster.com wrote: Mighty Tornado wrote: JVM: 1.5.0_16Tomcat: 6.0.16 2 OS: Mac OS X Leopard Hi, I defined the following

a href to another JSP

2009-04-05 Thread Mighty Tornado
Hi, I have an index.jsp page with 3 links to other JSP's. These links don't seem to work. I get the 404 error. Do I have to register the JSP's somewhere similarly to how I create servlet mappings? in the href attribute I tried passing along both relative path - sine all my JSP's are in one

Re: Restarting Tomcat from Ant

2009-04-03 Thread Mighty Tornado
This worked: target name=start-tomcat exec os=Mac OS X executable=/bin/sh arg line=${TOMCAT}/bin/startup.sh / /exec /target On Fri, Apr 3, 2009 at 7:19 AM, Gregor Schneider rc4...@googlemail.comwrote: How about exec dir=${TOMCAT}/bin/ executable=./shutdown.sh / Rgds Gregor -- just

Restarting Tomcat from Ant

2009-04-02 Thread Mighty Tornado
Hi, I currently copy the Application files to CATALINA_HOME/webapps from Ant, and then run shutdown and startup. Is there a way to also restart the server from Ant? Thanks,

Re: Restarting Tomcat from Ant

2009-04-02 Thread Mighty Tornado
I tried the following Chuck, target name=stop-tomcat exec dir=${TOMCAT}/bin/ executable=shutdown.sh / /target but it tells me that the script cannot be found On Thu, Apr 2, 2009 at 2:21 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Mighty Tornado

Re: DataSource from Context files - doesn't work

2009-04-01 Thread Mighty Tornado
family_member ); On Tue, Mar 31, 2009 at 9:36 PM, Mighty Tornado mighty.torn...@gmail.comwrote: Hi I placed the following in context.xml in META-INF. But the result set is null, what's wrong with my set up?Can anybody please advise? ?xml version=1.0 encoding=UTF-8? Context Resource auth

Re: DataSource from Context files - doesn't work

2009-04-01 Thread Mighty Tornado
01.04.2009 um 11:57 schrieb Mighty Tornado mighty.torn...@gmail.com: Additional info: I get the following exception in the log when I start the server up: == localhost.2009-03-03.log == at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233

Re: DataSource from Context files - doesn't work

2009-04-01 Thread Mighty Tornado
No Exception there. Even after I restart the server and call the Servlet that is supposed to retrieve the DB data. On Wed, Apr 1, 2009 at 6:24 AM, Yassine elas...@users.sourceforge.netwrote: catalina.out On Wed, Apr 1, 2009 at 12:17 PM, Mighty Tornado mighty.torn...@gmail.com wrote: I

Re: DataSource from Context files - doesn't work

2009-04-01 Thread Mighty Tornado
...@googlemail.comwrote: On Wed, Apr 1, 2009 at 12:07 PM, Mighty Tornado mighty.torn...@gmail.com wrote: Where can I obtain it? You wrote before: I get the following exception in the log when I start the server up: == localhost.2009-03-03.log

Re: DataSource from Context files - doesn't work

2009-04-01 Thread Mighty Tornado
...@users.sourceforge.netwrote: don't tail -f use less and copy the part containing the exception from its beginning to the end. On Wed, Apr 1, 2009 at 12:07 PM, Mighty Tornado mighty.torn...@gmail.com wrote: Where can I obtain it? The exception that I posted is the only exception

Re: DataSource from Context files - doesn't work

2009-04-01 Thread Mighty Tornado
original message. Here's a bit more detail on the validationQuery) On 3/31/2009 9:36 PM, Mighty Tornado wrote: Hi I placed the following in context.xml in META-INF. But the result set is null, what's wrong with my set up? Can anybody please advise? As others have suggested, your exception does

DataSource from Context files - doesn't work

2009-03-31 Thread Mighty Tornado
Hi I placed the following in context.xml in META-INF. But the result set is null, what's wrong with my set up?Can anybody please advise? ?xml version=1.0 encoding=UTF-8? Context Resource auth=Container description=DB Connection name=jdbc/vhousehold type=javax.sql.DataSource

Tomcat Data sources and connection pools

2009-03-22 Thread Mighty Tornado
Hi, A couple of questions regarding Tomcat 6 Data Sources. 1. I used WebLogic previously and there you had to configure connection pools and then create data sources and link them to connection pools. Is the process the same in Tomcat? 2. From what I understand I need to create the data source

Re: Tomcat Data sources and connection pools

2009-03-22 Thread Mighty Tornado
, is it correct to make a DAO a singleton? Thanks, On Sun, Mar 22, 2009 at 7:57 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Mighty Tornado [mailto:mighty.torn...@gmail.com] Subject: Tomcat Data sources and connection pools 1. I used WebLogic previously and there you

Testing DB before creating Connection Pools

2009-03-21 Thread Mighty Tornado
Hi, I am encountering a problem when trying to test JDBC connection to my database before I hand it over to the container. I get the No suitable driver exception wen trying to run the test main class in Eclipse, even though I added the mysql connector jar to the build path in the project.

Newline doesn't work

2009-03-18 Thread Mighty Tornado
Silly question. I wrote a servlet that gets init params from the web.xml and stuffs them into the request which is the displayed by JSP. But when I try to make it a string with newline characters it still prints everything in one line - like newline characters turn into regular space characters.

Re: Newline doesn't work

2009-03-18 Thread Mighty Tornado
Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Wednesday, March 18, 2009 7:41 PM To: Tomcat Users List Subject: RE: Newline doesn't work From: Mighty Tornado [mailto:mighty.torn...@gmail.com] Subject: Newline doesn't work But when I try to make it a string

Console Output

2009-03-17 Thread Mighty Tornado
Hi, I am running Tomcat on Mac OS X. How can I see output on the console of the command line? For example, if I would like to put System.out statements in the code and would like to see them on the console. Thanks,

Can't use J2EE libraries in Eclipse

2009-03-01 Thread Mighty Tornado
Hi, I am working on Mac OS X. I have the latest version of Tomcat, and Eclipse Europa. Mac OS X did not come with J2EE. I downloaded J2EE with GlassFish from Sun. Set it up by running the setup shell script. Unfortunately the directory structure is very different now, I am guessing the J2EE is

Re: Can't use J2EE libraries in Eclipse

2009-03-01 Thread Mighty Tornado
Thanks, I resolved this issue by having Eclipse use the Tomcat SDK. Unfortunately I now have a different problem with my initial app. I have an HTML page - index.html which asks the user to select one of two values from a dropdown and then click a Submit button. It's a regular HTML form using

Re: Can't use J2EE libraries in Eclipse

2009-03-01 Thread Mighty Tornado
Here is what I have: HTML form action=GetInfo.do method=post p Please Choose Info: /p select name=InfoSelect option value=MembersFamily Members/option option value=TimeTime/option /select /form input type=submit web.xml === welcome-file-list

Fwd: J2EE on Mac

2009-02-22 Thread Mighty Tornado
Hi, I installed Tomcat on my mac OS X and it's running. I also have Eclipse Europa. Now I don't think I have J2EE installed - How do I do it? I went to Sun's website and it gave me an archive with GlassFish which I don't need. Can somebody please tell me where I can download the latest J2EE for

Re: sending smtp mail failure

2007-04-19 Thread Mighty Tornado
[EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 MT, Mighty Tornado wrote: It was churning for a long time and still didn't manage to send the email. But it left me this exception: [snip] Caused by: javax.mail.MessagingException: Could not connect to SMTP host

Re: sending smtp mail failure

2007-04-18 Thread Mighty Tornado
to see a report via the browser. enjoy - Original Message - From: Mighty Tornado [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, April 17, 2007 2:35 AM Subject: Re: sending smtp mail failure Thanks for the input, I was able to actually send email from

Re: sending smtp mail failure

2007-04-14 Thread Mighty Tornado
(properties,null); } catch(Exception e) { fSessionInited = false; } return fSessionInited; } - Original Message - From: Mighty Tornado [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 06, 2007 7:30 AM Subject: sending smtp mail failure

sending smtp mail failure

2007-04-05 Thread Mighty Tornado
Hi, I set up a small web app and the servlet is supposed to send an email using JavaMail. But I am getting exceptions - Connection Timed out every time. I am using Gmail as an smtp server to bounce emails off. How can I avoid the Connection Timed out exception? Could it be because of my