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 > wrote: > > I think the following might be a problem. When I access the applicat

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 aro

Re: Tomcat Security and Struts

2009-04-22 Thread Mighty Tornado
t; > 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: > > > > > > > >

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: admin *.do POST member CONFIDENTIAL FORM /WEB-INF/JSP/login.jsp

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 wrote: > Mighty Tornado wrote: > > JVM: 1.5.0_16Tomcat: 6.0.16 2 > > OS: Mac OS X Leopard > > > > Hi, > > > &

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: In web.xml I have the following: Connection Pool jdbc/vhousehold javax.sql.Datasource Container I try to get this data source in my a

users@tomcat.apache.org

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 direct

Re: Restarting Tomcat from Ant

2009-04-03 Thread Mighty Tornado
This worked: On Fri, Apr 3, 2009 at 7:19 AM, Gregor Schneider wrote: > How about > > > > Rgds > > Gregor > -- > just because your paranoid, doesn't mean they're not after you... > gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 > gpgp-key available > @ http://pgpkeys.pca.dfn.de:11371

Re: Restarting Tomcat from Ant

2009-04-02 Thread Mighty Tornado
I tried the following Chuck, 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 [mailto:mighty.torn...@gmail.com] > > Subject: Restarting Tomcat from An

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: DataSource from Context files - doesn't work

2009-04-01 Thread Mighty Tornado
y, > > (Hey! I found my 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? C

Re: DataSource from Context files - doesn't work

2009-04-01 Thread Mighty Tornado
r 1, 2009 at 12:07 PM, Mighty Tornado > 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 <== > >at > &g

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 wrote: > catalina.out > > > On Wed, Apr 1, 2009 at 12:17 PM, Mighty Tornado > wrote: > > I have the following files

Re: DataSource from Context files - doesn't work

2009-04-01 Thread Mighty Tornado
: > 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 > wrote: > > Where can I obtain it? > > The exception that I posted is the onl

Re: DataSource from Context files - doesn't work

2009-04-01 Thread Mighty Tornado
r > > Am 01.04.2009 um 11:57 schrieb Mighty Tornado : > > > Additional info: >> >> I get the following exception in the log when I start the server up: >> >> ==> localhost.2009-03-03.log <== >> at >> >>

Re: DataSource from Context files - doesn't work

2009-04-01 Thread Mighty Tornado
s = stat.executeQuery("SELECT * FROM family_member "); On Tue, Mar 31, 2009 at 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? > > > >

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? Thanks, Ramy.

Re: Tomcat Data sources and connection pools

2009-03-22 Thread Mighty Tornado
stion, 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 > > > >

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 d

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. Thanks,

Re: Newline doesn't work

2009-03-18 Thread Mighty Tornado
essage- > 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'

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.

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,

Re: Can't use J2EE libraries in Eclipse

2009-03-01 Thread Mighty Tornado
Here is what I have: HTML Please Choose Info: Family Members Time web.xml === /HTML/index.html GetInfo com.Household.servlet.GetInfo GetInfo /GetInfo.do On Sun, Mar 1, 2009 at 7:31 PM, Martin Gainty wrote: > > you need

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 PO

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 in

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 Ma

Re: sending smtp mail failure

2007-04-19 Thread Mighty Tornado
er Schultz <[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:

Re: sending smtp mail failure

2007-04-18 Thread Mighty Tornado
the user to see a report via the browser. enjoy - Original Message ----- From: "Mighty Tornado" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday, April 17, 2007 2:35 AM Subject: Re: sending smtp mail failure > Thanks for the input, > > I was ab

Re: sending smtp mail failure

2007-04-16 Thread Mighty Tornado
bleshooter program to diagnose POP & SMTP setup problems: http://mail.google.com/support/bin/answer.py?answer=44769 -- Len On 4/16/07, Mighty Tornado <[EMAIL PROTECTED]> wrote: > I heeded your advice and tried setting up Outlook Express for gmail server. > This is the message that I go

Re: sending smtp mail failure

2007-04-16 Thread Mighty Tornado
t(mp); Transport.send(msg); Have fun - Original Message - From: "Mighty Tornado" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Sunday, April 15, 2007 2:32 AM Subject: Re: sending smtp mail failure > Thanks for responding, > > there some

Re: sending smtp mail failure

2007-04-14 Thread Mighty Tornado
es = System.getProperties(); properties.put("mail.smtp.host", smtpHost); session = Session.getInstance(properties,null); } catch(Exception e) { fSessionInited = false; } return fSessionInited; } - Original Message - From:

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 firewall?