Yacov Wolfowicz

Greenhorn
+ Follow
since Feb 18, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Yacov Wolfowicz

So, If I'm following you right, I should place the CustomRealm.class, somewhere in Tomcat's classpath, right?
15 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?
15 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?
15 years ago
Hi,

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??


Thanks.

I use Tomcat 5.5, with eclipse.

the exceptions:


java.lang.reflect.InvocationTargetException
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(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: java.lang.NullPointerException
at org.apache.catalina.startup.Catalina.await(Catalina.java:616)
at org.apache.catalina.startup.Catalina.start(Catalina.java:576)
... 6 more



working server.xml:


NOT working server.xml



my class
15 years ago