Win a copy of Head First Android this week in the Android forum!

Yacov Wolfowicz

+ Follow
since Feb 18, 2010
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Yacov Wolfowicz

So, If I'm following you right, I should place the CustomRealm.class, somewhere in Tomcat's classpath, right?
11 years ago
a week went by....

I still can't figure out what's wrong with my configuration. I'll take the chance of appearing stupid, and ask the stupid question:
The class I'm implementing is actually part of the servlet. Should I make it a "library" class for Apache?
11 years ago
Thanks for the reply.

I put a breakpoint at the constructor of my class and never get there, so i suspect something in the configuration is broken, which i cannot see. Or, am I missing something else?
11 years ago

I'm trying to customize the way authentication is done.
I created a class, overriding JDBCRealm which delegates all calls to JDBCRealm. When using it in my server.xml file, I get some annoying exceptions and TOMCAT won't start.

What am I missing??


I use Tomcat 5.5, with eclipse.

the exceptions:

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(
at org.apache.catalina.startup.Bootstrap.main(
Caused by: java.lang.NullPointerException
at org.apache.catalina.startup.Catalina.await(
at org.apache.catalina.startup.Catalina.start(
... 6 more

working server.xml:

NOT working server.xml

my class
11 years ago