Oracle8i and 9i with JDeveloper. Use/Config Question?
We presently have an OracleLite 8i database deployed on an NT and XP mobile Platform using Oracle Forms 6.0.
Can we copy the Oracle lite schema into a development environment(project/connection) in JDeveloper and Build a JSP/JDBC layer to replace the Developer Forms.
We are also having an extremly hard time configuring the Oracle Lite connections type for Oracle Lite. We are getting driver errors.
The connection is working for only the jdbc-odbc bridge type only.
Please let us know whether this post has been resolved or if you still need a resolution.
Thank you.
Similar Messages
-
Is it possible to transfer music between iPhones and iPods with out using iTunes
Is it possible to transfer music between iPhones and iPods with out using iTunes
Nope. Both require iTunes on a computer to sync music from.
Unless the iPod is an iPod Touch and the music was bought from iTunes. In which case the Touch can simply go to the iTunes App, under Purchased and download the purchased songs for free. -
BIBeans connection with out using config file
Hi All,
I am trying to deploy BI Beans but I do not want to use config file. I am establishing connection to OLAP and catalog using connection object and can successfully connect. But the problem arises when I am using JSP to load any presentation as BIThinSession tag needs a config file.
Can any one tell me how can I get around this problem? How can I present BIBeans presentation with out config file?
Many thanks
Shantanutry also to run the sql scripts
AMDPATCH.sql and OLAP.sql,that are in the oracle or jdeveloper folder,launching them i solved this problem
verify also that the bi_checkconfig don't present any problem loading OLAP metadata
bye -
Web services with Jdeveloper using weblogic as server
Hi,
I try to test creating PL/SQL web services by using a connection hosted by weblogic server instead of OC4J. The problem is what I try to publish a package of the database in the second stage when it asks for the connection to use, in the list I don't found the connection I create to weblogic . It presents as choice only connections used the server OC4J.
I do not Know if it is possible to publish a package as web service by using weblogic server connection, and how to do it.
can anyone help me please .
NawalWeb services can only be published to BEA if you install Apache SOAP on BEA and use the Apache SOAP option of JDeveloper. The J2EE Web Services implementation framework is specific to Oracle9iAS.
The PL/SQL Web Services server implementation is based on the J2EE Web Services option and as a result is not really portable to BEA.
To publish a PL/SQL Web service on BEA with JDeveloper you would have to write the Java wrapper code to invoke the stored procedure using standard JDBC and then publish that Java class as a Web service using Apache SOAP. Then if you had Apache SOAP installed on BEA you would be set.
Portability of Web services implementations is a big feature coming with JAX-RPC - currently what most vendors have is interoperability between implementations because of things like SOAPBuilders and WS-I. When JAX-RPC becomes part of J2EE 1.4 roughly in June and vendors start putting out implementations on it you should get closer to portability.
In the meantime, the easiest way to get portability is to use the same SOAP server on both servers - Apache SOAP is a good example.
Hope this helps.
Mike -
Oracle8i and Oracle9i with BWLS5.1
Hi, I need help!!!
I ve a Oracle8i and an Oracle9i connection pools in WLS 5.1
The Oracle9i connection pool is not stable, and have been told to upgrad the drivers for it. I wonder if there is any problem use connection pool to an Oracle8i and Oracle9i, without any conflicts.
Can WLS5.1 handle it? how should I do ?
Pleaaaase!
regards / John CokouloHi Sree,
Sorry, I was wrong, I found the JDBC drivers for the Oracle9i.
The JDBC pack contains the OCI and Thin drivers.
Thanks alot.
best regards, John.
"John" <[email protected]> wrote:
>
Hi Sree,
thanks alot for your help!
I was looking for Oracle 9i Thin driver, but could not find any!
The only I could find was Oracle 9i thin JDBC driver for Mac OS X.
and thanks again for your help.
regard, John!
"Sree Bodapati" <[email protected]> wrote:
Hi John,
WebLogic jDriver for Oracle 9i is not available for WLS5.1. Its only
available for WLS6.1SP2 and above.
I suggest you use the Oracle thin driver from Oracle to connect to the
9i
database.
when you download and install the 9i thin driver, the connection pool
can be
configured as,
weblogic.jdbc.connectionPool.O9iPool=\
url=jdbc:oracle:thin:@9imachinename:port:SID,\
driver=oracle.jdbc.driver.OracleDriver,\
loginDelaySecs=1,\
initialCapacity=5,\
maxCapacity=12,\
capacityIncrement=2,\
allowShrinking=true,\
shrinkPeriodMins=15,\
refreshMinutes=12,\
props=user=o9iusr;password=o9ipwd;weblogic.oci.min_bind_size=660
You cannot use two different OCI drivers at the same time to create
Connection pools in a single server.
HTH
sree
"John" <[email protected]> wrote in message
news:[email protected]...
Hi Sree, thanks for your help... now this information is what I got.
Some data:
ORACLE_HOME=/oracle/product/8.1.7
PATH includes $ORACLE_HOME/bin
My ld library path include the oracle driver: oci815_8:$ and ORACLE_HOME/lib
As I can see is the oci815_8 in use.
weblogic.jdbc.connectionPool.O8iPool=\
url=jdbc:weblogic:oracle,\
driver=weblogic.jdbc.oci.Driver,\
loginDelaySecs=1,\
initialCapacity=5,\
maxCapacity=12,\
capacityIncrement=2,\
allowShrinking=true,\
shrinkPeriodMins=15,\
refreshMinutes=12,\
props=user=o8iusr;password=o8ipwd;server=O8iServer;weblogic.oci.min_bind_siz
e=2000
weblogic.jdbc.connectionPool.O9iPool=\
url=jdbc:weblogic:oracle,\
driver=weblogic.jdbc.oci.Driver,\
loginDelaySecs=1,\
initialCapacity=5,\
maxCapacity=12,\
capacityIncrement=2,\
allowShrinking=true,\
shrinkPeriodMins=15,\
refreshMinutes=12,\
props=user=o9iusr;password=o9ipwd;server=O9iServer;weblogic.oci.min_bind_siz
e=660
Now Can I Make Tow Connection Pools To Oracle With Different Drivers
Like Let The O8i Go To The Old oci815_8 Drivers,
And Install New Oci Drivers For The Oracle9i ??????
"Sree Bodapati" <[email protected]> wrote:
Can you post the connection pool properties url and driver, they should
tell
us what driver you may be using.
sree
"John" <[email protected]> wrote in message
news:[email protected]...
Hi,
I dont know exactly what driver we use, but I know that the same driver
is
in
use for bothe 8i and 9i. And I know that the driver is old, (from 2000).
The behavior is that connection duo the 9i are rollin back sometimes,
about
30%
of all transactions are rolling back.
Thats why I ve been told to use newer drivers (9i drivers).
So, yes, I see exceptions, roll back exceptions of the transactionsthat
are
trying
to connect to the database pool.
But I wonder how to do that, and how can I see exactly what driver
we
use
now?
Please help me!!!!
"Sree Bodapati" <[email protected]> wrote:
John,
What driver are you using to connect to 8i and 9i? What is the behavior
you
are seeing with the pool connections, when you say pool is not stable?
do
you see any exceptions/hangs ?
Also ensure that you have testConnsOnReserve=true (on the 9i pool)
so
that
the connections get recreated if they go bad.
hth
sree
"John" <[email protected]> wrote in message
news:[email protected]...
Hi, I need help!!!
I ve a Oracle8i and an Oracle9i connection pools in WLS 5.1
The Oracle9i connection pool is not stable, and have been told to
upgrad
the
drivers for it. I wonder if there is any problem use connection pool
to an
Oracle8i and Oracle9i, without any conflicts.
Can WLS5.1 handle it? how should I do ?
Pleaaaase!
regards / John Cokoulo -
Two websites-one with .Mac and one with .Mac using personal domain
Good Day All! I know I asked this before but I think the question got wrapped in with another and I don't see that it has been answered. If I overlooked it I apologize for the duplicate post.
I have a .Mac subscription with one published website already. I am working on another website now in iWeb but I want to publish it using a personal domain name. Can I do this? If so, can I keep them from being linked together?? Does that make sense? Thanks! quinlisAloha,
if you use CNAME both sites will be reachable using either the CNAME or the web.mac.com/username/ address
if you use Webforwarding entering the personal domain will get to the site you pointed the domain to
but that site will also be reachable through web.mac.com/username/sitename/
I'd recommend you to use webforward with cloaking/masking/framing in your case. Thus the site you want to have the personal domain for will show the personal domain in the browser and will also be reachable through web.mac.com/username/sitename/ but your other website will not be reachable through your personal domain.
Note that using masking google will not index the content of your pages using your personal domain if you're interested in that.
Have a look at the following page for further information on setup and knowing what's CNAME, Febforward, Webforward with cloaking
http://alyeska.altervista.org/en/iWeb_Domains.html
I guess the best way would be having a family account or two .mac accounts so you can set it up as CNAME and your other site would be published to another account or sub-account and thus not reachable using your personal domain.
Regards,
Cédric -
Image won't open after right click and "open with" command using Editor PSE 10
Can't see image after right click and "open with" Windows XP command using Editor PSE 10. The editor opens but no image appears. I have to use the open command from within Editor
Make sure you have chosen the application PhotoshopElementsEditor.exe and not a shortcut.
To manually associate a file format with an application:
In Windows Explorer, right-click a file whose file association you want to change. For example, if you want to change the file association for all jpeg files, click a jpeg file.
Choose Open With > Choose Program from the pop-up menu.
In the Open With dialog box, click Browse and then locate and select the exe application file.
Checkmark "Always use the selected program to open this kind of file" and click OK.
Note:If you choose a program from the Open With menu in step 2, instead of selecting the Choose Program option, this check box is not available, and the file association won't work. -
Retire Oracle Designer development and continue with just using Forms 11
Hi,
The company I am working for is taking over responsibility for an Oracle Designer 10 application.
Due to Oracle Designer is an outdated development environment we are looking for potential solutions how to get rid of Designer without completely redeveloping or replacing the application.
One options we thought about is to switch off Designer and only continuing to use Oracle Forms 11.
Do anyone of you have experience in this area which you would like to share?
Best regards,
MarcoThere are a lot of case generated (CG$) trigger and procedures used in the Forms. For us the code seems to be very complex and hard to read.
But, also some of them seems to be never used or it is just the statement "null" in it.
We thought about SQL Developer Data Modeler to capture most of the Designer stuff. But still there is the technical documentation that is not fully supported by SDDM. Did anyone migrate these Designer documentation to an other tool? If yes, to which one and how? We tried the SDDM Report functionality to capture some of the documentation, but also these reports do not contain everything that Designer could provide.
There are also "Preference Sets" used in Designer and we are wondering how to migrate these to Forms Builder. Did anyone migrate these preference sets to Forms Builder in the past and has some experiences/examples/recommendations about that? We thought about one "global" form that could contain these preference sets and then inherit them.
There are also the Functional Hirarchie Diagrams in Designer, could they migrated to Forms or SDDM in any way? Or do we need to maintain these diagrams manually in a tool like Word or Visio?
If we could capture all the things mentioned above, we would like to continue just with Oracle Forms Builder 11gR2 in combination with other tools like SQL Developer and Data Modeler and if no other solution could be find out with some manual maintained documents.
For all recommendations and tips we are very interested and we would thank you all very much! -
GP and WD with Adobe Interactive form question - need some guidance.
Hello experts,
FYI, I'm running ECC 5.0 Support Stack 9, EP 7.0 SPS 11, NWDS 2.0.9_15 with Adobe Livecyle Designer.
I am slightly stuck with what I'm trying to do. I have created a web dynpro application that has an Adobe interactive form. I'm trying to use guided procedures to initiate a process so that this interactive form can be filled out and submitted to an approver. I need the relevant parties to receive a notification email. I have setup email templates and services, I just need to know how it will fit into the process. Once approved in the process, a BAPI should be invoked to populate some fields in the form. Should I be creating the Web Dynpro application to invoke the bapi or should a guided procedure callable object invoke the bapi? I know how to do these things, but I dont know which method I should use, in order to correctly have this process flow from point A - point B. Should the process appear in the Universal Worklist? If not, why not? Will it only appear in the GP runtime? I have pretty much read thru most of the tutorials but still cannot get this GP stuff to work as a WHOLE process.
Any guidance, suggestions, possible solutions will be greatly appreciated.
Thanks
Kunal.Hi,
It seems you have not activated the Composite Form object. Only after activation you will be able to use it to create a Callable Object of type composite form.
Hope this helps,
Ashutosh -
Payment of travel and subsistence with FI using bank details in HR module
We have implemented the HR and FI module for a client. They have a requirement that they would like to pay S&T in FI using employees details in HR without creating the employees as vendors in FI.
How can the FI module access the bank details of the employee from HR and pay the S&T.
Is it only possible if the employees are created as vendors.Hi,
Please find the below links,hope this helpful for you.
http://help.sap.com/saphelp_46b/helpdata/en/81/42b09e4a3711d189490000e8323c4f/frameset.htm
Regards,
udayakumar.k -
Very slow CD import (and Backup) with itunes using Windows 7
I just got a new HP Pavilion Windows 7. It takes hours to import a CD thru itunes - seconds thru any other software. I have uninstalled and reinstalled itunes (all components) multiple times. Apple phone support was no help. Does anyone have any suggestions?
Thank youIt's probably something else entirely, but just check under *Edit > Preferences > General > Import Settings* that you don't have a tick in the box marked *Use error correction when reading Audio CDs*.
<hr>
*Fast backup for iTunes library (Windows Only)*
Grab SyncToy 2.1, a free tool from MS. This can be used to copy your entire iTunes library (& other important data folders) onto another hard drive or network share. You can then use SyncToy periodically to synchronise or echo your library to the backup. A preview will show which files need to be updated giving you a chance to spot unexpected changes and during the run only the new or updated files will be copied saving lots of time. And if your media is all organised below the main iTunes folder then you should also be able to open the backup library on any system running the same version of iTunes.
tt2 -
Weblogic 5.1 SP3 and Apache 1.3.12 Config Question
Hello;
Can someone tell me how I might make this configuration work? I'm trying to
run multiple Weblogic Process on one box and 1 Apache Process on another
box. I would like to utilize the "VirtualHosting by name" via the HTTP1.1
protocol and use the weblogic plugin.
*** HTTPD.CONF FILE ***
LoadModule weblogic_module libexec/mod_wl.so
<VirtualHost 1stVirtual.host.com>
<Location /weblogic>
SetHandler weblogic-handler
PathTrim weblogic
</Location>
<Location /servletimages>
SetHandler weblogic-handler
Pathtrim something
</Location>
<IfModule mod_weblogic.c>
Include conf/1stVirtual.conf
</IfModule>
</VirtualHost>
<VirtualHost 2ndVirtual.host.com>
<Location /weblogic>
SetHandler weblogic-handler
PathTrim weblogic
</Location>
<Location /servletimages>
SetHandler weblogic-handler
Pathtrim something
</Location>
<IfModule mod_weblogic.c>
Include conf/2ndVirtual.conf
</IfModule>
</VirtualHost>
AddModule mod_weblogic.c
*** 1stVIRTUAL.CONF File ****
WebLogicHost 1stVirtual.host.com
WebLogicPort 7003
When I try to call the website:
http://1stVirtual.host.com/weblogic/ I get this:
Failure of WebLogic APACHE bridge:
Neither WebLogicCluster nor WebLogicHost parameter was specified in
httpd.conf. Cannot continue.
Anyhelp would be greatly appreciated.
-Bob
P.S.- My Configuration is as follows:
WEBLOGIC SERVER
Solaris 2.6
Weblogic 5.1 SP3
APACHE SERVER
Solaris 2.6
Apache 1.3.12Bob:
Fixed in SP 4. Out very, very soon.
mbg
In article <3969eabe$[email protected]>, [email protected] says...
Hello;
Can someone tell me how I might make this configuration work? I'm trying to
run multiple Weblogic Process on one box and 1 Apache Process on another
box. I would like to utilize the "VirtualHosting by name" via the HTTP1.1
protocol and use the weblogic plugin.
SNIP
When I try to call the website:
http://1stVirtual.host.com/weblogic/ I get this:
Failure of WebLogic APACHE bridge:
Neither WebLogicCluster nor WebLogicHost parameter was specified in
httpd.conf. Cannot continue.
Anyhelp would be greatly appreciated.
-Bob--
==================================================
NewsGroup Rant
==================================================
Rant 1.
The less info you provide about your problem means
the less we can help you. Try to look at the
problem from an external perspective and provide
all the data necessary to put your problem in
perspective. -
Copying folders and Subfolders with files using Promises WinJS
Hi,
I have app written in WinJS.
I want to copy a particular folder along with its subfolders and their files. I am so far successful with copying folders. Below is the code for the same.
app.CopyFolder = function (folder, destFolder) {
var replace = Windows.Storage.CreationCollisionOption.replaceExisting;
//console.log("create folder: " + folder.name);
return destFolder.createFolderAsync(folder.name, replace).then(function (newdest) {
return app.CopySubFolders(folder, newdest);
app.CopySubFolders=function(folder, destFolder) {
return folder.getFoldersAsync().then(function (folderlist) {
return WinJS.Promise.join(folderlist.map(function (folder) {
return app.CopyFolder(folder, destFolder);
Now after I have copied all the folders I need to copy their respective files. The problem is I am stuck,I get the files copied but I want to proceed ahead after all the files are written to their respective folders. Below is the code for the same.
app.copyAllFiles = function (fileList, destStorFolder) {
console.log('copyFiles Start...');
var promises = [];
var fileCopied = 0;
var collideOpt = Windows.Storage.CreationCollisionOption.replaceExisting;
return WinJS.Promise.join(fileList.map(function (file) {
return app.copySingleFile(file, destStorFolder);
app.copySingleFile = function (fileObject, destFolder) {
var promises = [];
var fileCopied = 0;
var path = destFolder.path + "\\" + fileObject.folderName;
var collideOpt = Windows.Storage.CreationCollisionOption.replaceExisting;
return Windows.Storage.StorageFolder.getFolderFromPathAsync(path).done(function (folderObjectOfLocalFolder) {
return fileObject.fileObject.copyAsync(folderObjectOfLocalFolder, fileObject.fileName, collideOpt).then(function (fileObject) {
console.log("copied single file:" + fileObject.name);
The problem is when i run the folder copy code and apply breakpoint for the success call back of
CopySubFolders(source,destination).done(/*my breakpoint*/)
The folders are created.
But when I try to breakpoint for my copyAllFiles,the files are created only when i pass the success call back.
Can anyone tell me what am i doing wrong? How can I proceed ahead only when all the files are written successfully.
Regards,
NinadHi,
I tried the above solution but what i want is that the action of copying folders and subfolders along with the files should be done with promises and that promise should return only when all folders,sunfolders and their files have been copied. I want to
do it in this way because I want to perform certain second action only when all things are copied.
If I do it the as per the link the function runs in the background and my second action proceed aheads and may cause error if it finds some folder or file missing.
So I came up with following above code,first copy folders then copy. The copy folder works as expected but the files are getting copied only when the file copying code enters the success call back.
Can you please shed light on my code where I am going wrong.
Or is it ok to proceed ahead with the solution you mentioned at the link cause I dont want any runtime crashes.
Regards,
Ninad -
Impossible to use CallbackHandler for WS-Security with Jdeveloper 11.1.2.1
I have created WS client and proxy with JDeveloper 11.1.2.1 wizard. Security: oracle/wss10_username_token_with_message_protection_client_policy.
For the callback handler I use the following class (API: http://download.oracle.com/javase/6/docs/api/javax/security/auth/callback/CallbackHandler.html):
package package_test;
import java.io.IOException;
import java.text.DateFormat;
import java.util.Date;
import javax.security.auth.callback.Callback;
import javax.security.auth.callback.CallbackHandler;
import javax.security.auth.callback.NameCallback;
import javax.security.auth.callback.PasswordCallback;
import javax.security.auth.callback.TextOutputCallback;
import javax.security.auth.callback.UnsupportedCallbackException;
public class ClientSecurityHandlerCallback implements CallbackHandler{
public ClientSecurityHandlerCallback() {
super();
public void handle(Callback[] callbacks)
throws IOException, UnsupportedCallbackException {
System.out.printf("%s In Callback ClientSecurityHandlerCallback.handle\n", DateFormat.getDateTimeInstance().format(new Date()));
for (int i = 0; i < callbacks.length; i++) {
if (callbacks[i] instanceof TextOutputCallback) {
// display the message according to the specified type
TextOutputCallback toc = (TextOutputCallback)callbacks;
switch (toc.getMessageType()) {
case TextOutputCallback.INFORMATION:
System.out.println(toc.getMessage());
break;
case TextOutputCallback.ERROR:
System.out.println("ERROR: " + toc.getMessage());
break;
case TextOutputCallback.WARNING:
System.out.println("WARNING: " + toc.getMessage());
break;
default:
throw new IOException("Unsupported message type: " +
toc.getMessageType());
} else if (callbacks[i] instanceof NameCallback) {
// prompt the user for a username
NameCallback nc = (NameCallback)callbacks[i];
// ignore the provided defaultName
System.err.print(nc.getPrompt());
System.err.flush();
nc.setName("uid");
//nc.setName((new BufferedReader(new InputStreamReader(System.in))).readLine());
} else if (callbacks[i] instanceof PasswordCallback) {
// prompt the user for sensitive information
PasswordCallback pc = (PasswordCallback)callbacks[i];
pc.setPassword("pwd".toCharArray());
} else {
throw new UnsupportedCallbackException
(callbacks[i], "Unrecognized Callback");
When I try to launch client, I get the following message:
Exception in thread "main" java.lang.ClassCastException: package_test.ClientSecurityHandlerCallback cannot be cast to javax.xml.ws.handler.Handler
I have tried another approach, with
public final class ClientSecurityHandler implements SOAPHandler<SOAPMessageContext> , but I don't manage to put username in the existing uesrname/timestamp token.
How can I set uid/pwd to work with this security scheme?
Thank you
IgorI have created WS client and proxy with JDeveloper 11.1.2.1 wizard. Security: oracle/wss10_username_token_with_message_protection_client_policy.
For the callback handler I use the following class (API: http://download.oracle.com/javase/6/docs/api/javax/security/auth/callback/CallbackHandler.html):
package package_test;
import java.io.IOException;
import java.text.DateFormat;
import java.util.Date;
import javax.security.auth.callback.Callback;
import javax.security.auth.callback.CallbackHandler;
import javax.security.auth.callback.NameCallback;
import javax.security.auth.callback.PasswordCallback;
import javax.security.auth.callback.TextOutputCallback;
import javax.security.auth.callback.UnsupportedCallbackException;
public class ClientSecurityHandlerCallback implements CallbackHandler{
public ClientSecurityHandlerCallback() {
super();
public void handle(Callback[] callbacks)
throws IOException, UnsupportedCallbackException {
System.out.printf("%s In Callback ClientSecurityHandlerCallback.handle\n", DateFormat.getDateTimeInstance().format(new Date()));
for (int i = 0; i < callbacks.length; i++) {
if (callbacks[i] instanceof TextOutputCallback) {
// display the message according to the specified type
TextOutputCallback toc = (TextOutputCallback)callbacks;
switch (toc.getMessageType()) {
case TextOutputCallback.INFORMATION:
System.out.println(toc.getMessage());
break;
case TextOutputCallback.ERROR:
System.out.println("ERROR: " + toc.getMessage());
break;
case TextOutputCallback.WARNING:
System.out.println("WARNING: " + toc.getMessage());
break;
default:
throw new IOException("Unsupported message type: " +
toc.getMessageType());
} else if (callbacks[i] instanceof NameCallback) {
// prompt the user for a username
NameCallback nc = (NameCallback)callbacks[i];
// ignore the provided defaultName
System.err.print(nc.getPrompt());
System.err.flush();
nc.setName("uid");
//nc.setName((new BufferedReader(new InputStreamReader(System.in))).readLine());
} else if (callbacks[i] instanceof PasswordCallback) {
// prompt the user for sensitive information
PasswordCallback pc = (PasswordCallback)callbacks[i];
pc.setPassword("pwd".toCharArray());
} else {
throw new UnsupportedCallbackException
(callbacks[i], "Unrecognized Callback");
When I try to launch client, I get the following message:
Exception in thread "main" java.lang.ClassCastException: package_test.ClientSecurityHandlerCallback cannot be cast to javax.xml.ws.handler.Handler
I have tried another approach, with
public final class ClientSecurityHandler implements SOAPHandler<SOAPMessageContext> , but I don't manage to put username in the existing uesrname/timestamp token.
How can I set uid/pwd to work with this security scheme?
Thank you
Igor -
JAAS. BEA, when and how should I use it?
Hi,
I am confused and I hope someone at BEA sees this post or someone who knows the
answer steps up and clarifies this issue for me - please.
I have a basic web application, WLS 7, using Struts, Toplink, Oracle 8i. Pretty
standard. In 6.0 we used RDBMS realms to Authenticate and Authorize our users.
We used the web.xml to indicate we were using FORM based authentication and the
SECURITY CONSTRAINTS were using role names that matched what the RDBMS Realms
were pulling from Oracle.
As I read the docs and look at the examples I see all the old stuff is deprecated,
I do see I have the option of running in compatability mode - however I don't
want to do this if this is not the way things will be done in the future.
I followed the steps in the excellent post by Aaron Mulder "Weblogic 7 RDBMS Realm
Procedure" and create my own Authentication provider, deployed it and it seems
to be running. However I am now having problems getting the web.xml to "kick"
when I try and access a resticted resource I am not sent to my FORM Based authentication
login page... shouldn't I be? I would think the security constraints would be
loaded correctly and same with the LOGIN config stuff and that WLS would just
use all the providers but that it would know what to do for things like _security
check and all the contraints in the web.xml.
Am I going down the correct path? Do I just need to now write an Authorization
provider too? In my test in my Authentication provider I put everyone into the
"Administrators" group and use that in my web.xml. I would expect I would be sent
to the login page first, then WLS would upon form submittal, check the Authentication
provider, then my code would say all users are "Administrators", then it would
check that with the web.xml security constraint, then if the role matched would
send me on to the page.
Help :> I just want to get this working and make sure I am using the correct paradigm.
Thanks,
Jerry RodgersYou use JAAS when running in the app maybe, that is up to the container. It
is transparent to the developer. If your writing a J2EE app, you do not need
to write JAAS modules. Use j_security_check and the rest is handled through
the container.
You don't need that runAs() shit or LoginContxt.login() etc.
Only if you are outside the container.
Go head, reinvent the wheel. JAAS is meant for people who write containers,
not for people who use them.
Way to add confusion to an already clouded issue.
Also, let me explain J2EE authorization
You said: "As far as I know, J2EE does not specify how the authentication
is performed, so I don't know how you can say that JAAS goes
against the J2EE spec."
Dude, you define security restraints (authorization) to whatever resources
you want through a web.xml or ejb-jar.xml by asigning roles to them.
Im doing it as we speak.
Mike
"Wayne M Adams" <[email protected]> wrote in message
news:[email protected]...
>
Michael:
Please see my posts (8771 and 8772). You do use JAAS
when running an app within the WLS container. In fact,
you already are, whether you use the OOTB "new" security
SPI authentication providers or are in Compatibility
Security, in which case you're using JAAS through an adapter
to your old-style Realm.
Concerning "standard" authentication, the J2EE spec says:
"The web client forwards the authentication data to
the web server, where it is validated by the web
server... The validation mechanism may be local to
the server, or it may leverage the underlying
security services. On the basis of the validation,
the web server sets a credential for the user."
(Also, see section J2EE.3.3.2, "Non Goals").
As far as I know, J2EE does not specify how the authentication
is performed, so I don't know how you can say that JAAS goes
against the J2EE spec. WLS chose to use JAAS for authentication
because it's a Java-based implementation of a "standard" (PAM)
and Java security developers are familiar with it...
Jerry, it sounds like you're doing the right thing. You
will want to move away from the old Realm and get out of
Compatibility mode. I'm not sure what specific problem
you're having - if you're not being directed to your login
form page, my guess would be something else is wrong. That
is, I wouldn't expect to see a problem in the new ATN provider
crop up until after you had submitted your form info to
j_security_check. If you're not getting to the login page
at all, it would seem there might be a problem with a URL
mapping in a web resource collection, or something like that.
Just a guess.
Also, I don't think you need to implement your own provider
unless the one that's there doesn't meet your needs. In other
words, I can't see any reason why your authentication provider
couldn't work just fine with all the other WLS OOTB security
providers.
wayne
"Michael Lee" <[email protected]> wrote:
Dont use JAAS when running an app within your container. That goes
against
the J2EE spec.
Read my 32423432 previous posts here.
Mike
"Jerry Rodgers" <[email protected]> wrote in message
news:[email protected]...
Hi,
I am confused and I hope someone at BEA sees this post or someone whoknows the
answer steps up and clarifies this issue for me - please.
I have a basic web application, WLS 7, using Struts, Toplink, Oracle8i.
Pretty
standard. In 6.0 we used RDBMS realms to Authenticate and Authorizeour
users.
We used the web.xml to indicate we were using FORM based authenticationand the
SECURITY CONSTRAINTS were using role names that matched what the RDBMSRealms
were pulling from Oracle.
As I read the docs and look at the examples I see all the old stuffis
deprecated,
I do see I have the option of running in compatability mode - howeverI
don't
want to do this if this is not the way things will be done in the
future.
>>>
I followed the steps in the excellent post by Aaron Mulder "Weblogic7
RDBMS Realm
Procedure" and create my own Authentication provider, deployed it andit
seems
to be running. However I am now having problems getting the web.xmlto
"kick"
when I try and access a resticted resource I am not sent to my FORMBased
authentication
login page... shouldn't I be? I would think the security constraintswould
be
loaded correctly and same with the LOGIN config stuff and that WLSwould
just
use all the providers but that it would know what to do for thingslike
_security
check and all the contraints in the web.xml.
Am I going down the correct path? Do I just need to now write anAuthorization
provider too? In my test in my Authentication provider I put everyoneinto
the
"Administrators" group and use that in my web.xml. I would expect Iwould
be sent
to the login page first, then WLS would upon form submittal, checkthe
Authentication
provider, then my code would say all users are "Administrators", thenit
would
check that with the web.xml security constraint, then if the role
matched
would
send me on to the page.
Help :> I just want to get this working and make sure I am using thecorrect paradigm.
Thanks,
Jerry Rodgers
Maybe you are looking for
-
My iPhone (iOS7) doesn't recognize that I have iTunes 11.1
When I plugged my iPhone 4S (iOS7) in to my Mac Book Pro (OSX 10.6.8) I got a prompt that said I needed iTunes 11.1 for the phone to be recognized. I downloaded and successfully installed iTunes 11.1 but again received the same prompt upon plugging i
-
Can Mozilla Firefox 35.0.1 fix display problem on my Mac ?
Hi, I'm a photographer not a web designer so excuse my lack of knowledge ... but i have a problem with Firefox displaying my website ... www.rodedwards.com. I've just installed Wordpress on my server and installed a custom theme for my photography po
-
Any idea why we get following error with a simple test ejb client where we invoke a BPM flow Feb 27, 2013 9:44:20 AM SGT> <Error> <EJB> <BEA-010026> <Exception occurred during commit of transaction Name=[EJB ejb.bpm.direct.invoke.BPMSessionEJBBean.cr
-
Hi gurus, Need a help from you.I have made changes in the include but in my requirement i have to write the logic specific to a particular partner type only.The details present in this include dont have the details of the partner.How to get it. Edi
-
Update MKAL (MM02) with function
Hi, someone have already used the function MATERIAL_UPDATE_CD or anyothers that is able to create entries in the table MKAL ? Tkx Fred