Juanjo Cuadrado

Greenhorn
+ Follow
since Jun 27, 2011
Juanjo likes ...
Eclipse IDE Firefox Browser Ubuntu
Merit badge: grant badges
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Juanjo Cuadrado

Ed Zeval wrote:... and then passed an instance of it to the constructor of the LoginContext.



I'm sorry but I do not understand how you can call this constructor of the LoginContext.... Can you help me, please?
12 years ago

And if you try to show us your code?
Hi,

Your cuestion I think is about servlet, not JDBC.

If you want to open file doing click over a link, you have to have a servlet, and in the get (or post) method put this code (or another similar):



I hope this help you...
12 years ago
Hi,

You can see this page:

http://www.techonthenet.com/oracle/errors/ora01861.php

But I think you should explain your problem a little better .... is difficult to guess
Hi,

Try



I would recommend not to use scriptlets, but that's your choice.

12 years ago
JSP
I managed to fix the problem.

Actually what happens is that the server was not finding the library of drivers dd.bb.

In this version of Tomcat you can not put the "jar" in TOMCAT_HOME / common / lib (among other things, because does not exist and if is created, has no effect). To give effect to the driver must be placed in CATALINA_HOME (which has established a value of /etc/default/tomcat6).

Thus, Tomcat can find the drivers and validate the user.

I wrote a post on my blog about this ... although in Spanish...

http://finger-in-the-eye.blogspot.com/2011/06/problemas-con-jdbcrealm-en-tomcat6.html



Thanks for your help and for "listening".
12 years ago
Hi Vipul,

I don't know if you be able to read in Spanish but here there is a post that explain the proccess to use JDBCRealm in a Tomcat Server... If you don't be able read in Spanish, you can try it with Google Translater... It will be always better than my translation


http://finger-in-the-eye.blogspot.com/2009/01/login-de-un-usuario-mediante-realm-en.html
12 years ago
Other thing more...

I've stopped the Apache server and I have tried directly access to Tomcat (port 8080) and I have achieved the same result... the error login page (logon.jsp in the configuration code)....

I can rule out the Apache server as a possible cause of the problem?
12 years ago
I have to achieve explain me better...

By the moment, I don't have configurated anything of HTTPS... only I need to make work the autorization issue by HTTP.

The error page is the page of "<form-error-page>/WEB-INF/logon.jsp</form-error-page>". I have put these pages under WEB-INF. I think that this is correct.

As you say, I haven't put deliberately nothing to firewall local requests, but... How can I try it?

Thanks again.
12 years ago

Hi Tim...

Thanks for you reply!! And sorry for me English

Yes... is me first post, but I read this (great) forum from many years ago

Entire application is working properly, except for the resources under authentication / authorization. I think this rules out communication problems or issues of proxy (as you have seen in the configuration, the database is on the same server).

I really don't know what is happening... This is something simple... but not for this time, apparently. I'm forgetting something, sure.

If you see something more....

Thanks.

12 years ago
Hello,
I have problems with an application in a Tomcat6. The problems are related to safety (security_constrain). For user authentication I am using a jdbcRealm by auth-method FORM.

In my local machine no problem. Everything works fine. But when the application is the production server and try to access a protected resource, I am always redirected to the error page.

I tried to change the pattern in security_constrain, and the result is the same. I can access everything but what they protect. I've also changed the password and I've removed the "digest = MD5" context.xml file, but with the same result.

The only difference is that I have (in production) Apache + Tomcat. Can this be the reason?

The web.xml security statement is this:



Reaml's statement is this:



It not is the first time that I use JDBCRealm, but is the first that I have this problem. Any idea?

Thanks.
12 years ago