Hello,
my Tomcat 6.0.13/14 server is responding in a very long time. It does not
matter if I try to start the main page of the server or one of my webapps.
About 2 minutes for each website. This is not the case, if I test on my
local machine with "http://localhost:8080/myapp"; (IE or Firefox on a
I deployed a shared jar file on Tomcat that is to be used by two Spring
webapps. The problem is the Exception I receive when trying to access the
shared library by the second webapp. The first one already set some
properties within the shared class instances.
The Exception:
java.lang.IllegalArgu
request.getRemoteUser() was the method I was searching for! Thanks :)
--
View this message in context:
http://www.nabble.com/Get-JDBCRealm%27s-current-user-t1341315.html#a3731063
Sent from the Tomcat - User forum at Nabble.com.
---
Sorry, here's what I do:
I have a web application and used Tomcat's Authentication mechanism called
JDBCRealm. I had to edit server.xml to do so (this is not really the details
I entered, it's just an example):
Then I created the according tables:
create table users
(
user_name varchar(15)
Using the #InitialContext().lookup() method to get the DataSource, it seems
to get to the point that I find out the user connected to the database,
which in fact is another than the user logged in via JDBCRealm?! Am I right?
I wanted to get the user currently logged in, not the one using the
data
Okay, I think I nearly get it.
What do I have to do to get the DataSource from within a JSP page? Get the
"ServletContext"? There's no method to do a lookup for a DataSource with
ServletContext.
--
View this message in context:
http://www.nabble.com/Get-JDBCRealm%27s-current-user-t1341315.html#a
I didn't find the ConnectionHandle ... it's an interface but where is my
instance of "ConnectionHandle"? Do I get it by using one of the Servlet's
request, response or session objects?
--
View this message in context:
http://www.nabble.com/Get-JDBCRealm%27s-current-user-t1341315.html#a3607425
Sen
Hello,
how is it possible to retrieve the user currently logged in via JDBCRealm? I
know how to check if the user is in some role (isUserInRole(name)). But how
do I get the username?
--
View this message in context:
http://www.nabble.com/Get-JDBCRealm%27s-current-user-t1341315.html#a3586626
Sent
It works! Thanks.
--
View this message in context:
http://www.nabble.com/Check-if-file-exists-in-WEB-INF-folder-t1329073.html#a3549945
Sent from the Tomcat - User forum at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
Hello,
I intent to check whether a jsp file exists or not in my WebApplication.
Doing it this way doesn't work:
if (new File("WEB-INF/jsp/test.jsp").exists())
return true;
Is there a way to get the WebApplication's path that I can specify an
10 matches
Mail list logo