Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to pass environment Userid into Forms? (6i could do it ...)

SM_WorkJul 7 2014 — edited Sep 23 2014

So we're _finally_ working toward migrating from good ol' Forms 6i to Forms 11g. We've worked thru various issues.

The current issue ... how to grab the OS's user ID and pass it into the form?

I know this may be a redundant question: but I searched and could not find an answer.

The original way was ...

[path][ifrun60.EXE [path2\form-to-call %username%/[pswd]@db_name

But now ... every example I can easily find shows "userID" in the formsweb.cfg file as a whole, hard-coded string ...
someID/pswd@db_name

... and we've tried %username%

I think I am probably not searching correctly, I cannot be the first person to ask this question ...

We need this to be simple, work everywhere. We are not so much concerned with security ... our users have already authenticated to the Windows domain server, and an environment variable is "out there" ...

If we could be pointed in the correct direction, that would be great.

Thanks for your time and help.

Suzanne

Comments

But the jar mentioned in this other thread, <BEA_HOME>\wlserver_10.3\server\lib\consoleapp\webapp\WEB-INF\lib\jsf-impl.jar is NOT in your WEB-INF/lib directory. Can you add this jar as well?

Also, what is the content of your weblogic.xml file?

Steven Davelaar,
Jheadstart team.
778367
Yeah, issue solved. a quite common EAR, WAR library reference problem ^.^

Since I deployed the application as an EAR, it seems that weblogic cannot reference .war/WEB-INF/lib/trinidad-impl.jar. (since the jar is put in viewcontroller project.

So I have to put the trinidad.jar and trinidad-impl.jar to .ear/lib

Edited by: user1027304 on Jun 14, 2010 12:12 AM
778367
I have figured out the problem behind. The J2EE classloader problem.

For some unknown reason, the JHeadStart runtime (jhsadfrt-11.1.1.jar) has been copied to EAR's lib folder.

Thus JhsNavigationHandlerImpl is loaded to EAR classloader, instead of WAR's one.

Since EAR classloader is the parent of WAR classloader, the trinidad runtime cannot be found by JhsNavigationHandlerImpl.


The problem is solved simply by removing jhsadfrt-11.1.1.jar from EAR's lib folder.
1 - 3
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 21 2014
Added on Jul 7 2014
12 comments
4,852 views