Problems getting login to work

2002-08-09 Thread Paul Hunnisett

Hello,

I'm trying to get users to log in to my app by using login-config in my
web.xml.  Most of my site is protected using security constraints.  For
some reason, now whenever I try to log in as a registered user, I get
the following error:

The request sent by the client was syntactically incorrect (Invalid
direct reference to form login page)

The login page is included using  on my index jsp and is a
simple login form using j_security-check etc...

Any thoughts as to why this might be happening.  I am running tomcat 4.1
on Linux using JDK1.4 - although I need this to work on Windows as well.
(I get the same problem when trying to run this on Windows)

Paul Hunnisett



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




RE: Tomcat and beans

2001-06-28 Thread Paul Hunnisett

This is exactly what I had thought, except that it is not what seems to be
happening.  I have a bean with application scope, that is serialized by the
code in it's finalize() method.  The constructor contains only the code
necessary to read the serialized bean back to memory.  Every 24
hours(apprx.) my bean seems to be "reset", regardless of what was on the
disc, to it's original state, which renders my application useless

Paul

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: 28 June 2001 12:24
To: [EMAIL PROTECTED]
Subject: RE: Tomcat and beans



If you create a bean with an application scope, it will stay there
until you remove it.  Once you have removed the bean from the application
scope, it is eligible for Garbage collection by Java.  Tomcat is not
involved in calling finalizers.

Tomcat also never serializes beans.  It only works with them in
memory and never transfers them between processes.  The spec requires
serialization because other Servlet containers do this type of transferring.

Randy

> -Original Message-
> From: Paul Hunnisett [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 28, 2001 4:48 AM
> To: [EMAIL PROTECTED]
> Subject: Tomcat and beans
>
>
> How does Tomcat manage standard Java beans?  I have attempted
> to use an
> application scoped bean ands have included serialization code in the
> finalize() method and the code to read up from file in the
> constructor.  I
> assumed that whenever Tomcat thought a bean was unnecesary it
> would simply
> garbage collect it(which would call my finalize() method) but
> this doesn't
> seem to happen.  The bean get's created fine, but not
> serialized properly.
> What is Tomcat doing?
>
> Paul Hunnisett
>





RE: Tomcat and beans

2001-06-28 Thread Paul Hunnisett

Does anyone have any ideas on this subject?

Paul Hunnisett



RE: So what *IS* available?

2001-06-28 Thread Paul Hunnisett

ATG Dynamo is very good (although very expensive)

-Original Message-
From: James Radvan [mailto:[EMAIL PROTECTED]]
Sent: 28 June 2001 11:27
To: '[EMAIL PROTECTED]'
Subject: RE: So what *IS* available? 


IBM Websphere is certainly a product to consider for an Enterprise
implementation.  It is a quite comprehensive suite of products with every
function you could want including Application Server, Webserver
(incidentally based on Apache), LDAP, load balancing, HACMP, transcoding,
commerce suite, portal server (based on jetspeed), database, Java/JSP IDE's
etc.  It is however complex to set up and maintain, and expensive.  But you
get what you pay for, right?

Stability, speed and scalability are all excellent (albeit better on AIX
than Win32).  It's not a product suite for first-timers though!

Frankly I do all my prototyping on Tomcat/Win32 and go to production on
Websphere/AIX.  Whenever I have a problem with the 'wrapped' IBM products
(ie those based on open-source code) I go back to my Apache/Tomcat/Jetspeed
reference install to figure out the problem, then apply the fix to
Websphere.  It's an approach that has led to satisfied clients for years.
All thanks to this little 'sucky' product we know and love.

Thank you Tomcat!

Cheers,

-
James Radvan
Websphere Analyst/Architect
London, UK
[EMAIL PROTECTED]
+44 7990 624899


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 27 June 2001 13:46
To: [EMAIL PROTECTED]
Subject: So what *IS* available? 




Click here to visit the Argos home page http://www.argos.co.uk

The information contained in this message or any of its attachments may be
privileged and confidential, and is intended exclusively for the addressee.
The views expressed may not be official policy, but the personal views of
the originator.
If you are not the addressee, any disclosure, reproduction, distribution,
dissemination or use of this communication is not authorised.
If you have received this message in error, please advise the sender by
using the reply facility in your e-mail software.
All messages sent and received by Argos Ltd are monitored for virus, high
risk file extensions, and inappropriate content.  As a result users should
be aware that mail may be accessed.







Tomcat and beans

2001-06-28 Thread Paul Hunnisett

How does Tomcat manage standard Java beans?  I have attempted to use an
application scoped bean ands have included serialization code in the
finalize() method and the code to read up from file in the constructor.  I
assumed that whenever Tomcat thought a bean was unnecesary it would simply
garbage collect it(which would call my finalize() method) but this doesn't
seem to happen.  The bean get's created fine, but not serialized properly.
What is Tomcat doing?

Paul Hunnisett




RE: JSP and standard Java Beans

2001-02-15 Thread Paul Hunnisett

Do I not still need to put all this in a .war file?  Is there no way of just
putting my JSPs in one directory and my beans in another and just set them
running?

-Original Message-
From: Morahg, Yoav [mailto:[EMAIL PROTECTED]]
Sent: 15 February 2001 14:34
To: '[EMAIL PROTECTED]'
Subject: RE: JSP and standard Java Beans


I'm not a Tomcat guru -- so someone please correct me if I'm wrong, but you
should be able to put your beans in the WEB-INF/classes directory. JSPs can
go under your webapp, but not in the WEB-INF directory as this directory is
forbidden for client access.

Hope this helps.

-Yoav

-Original Message-
From: Paul Hunnisett [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 15, 2001 9:23 AM
To: [EMAIL PROTECTED]
Subject: FW: JSP and standard Java Beans



Does anyone have any ideas?  Is this possible?
-Original Message-
From: Paul Hunnisett [mailto:[EMAIL PROTECTED]]
Sent: 15 February 2001 12:37
To: [EMAIL PROTECTED]
Subject: JSP and standard Java Beans


IS there anyway to run just JSP/Servlets and standard Java Beans without
having to jar/war the files?  It seems like such a hassle to do that just to
run a few servlets with a couple of basic beans.  Where would the beans be
installed?  Where would I put my JSPS?

Paul Hunnisett


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

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


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




FW: JSP and standard Java Beans

2001-02-15 Thread Paul Hunnisett


Does anyone have any ideas?  Is this possible?
-Original Message-
From: Paul Hunnisett [mailto:[EMAIL PROTECTED]]
Sent: 15 February 2001 12:37
To: [EMAIL PROTECTED]
Subject: JSP and standard Java Beans


IS there anyway to run just JSP/Servlets and standard Java Beans without
having to jar/war the files?  It seems like such a hassle to do that just to
run a few servlets with a couple of basic beans.  Where would the beans be
installed?  Where would I put my JSPS?

Paul Hunnisett


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




JSP and standard Java Beans

2001-02-15 Thread Paul Hunnisett

IS there anyway to run just JSP/Servlets and standard Java Beans without
having to jar/war the files?  It seems like such a hassle to do that just to
run a few servlets with a couple of basic beans.  Where would the beans be
installed?  Where would I put my JSPS?

Paul Hunnisett


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