Re: how to replace j_security_check

2005-06-26 Thread Michael Echerer
Marten Lehmann wrote:
> Hello,

> So far, this is not a problem. Looking up users through jdbc isn't a
> problem as well. But how can I inform the container about a successful
> login, so that calls to request.getRemoteUser() and
> request.isUserInRole("manager") will behave as if I logged in through
> the common j_security_check?
You can't replace j_security_check as it's part of the servlet spec. You
could e.g. try to set the security principal yourself and use
org.apache.catalina.HttpRequest to cast your HttpServletRequest and
build something custom around the declarative security.

Cheers
Michael


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



Re: configure HTTP1.1 pipline depth on Tomcat 5.0

2005-06-26 Thread charly

OK my knowledge was weak and I am also not an expert on TC internals.
But pipelining makes only sense when the requests could be useful parallel
processed (e.g. CPU intensive and more CPU's available) and do not depend on 
each other.

The responses must be delivered anyhow in incoming sequence.
And the client has the task of matching responses to requests.

- Original Message - 
From: "Caldarale, Charles R" <[EMAIL PROTECTED]>

To: "Tomcat Users List" 
Sent: Saturday, June 25, 2005 6:06 PM
Subject: RE: configure HTTP1.1 pipline depth on Tomcat 5.0



From: Caldarale, Charles R
Subject: RE: configure HTTP1.1 pipline depth on Tomcat 5.0

> And so TC will also not accept another request before it
> processed the last

Can you tell us where in the Tomcat code such a restriction
is implemented?  I haven't been able to find it, although I'm
certainly not an expert on Tomcat internals.


To answer my own question, the serialization of requests occurs in:
org.apache.coyote.http11.Http11Processor
where there's a loop in the process() method that insures each pipelined
request is responded to before starting on the next.  Note that this is
a serialization of processing, not accepting, so there does not appear
to be any limit on the number of requests that can be pipelined together
in a single transmission.  There is a configurable limit on the number
of keep alives that will be tolerated on an otherwise idle connection.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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






___ 
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de


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



howto on compiling mod_jk2 for windows

2005-06-26 Thread Mark
Can someone point me to a site that will describe how to compile
mod_jk2 for windows?


thank you.

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



Re: howto on compiling mod_jk2 for windows

2005-06-26 Thread Alan Chandler
On Sunday 26 June 2005 14:53, Mark wrote:
> Can someone point me to a site that will describe how to compile
> mod_jk2 for windows?
>

Are you aware that mod_jk2 is depreciated in favour of an updated mod_jk.  
Binaries of mod_jk are available on the jakata.apache.org web site.
-- 
Alan Chandler
http://www.chandlerfamily.org.uk

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



.java extension missing in jsp stack trace

2005-06-26 Thread David Bennett
Using: Tomcat 5.5.9 on Windows XP

Why do JSPs compiled under Jasper not have .java in their Stack trace.
For example,
The JSP:

  <%
String s=null;
Integer i=new Integer(s);
  %>

Generates the following stack trace:

  Jun 26, 2005 12:41:07 PM org.apache.catalina.cre.StandardWrapperValve
invoke
  SEVERE: Servlet.service() for servlet jsp threw exception
  java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Integer.java:415)
at java.lang.Integer.(Integer.java:620)
at
org.apache.jsp.myexception_jsp._jspService(org.apache.jsp.myexception_js
p:44)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
  ... etc ...

Note the third entry in the stack reads:

at
org.apache.jsp.myexception_jsp._jspService(org.apache.jsp.myexception_js
p:44)

Instead of:

at
org.apache.jsp.myexception_jsp._jspService(myexception_jsp.java:44)

I am using Eclipse/MyEclipse to develop applications for the Tomcat
platform.  I 
have sucessfully mapped the tomcat/work root of the application as a
Linked
Folder and can refresh and browse the source as needed.  However,  I
cannot click
on the stack trace entry due to the difference in naming conventions.

I have searched all over but cannot find a solution to this.

Thanks for any help,
  --Dave


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



Re: http session lost between struts action

2005-06-26 Thread Torsten Römer
But they use Struts, where URL rewriting is done automatically if 
cookies are disabled, presumed the relevant tags are used rather than 
plain HTML links, for example.


Maybe that's the problem, that in some link, form action or redirect the 
jsessionid is missing. Then of course the session is lost.


Torsten

Charl Gerber schrieb:

If your session data is stored as a session cookie (I
*think* this is default behaviour), then your session
will get lost if you have cookies disabled on your
browser. 




--- angelina zh <[EMAIL PROTECTED]> wrote:


Michael,

Thank you so much for your reply. The login page is
a JSP page. In the JSP page, the login form's mothod
is post and the action is a struts action.

After login, we did some internal redircts for
security checking and then take the user to the
welcome page. The welcome page is generated from XML
using xslt. 


We have a FrontController which extends
ActionServlet from struts to handle request and
response. I kept very close watching of the
requests. I am very sure that the session has been
established on the login page and kept valid till
the welcome's action got invoked and the welcome
page got constructed. After I clicked one of the
links on the welcome page, I noticed that when the
FrontController got invoked, the session had became
to null. So we lost session before the next action
class get invoked.

We can easier re-create the session object, but we
lost the attributes we set in the last session. The
following action classes will need those attriutes. 


I am wondering why the session keep valid if I login
to the page again without closing browser. But the
session get lost if I open another browser to log
in. 


And another interesting thing is the session get
lost in another place in the production enviroment.

I am not sure this is a tomcat issue or a struts
issue.

Michael, any help will be greatly appreciated.




-
Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy

Football


-
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: http session lost between struts action

2005-06-26 Thread Dakota Jack
There is nothing wrong.  You don't have a new session in your browser.

On 6/23/05, angelina zh <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> Can anyone please help me on this session lost issue?
> 
> Here is the problem I am getting:
> 
> -- If I open a IE 6.0 browser and log into the web site we are developing, I 
> get into a welcome page with a few of link options. In the login action 
> class, we set some attributes into the session. If I click on any of the 
> links, I got null pointer exception in next action class when we try to get 
> attributes from the session. I tried to use Eclipse to debug, noticed that 
> the session of the request after the welcome page became to null.
> 
> --If I keep that browser open and go to the log in page again. After I log 
> in, I get into the welcome page and if I click any of the links now, the 
> session of the request is not null and I can go to any links without any 
> problem. The null pointer did not occur in the following action class.
> 
> --If I close the browser then open browser again, I get NullPointerException 
> again if I repeat those steps.
> 
> What might be wrong?
> 
> Thanks so much in advance.
> 
> Angelina
> 
> 
> 
> -
> Yahoo! Sports
>  Rekindle the Rivalries. Sign up for Fantasy Football
> 


-- 
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~

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



Re: http session lost between struts action

2005-06-26 Thread Dakota Jack
Again there is nothing wrong, so the fix does not help.  ///;-)


On 6/23/05, angelina zh <[EMAIL PROTECTED]> wrote:
> Michael,
> 
> Thank you so much for your reply. The login page is a JSP page. In the JSP 
> page, the login form's mothod is post and the action is a struts action.
> 
> After login, we did some internal redircts for security checking and then 
> take the user to the welcome page. The welcome page is generated from XML 
> using xslt.
> 
> We have a FrontController which extends ActionServlet from struts to handle 
> request and response. I kept very close watching of the requests. I am very 
> sure that the session has been established on the login page and kept valid 
> till the welcome's action got invoked and the welcome page got constructed. 
> After I clicked one of the links on the welcome page, I noticed that when the 
> FrontController got invoked, the session had became to null. So we lost 
> session before the next action class get invoked.
> 
> We can easier re-create the session object, but we lost the attributes we set 
> in the last session. The following action classes will need those attriutes.
> 
> I am wondering why the session keep valid if I login to the page again 
> without closing browser. But the session get lost if I open another browser 
> to log in.
> 
> And another interesting thing is the session get lost in another place in the 
> production enviroment.
> 
> I am not sure this is a tomcat issue or a struts issue.
> 
> Michael, any help will be greatly appreciated.
> 
> 
> 
> 
> -
> Yahoo! Sports
>  Rekindle the Rivalries. Sign up for Fantasy Football
> 


-- 
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~

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



Re: http session lost between struts action

2005-06-26 Thread Dakota Jack
Again, there is no problem, so don't accept any solutions.  You leave
some (most actually) open and the session remains open.



On 6/26/05, Torsten Römer <[EMAIL PROTECTED]> wrote:
> But they use Struts, where URL rewriting is done automatically if
> cookies are disabled, presumed the relevant tags are used rather than
> plain HTML links, for example.
> 
> Maybe that's the problem, that in some link, form action or redirect the
> jsessionid is missing. Then of course the session is lost.
> 
> Torsten
> 
> Charl Gerber schrieb:
> > If your session data is stored as a session cookie (I
> > *think* this is default behaviour), then your session
> > will get lost if you have cookies disabled on your
> > browser.
> >
> >
> >
> > --- angelina zh <[EMAIL PROTECTED]> wrote:
> >
> >>Michael,
> >>
> >>Thank you so much for your reply. The login page is
> >>a JSP page. In the JSP page, the login form's mothod
> >>is post and the action is a struts action.
> >>
> >>After login, we did some internal redircts for
> >>security checking and then take the user to the
> >>welcome page. The welcome page is generated from XML
> >>using xslt.
> >>
> >>We have a FrontController which extends
> >>ActionServlet from struts to handle request and
> >>response. I kept very close watching of the
> >>requests. I am very sure that the session has been
> >>established on the login page and kept valid till
> >>the welcome's action got invoked and the welcome
> >>page got constructed. After I clicked one of the
> >>links on the welcome page, I noticed that when the
> >>FrontController got invoked, the session had became
> >>to null. So we lost session before the next action
> >>class get invoked.
> >>
> >>We can easier re-create the session object, but we
> >>lost the attributes we set in the last session. The
> >>following action classes will need those attriutes.
> >>
> >>I am wondering why the session keep valid if I login
> >>to the page again without closing browser. But the
> >>session get lost if I open another browser to log
> >>in.
> >>
> >>And another interesting thing is the session get
> >>lost in another place in the production enviroment.
> >>
> >>I am not sure this is a tomcat issue or a struts
> >>issue.
> >>
> >>Michael, any help will be greatly appreciated.
> >>
> >>
> >>
> >>
> >>-
> >>Yahoo! Sports
> >> Rekindle the Rivalries. Sign up for Fantasy
> > Football
> >
> >
> > -
> > 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]
> 
> 


-- 
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~

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



Re: howto on compiling mod_jk2 for windows

2005-06-26 Thread Mark
yeah, I knew it was deprecated.  I have had more experience with
mod_jk2 and keep using it.  I will take a look at the mod_jk stuff.  I
was not aware of the mod_jk updates.

...thanks.

On 6/26/05, Alan Chandler <[EMAIL PROTECTED]> wrote:
> On Sunday 26 June 2005 14:53, Mark wrote:
> > Can someone point me to a site that will describe how to compile
> > mod_jk2 for windows?
> >
> 
> Are you aware that mod_jk2 is depreciated in favour of an updated mod_jk.
> Binaries of mod_jk are available on the jakata.apache.org web site.
> --
> Alan Chandler
> http://www.chandlerfamily.org.uk
> 
> -
> 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: Does JavaFaces cause Tomcat webapp deployment Issues?

2005-06-26 Thread Anoop kumar V
Is this "2005-6  MinWebapp3" the JavaFaces webapp?

Also does this appear as a folder under webapps, with a space in between?

Honestly I have not encountered having any problems running javafaces
with other apps under tomcat.

-Anoop

On 6/24/05, Rob Goh <[EMAIL PROTECTED]> wrote:
> Hi Jason (and all),
> 
> Thanks for getting back to me so soon!
> As you know the config files contain loads of information, so I've
> attached the ones that have outputed results, after the webapp failed.
> 
> Nb:  your see the logs that the real name of the failing webapp is
> "/2005-6  MinWebapp3", not "MinWebapp3" I said before (I was just trying
> to keep the problem simplier earlier :-)
> 
> Thanks in advance again for any further feedback - even if you know of
> any reasons why I "generally" would get the type of error messages I'm
> getting.
> 
> Ta (Thanks)
> Rob
> 
> 
> 
> 
> 
> 
> 
> -Original Message-
> From: Jason Novotny [mailto:[EMAIL PROTECTED]
> Sent: 24 June 2005 20:35
> To: Tomcat Users List
> Subject: Re: Does JavaFaces cause Tomcat webapp deployment Issues?
> 
> 
> 
> What do you see in any of the $CATALINA_HOME/logs files?
> 
> Jason
> 
> Rob Goh wrote:
> 
> >Hi,
> >I've have a tomcat problem that has defeated me for weeks and weeks
> >(you know what there like!), and would be greatful for any help on this
> 
> >list.
> >
> >1. Basically, I've deployed and using my Tomcat 5.5.9 (Java SDK5)
> >environment and have a number of working WebApps.
> >
> >2. I then tried to deploy a very simple webapp provided by
> >University Lecturer using JavaFaces - of course I have installed the
> >JavaFaces jar files, and I have my faces-  config.xml doc.
> >
> >3. The application failed on my tomcat.  And ever since then I have
> >been unable to install new apps (even non-JavaFaces apps) that I know
> >work.
> >
> >4. The following error appears in Tomcat Manager when I try to
> >install a new webapp now:
> >
> >   "FAIL - Application at context path MinWebapp3 could not be
> started"
> >
> >Where "MinWebapp3" is the name of the webapp.
> >Note:  all other existing webapps continue to work unaffected, its just
> >any new ones I try to deploy.  I've tried to uninstall and reinstall
> >Tomcat, but the same problems start to happen again.
> >Would be so grateful for any help (is there something simple that I'm
> >missing?), I'm tearing my hair out on the keyboard at the mo ;-)
> >
> >Many thanks,
> >
> >Rob
> >
> >
> >
> 
> 
> -
> 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]
> 
> 


-- 
Thanks and best regards,
Anoop

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



start tomcat

2005-06-26 Thread martin
hi
i use tomcat 5 on a suse 9.2 if i try to start with rctomcat start
done is be displayed but if i try tomcat status unused is displayed and he is 
not reachable here my logfiles:
catalina.out:
java.lang.IllegalArgumentException: addRepositoryInternal
        at 
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:957)
        at 
org.apache.catalina.loader.StandardClassLoader.(StandardClassLoader.java:153)
        at 
org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:189)
        at 
org.apache.catalina.startup.Bootstrap.createClassLoader(Bootstrap.java:160)
        at 
org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java:104)
        at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:193)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:399)
Caused by: java.util.zip.ZipException: No such file or directory
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.(ZipFile.java:112)
        at java.util.jar.JarFile.(JarFile.java:127)
        at java.util.jar.JarFile.(JarFile.java:65)
        at 
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:944)
        ... 6 more
start.log:
Using CATALINA_BASE:   /usr/share/tomcat5
Using CATALINA_HOME:   /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JAVA_HOME:       /usr/lib/jvm/java
plz help
thx martin

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



Virtual hosts with standalone tomcat 5.5.9

2005-06-26 Thread john_wjf935 . fletcher
> I tried simply going like this
>
> 
> 
> 
>
> 
> 
> 
>

I believe you are only allowed to have one Context path="" because this 
defines the default webapp - where the requests go if they don't match any 

other context path.

I'm not sure how you could implement real virtual hosts on Tomcat - where 
you can link to eg "/index.html" insted of "/webappname/index.html".  Be 
nice to know. 

Regards,
John Fletcher


**
IMPORTANT:  This e-mail is intended for the use of the addressee and may 
contain information that is confidential, commercially valuable or subject to 
legal or parliamentary privilege.  If you are not the intended recipient you 
are notified that any review, re-transmission, disclosure, use or dissemination 
of this communication is strictly prohibited by several Commonwealth Acts of 
Parliament.  If you have received this communication in error please notify the 
sender immediately and delete all copies of this transmission together with any 
attachments.
**


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



How to configure Taglib in Tomcat

2005-06-26 Thread
Hi, all

 

I am practicing Struts in Tomcat. So there is a file named
struts-html.tld should be used. I have configured as what getting
started said, but still got an exception. The exception info is below:

 

org.apache.jasper.JasperException: /index.jsp(26,0) Attribute name
invalid for tag form according to TLD

 

 tag has been used at line 26 in index.jsp file. That tag is
not default tag of html and I found tag definition in struts-html.tld,
but why it still throws this kind of exception. I think maybe caused by
configuring issue. So please tell me how to configure Taglib in Tomcat
and what should be paid attention, thanks.

 

Best Regards

Kevin Kang

MSN: [EMAIL PROTECTED]

[EMAIL PROTECTED]

 



RE: Virtual hosts with standalone tomcat 5.5.9

2005-06-26 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 
> Subject: Virtual hosts with standalone tomcat 5.5.9
> 
> > I tried simply going like this
> > 
> > 
> > 
> > 
> > 
> > 
> 
> I believe you are only allowed to have one Context path="" 
> because this defines the default webapp - where the requests 
> go if they don't match any other context path.

There is a default webapp per host, not per Tomcat.  (However, the path
attribute must not be used unless the  entry is in server.xml,
and that is strongly discouraged these days.)  To quote from the Tomcat
server reference doc for the path attribute:

"The context path of this web application, which is matched against the
beginning of each request URI to select the appropriate web application
for processing. All of the context paths within a particular Host must
be unique. If you specify a context path of an empty string (""), you
are defining the default web application for this Host, which will
process all requests not assigned to other Contexts. The value of this
field must not be set except when statically defining a Context in
server.xml, as it will be infered from the filenames used for either the
.xml context file or the docBase."

> I'm not sure how you could implement real virtual hosts on Tomcat

Now that's an interesting turn of phrase: "real virtual hosts".

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Re: How to configure Taglib in Tomcat

2005-06-26 Thread Gurumoorthy

send me the struts-config.xml and jsp please to [EMAIL PROTECTED]
I shall have a look.. from what i see ... it is a jsp struts error rather 
than tomcat error ...

also the web.xml
Regards
Guru
- Original Message - 
From: "Kevin Kang (CS&S)" <[EMAIL PROTECTED]>

To: "Tomcat User Mailing List" 
Sent: Monday, June 27, 2005 4:22 AM
Subject: How to configure Taglib in Tomcat


Hi, all



I am practicing Struts in Tomcat. So there is a file named
struts-html.tld should be used. I have configured as what getting
started said, but still got an exception. The exception info is below:



org.apache.jasper.JasperException: /index.jsp(26,0) Attribute name
invalid for tag form according to TLD



 tag has been used at line 26 in index.jsp file. That tag is
not default tag of html and I found tag definition in struts-html.tld,
but why it still throws this kind of exception. I think maybe caused by
configuring issue. So please tell me how to configure Taglib in Tomcat
and what should be paid attention, thanks.



Best Regards

Kevin Kang

MSN: [EMAIL PROTECTED]

[EMAIL PROTECTED]





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