InvocationTargetException on 5.1 using RDBMSRealm
I am running WebLogic 5.1 on Win2K professional.I followed the instructions in the documentation for building the RDBMSRealm and definining it in the weblogic.properties file. However when the server tries to load the realm I get the following stack trace:Exception raised: java.lang.reflect.InvocationTargetExceptionjava.lang.reflect.InvocationTargetException: java.lang.IllegalAccessError: try to access method examples/security/rdbmsrealm/RDBMSDelegate.<init>(Lexamples/security/rdbmsrealm/RDBMSRealm;)V from class examples/security/rdbmsrealm/RDBMSDelegate$DFactory at examples.security.rdbmsrealm.RDBMSDelegate$DFactory.newInstance(RDBMSDelegate.java:895) at weblogic.utils.reuse.Pool.getInstance(Pool.java:57) at examples.security.rdbmsrealm.RDBMSRealm.getDelegate(RDBMSRealm.java:113) at examples.security.rdbmsrealm.RDBMSRealm.getPermission(RDBMSRealm.java:512) at weblogic.security.acl.CachingRealm.getPermission(CachingRealm.java:1698) at weblogic.security.acl.CachingRealm.setupAcls(CachingRealm.java, Compiled Code) at weblogic.security.acl.CachingRealm.<init>(CachingRealm.java:706) at weblogic.security.acl.CachingRealm.<init>(CachingRealm.java:564) at weblogic.t3.srvr.T3Srvr.initializeSecurity(T3Srvr.java:1747) at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code) at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825) at java.lang.reflect.Method.invoke(Native Method) at weblogic.Server.startServerDynamically(Server.java:99) at weblogic.Server.main(Server.java:65) at weblogic.Server.main(Server.java:55) at weblogic.NTServiceHelper.run(NTServiceHelper.java:19) at java.lang.Thread.run(Thread.java:479)java.lang.IllegalAccessError: try to access method examples/security/rdbmsrealm/RDBMSDelegate.<init>(Lexamples/security/rdbmsrealm/RDBMSRealm;)V from
I am running WebLogic 5.1 on Win2K professional.I followed the instructions in the documentation for building the RDBMSRealm and definining it in the weblogic.properties file. However when the server tries to load the realm I get the following stack trace:Exception raised: java.lang.reflect.InvocationTargetExceptionjava.lang.reflect.InvocationTargetException: java.lang.IllegalAccessError: try to access method examples/security/rdbmsrealm/RDBMSDelegate.<init>(Lexamples/security/rdbmsrealm/RDBMSRealm;)V from class examples/security/rdbmsrealm/RDBMSDelegate$DFactory at examples.security.rdbmsrealm.RDBMSDelegate$DFactory.newInstance(RDBMSDelegate.java:895) at weblogic.utils.reuse.Pool.getInstance(Pool.java:57) at examples.security.rdbmsrealm.RDBMSRealm.getDelegate(RDBMSRealm.java:113) at examples.security.rdbmsrealm.RDBMSRealm.getPermission(RDBMSRealm.java:512) at weblogic.security.acl.CachingRealm.getPermission(CachingRealm.java:1698) at weblogic.security.acl.CachingRealm.setupAcls(CachingRealm.java, Compiled Code) at weblogic.security.acl.CachingRealm.<init>(CachingRealm.java:706) at weblogic.security.acl.CachingRealm.<init>(CachingRealm.java:564) at weblogic.t3.srvr.T3Srvr.initializeSecurity(T3Srvr.java:1747) at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code) at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825) at java.lang.reflect.Method.invoke(Native Method) at weblogic.Server.startServerDynamically(Server.java:99) at weblogic.Server.main(Server.java:65) at weblogic.Server.main(Server.java:55) at weblogic.NTServiceHelper.run(NTServiceHelper.java:19) at java.lang.Thread.run(Thread.java:479)java.lang.IllegalAccessError: try to access method examples/security/rdbmsrealm/RDBMSDelegate.<init>(Lexamples/security/rdbmsrealm/RDBMSRealm;)V from
Similar Messages
-
In order to use RDBMSRealm ... HELP!
In order to use RDBMSRealm, I appended the following content in
weblogic.properties:
weblogic.security.realmClass=rdbmsrealm.RDBMSRealm
weblogic.security.realm.cache.user.enable=true
weblogic.security.realm.cache.group.enable=true
weblogic.security.realm.cache.permission.enable=true
weblogic.security.realm.cache.acl.enable=true
weblogic.security.realm.cache.auth.enable=true
Then some exceptions like the following turned up:
The WebLogic Server did not start up properly.
Exception raised: java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError:
weblogic/utils/NestedRuntimeException
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at rdbmsrealm.RDBMSDelegate$DFactory.newInstance(RDBMSDelegate.java:894)
at weblogic.utils.reuse.Pool.getInstance(Pool.java:57)
at rdbmsrealm.RDBMSRealm.getDelegate(RDBMSRealm.java:114)
at rdbmsrealm.RDBMSRealm.getPermission(RDBMSRealm.java:516)
at weblogic.security.acl.CachingRealm.getPermission(CachingRealm.java:1698)
at weblogic.security.acl.CachingRealm.setupAcls(CachingRealm.java:757)
at weblogic.security.acl.CachingRealm.<init>(CachingRealm.java:706)
at weblogic.security.acl.CachingRealm.<init>(CachingRealm.java:564)
at weblogic.t3.srvr.T3Srvr.initializeSecurity(T3Srvr.java:1747)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1084)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
java.lang.NoClassDefFoundError: weblogic/utils/NestedRuntimeException
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at rdbmsrealm.RDBMSDelegate$DFactory.newInstance(RDBMSDelegate.java:894)
at weblogic.utils.reuse.Pool.getInstance(Pool.java:57)
at rdbmsrealm.RDBMSRealm.getDelegate(RDBMSRealm.java:114)
at rdbmsrealm.RDBMSRealm.getPermission(RDBMSRealm.java:516)
at weblogic.security.acl.CachingRealm.getPermission(CachingRealm.java:1698)
at weblogic.security.acl.CachingRealm.setupAcls(CachingRealm.java:757)
at weblogic.security.acl.CachingRealm.<init>(CachingRealm.java:706)
at weblogic.security.acl.CachingRealm.<init>(CachingRealm.java:564)
at weblogic.t3.srvr.T3Srvr.initializeSecurity(T3Srvr.java:1747)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1084)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
Could anybody tell me why? Thank you very much!
* @Name: Gary Wang
* @Company: CNUOL
* @Tel: 85191818-517The reason is that the realmClass is wrong. You need the complete qualified class
name, which I believe is something like "examples.security.rdbmsrealm.RDBMSRealm".
I'm not sure that that's correct, but you get the idea. Also make sure that it's
all compiled and placed in the proper directory (on mine it's myserver/serverclasses/examples/security/rdbmsrealm)
Cheers,
BKR
"Gary Wang" <[email protected]> wrote:
In order to use RDBMSRealm, I appended the following content in
weblogic.properties:
weblogic.security.realmClass=rdbmsrealm.RDBMSRealm
weblogic.security.realm.cache.user.enable=true
weblogic.security.realm.cache.group.enable=true
weblogic.security.realm.cache.permission.enable=true
weblogic.security.realm.cache.acl.enable=true
weblogic.security.realm.cache.auth.enable=true
Then some exceptions like the following turned up:
The WebLogic Server did not start up properly.
Exception raised: java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError:
weblogic/utils/NestedRuntimeException
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at rdbmsrealm.RDBMSDelegate$DFactory.newInstance(RDBMSDelegate.java:894)
at weblogic.utils.reuse.Pool.getInstance(Pool.java:57)
at rdbmsrealm.RDBMSRealm.getDelegate(RDBMSRealm.java:114)
at rdbmsrealm.RDBMSRealm.getPermission(RDBMSRealm.java:516)
at weblogic.security.acl.CachingRealm.getPermission(CachingRealm.java:1698)
at weblogic.security.acl.CachingRealm.setupAcls(CachingRealm.java:757)
at weblogic.security.acl.CachingRealm.<init>(CachingRealm.java:706)
at weblogic.security.acl.CachingRealm.<init>(CachingRealm.java:564)
at weblogic.t3.srvr.T3Srvr.initializeSecurity(T3Srvr.java:1747)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1084)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
java.lang.NoClassDefFoundError: weblogic/utils/NestedRuntimeException
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at rdbmsrealm.RDBMSDelegate$DFactory.newInstance(RDBMSDelegate.java:894)
at weblogic.utils.reuse.Pool.getInstance(Pool.java:57)
at rdbmsrealm.RDBMSRealm.getDelegate(RDBMSRealm.java:114)
at rdbmsrealm.RDBMSRealm.getPermission(RDBMSRealm.java:516)
at weblogic.security.acl.CachingRealm.getPermission(CachingRealm.java:1698)
at weblogic.security.acl.CachingRealm.setupAcls(CachingRealm.java:757)
at weblogic.security.acl.CachingRealm.<init>(CachingRealm.java:706)
at weblogic.security.acl.CachingRealm.<init>(CachingRealm.java:564)
at weblogic.t3.srvr.T3Srvr.initializeSecurity(T3Srvr.java:1747)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1084)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
Could anybody tell me why? Thank you very much!
* @Name: Gary Wang
* @Company: CNUOL
* @Tel: 85191818-517 -
Java.lang.SecurityException while using RDBMSRealm in 5.1
Hi,
We are in the process of migrating our application from Weblogic 4.5.1
to Weblogic 5.1. When we try to set up RdbmsRealm as the delegate realm
for the server and start the server, we get the following exception:
java.lang.SecurityException: User "system" does not have Permission
"read" based on ACL "weblogic.workspace.system".
at weblogic.security.acl.Security.logAndThrow(Security.java:372)
at weblogic.security.acl.Security.checkPermission(Security.java:254)
at
weblogic.workspace.server.Workspace.checkPermission(Workspace.java:1169)
at weblogic.workspace.server.Workspace.checkRead(Workspace.java:1174)
at weblogic.workspace.server.Workspace.fetch(Workspace.java:208)
at
weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:243)
at weblogic.jdbc.common.internal.JdbcInfo.initPools(JdbcInfo.java,
Compiled Code)
at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
at weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java, Compiled
Code)
at
weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)
The database has aclentries that grant read, write and reserve
permissions on weblogic.workspace.system to everyone. It is not clear
why the server still complains that user 'system' does not have
permissions. Is 'system' user not a part of everyone group by default? (
We are using the same acls we were using with Weblogic 4.5.1 ). Does
'everyone' group have all the users in it by default? Or has it changed?
Any suggestions welcome.
Thanks and Regards
Suresh BEither try setting weblogic.allow.read.weblogic.workspace=system
Or add the system user to the group 'everyone' in the database you use for
RDBMSRealm (Hmm, not sure if this will work or not.
If you are implementing a custom realm then you need to explicitly state
which members are in the 'everyone' group.
(I've recently had a similar problem . I actually chose a different
solution, by overriding the isMember(user) method in RDBMSGroup to always
return true if the group's name is 'everyone' - I had to override the method
anyway, for other reasons. If anyone as any input on why this is a really
bad idea please feel free to tell me)
terry
BSuresh <[email protected]> wrote in message
news:[email protected]...
Hi,
weblogic.allow.read.weblogic.workspace=everyone
weblogic.allow.write.weblogic.workspace=everyone
weblogic.allow.read.weblogic.workspace.system=everyone
weblogic.allow.write.weblogic.workspace.system=everyone
I tried having the above entries in the weblogic.properties file but theserver
complains that weblogic.workspace acl is defined both in the delegate andbackup
realm. And the result remains the same - java.lang.SecurityException.User
"system" does not have Permission "read" based on ACL
"weblogic.workspace.system".
Thanks
Suresh.B
KNK wrote:
Try setting the "read" and "write" permissions explicitly in
weblogic.properties file.
weblogic.allow.read.weblogic.workspace=everyone
weblogic.allow.write.weblogic.workspace=everyone
-- KNK --
A ten thousand miles journey begins with a single step. That single stephas
to be taken from where you are, worries are no solution to any problem.
"BSuresh" <[email protected]> wrote in message
news:[email protected]...
Hi,
We are in the process of migrating our application from Weblogic 4.5.1
to Weblogic 5.1. When we try to set up RdbmsRealm as the delegate
realm
for the server and start the server, we get the following exception:
java.lang.SecurityException: User "system" does not have Permission
"read" based on ACL "weblogic.workspace.system".
at weblogic.security.acl.Security.logAndThrow(Security.java:372)
at weblogic.security.acl.Security.checkPermission(Security.java:254)
at
weblogic.workspace.server.Workspace.checkPermission(Workspace.java:1169)
>>>
at weblogic.workspace.server.Workspace.checkRead(Workspace.java:1174)
at weblogic.workspace.server.Workspace.fetch(Workspace.java:208)
at
weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:243
at weblogic.jdbc.common.internal.JdbcInfo.initPools(JdbcInfo.java,
Compiled Code)
at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
at
weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java, Compiled
Code)
at
weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)
>>>
The database has aclentries that grant read, write and reserve
permissions on weblogic.workspace.system to everyone. It is not clear
why the server still complains that user 'system' does not have
permissions. Is 'system' user not a part of everyone group by default?(
We are using the same acls we were using with Weblogic 4.5.1 ). Does
'everyone' group have all the users in it by default? Or has itchanged?
>>>
Any suggestions welcome.
Thanks and Regards
Suresh B -
Using RDBMSRealm as backup realm and filerealm as primary realm
I want to use filerealm as primary realm and RDBMSRealm as backup realm in
my custom realm. How can I do that?
Or how can I get access to filerealm from RDBMSRealm so that I can call
filerealm.getUser() before I try to get it from database.
Thank you.
Tero Järvinen.What I've done does set the RDBMSRealm as the default realm.
What had me worried and doubting this was that if there is an authentication
problem, the console still says that there was a problem in "realm
weblogic" -- a little misleading.
"fnord" <[email protected]> wrote in message
news:[email protected]..
>
I could have sworn that setting the RealmClass in weblogic.properties set
the default realm for the server (or for the cluster in the
weblogic.properties in mycluster), as this seemed to be how it worked with
our test cases....
Now that I've set up a webapp on its own and am trying to test our beansin
it, it appears that the beans/webapp are trying to use the weblogic realm.
Here's the error:
principal: 1234
javax.naming.AuthenticationException. Root exception is
java.lang.SecurityException:
Authentication for user 1234 denied in realm weblogic
at weblogic.security.acl.Realm.authenticate(Realm.java:183)
Here's what I have in weblogic.properties:
weblogic.security.realmClass=examples.security.rdbmsrealm.RDBMSRealm
Should this set the RDBMSRealm as the default realm, or do I have to domore
to set the RDBMSRealm as the default for the webapp?
thanks,
John Stotler -
ACL failure with RDBMSRealm removed user session
When using RDBMSRealm, the user's session gets invalidated when the user do
not have access to certain pages. When I try this behaviour without enabling
the realm and setting the user groups and password in weblogic.properties, I
don't have this problem. Is this a bug?
Basically, what we need is a way so that we can differentiate a user who
hasn't logged in and one who does not have access rights to the resource -
without the realm, we were able to get the remoteUser to check whether there
is a remote user and if yes, then the login page will show a "No access"
message rather than the login form.
I am using sp5 and form-based authentication in a web-app.
When using RDBMSRealm, the user's session gets invalidated when the user do
not have access to certain pages. When I try this behaviour without enabling
the realm and setting the user groups and password in weblogic.properties, I
don't have this problem. Is this a bug?
Basically, what we need is a way so that we can differentiate a user who
hasn't logged in and one who does not have access rights to the resource -
without the realm, we were able to get the remoteUser to check whether there
is a remote user and if yes, then the login page will show a "No access"
message rather than the login form.
I am using sp5 and form-based authentication in a web-app.
-
WL 6.0: How to make RDBMSRealm be the Realm
Hi,
I tried to use RDBMSRealm, but found out that it is FileRealm
the system uses. I did not find a way to select which Realm to
use by console. I manually modified config.xml, but no luck.
Is there a way to use RDBMSRealm?
Thanks.Repost in 60beta.security.
Peace,
Cameron Purdy
Tangosol, Inc.
http://www.tangosol.com
+1.617.623.5782
WebLogic Consulting Available
"Wei Jiang" <[email protected]> wrote in message
news:3a30fadc$[email protected]..
>
Hi,
I tried to use RDBMSRealm, but found out that it is FileRealm
the system uses. I did not find a way to select which Realm to
use by console. I manually modified config.xml, but no luck.
Is there a way to use RDBMSRealm?
Thanks. -
I'm getting a core dump when I'm shutting down WLS 5.1 using
RDBMSRealm. It appears that the problem is when
the database connections are being closed during shutdown within the
RDBMSDelegate 'close' method. If I don't use
RDBMSRealm the server can shutdown without any problems. Is there a
workaround for this?
JayHi,
The workaround I've found is not to close the statement/preparedstatment
instances but you can still close the connection instances.
Jay Fuller wrote:
I'm getting a core dump when I'm shutting down WLS 5.1 using
RDBMSRealm. It appears that the problem is when
the database connections are being closed during shutdown within the
RDBMSDelegate 'close' method. If I don't use
RDBMSRealm the server can shutdown without any problems. Is there a
workaround for this?
Jay -
Double Authetication Popup:RDBMSRealm.
Hi,
In my Web application, I am doing a security check for the Authorised users with the help of the "RDBMSRealm". When I try to access the Servlet, first Authentication window pops up where I am specifying the authorised user and Password . Once this is authenticated, one more Authentication window Pops up which asks for the Weblogic Server user and Password (in my case it is system/password specified in the Weblogic.properties file). But I think the second pop up is unnecessary. How can I get rid of the second authentication pop up.
Here are the entries from web.xml for login-config section:
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>default</realm-name>
</login-config>
Regards,
Sachin.I am not sure whether
<realm-name>default</realm-name> will do,
since you are using RDBMSRealm try
<realm-name>RDBMSRealm</realm-name>
hope this helps
"sachin patait" <[email protected]> wrote:
>
Hi,
In my Web application, I am doing a security check for
the Authorised users with the help of the "RDBMSRealm".
When I try to access the Servlet, first Authentication
window pops up where I am specifying the authorised user
and Password . Once this is authenticated, one more Authentication
window Pops up which asks for the Weblogic Server user
and Password (in my case it is system/password specified
in the Weblogic.properties file). But I think the second
pop up is unnecessary. How can I get rid of
the second authentication pop up.
Here are the entries from web.xml for login-config section:
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>default</realm-name>
</login-config>
Regards,
Sachin. -
Hi,
I was hoping that there was a way to "auto log" someone one not by using a cookie
but instead via some server side method calls.
Our site allows someone to click on a link in an email and complete a registration
form, after they press submit we currently take them to our login page - which
works fine is using RDBMSRealms, however we would now like to skip the login page
and just have the code behind the registration page just login them in and skip
the login step.
Any ideas thanks,
Jerry RodgersFound it:
int authenticated = ServletAuthentication.weak(username,password, request);
thanks,
Jerry
"Jerry Rodgers" <[email protected]> wrote:
>
Hi,
I was hoping that there was a way to "auto log" someone one not by using
a cookie
but instead via some server side method calls.
Our site allows someone to click on a link in an email and complete a
registration
form, after they press submit we currently take them to our login page
- which
works fine is using RDBMSRealms, however we would now like to skip the
login page
and just have the code behind the registration page just login them in
and skip
the login step.
Any ideas thanks,
Jerry Rodgers -
Error in starting a JPD.
Following is the error description in short.
=-==========================================
An unexpected exception occurred while attempting to locate the run-time information for this Web Service. Error: java.lang.reflect.InvocationTargetException:null
=-==========================================
* I am using WLI.
I have uninstall and installed the weblogic around 15 times.
It works fine for some times then after some successful work, i am regularly getting this exception.
Please help!I will try and get someone from the WLI team to respond.
amin uddin wrote:
Following is the error description in short.
=-==========================================
An unexpected exception occurred while attempting to locate the run-time information for this Web Service. Error: java.lang.reflect.InvocationTargetException:null
=-==========================================
* I am using WLI.
I have uninstall and installed the weblogic around 15 times.
It works fine for some times then after some successful work, i am regularly getting this exception.
Please help! -
Important bug........
Hi.I'm using WLS 5.1 with sp 6, NT system.
I have a servlet where I use HttpSession to store attributes (EJB). This
attributes are recuperated in a jsp page. This behavior is correct........
The problem starts when I establish permissions in my custom realm
(RDBMSRealm), for a user A.
I execute the servlet and all the process is correct, but later, if I call
other servlet with permissions for a user B, ocurrs this situation:
1- The custom realm try to use the last user A.
2- This user is not valid, and then I have to introduce a other login and
other password.
3- I introduce the user B data.
4- Custom realm not use this information, it uses user A information.
5- I try to login three times, and finally the message "Credentials not
valid......" is shown.
It never tries to authenticate the B user. What is happening ? Do I have any
parameter in weblogic.properties file ?
But if I cancel the sentence... session = req.getSession(true) or I put
session = req.getSession(false),
the behavior is totally correct for servlets and custom realm, but the
problem appears with the attributes for HttpSession......
Can anybody help me ? All the help is welcome.
Thanks and bye.The problem was service pack, I delete sp5 and the problem disappear.
"Uskalo" <[email protected]> escribió en el mensaje
news:[email protected]...
>
I don't use IIS proxy DLL.
I tried a more simple situation and result is negative.
WLS 5.1, sp5 and NT.
RDBMSRealm, three tables (USERS, GROUPS, ACL_ENTRIES).
Configuration:
weblogic.servlet.ServletA execute paul
weblogic.servlet.ServletB execute mike
Two servlets (A, B) with this code:
------------ servlet A --------------
public class servletA extends .... {
public void doGet(HttpServletRequest req, HttpServletResponse res) {
PrintWriter out;
HttpSession session = null;
// If I put this sentence in my code although I don't use session
for nothing, the next call to
// the other servlet not work correctly. If I delete this sentence
the behavior is correct.
session = req.getSession(true);
res.setContentType("text/html");
out = res.getWriter();
out.println("<HTML><HEAD></HEAD>");
out.println("<BODY><H1>Hello World</H1></BODY>");
public class ServletB extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse res) {
PrintWriter out;
res.setContentType("text/html");
out = res.getWriter();
out.println("<HTML><HEAD></HEAD>");
out.println("<BODY><H1>Bye, Bye World</H1></BODY>");
The execution is like this.
I open my browser and write the URL: http://localhost:7001/ServletA
CachingRealm captures the request and delegates it to RDBMSRealm.
The browser opens his form authentication and I write paul, passA.
Request is capturated, managed and user is authenticated. HelloWorld
appears........in browser.
I write the next URL: http://localhost:7001/ServletB
CachingRealm captures the request and delegates it to RDBMSRealm. It tryto
authenticated user paul (correct). User paul doesn't have permission to
visit Servlet B, so browser opens his form authentication.
I write login and password for user mike, who has permission to execute
ServletB.
Request is capturated, managed but it never try to authenticatemike.....it
uses always user paul information....
If I delete the sentence session = req.getSession(true) then the behavioris
correct. When I write login and password for user mike, the text Bye, Bye
World appears.....using the same custom realm.
I only delete the sentence which reference the session and all is correct.
Please help me. Use this simple servlets, register them, use RDBMSRealm
example and comprobe it. It's important.....
Thanks a lot.
"Steve Brown" <[email protected]> escribió en el mensaje
news:[email protected]...
Are you using the IIS proxy DLL? If so, I think this is the same problem
I
encountered. See the reply to the message with the title "Authenticating
through the IIS Proxy with WLS 5.1 SP6"
Hope this helps,
Steve Brown -
Portal 7.x and 8.x app in the same domain
Here's the deal.
I am developing a brand new Portal 8.1 app. At the same time, I am upgrading a
Portal 7.x app. The requirement is that they both run on the same domain, and
preferably as two desktops. How do I do this? Can they share the same webapp within
an application, or do they need to be separate webapps? Any dB issues that I need
to worry about?
Thanks
KunalYes, it saves a lot of grief, providing all servers are equally secure of
course...
On Mon, 8 Dec 2003 18:43:29 -0800, "Carl" <[email protected]> wrote:
Very cool. How does it work under the covers? The two WLS domain talk with
each other? So, the following would work:
o We have a WLS 7 domain
o The domain uses RDBMSRealm
o We created a new WLS 8 domain
o We set-up the trust
o Now, we login in to app on 8 domain, and it checks the 7's realm?Not quite - 8 still needs its own realm. The subjects (users and groups)
have to exist in both realms - 8 will just be taking 7's word for it that
"fred" has been authenticated but will still need to check fred's group
and/or role mappings.
The same realm data needs to exist for both systems. In LDAP it would be
easy enough to point them both at the same directory but.for a database
there is less control over the mappings - any differences between RDBMSRealm
and 8's RDBMSAuthenticator (unless you want to run compatibility security)
schemas might cause problems. I believe running the latter on both should
work but in principle the schema could change in a later version of the
product.
>
"Alex Thomas" <[email protected]> wrote in message
news:[email protected]..
See "Enabling Trust Between WebLogic Server Domains" section in
http://e-docs.bea.com/wls/docs81/secmanage/domain.html#1140940
This works between 7 and 8 (and, using the system account, on 6.1).
cheers
Alex
On Fri, 5 Dec 2003 10:22:29 -0800, "Carl" <[email protected]> wrote:
You can make the 7 domain trust the 8 domain so users don't have to log
in
twice, but you can't run the two versions in the same domain (not agreat
deal of benefit in doing so, once trust is sorted).How we do make 7 domain trust the 8 domain? -
Axi2_Codegen_Wizard error - Please help
Hi,
I am trying to follow the tutorial at Developing Web Services Using Apache Axis2 Eclipse Plugins - Part I. When try to generate the wsdl file using Axis 2 Code Generator wizard I get the "java.lang.reflect.InvocationTargetException" message window at the final step. I am not able to find the log file to see the stack trace.
I found in some forums to add the 2 jar file "backport-util-concurrent-3.1.jar" and "geronimo-stax-api_1.0_spec-1.0.1.jar". I tried adding the 2 jar files under Axis2 Code Generator plug-in's lib folder and added the corresponding entry in its plugin.xml file. However when I tried to generate the wsdl file, I am still getting the same InvocationTargetException exception. I use the following
Tomcat : 6.0
Eclipse : 3.4.1
Axis2.war (deployed in tomcat webapps)
Java 1.6.0_16
AXIS2_HOME : C:\axis2-1.4.1
Am I missing something here. For some reason I am not able to make it to work.
Thanks in advance
scshekharI have tried this only for it to come up with a broadband screen asking for me to enter a password and username wich someone told me they both should be admin and it should work but all i get is a time out PPOE whatever that means.
i have an old ntl modem actually funny you should say that because someone said something about that before but it does have 1 ethernet port on it colour coded blue and next to that is the usb connection?
So is it the modem and if so what sort of modem is best for an ntl cable network any sugestions would be great?
Message Edited by gazzman on 04-03-200701:36 PM
I have i Modem an old NTL standard modem with Usb and an ethernet connection (RJ45) and from that im using my linksys router nothing else
Message Edited by gazzman on 04-03-200701:42 PM
Message Edited by gazzman on 04-03-200701:43 PM -
I'm trying to set up an ACL on a JSP page for the default WebLogic realm
using a very simple example.
I added the following lines to weblogic.properties file
to specify an ACL on a particular JSP page.
# ACL for JSP pages
weblogic.allow.execute.weblogic.servlet./dummy.jsp=testuser
However, when 'dummy.jsp' is accessed for the very first time
since WebLogic server is brought up,
the server just displays the page without any security check.
'dummy.jsp' displays the current user which is retrieved by
'Security.getCurrentUser()' method and I could find out the user is 'guest'
when the server bypasses the security check.
But it works just fine from the next time, that is, it does security check
properly afterwards so that only user 'testuser' can view the JSP page.
In other words, this problem occurrs only once while the server is running.
The very first time the JSP page is accessed.
I've also tried with servlets and EJBs, which didn't get me this problem.
Actually I tested this using RDBMSRealm in the first place,
but I went through the same problem.
That's why I'm testing it with WLPropertyRealm now to simplify the test
case.
However I got stuck with the same problem again.
Is this a WebLogic bug or am I missing something?
Could anyone please help me out with this?
Thanks in advance...
Best regards,
SangSorry, I forgot to specify my testing environment.
WL5.1 with SP6.
JDK1.3
running on WinNT 4.0 with SP5
Sang Y. Sung <[email protected]> wrote in message
news:3a0f51c4$[email protected]..
I'm trying to set up an ACL on a JSP page for the default WebLogic realm
using a very simple example.
I added the following lines to weblogic.properties file
to specify an ACL on a particular JSP page.
# ACL for JSP pages
weblogic.allow.execute.weblogic.servlet./dummy.jsp=testuser
However, when 'dummy.jsp' is accessed for the very first time
since WebLogic server is brought up,
the server just displays the page without any security check.
'dummy.jsp' displays the current user which is retrieved by
'Security.getCurrentUser()' method and I could find out the user is'guest'
when the server bypasses the security check.
But it works just fine from the next time, that is, it does security check
properly afterwards so that only user 'testuser' can view the JSP page.
In other words, this problem occurrs only once while the server isrunning.
The very first time the JSP page is accessed.
I've also tried with servlets and EJBs, which didn't get me this problem.
Actually I tested this using RDBMSRealm in the first place,
but I went through the same problem.
That's why I'm testing it with WLPropertyRealm now to simplify the test
case.
However I got stuck with the same problem again.
Is this a WebLogic bug or am I missing something?
Could anyone please help me out with this?
Thanks in advance...
Best regards,
Sang -
Unable to start Upgrade Assistant (UaServer)
When trying to start the upgrade assistant I am getting the following messages:
C:\Documents and Settings\devadm>java -cp e:\usr\sap\put\ua\ua.jar UaServer
UaServer> Stable storage file 'e:\usr\sap\put\ua\UaState' read
UaServer> Temporary directory is 'e:\usr\sap\put\ua'
UaServer> Property file 'e:\usr\sap\put\ua\UaServer.properties' read
UaServer> Configuring HTTP server
UaServer> Using HTTP index file name: index.html
UaServer> Signing JAR file uagui.jar
com.sap.sdt.server.core.SDTServer.createService(SDTServer.java:281)
com.sap.sdt.server.core.SDTServer.startUaServer(SDTServer.java:126)
sun.reflect.NativeMethodAccessorImpl.invoke0(null:-2)
sun.reflect.NativeMethodAccessorImpl.invoke(null:-1)
sun.reflect.DelegatingMethodAccessorImpl.invoke(null:-1)
java.lang.reflect.Method.invoke(null:-1)
com.sap.sdt.util.misc.MethodCall.invoke(MethodCall.java:80)
com.sap.sdt.util.misc.BootStrapper.start(BootStrapper.java:76)
UaServer.main(UaServer.java:367)
msg.server.0002 com.sap.sdt.server.ext.r3up.R3upService
msg.diag.0002 java.lang.reflect.InvocationTargetException null
UaServer> ERROR:
com.sap.sdt.server.core.SDTServer.createService(SDTServer.java:281)
com.sap.sdt.server.core.SDTServer.startUaServer(SDTServer.java:126)
sun.reflect.NativeMethodAccessorImpl.invoke0(null:-2)
sun.reflect.NativeMethodAccessorImpl.invoke(null:-1)
sun.reflect.DelegatingMethodAccessorImpl.invoke(null:-1)
java.lang.reflect.Method.invoke(null:-1)
com.sap.sdt.util.misc.MethodCall.invoke(MethodCall.java:80)
com.sap.sdt.util.misc.BootStrapper.start(BootStrapper.java:76)
UaServer.main(UaServer.java:367)
msg.server.0002 com.sap.sdt.server.ext.r3up.R3upService
msg.diag.0002 java.lang.reflect.InvocationTargetException null
I am using Windows 2003 server and SQL 2005.
I have searched endlessly through OSS and sdn but am tearing my hair out.
Thnaks.Thanks for the reply.
- <sidadm> has admin rights
- i have set various environment variables individually, but dont know which should be set and which dont matter
- java version jre 1.5.0_09
- prepare has been run for the first time and i am then trying to invoke the UaServer BEFORE i can invoke the uagui.
I believe that the most likely cause is an environment variable that is missing, but its finding the right one!
Thanks.
Maybe you are looking for
-
Using a local XML file for parsing - iPhone
Good afternoon everyone. I am trying to create an application for the iPhone that will use an XML file for it's data source. I have been attempting to convert the SeismicXML application from the dev center to use a locally stored file, but to no avai
-
Sync issues between iPhone 5 and Outlook 2013 through iTunes
For at least 6 months I have been using a W8 laptop with Outlook 2013, and I've flawlessly been able to sync my iPhone 5 through a tethered connection to iTunes. Two weeks ago, I lost the ability to update my Outlook calendar to the iPhone as new ca
-
I'm working on an HD project and when I copy the sequence and paste it in a new sequence where do make it the same settings? I went to settings and it looks like they are the same.
-
How to rename home library in mountain lion without reinstalling OS
How can I rename mountain lion home directory without
-
Show a message box after the concurrent program completes normal
Hi, I have a requirement to show a message box with some message once the concurrent program is COMPLETED NORMAL. Can we do this through form customization or is there any other way?? Thanks in advance Thanks, Venkat