Derived DataSourceUserManager.init() is called, but nothing else

I'm trying to set up my application so that the UserManager class uses a class derived from DataSourceUserManager. I set up the properties that DataSourceUserManager needs, but I set the actual class to my own class.
It was a real pain to figure out exactly what file to put this in, as the various documents I've found that talk about this either list a different file name to use, or they don't specify exactly where the file is. In the case of JDeveloper, there seem to be several files that use the same "orion-application" dtd. Nevertheless, I think I might have found the correct file to put it in (by trial and error), which is "$JDEV_HOME/jdev/system/oc4j-config/application.xml". I say this because when I set a breakpoint on the "init()" method of my class, it actually hit it while starting up oc4j.
My problem is, outside of hitting the "init()" method, my class seemed to have no effect on the login validation process. None of the other methods in the class seemed to be executed (I set breakpoints on all the methods).
I'm still not quite sure exactly what methods I should put in my derived class. The methods in DataSourceUserManager don't match the "SimpleUserManager" class, so it doesn't look likely that adding "userExists()", "checkPassword()", and "inGroup()" would have any effect (unless something is using reflection to decide what methods to call, if any).
In my derived class, I just wrote derived versions of all the visible methods in DataSourceUserManager, and just called the base class method from the method, along with a print statement.
I set up my web application to use a secured area, and I verified that it goes to the login page when I request a protected page. When I attempt to login, I would assume that this is the point at which I should hit a breakpoint in one of the methods of my derived DSUM class. This didn't happen. It just sent me to my error page.
I would appreciate any information that would either solve my problem or help me track it better.

I haven't solved this, but I have found some more information, and I've tried a couple more things.
I finally noticed that there is javadoc for the orion api on the orionsupport site, so I found the javadoc for the DSUM class. This was helpful, as I then decided to write a subclass of "SimpleUserManager" that internally creates a DSUM object to delegate requests to. I then configured the appserver to use this new class instead of my other derived class, although with the same properties (since they're just getting piped to DSUM).
However, the result was identical. When the appserver started up, it hit the breakpoint in the "init()" method of my SimpleUserManager subclass. When I tried to log in to the application through my browser, it never hit the breakpoints in my other methods, and the web browser got sent my login error page.
For completeness, I'll include excerpts from my "web.xml" and "application.xml" (Orion's not J2EE's)with some paths elided, along with my "LoggingUserManager" class (minus package and imports).
----web.xml excerpt----
<security-constraint>
<web-resource-collection>
<web-resource-name>projname</web-resource-name>
<url-pattern>/main/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>analyst</role-name>
<role-name>administrator</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<realm-name>Projname</realm-name>
<form-login-config>
<form-login-page>/login/login.jsp</form-login-page>
<form-error-page>/login/error.jsp</form-error-page>
</form-login-config>
</login-config>
<security-role>
<description>A user allowed to make administrative changes</description>
<role-name>administrator</role-name>
</security-role>
<security-role>
<description>Data Analyst</description>
<role-name>analyst</role-name>
</security-role>
----web.xml excerpt----
----application.xml excerpt----
<user-manager class="....common.utils.LoggingUserManager">
<property name="table" value="UserProfileBean"/>
<property name="userNameField" value="userId"/>
<property name="passwordField" value="password"/>
<property name="dataSource" value="jdbc/OracleDS"/>
<property name="groupMembershipTableName" value="GroupMembershipBean"/>
<property name="groupMembershipGroupFieldName" value="groupName"/>
<property name="groupMembershipusernameFieldName" value="userId"/>
</user-manager>
<security-role-mapping name="administrator">
<group name="administrators"/>
</security-role-mapping>
<security-role-mapping name="analyst">
<group name="analysts"/>
</security-role-mapping>
<library path="...\oc4jConfig.jar"/>
----application.xml excerpt----
----LoggingUserManager.java----
public class LoggingUserManager extends SimpleUserManager
private DataSourceUserManager dataSourceUserManager =
new DataSourceUserManager();
public void init(Properties properties)
throws InstantiationException
dataSourceUserManager.init(properties);
protected boolean userExists(String userId)
com.evermind.security.User user =
dataSourceUserManager.getUser(userId);
boolean result = (user != null);
System.out.println("userExists. userId[" + userId +
"] result[" + result + "]");
return (result);
protected boolean checkPassword(String userId, String password)
com.evermind.security.User user =
dataSourceUserManager.getUser(userId);
boolean result = (user.authenticate(password));
System.out.println("checkPassword. userId[" + userId +
"] password[" + password +
"] result[" + result + "]");
return (result);
protected boolean inGroup(String userId, String groupName)
com.evermind.security.User user =
dataSourceUserManager.getUser(userId);
com.evermind.security.Group group =
dataSourceUserManager.getGroup(groupName);
boolean result = (user.isMemberOf(group));
System.out.println("inGroup. userId[" + userId +
"] groupName[" + groupName +
"] result[" + result + "]");
return (result);
----LoggingUserManager.java---- I still haven't resolved this, but I have made a little more progress.
I think I may have found the proper file to put the "<user-manager>" element into, which appears to be $JDEV_HOME/jdev/system/oc4j_config/application.xml.
Currently, this is what I have in that file:
<user-manager class="com.attws.it.bsa.felix.common.utils.LoggingUserManager">
<property name="table" value="UserProfileBean"/>
<property name="usernameField" value="userId"/>
<property name="passwordField" value="password"/>
<property name="dataSource" value="jdbc/OracleDS"/>
<property name="groupMembershipTableName" value="GroupMembershipBean"/>
<property name="groupMembershipGroupFieldName" value="groupName"/>
<property name="groupMembershipUsernameFieldName" value="userId"/>
<property name="staleness" value="0"/>
<property name="debug" value="99999"/>
</user-manager>
My "LoggingUserManager" class extends SimpleUserManger, but it creates an instance of DataSourceUserManager as an instance variable.
My "LoggingUserManager.init()" method looks like this:
public void init(Properties properties)
throws InstantiationException
for (Enumeration enum = properties.propertyNames();
enum.hasMoreElements(); ) {
String propertyName = (String) enum.nextElement();
System.out.println("property[" + propertyName + "] value[" +
properties.getProperty(propertyName) + "]");
new Throwable().printStackTrace();
dataSourceUserManager.init(properties);
When I debug the project in JDev, I hit my breakpoint in the "init()" method. When I get to the "dataSourceManager.init()" call, I step over it, and then I inspect the variables of the embedded dataSourceUserManager object. I see there is a "usernameField" attribute, and it's value is now "userId", which is correct. The other values also seem to be correct.
Then, I let the debugger continue executing to finish the server startup. Strangely, it hits the "init()" method breakpoint AGAIN. So I stepped through it again, and after stepping over the dsum.init() call, I inspected the variables again, and this time the "usernameField" attribute is "username". Note that I'm sending in the same properties values both times.
Then, I let the debugger continue to finish the server startup. I then go to my browser URL and try to authenticate. It hits my breakpoint in my "userExists" method, so I stepped through it. When it called "dataSourceUserManager.getUser()", it threw a SQLException, saying something about "USERNAME" being a bad identifier. I inspected the variables again at this point, and it still shows "usernameField" as being set to "username" (not terribly surprising).
So, at this point, I have no idea why it tried to call "init()" on my class twice, and why after the second time the DSUM variables were messed up. I also noticed that setting the "debug" flag to some value seemed to have no effect. This flag was documented in the javadoc for DSUM in the Orion API docs.

Similar Messages

  • My apple tv stopped working. When I hit a button on the remote I see the signal gets to the Apple TV because the little light flicks but nothing else happens. Anyone know how to fix this??

    My Apple TV suddenly stopped working. When I hit a button on the remote the light on the apple tv flickers but nothing else happens. Anyone know how I can fix this?

    I had the same problem; Apple TV was working proper then for no reason I got the continuous blinking front LED.  The Apple TV has no sound or video output at all.  I tried reseting the Apple TV via my Apple remote controller but that didn't do anything for me.  I finally called Apple and they told me that the way to fix my box is to reset the Apple TV to factory default.  So I had to attach the Apple TV to one of my Apple computers and launch iTunes.  Once iTunes was running it recognized my Apple TV and I clicked on the option to restore to factory default.  After the restore my Apple TV now works properly.  My final action on the Apple TV was to sign into my account and enter my password.

  • I cant seem to edit my engraving, the order is still in the processing status but when i click save changes the buttons fade slightly but nothing else happens

    i cant seem to edit my engraving, the order is still in the processing status but when i click save changes the buttons fade slightly but nothing else happens.
    not sure what to do, any suggestions?

    not sure about this number i live in the uk, and besides the ipad mini im buying is for my girlfried and shes in the house so i cant really call anyone about it, i was more so hoping that someone else had this problem and knew how to olve it or something, you see the engraving is in irish and i was able to do the first line correctly but the change i want to make is in adding to the second line... however as ive said nothing happens but the buttons (save changes and cancel) just fade slightly... other than that the page does not do anything else... i really need this to be edited asap because im not sure how much of a window i have to do it and i sur eyou can understand my concerns of correcting the situation over the phone when its in irish and has a very specific spelling with faddas etc.
    thanks for your help though!

  • HELP NEEDED!! I bought a brand new mac air 11 inch a month ago, and for three days now I can't switch it on.when I do, i can hear the machine is on, but nothing else happens. (yes it is charged). please help

    HELP NEEDED!! I bought a brand new mac air 11 inch a month ago, and for three days now I can't switch it on.when I do, i can hear the machine is on, but nothing else happens. (yes it is charged). please help.
    I bought it in South Africa and I am currently in Israel.

    thank you for the response.its not working, tried that. i can switch the machine on and off, can hear the machine when i hold it to my ear. but nothing works, not the screen, not the sound, nothing.

  • I am trying to install my CS4 Suite onto new PC with Windows 8.  It installed Photoshop but nothing else.  It is asking me to "Install with 'setup.exe'"  Which i dont think is on there.  Is there a way around this?  Thanks in advance.

    I am trying to install my CS4 Suite onto new PC with Windows 8.  It installed Photoshop but nothing else.  It is asking me to "Install with 'setup.exe'"  Which i dont think is on there.  Is there a way around this?  Thanks in advance.

    Run the cleaner tool and reinstall with sufficient user privileges and security stuff turned off. Your install went wrong because you didn't consider this.
    Mylenium

  • My first gen 3g iphone photos are not recognised by camera wizard - it sees the phone but nothing else no files - it is not locked - ?

    I have a new 4g Iphone - Telstra (Australia)  disabled my old 3g and enabled the 4g so the 3g is just enabled to show contacts and photos etc.
    I want to download my photos and contacts from the 3g.  trouble is that my internet is dial up only at home and impossible to use as too slow.
    So my itunes is now out of date (not current module 10.5 + etc.) and the 3g phone is also not operating on the latest ios.
    BUT the itunes does sync the phone - but it seems to only sync from computer to phone - so my camera roll on the 3g is not on my computer - therein lies the dilemma - I don't know how to download the photos.  I cannot update the ios on the 3g and it seems that might be reqired to "back up"
    So first question is how do I back up (not sync) my 3g to itunes.
    Do I need to updates its ios first and update iteuns first (in which case thats impossible)
    So what else could I do.
    It seems the other thing is that even if I could back up the 3g the Itunes won't recognise the 4g as the 4g is ios 4 or something and the itunes is not up to date.
    SO I thought I should just use camera wizard or a photo package like iphoto or kodak easy share.
    But with camera wizard my computer recognises the 3g phone BUT nothing else.  It is greyed out for options, and ini Windoes Explorer it shows it as a camera but when you right click it has no "properties" - and no files show up at all...
    it is like it seems the camera and then nothing else.
    THE CAMERA is not locked.
    WHAT shoudl I do?

    also - when I use camera wizard it just tells me the phone is busy or in use  and I should retry.
    If I use it through windoes explorer - it shows me the camera to computer symbols and a line moving between then but bombs out saying camera is busy.

  • ACE 4710: Possible to allow a user to clear counters but nothing else?

    Hello all,
    Using an ACE 4710 we have a user setup with the Network-Monitor role which allows the user to view config, interface status, etc.  We would also like to allow this user to clear the interface error counters as well, but nothing else.  Is this possible?
    Thanks!

    Hello Brandon-
    Network-Monitor only lets you browse outputs, it is a not a role that allows a user to make any changes including clearing stats.  You can create custom roles and domains to get closer to what you want, but you cannot zero in on a single command like that.
    i.e.
    ACE# conif t
    ACE(config)# role MyRole
    ACE(config-role)# rule 1 permit modify feature ?
      AAA             AAA related commands
      access-list     ACL related commands
      connection      TCP/UDP related commands
      fault-tolerant  Fault tolerance related commands
      inspect         Appln inspection related commands
      interface       Interface related commands
      loadbalance     Loadbalancing policy and class commands
      pki             PKI related commands
      probe           Health probe related commands
      rserver         Real server related commands
      serverfarm      Serverfarm related commands
      ssl             SSL related commands
      sticky          Sticky related commands
      vip             Virtual server related commands
    You can create a permit or deny rule, within that, create/debug/modify/monitor each feature seperately.
    Domains allow you to create containers for objects.  You can place specific rservers, serverfarms, etc. into it - then apply it to a role so that the user assigned to it can only touch those objects.
    Regards,
    Chris Higgins

  • TS1702 Maps program does not work. In standard it only shows a grid. If I ask for a route it shows start and end point and three route boxes but nothing else. It does show directions. If I switch to hybrid it shows to routes but no roads. Background is a

    Maps program does not work. In standard it only shows a grid. If I ask for a route it shows start and end point and three route boxes but nothing else. It does show directions. If I switch to hybrid it shows to routes but no roads. Background is a blur.

    Do you have a question? This is a user to user help forum. Apple is not here only other users like yourself. You don't report problems to Apple here.
    By the way, it might help if you indicated where you are located.
    To complain to Apple use http://www.apple.com/feedback/ipad.html

  • I can print a test page from my Mac to my HP Officejet Pro 8600 but nothing else will print

    Hi - I just recently had a hard drive crash and had to revert to an old Time Machine backup on my new hard drive to get my Mac back.  Since getting back up and running I have been unable to get my Officejet Pro 8600 back online.  My computer is wired to the wireless router but the printer is running wireless.  My computer can see the printer just fine and I can even print a "Print Quality Diagnostic" report from my Mac to the printer from the HP utility.  But nothing else will print.  The firmware is up to date.  I have tried resetting the printing system multiple times, rebooting the machine, etc... Nothing works.  Any help would be appreciated.  
    If it helps, we were using a different printer the last time the time machine was backed up, so when we used that backup the old printer was showing, but I reset the printing system, so it shouldn't matter.  
    Thanks for your help!  

    Hello @Ryan221,
    Welcome to the HP Support Forums! I see your hard drive recently crashed and now you are not longer able to print to your HP Officejet Pro 8600. I see you have reset the printing system with no success. Let's try a different approach:
    Scrub/ Uninstall
    • Open the Applications folder > HP or Hewlett Packard folder > HP Uninstaller
    • Click continue, click on one of the printers in the list.
    • * Only do this step if you do not have any other HP Printers. Hold down Control, Option and Command, While holding the three buttons down,
    • Click uninstall.
    Reset Printing System
    1. Click the Apple icon (   ), and then click System Preferences.
    2. In the Hardware section, click Print & Fax/Scan. The Print & Fax/Scan  dialog box opens.
    3. Right-click (or  Ctrl  +click) in the left panel, and then click Reset printing system…
    4. Click OK to confirm the reset.
    5. Type the correct Name and Password.
    6. Click OK to reset the printing system. The Print & Fax dialog box shows no printer selected
    Note: This will remove all printers in the print and Fax/Scan, any printer removed can be re-added later by clicking the plus (+) symbol..
    Repair Disk Permissions
    1.On the Dock, click Applications, and then click Utilities.
    2.Double-click Disk Utility.
    3.Highlight your hard drive/partition on the left (by default this is "Macintosh HD").
    4.Click the Repair Disk Permissions button at the bottom of the window.
    5.Once the repair is complete, restart the computer.
    Restart the printer. Now you can download and install the printer software and install it. Click on the link below to begin the download and follow the on screen instructions:
    HP Officejet Pro Full Feature Software and Driver - Mac OS X 10.6, OS X 10.7, OS X 10.8
    I hope this helps, please let me know the outcome!
    HevnLgh
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

  • After turning on iMAC the sign in page comes up and accept my password. It then goes to a page with a background pictures but nothing else. If I leave it there it eventually fades and shows the clock.  How to I get it to open from there?

    After turning on iMAC the sign in page comes up and accept my password. It then goes to a page with a background pictures but nothing else. If I leave it there it eventually fades and shows the clock.  How to I get it to open from there?

    Hello,
    See if it'll Safe Boot from the HD, (holding Shift key down at bootup).

  • Under TV Shows there used to be favorates, search and so one, for reason, just "My TV Shows" shows up but nothing else.

    Under TV Shows there used to be favorates, search and so one. for some reason, just "My TV Shows" shows up but nothing else.  I can't look up top shows, look at my fav shows, or even search up shows any more.  I restored my apple tv factory settings but it was still missing.  Pior to doing that I pulled the power cord and reset my networks... and still noting, please help....

    Welcome to the Apple Community.
    Yes there are quite a few similar reports at the moment, I haven't experienced the problem, yet others in the UK have, so we're not quite sure what criteria determines whether you are affected by this. I haven't seen any solutions so far, so it may just be a case of waiting to see if it's repaired or whether the rest of us are going to see the same thing.

  • The bookmark feature has stopped working, I can only bookmark my homepage (google search) but nothing else.

    Firefox is simply unresponsive when I try to save a page as a bookmark, I have tried clicking the star in the URL bar, using ctrl-D, right clicking on the page, and saving from the bookmarks tab. None of these options do anything at all.
    I have tried turning off different add ons but have not had any success. The only time I can get it to save a bookmark is if I bookmark my homepage, then it will save that, but nothing else.

    This can be a problem with the file places.sqlite that stores the bookmarks and the history.
    * http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • I cannot open itunes on my mac.  The Icon jumps, but nothing else happens.

    I may have shut my computer off while a new version of Itunes was downloading.  Not sure if this would affect it, but I can't open it now.  When I click on the icon, it jumps a little, but nothing else happens! Any ideas?? Help! I can still open it on my iphone. 

    Boot from your Snow Leopard install DVD, run Disk Utility and run Disk First Aid.
    Reboot.
    Then Apple menu > Software Update.
    Then reinstall iTunes.

  • Facetime works with USB UVC gearhead webcam but nothing else does

    I have a gearhead USB 2.0 webcam that facetime easily see but nothing else does
    It is a model WC4750AFB from gearhead it uses USB 2.0 Connectivity with UVC and Facetime sees it but I can not get any other applications to use it
    Why can one app on my mac mini find and use it suxxesfully and others can't. This is really stupid. There is no basic instruction onhow to setup facetime or find out how it can see the webcam and it would be nice to know so I can get it working with my other app on my MAC mini

    Logitech - HD Webcam C615
    http://www.bestbuy.com/site/logitech-hd-webcam-c615/2588445.p?id=1218337862339&s kuId=2588445
    Logitech - C920 Pro Webcam
    http://www.bestbuy.com/site/logitech-c920-pro-webcam/4612476.p?id=1218501788204& skuId=4612476
    I know FOR A FACT that those two WILL WORK with Mt. Lion and ALL Mac Apps that use a cam.
    Skype too.
    I really like the 920. It shoots in 1080p HD. EXCELLENT picture quality and video quality.

  • Ok, tried message boards everywhere to try and figure this out before having to post a question. Have a 21.5" iMac running Snow Leopard 10.6.8.  After updates no wireless capability for ipad or laptop, imac connects fine but nothing else.No widgets work.

    Ok, tried message boards everywhere to try and figure this out before having to post a question. Have a 21.5" iMac running Snow Leopard 10.6.8.  After updates no wireless capability for ipad or laptop, imac connects fine but nothing else. No dashboard widgets work, Skype won't work. What goes?

    Your post is pretty lengthy and I have to admit I didn't read it all. Please try restarting in Safe Mode, if that doesn't work please do both a SMC and PRAM reset. These may take 2-3 attempts.
    SMC RESET
    Shut down the computer.
    Unplug the computer's power cord and all peripherals.
    Press and hold the power button for 5 seconds.
    Release the power button.
    Attach the computers power cable.
    Press the power button to turn on the computer.
    PRAM RESET
    Shut down the computer.
    Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.

Maybe you are looking for

  • Why my Toshiba mobile hard drive (1TB) can not be used in the macbook air?

    Why my Toshiba mobile hard drive (1TB) can not be used in the macbook air?

  • Problem in sending username to all clients in a chat programme

    this is a repeat of the problem which i had posted earlier,due to ambiguous subject i wrote a server programme but i want to show to all the clients when they connect to the server , the name of the clients online, however when i am running the progr

  • Daisy Chain 2 4320 Projector

    I have a split classroom with a 4320 in each room.  Occasionally we need to open the rooms and use them as one room for large audiences.  I would like to drive both projectors with a single PC.  Can I daisy chain the projectors together to accomplish

  • Asset disposal

    Hi Experts I havea major issue. I guess this is technical and hope to get your help I need to know how I can get rid of an asset that I am disposing of when the asset was not loaded in a sub-ledger ???? Please advice ASAP with T codes and se up? Win

  • [Solved] Catalyst graphical glitches with dual head setup

    Hello all, having a weird issue with my dual monitor setup where graphical glitches make my primary monitor completely unusable. The Tear Free feature of the proprietary catalyst driver is what seems to be causing it: Tear Free enabled: Tear Free dis