Can I use DBTableOraDataSourceLoginModule with OC4J/OAS 10.1.3.0  ?

Hi,
I am implementing security as described in Frank's docs :
http://www.oracle.com/technology/products/jdev/howtos/1013/oc4jjaas/oc4j_jaas_login_module.htm
I am using JDeveloper 10.1.3.1 and OC4J 10.1.3.0 / OAS 10.1.3.0.
The question is :
1) Will DBTableOraDataSourceLoginModule work with OC4J/OAS 10.1.3.0 ?
2) The docs above ONLY describe about deploying to OC4J Stand Alone, what about deploying to OAS 10.1.3.0 (Red Hat Linux) ??
Thank you,
xtanto

Hi John,
I am using DBTableOraDataSourceLoginModule that is included in jazncore.jar.
I have overridden the original jazncore.jar in <oracle_home>\j2ee\home of my OAS 10.1.3.0 with jazncore.jar that comes with JDeveloper 10.1.3.1.
When I deploy to OAS with its enterprise manager, I have done this :
- Select Security Provider, Security Provider = Custom
Add Login Module, JAAS Login Module Class = oracle.security.jazn.login.module.db.DBTableOraDataSourceLoginModule
- When I press Deploy, I get this error message :
[Jun 11, 2007 6:15:39 PM] Initializing ClassLoader(s)
[Jun 11, 2007 6:15:39 PM] Initializing EJB container
[Jun 11, 2007 6:15:39 PM] Loading connector(s)
[Jun 11, 2007 6:15:40 PM] application : XPajakApp is in failed state
[Jun 11, 2007 6:15:40 PM] Operation failed with error: java.lang.InstantiationException
Is this related to class path ?
Since the LoginModule class is located in : <oracle_home>\j2ee\home\jazncore.jar, isn't it already in classpath ?
If no, how can I set it ?
Thank you,
xtanto

Similar Messages

  • How can I use mySQL with OC4J

    Hello,
    I have standalone OC4J and I want to use mySQL database (Oracle is no problem). My data-sources.xml for application (not global data-sources) is:
    <data-sources>
    <data-source class="com.evermind.sql.DriverManagerDataSource"
         connection-driver="org.gjt.mm.mysql.Driver"
         ejb-location="jdbc/MG_DBDS"
         inactivity-timeout="30"
         location="jdbc/MG_DBCoreDS"
         name="MG_DBDS"
         password=""
         pooled-location="jdbc/MG_DBPooledDS"
         url="jdbc:mysql://127.0.0.1:3306/test"
         username="root"
         xa-location="jdbc/xa/MG_DBXADS"/>
    </data-sources>
    Deploy return me:
    Error initializing data-source 'jdbc/MG_DBCoreDS': DriverManagerDataSource driver 'org.gjt.mm.mysql.Driver' not found
    Then I run this command:
    java -jar %OC4J_HOME%\admin.jar ormi://192.168.1.14:23791/ admin heslo -application Register -updateDataSource -oldLocation jdbc/MG_DBCoreDS -jar mysql-2.0.11-bin.jar
    this action is success and create in OC4J folder lib with jar file mysql-2.0.11-bin.
    When I use this configuration in application, I get connection but creating Statement cause SQL Exception - No suitable driver.
    When I try to restart OC4J, I get the same message as throught deploy - Error initializing data-source ...
    What is go wrong???? Could me help anyone?
    Thanks
    Libor

    pooling solution:
    1) put driver mysql.jar into any directory wich described in OC4J application.xml file like
    " <library path="D:\j2ee\home\lib">jdev-generated</library>"
    2) put a new datasource in data-sources.xml:
    <data-sources>
    <data-source name="MySqlDS"
    location="jdbc/MySqlDS"
    class="com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource"
    max-connections="100"
    min-connections="5"
    inactivity-timeout="200"
    wait-timeout="10"
    username="scott"
    password="tiger"
    url="jdbc:mysql://localhost:3306/oln?useUnicode=true"/>
    </data-sources>
    OC4J needs a special pooling class in comparision with other containers. For example, JBoss has own implementation of pooling broker, so pooling is enabled by default.

  • How to use JMX with oc4j

    is there any document about how to use JMX with OC4J? the intention is that I would like to create an application, using JMX to manage OC4J, such dynamiclly adding connection pool, create data source. potentially, restart server, application ...
    is there any document about this?
    Thanks

    In addition to that, the documentation also has a section on accessing OC4J JMX/MBeans:
    http://otndnld.oracle.co.jp/document/products/as10g/101300/B25221_03/web.1013/b14433/mbeans.htm#sthref163
    The blog below also has examples, albeit from a Groovy perspective, but nonetheless, examples of how it can be done easily translated into Java:
    http://buttso.blogspot.com/search?q=jmx
    -steve-

  • Using Maven with OC4J libraries?

    Well its my turn for a return question to the fine folks on this forum.
    Is anyone out there using Maven with OC4J? I've been using it lately, but there's one area that I'd like to see ideas on how to best approach.
    <p>When developing Ant scripts to build projects, I typically create a j2ee.classpath PATH and add to it various jar files from the OC4J distribution.
    </p>
    <p>However in Maven, I'm not sure how to best approach this with the OC4J JAR files since several of them have declared dependencies in their META-INF/MANIFEST.MF Class-Path fields -- so they aren't really standalone JAR files. </p>
    Take a look at the j2ee/home/admin_client.jar file and its manifest.mf:
    <p>
    Class-Path: lib/adminclient.jar oc4jclient.jar ../../webservices/lib/wsserver.jar lib/ejb.jar
    lib/mx4j-jmx.jar lib/jmxri.jar lib/jmx_remote_api.jar lib/jaas.jar ../../lib/xmlparserv2.jar
    ../../oracle/lib/xmlparserv2.jar lib/javax77.jar lib/javax88.jar ../../diagnostics/lib/ojdl.jar
    ../../oracle/lib/dms.jar ../../oracle/jlib/dms.jar ../../lib/dms.jar ../../jlib/dms.jar lib/jta.jar
    lib/jms.jar lib/connector.jar ../../opmn/lib/optic.jar ../../oracle/jlib/oraclepki.jar ../../jlib
    oraclepki.jar ../../oracle/jlib/ojpse.jar ../../oracle/jdbc/lib/ojdbc14dms.jar ../../oracle/jdbc/lib
    ocrs12.jar ../../oracle/rdbms/jlib/aqapi.jar ../../jlib/ojpse.jar</p>
    So if I want to make use admin_client.jar in a maven project, I really need all the other libraries it in turn references -- and they are all specified as relative paths. If I wanted to load admin_client.jar into a local Maven repository, how would it be done? How would these paths be expressed/maintained?
    -steve-

    Kristen:
    You can use iPhoto Library Manager to copy that album to one library so that all of the files will be in one library to use.
    with iPLM you can split libraries up by roll or album or both. Jusgt figure out which library which albums will belong to.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • I ordered my Macbook Air with Aperture two years ago. I now have an iMac - can I use that with Aperture in any way?

    I ordered my Macbook Air with Aperture two years ago. I now have an iMac - can I use that with Aperture in any way? I appreciate that it is a different computer but I am now the end user of both devices and I was just wondering if it was possible.
    Thanks,
    Sean

    The answer would be in your software license agreement for Aperture. However if you cannot locate it you can ask in the Aperture forum, the link for that is:
    https://discussions.apple.com/community/professional_applications/aperture
    However I believe you can have Aperture installed on two machines however only one may be using it at a time.
    On the new iMac launch the Mac App Store - Purchased - look for Aperture and download to your new machine.

  • I installed 5 but now I can't use it with Mac osx - how do I go back to my old version?!

    I was prompted to install Firefox 5 on my Mac. Now when I try to open it says I can't use Firefox with osx. How do I go back to using the previous version - has it been written over? My previous version was fine!

    Firefox 4 requires at least OS X 10.5 and an Intel Mac. There is a third party version of Firefox 4 that runs on OS X 10.4/10.5 and PPC Macs, for details see http://www.floodgap.com/software/tenfourfox
    If you prefer, you can get the latest version of Firefox 3.6 from http://www.mozilla.com/en-US/firefox/all-older.html
    Mozilla are working to prevent Mac users with non-compatible systems from getting the notification about Firefox 4, and also not displaying the "Download Firefox 4" button on http://www.mozilla.com

  • I gave my old iPad to my daughter without restoring it to original configuration, how can she use it with her iTunes?

    I gave my old iPad to my daughter without restoring it to original configuration, how can she use it with her iTunes?

    try
    http://support.apple.com/kb/ht2589

  • How can I use LCCS with ActionScript 3 and Flash CS4?

    Hi,
    Using Stratus I was able to create an an application using Action Script 3 and Flash CS4.  The sample code on the Adobe site was quite straight forward and easy to understand.  I now want to switch over to  LCCS but can't find anything any where on how to use Action Script 3 and Flash CS4 with LCCS.  Do I need to know Flex to be able to use LCCS?  Everything was quite simple and easy to understand with Stratus and makes complete sense.  But LCCS is really confusing.  Is there any sample code on how to establish a connection in Action Script 3 and then stream from a webcam to a client.  There is nothing in the  LCCS SDK that covers Flash and Action Script 3.  Please help!  I found the link below on some forum but it takes me nowhere.
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&catid=75 9&threadid=1407833&enterthread=y

    Thanks Arun!
    Date: Thu, 29 Apr 2010 11:44:10 -0600
    From: [email protected]
    To: [email protected]
    Subject: How can I use LCCS with ActionScript 3 and Flash CS4?
    Hi,
    Welcome to the LCCS world.
    Please refer to the SDK's sampleApps folder. There would be an app called FlashUserList. The app demonstrates how LCCS can be used with Flash CS4. Its a  pretty basic app, but should help you moving.
    We are trying to improve our efforts to help developers in understanding our samples. Please do let us know if we can add something that would help others.
    Thanks
    Arun
    >

  • How can I use Bluetooth with another devices?

    How can I use Bluetooth with another devices?

    You can set up your FaceTime account in Settings > FaceTime.

  • How can i use ipad with apple tv

    How can i use ipad with appletv

    Assuming both devices are on the same network and that AirPlay is not turned off on the Apple TV, then simply tap on the screen when you are watching content you wish to stream to your Apple TV, then tap the airplay icon that appears in the control bar, choose the Apple TV from the menu that appears.
    When displaying the content you wish to mirror on the iPad 2 (or better), iPad Mini, iPhone 4S (or better), double tap the home button (quickly) and swipe the bottom row of apps to the right to reveal the playback controls, tap the AirPlay icon and select your Apple TV from the list of available devices.

  • How can i update my old 2006 iMac Intel core 2 duo running 10.6.8 to OSX Lion so that I can sync using iCloud with my newer devices?  Mountain Lion is not an option for my older model and Lion is no longer available at App store.

    How can i update my old 2006 iMac Intel core 2 duo running 10.6.8 to OSX Lion so that I can sync using iCloud with my newer devices?  Mountain Lion is not an option for my older model and Lion is no longer available at App store. 

    Call Apple's online store's telesales agents: 1-800-MY-APPLE (1-800-692-7753) or Customer Service and Sales Support at 1-800-676-2775. For Lion you'll get a redemptions code via e-mail and need to DL from the Mac Apple Store (requires SL 10.6.6+).

  • Can i use pandrive with iPad, i want to access word, excel, pdf files on iPad via pandrive

    Can i use pandrive with iPad, i want to access word, excel, pdf files on iPad via pandrive

    You cannot use pendriver.
    Have a look at the following:
    http://itunes.apple.com/sg/app/quickoffice-pro-hd-edit-office/id376212724?mt=8&l s=1
    http://itunes.apple.com/sg/app/office2-hd/id364361728?mt=8&ls=1
    http://itunes.apple.com/sg/app/documents-to-go-premium-office/id317107309?mt=8&l s=1
    http://itunes.apple.com/sg/app/polaris-office/id513188658?mt=8&ls=1

  • My iPhoto icon has a cross over it, when i open it, it You have "iPhoto" 9.2.1. you can't use this with this version of OSX? it used to work ?what's gone wrong?

    my iPhoto icon has a cross over it, when i open it, it You have “iPhoto” 9.2.1. you can't use this with this version of OSX? it used to work ?what's gone wrong?

    iPhoto 9.2.3 is incompatible with MacOS 10.9.3 Mavericks. If you are running Mavericks on your system you need to update iPhoto to 9.5.1. Only, the problem is, that this version is no longer available at the App Store.
    The easiest way to get a compatible iPhoto version in that case would be to upgrade to Yosemite, MacOS X 10.10, and then download the most recent iPhoto version from the AppStore, iiPhoto 9.6, like LarryHN suggested.
    If you cannot download iPhoto after upgrading to iPhoto 9.6 post back.

  • HT2499 Can I use Airplay with dvd to watch dvd on my tv via AppleTV 3?

    Can I use Airplay with dvd to watch dvd on my tv via AppleTV 3?

    Welcome to Apple Support Communities
    Of course. If your Mac is compatible with AirPlay Mirroring, you can watch your DVD in your TV with the Apple TV. Read > http://support.apple.com/kb/HT5404 You just have to play the DVD on your MacBook and turn on AirPlay Mirroring.
    If your Mac isn't compatible with AirPlay Mirroring, you can use a third-party app like Beamer

  • I can't use Quicken with Lion.  Now what?

    I can't use Quicken with Lion.  Now what?

    Peter,
    Another solution, though not particularly convinient, would be to create a Snow Leopard boot drive on a external drive that you can switch to when you want to run Quicken.
    Matt

Maybe you are looking for

  • Adobe Media Encoder CS5.5 crashing (not responding) when adding files

    Hello, I am running AME CS5.5 on a late 2010 MacBook Pro.  I have been trying to create some broadcast quality .mpg files for my local cable provider's Video On Demand service but AME keeps crashing on me whenever I add a .mov file to the queue.  I a

  • Bug with 2.1 and OpenAL?

    I directly copied the SoundEngine.cpp/.h files from CrashLanding for using audio in my app. Sound works fine (although never in the simulator, but oddly it does in the Performance Tool). BUT - since I've put 2.1 on my device, I've noticed various sou

  • SSRS - Interactive sorting based on aggregate function

    Hi, I'm trying to add interactive sorting to one of the columns in my tablix. The soring should be based on the LAST visit date of my child grouping. However interactive sorting is not compatible with aggregate functions apparently. I'm using the fol

  • Can I use Pages and Numbers on an iPad

    Can iuse pages and numbers on an Ipad please, and if so  how?

  • Xfer from Ipod to new computer

    My old hard drive has fried. Fortunately, or so I thought, my music files are backed up on my ipod. I cannot seem to pull this info off of the ipod to store to my new computer. Any sugestions?...