aspose file tools*
The moose likes BEA/Weblogic and the fly likes Weblogic 8.1.3 Custom Identity Asserter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Weblogic 8.1.3 Custom Identity Asserter" Watch "Weblogic 8.1.3 Custom Identity Asserter" New topic
Author

Weblogic 8.1.3 Custom Identity Asserter

Eric A. Lee
Greenhorn

Joined: Oct 08, 2010
Posts: 2
hi all,

currently I am trying to implement Custom IA on Weblogic 8.1.3 using modified codes which were originally for 9.2

I am getting a ClassNotFound error even though the class file is there.

Currently, the auto generated MBI java file contains a
//@packageDescriptor

instead of package examples.security.providers.identityassertion.simple (which i believe is the correct value)

Any idea how bypass this error ?

Triggering ./ant will give the following :
Buildfile: build.xml

build.mdf:
[java] Working directory ignored when same JVM is used.
[java] Parsing the MBean definition file: SimpleSampleServletAuthenticationFilter.xml
[java] Generating the source files...
[java] Generating the MBean interface file...
[java] Generating the MBean implementation file...
[java] Compiling the implementation file...
[java] Compiling these files test/SimpleSampleIdentityAsserterImpl.java
[java] Generating the MBI generator file...
[java] Compiling the MBI generator file...
[java] Compiling these files test/SimpleSampleIdentityAsserterMBI.java
[java] Creating the MBI file...
[java] Could not create MBI.
[java] java.lang.ClassNotFoundException: SimpleSampleIdentityAsserterMBI
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
[java] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
[java] at java.lang.Class.forName0(Native Method)
[java] at java.lang.Class.forName(Class.java:219)
[java] at weblogic.management.commo.WebLogicMBeanMaker.main(WebLogicMBeanMaker.java:822)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:324)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:208)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:150)
[java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:443)
[java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:163)
[java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
[java] at org.apache.tools.ant.Task.perform(Task.java:341)
[java] at org.apache.tools.ant.Target.execute(Target.java:309)
[java] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[java] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
[java] at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
[java] at org.apache.tools.ant.Main.runBuild(Main.java:609)
[java] at org.apache.tools.ant.Main.start(Main.java:196)
[java] at org.apache.tools.ant.Main.main(Main.java:235)
[java] Fatal errors occurred.


I followed the steps and files required in
http://weblogic-wonders.com/weblogic/2010/03/15/custom-identity-asserter-for-weblogic-server/

Any help is greatly appreciated.

Thanks !
Eric A. Lee
Greenhorn

Joined: Oct 08, 2010
Posts: 2
A post in a particular website mentioned that I should run the DMDF twice.

Once to generate the class file and hit the ClassNotFoundError.

2nd time after copying the class files to some directories.

Anyone can enlighten me which paths I should copy the files to ?

Tried a few places but no luck.


CP=3D%BEA_HOME%\weblogic81\server\lib\weblogic.jar;%BEA_HOME%\weblogic8=
1\server\lib\mbeantypes\wlManagement.jar;%JAVA_HOME%\lib\tools.jar;..\WEB-I=
NF\classes;

java -DMDF=3D.\com\my\security\MyAuthenticator.xml -Dfiles=3D.\com\my\secur=
ity\ -DcreateStubs=3Dfalse -cp %CP% weblogic.management.commo.WebLogicMBean=
Maker

copy .\com\my\security\com\my\security\*.class .\com\my\security
copy .\com\my\security\*.class .

java -DMDF=3D.\com\my\security\MyAuthenticator.xml -Dfiles=3D.\com\my\secur=
ity\ -DcreateStubs=3Dfalse -cp %CP% weblogic.management.commo.WebLogicMBean=
Maker


 
wood burning stoves
 
subject: Weblogic 8.1.3 Custom Identity Asserter