Re: Need Important Help in Context path

2017-11-27 Thread Sascha Monteiro
I just rename the file to MyTest.war

On Mon, Nov 27, 2017 at 7:05 PM, Vivek Patil 
wrote:

> Hello All,
>
> I am using Maven to build our application.
> So the war name will be MyTest-1.00-SNAPSHOT1.0 .If I deploy the same in
> Tomcat I have use the URL as
> //localhost:8080/MyTest-1.00-SNAPSHOT1.0
>
> but I need to set the context path MyTest eventhough deployed WAR name as
> MyTest-1.00-SNAPSHOT1.0. I need the URL will be
> //localhost:8080/MyTest
>
> This link should always same if I changed the war name from
> MyTest-*1*.00-SNAPSHOT1.0**to MyTest-*2*.00-SNAPSHOT1.0.
> **
>
> --
> Thanks & Regrads
> Vivek Patil
> Sr IT Engineer.
> Spring Computing Technologies Pvt. Ltd.
> Contact- +91-95792 16049.
>
>


tomcat jndi ldap userSearchAsUser not used

2016-02-11 Thread Sascha Monteiro
Hi,
When I configure this, it does not bind with the user (checked with
wireshark on the ad server)
(only when I use userPattern, but I cannot seem to use that as it needs a
user for both bind and search)
I don't want to have a username/password of a delegated user)

Realm  className="org.apache.catalina.realm.JNDIRealm"

debug="99"

connectionURL="ldap://x.1.1.22:389;

userSearch="userPrincipalName={0}"

userBase="cn=Users,dc=mydomain,dc=lab"

userSubtree="true"

userRoleName="memberOf"

userSearchAsUser="true"

/>


Re: sessionID moves to other PC

2008-02-28 Thread Sascha Monteiro

Hi,
When I see this behaviour I don't see the output on the server (thanks 
Yuval)


It is just suddenly on my browser..

Maybe it's my wireless Cable Modem...maybe caching or so...

I'll do some more debugging in the weekend..

ta

- Original Message - 
From: Christopher Schultz [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, February 27, 2008 3:44 AM
Subject: Re: sessionID moves to other PC



-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Sascha,

Sascha Monteiro wrote:
| I now put % out.println(session.getId()); % in the page..
| I see my sessionID, but then navigate to another page and then see the
| sessionID of the other user!
| then I press reload in my browser, and I get my own session again, till
| I navigate again...

This sounds suspiciously like you are storing either the session object
or the request object somewhere you should not be (such as in a member
of one of your servlets or JSPs or something).

Can you post a little bit of code from the servlet that ends up with the
wrong session?

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfEJdkACgkQ9CaO5/Lv0PAUgACgnBBJmJ1Mn4kbNKy0GlIEzmVA
WEwAn1RHgNfHmkDpJ/uMwx40elrkxTWX
=QCiV
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: sessionID moves to other PC

2008-02-26 Thread Sascha Monteiro

Thanks,

I now put % out.println(session.getId()); % in the page..
I see my sessionID, but then navigate to another page and then see the 
sessionID of the other user!
then I press reload in my browser, and I get my own session again, till I 
navigate again...


I am not sure if the session is related to the visible ip-address..??
I do come from a shared internet connection through a router on a cable 
connection.


I cannot imagine I am mixing variables, I only use session.getAttribute  
session.setAttribute

and base my query (to mysql) on the tablename in the session

and the sessionID should be unique to the user...and I don't refer to a 
sessionID anywhere..


ta
Sascha

- Original Message - 
From: Yuval Perlov [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, February 26, 2008 7:51 PM
Subject: Re: sessionID moves to other PC



Make sure cookies are enabled. If they are:

There are two options (1) that it is indeed the same session and that 
there is a huge Tomcat bug (2) that these are two separate sessions  but 
that you are somehow mixing the data - local bug.


To determine which is it, you could do a toString() on the session  and 
print it to the page. If the strings differ, tomcat is doing fine  and you 
should check where you mix the variables.


Yuval Perlov
http://www.r-u-on.com/


On Feb 26, 2008, at 5:58 AM, Sascha Monteiro wrote:

Hi,
I am struggeling with securing my pages where private data needs to  be 
read from a table.

I am using JSP in Tomcat5.5.23 btw. (which is hosted at eatj.com)

If I login on my page with 2 different userID's, from 2 different 
computers (but sharing a Internet connection..!!!)
I will suddenly see data from the other userID, which is pretty  sensitive 
(financial information)


When a user logs in, I am setting the userID and the table to use with
session.setAttribute(usernamers.getString(1));
session.setAttribute(tablenamers.getString(3));

then when I need to query the database, I use
session.getAttribute(tablename);

I have put %=session.getId()% in the head,
and I see the ID appearing, but suddenly changes when navigating  between 
pages...  :-(


I hope this makes sense and that someone can help me...
I only found an old bug re duplicateID's, but that was in 2005...

cheers
Sascha



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: sessionID moves to other PC

2008-02-26 Thread Sascha Monteiro

I accessed from a new pc, which never accessed the page...

I'll do the System.out too
ta
Sascha

- Original Message - 
From: Yuval Perlov [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, February 26, 2008 11:28 PM
Subject: Re: sessionID moves to other PC



Maybe the browser is getting an old page from the cache?
Clear the browser cache and see if its better. Also, use a  
System.out.println() and make sure what you are seeing on the browser  
is what really happens on the server.


Yuval Perlov
www.r-u-on.com

On Feb 26, 2008, at 10:22 AM, Sascha Monteiro wrote:

Thanks,

I now put % out.println(session.getId()); % in the page..
I see my sessionID, but then navigate to another page and then see  
the sessionID of the other user!
then I press reload in my browser, and I get my own session again,  
till I navigate again...


I am not sure if the session is related to the visible ip-address..??
I do come from a shared internet connection through a router on a  
cable connection.


I cannot imagine I am mixing variables, I only use  
session.getAttribute  session.setAttribute

and base my query (to mysql) on the tablename in the session

and the sessionID should be unique to the user...and I don't refer to  
a sessionID anywhere..


ta
Sascha

- Original Message - From: Yuval Perlov [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, February 26, 2008 7:51 PM
Subject: Re: sessionID moves to other PC



Make sure cookies are enabled. If they are:

There are two options (1) that it is indeed the same session and  
that there is a huge Tomcat bug (2) that these are two separate  
sessions  but that you are somehow mixing the data - local bug.


To determine which is it, you could do a toString() on the session   
and print it to the page. If the strings differ, tomcat is doing  
fine  and you should check where you mix the variables.


Yuval Perlov
http://www.r-u-on.com/


On Feb 26, 2008, at 5:58 AM, Sascha Monteiro wrote:

Hi,
I am struggeling with securing my pages where private data needs  
to  be read from a table.

I am using JSP in Tomcat5.5.23 btw. (which is hosted at eatj.com)

If I login on my page with 2 different userID's, from 2 different  
computers (but sharing a Internet connection..!!!)
I will suddenly see data from the other userID, which is pretty   
sensitive (financial information)


When a user logs in, I am setting the userID and the table to use with
session.setAttribute(usernamers.getString(1));
session.setAttribute(tablenamers.getString(3));

then when I need to query the database, I use
session.getAttribute(tablename);

I have put %=session.getId()% in the head,
and I see the ID appearing, but suddenly changes when navigating   
between pages...  :-(


I hope this makes sense and that someone can help me...
I only found an old bug re duplicateID's, but that was in 2005...

cheers
Sascha



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]