CreateJaznUser: import oracle.security.jazn.oc4j.JAZNUserManager not found
Hello!
I need to create a function that could allow Application users to change their passwords.I use a JAZN authentication in the application. So, I decided to analyze contents of the CreateJaznUser application first. But compilation of this application breaks by the next error:
import oracle.security.jazn.oc4j.JAZNUserManager not found
Could you advise me, what an additional libraries I must add to the CreateJaznUser application and where can I download them from?
Thanks in advance.
OID 3.0.1.0 is the latest product release to public. I did add the Install data to allow it to work. I see the data in OID but when I connect with jazn I get error.
java -jar jazn.jar -shell
JAZN:> ls
realms policy
JAZN:> cd realms
JAZN:> ls
String index out of range: 32
JAZN:> cd ../policy
JAZN:> ls
JAZN:> exit
JAZN:>
It does not error on policy dirictory but it does on the realm side. If I watch the tcp packets it is working.
Similar Messages
-
We are testing the JAZN callInfo sample. I have OID version 3.0.1.0, and Oracle9iAS (9.0.3.0.0) Containers for J2EE. We setup the jazn to use LDAP.
When starting oc4j we get the following:
java -jar oc4j.jar Error instantiating application 'callerInfo' at file:/u01/app/oracle/products/9iAS/j2ee/home/jazn/demo/callerInfo/callerInfo.ear: Error initializing userManager 'oracle.security.jazn.oc4j.JAZNUserManager': java.lang.StringIndexOutOfBoundsException (String index out of range: 32)
Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
We see it this connect to ldap and get a reply. I feel the string back is larger than jazn is expecting.
We check the tcp traffic and see it connecting:
09:10:57.377851 buckwheat.jxn.wcom.com.389 > buckwheat.jxn.wcom.com.35082: P 15:2641(2626) ack 131 win 32767 <nop,nop,timestamp 26118724 26118721> (DF)
0x0000 4500 0a76 8468 4000 4006 6450 9f62 8482 E..v.h@[email protected]..
0x0010 9f62 8482 0185 890a 1594 0e68 15e8 7584 .b.........h..u.
0x0020 8018 7fff 37d6 0000 0101 080a 018e 8a44 ....7..........D
0x0030 018e 8a41 3082 0a3e 0201 0264 820a 3704 ...A0..>...d..7.
0x0040 1063 6e3d 4f72 6163 6c65 436f 6e74 6578 .cn=OracleContex
0x0050 7430 820a 2130 1504 0263 6e31 0f04 0d4f t0..!0...cn1...O
0x0060 7261 636c 6543 6f6e 7465 7874 3044 040b racleContext0D..
0x0070 6f62 6a65 6374 636c 6173 7331 3504 0374 objectclass15..t
0x0080 6f70 040b 6f72 636c 436f 6e74 6578 7404 op..orclContext.
0x0090 106f 7263 6c43 6f6e 7465 7874 4175 7838 .orclContextAux8
0x00a0 3204 0f6f 7263 6c52 6f6f 7443 6f6e 7465 2..orclRootConte
0x00b0 7874 3016 040b 6f72 636c 7665 7273 696f xt0...orclversio
0x00c0 6e31 0704 0539 3030 3030 3081 9104 116f n1...900000....o
0x00d0 7263 6c65 6e74 7279 6c65 7665 6c61 6369 rclentrylevelaci
0x00e0 317c 047a 6163 6365 7373 2074 6f20 656e 1|.zaccess.to.en
0x00f0 7472 7920 6279 2067 726f 7570 3d22 636e try.by.group="cn
0x0100 3d4f 7261 636c 654e 6574 4164 6d69 6e73 =OracleNetAdmins
0x0110 2c63 6e3d 4f72 6163 6c65 436f 6e74 6578 ,cn=OracleContex
0x0120 7422 2028 6164 6429 2062 7920 6772 6f75 t".(add).by.grou
0x0130 703d 2263 6e3d 4f72 6163 6c65 4442 4372 p="cn=OracleDBCr
0x0140 6561 746f 7273 2c63 6e3d 4f72 6163 6c65 eators,cn=Oracle
0x0150 436f 6e74 6578 7422 2028 6164 6429 3082 Context".(add)0.
0x0160 0914 0407 6f72 636c 6163 6931 8209 0704 ....orclaci1....
0x0170 7d61 6363 6573 7320 746f 2065 6e74 7279 }access.to.entry
0x0180 2062 7920 6772 6f75 703d 2263 6e3d 4f72 .by.group="cn=Or
0x0190 6163 6c65 436f 6e74 6578 7441 646d 696e acleContextAdmin
0x01a0 732c 636e 3d47 726f 7570 732c 636e 3d4f s,cn=Groups,cn=O
0x01b0 7261 636c 6543 6f6e 7465 7874 2220 2862 racleContext".(b
0x01c0 726f 7773 652c 6164 642c 6465 6c65 7465 rowse,add,delete
0x01d0 2920 6279 202a 2028 6272 6f77 7365 2c6e ).by.*.(browse,n
0x01e0 6f61 6464 2c6e 6f64 656c 6574 6529 0481 oadd,nodelete)..
0x01f0 a461 6363 6573 7320 746f 2061 7474 723d .access.to.attr=
0x0200 282a 2920 6279 2067 726f 7570 3d22 636e (*).by.group="cn
0x0210 3d4f 7261 636c 6543 6f6e 7465 7874 4164 =OracleContextAd
0x0220 6d69 6e73 2c63 6e3d 4772 6f75 7073 2c63 mins,cn=Groups,c
0x0230 6e3d 4f72 6163 6c65 436f 6e74 6578 7422 n=OracleContext"
0x0240 2028 7265 6164 2c73 6561 7263 682c 7772 .(read,search,wr
0x0250 6974 652c 7365 6c66 7772 6974 652c 636f ite,selfwrite,co
0x0260 6d70 6172 6529 2062 7920 2a20 2872 6561 mpare).by.*.(rea
0x0270 642c 7365 6172 6368 2c6e 6f77 7269 7465 d,search,nowrite
0x0280 2c6e 6f73 656c 6677 7269 7465 2c63 6f6d ,noselfwrite,com
0x0290 7061 7265 2904 81dd 6163 6365 7373 2074 pare)...access.t
0x02a0 6f20 656e 7472 7920 6669 6c74 6572 3d28 o.entry.filter=(
0x02b0 6f62 6a65 6374 636c 6173 733d 6f72 636c objectclass=orcl
0x02c0 4e65 7453 6572 7669 6365 2920 6279 2067 NetService).by.g
0x02d0 726f 7570 3d22 636e 3d4f 7261 636c 6544 roup="cn=OracleD
0x02e0 4253 6563 7572 6974 7941 646d 696e 732c BSecurityAdmins,
0x02f0 636e 3d4f 7261 636c 6543 6f6e 7465 7874 cn=OracleContext
0x0300 2220 2862 726f 7773 652c 6164 642c 6465 ".(browse,add,de
0x0310 6c65 7465 2920 6279 2067 726f 7570 3d22 lete).by.group="
0x0320 636e 3d4f 7261 636c 654e 6574 4164 6d69 cn=OracleNetAdmi
0x0330 6e73 2c63 6e3d 4f72 6163 6c65 436f 6e74 ns,cn=OracleCont
0x0340 6578 7422 2028 6272 6f77 7365 2c61 6464 ext".(browse,add
0x0350 2c64 656c 6574 6529 2062 7920 2a20 2862 ,delete).by.*.(b
0x0360 726f 7773 652c 6e6f 6164 642c 6e6f 6465 rowse,noadd,node
0x0370 6c65 7465 2904 81ec 6163 6365 7373 2074 lete)...access.t
0x0380 6f20 656e 7472 7920 6669 6c74 6572 3d28 o.entry.filter=(
0x0390 6f62 6a65 6374 636c 6173 733d 6f72 636c objectclass=orcl
0x03a0 4e65 7444 6573 6372 6970 7469 6f6e 4c69 NetDescriptionLi
0x03b0 7374 2920 6279 2067 726f 7570 3d22 636e st).by.group="cn
0x03c0 3d4f 7261 636c 6543 6f6e 7465 7874 4164 =OracleContextAd
0x03d0 6d69 6e73 2c63 6e3d 4772 6f75 7073 2c63 mins,cn=Groups,c
0x03e0 6e3d 4f72 6163 6c65 436f 6e74 6578 7422 n=OracleContext"
0x03f0 2028 6272 6f77 7365 2c61 6464 2c64 656c .(browse,add,del
0x0400 6574 6529 2062 7920 6772 6f75 703d 2263 ete).by.group="c
0x0410 6e3d 4f72 6163 6c65 4e65 7441 646d 696e n=OracleNetAdmin
0x0420 732c 636e 3d4f 7261 636c 6543 6f6e 7465 s,cn=OracleConte
0x0430 7874 2220 2862 726f 7773 652c 6164 642c xt".(browse,add,
0x0440 6465 6c65 7465 2920 6279 202a 2028 6272 delete).by.*.(br
0x0450 6f77 7365 2c6e 6f61 6464 2c6e 6f64 656c owse,noadd,nodel
0x0460 6574 6529 0481 e861 6363 6573 7320 746f ete)...access.to
0x0470 2065 6e74 7279 2066 696c 7465 723d 286f .entry.filter=(o
0x0480 626a 6563 7463 6c61 7373 3d6f 7263 6c4e bjectclass=orclN
0x0490 6574 4465 7363 7269 7074 696f 6e29 2062 etDescription).b
0x04a0 7920 6772 6f75 703d 2263 6e3d 4f72 6163 y.group="cn=Orac
0x04b0 6c65 436f 6e74 6578 7441 646d 696e 732c leContextAdmins,
0x04c0 636e 3d47 726f 7570 732c 636e 3d4f 7261 cn=Groups,cn=Ora
0x04d0 636c 6543 6f6e 7465 7874 2220 2862 726f cleContext".(bro
0x04e0 7773 652c 6164 642c 6465 6c65 7465 2920 wse,add,delete).
0x04f0 6279 2067 726f 7570 3d22 636e 3d4f 7261 by.group="cn=Ora
0x0500 636c 654e 6574 4164 6d69 6e73 2c63 6e3d cleNetAdmins,cn=
0x0510 4f72 6163 6c65 436f 6e74 6578 7422 2028 OracleContext".(
0x0520 6272 6f77 7365 2c61 6464 2c64 656c 6574 browse,add,delet
0x0530 6529 2062 7920 2a20 2862 726f 7773 652c e).by.*.(browse,
0x0540 6e6f 6164 642c 6e6f 6465 6c65 7465 2904 noadd,nodelete).
0x0550 81e8 6163 6365 7373 2074 6f20 656e 7472 ..access.to.entr
0x0560 7920 6669 6c74 6572 3d28 6f62 6a65 6374 y.filter=(object
0x0570 636c 6173 733d 6f72 636c 4e65 7441 6464 class=orclNetAdd
0x0580 7265 7373 4c69 7374 2920 6279 2067 726f ressList).by.gro
0x0590 7570 3d22 636e 3d4f 7261 636c 6543 6f6e up="cn=OracleCon
0x05a0 7465 7874 4164 6d69 6e73 2c63 6e3d 4772 textAdmins,cn=Gr
0x05b0 6f75 7073 2c63 6e3d 4f72 6163 6c65 436f oups,cn=OracleCo
0x05c0 6e74 6578 7422 2028 6272 6f77 7365 2c61 ntext".(browse,a
0x05d0 6464 2c64 656c 6574 6529 2062 7920 6772 dd,delete).by.gr
0x05e0 6f75 703d 2263 6e3d 4f72 6163 6c65 4e65 oup="cn=OracleNe
0x05f0 7441 646d 696e 732c 636e 3d4f 7261 636c tAdmins,cn=Oracl
0x0600 6543 6f6e 7465 7874 2220 2862 726f 7773 eContext".(brows
0x0610 652c 6164 642c 6465 6c65 7465 2920 6279 e,add,delete).by
0x0620 202a 2028 6272 6f77 7365 2c6e 6f61 6464 .*.(browse,noadd
0x0630 2c6e 6f64 656c 6574 6529 0481 e461 6363 ,nodelete)...acc
0x0640 6573 7320 746f 2065 6e74 7279 2066 696c ess.to.entry.fil
0x0650 7465 723d 286f 626a 6563 7463 6c61 7373 ter=(objectclass
0x0660 3d6f 7263 6c4e 6574 4164 6472 6573 7329 =orclNetAddress)
0x0670 2062 7920 6772 6f75 703d 2263 6e3d 4f72 .by.group="cn=Or
0x0680 6163 6c65 436f 6e74 6578 7441 646d 696e acleContextAdmin
0x0690 732c 636e 3d47 726f 7570 732c 636e 3d4f s,cn=Groups,cn=O
0x06a0 7261 636c 6543 6f6e 7465 7874 2220 2862 racleContext".(b
0x06b0 726f 7773 652c 6164 642c 6465 6c65 7465 rowse,add,delete
0x06c0 2920 6279 2067 726f 7570 3d22 636e 3d4f ).by.group="cn=O
0x06d0 7261 636c 654e 6574 4164 6d69 6e73 2c63 racleNetAdmins,c
0x06e0 6e3d 4f72 6163 6c65 436f 6e74 6578 7422 n=OracleContext"
0x06f0 2028 6272 6f77 7365 2c61 6464 2c64 656c .(browse,add,del
0x0700 6574 6529 2062 7920 2a20 2862 726f 7773 ete).by.*.(brows
0x0710 652c 6e6f 6164 642c 6e6f 6465 6c65 7465 e,noadd,nodelete
0x0720 2904 8201 1461 6363 6573 7320 746f 2061 )....access.to.a
0x0730 7474 723d 282a 2920 2066 696c 7465 723d ttr=(*)..filter=
0x0740 286f 626a 6563 7463 6c61 7373 3d6f 7263 (objectclass=orc
0x0750 6c4e 6574 5365 7276 6963 6529 2062 7920 lNetService).by.
0x0760 6772 6f75 703d 2263 6e3d 4f72 6163 6c65 group="cn=Oracle
0x0770 436f 6e74 6578 7441 646d 696e 732c 636e ContextAdmins,cn
0x0780 3d47 726f 7570 732c 636e 3d4f 7261 636c =Groups,cn=Oracl
0x0790 6543 6f6e 7465 7874 2220 2872 6561 642c eContext".(read,
0x07a0 7365 6172 6368 2c77 7269 7465 2c73 656c search,write,sel
0x07b0 6677 7269 7465 2c63 6f6d 7061 7265 2920 fwrite,compare).
0x07c0 6279 2067 726f 7570 3d22 636e 3d4f 7261 by.group="cn=Ora
0x07d0 636c 654e 6574 4164 6d69 6e73 2c63 6e3d cleNetAdmins,cn=
0x07e0 4f72 6163 6c65 436f 6e74 6578 7422 2028 OracleContext".(
0x07f0 636f 6d70 6172 652c 7365 6172 6368 2c72 compare,search,r
0x0800 6561 642c 7772 6974 6529 2062 7920 2a20 ead,write).by.*.
0x0810 2872 6561 642c 7365 6172 6368 2c63 6f6d (read,search,com
0x0820 7061 7265 2c6e 6f77 7269 7465 2c6e 6f73 pare,nowrite,nos
0x0830 656c 6677 7269 7465 2904 8201 1c61 6363 elfwrite)....acc
0x0840 6573 7320 746f 2061 7474 723d 282a 2920 ess.to.attr=(*).
0x0850 2066 696c 7465 723d 286f 626a 6563 7463 .filter=(objectc
0x0860 6c61 7373 3d6f 7263 6c4e 6574 4465 7363 lass=orclNetDesc
0x0870 7269 7074 696f 6e4c 6973 7429 2062 7920 riptionList).by.
0x0880 6772 6f75 703d 2263 6e3d 4f72 6163 6c65 group="cn=Oracle
0x0890 436f 6e74 6578 7441 646d 696e 732c 636e ContextAdmins,cn
0x08a0 3d47 726f 7570 732c 636e 3d4f 7261 636c =Groups,cn=Oracl
0x08b0 6543 6f6e 7465 7874 2220 2872 6561 642c eContext".(read,
0x08c0 7365 6172 6368 2c77 7269 7465 2c73 656c search,write,sel
0x08d0 6677 7269 7465 2c63 6f6d 7061 7265 2920 fwrite,compare).
0x08e0 6279 2067 726f 7570 3d22 636e 3d4f 7261 by.group="cn=Ora
0x08f0 636c 654e 6574 4164 6d69 6e73 2c63 6e3d cleNetAdmins,cn=
0x0900 4f72 6163 6c65 436f 6e74 6578 7422 2028 OracleContext".(
0x0910 636f 6d70 6172 652c 7365 6172 6368 2c72 compare,search,r
0x0920 6561 642c 7772 6974 6529 2062 7920 2a20 ead,write).by.*.
0x0930 2872 6561 642c 7365 6172 6368 2c63 6f6d (read,search,com
0x0940 7061 7265 2c6e 6f77 7269 7465 2c6e 6f73 pare,nowrite,nos
0x0950 656c 6677 7269 7465 2904 8201 1961 6363 elfwrite)....acc
0x0960 6573 7320 746f 2061 7474 723d 282a 2920 ess.to.attr=(*).
0x0970 2066 696c 7465 723d 286f 626a 6563 7463 .filter=(objectc
0x0980 6c61 7373 3d6f 7263 6c4e 6574 4465 7363 lass=orclNetDesc
0x0990 7269 7074 696f 6e29 2062 7920 6772 6f75 ription).by.grou
0x09a0 703d 2263 6e3d 4f72 6163 6c65 436f 6e74 p="cn=OracleCont
0x09b0 6578 7441 646d 696e 732c 636e 3d47 726f extAdmins,cn=Gro
0x09c0 7570 732c 636e 3d4f 7261 636c 6543 6f6e ups,cn=OracleCon
0x09d0 7465 7874 2220 2872 6561 642c 7365 6172 text".(read,sear
0x09e0 6368 2c77 7269 7465 2c73 656c 6677 7269 ch,write,selfwri
0x09f0 7465 2c63 6f6d 7061 7265 2920 6279 2067 te,compare).by.g
0x0a00 726f 7570 3d22 636e 3d4f 7261 636c 654e roup="cn=OracleN
0x0a10 6574 4164 6d69 6e73 2c63 6e3d 4f72 6163 etAdmins,cn=Orac
0x0a20 6c65 436f 6e74 6578 7422 2028 636f 6d70 leContext".(comp
0x0a30 6172 652c 7365 6172 6368 2c72 6561 642c are,search,read,
0x0a40 7772 6974 6529 2020 6279 202a 2028 7265 write)..by.*.(re
0x0a50 6164 2c73 6561 7263 682c 636f 6d70 6172 ad,search,compar
0x0a60 652c 6e6f 7772 6974 652c 6e6f 7365 6c66 e,nowrite,noself
0x0a70 7772 6974 6529 write)
JAZN is setup as following
java -jar jazn.jar -getconfig
<jazn provider="LDAP" location="ldap://buckwheat:389" default-realm="sample_subrealm" />
oracle@buckwheat:/u01/app/oracle/products/9iAS/j2ee/home> java -jar jazn.jar -getconfig sample_subrealm
<jazn provider="LDAP" location="ldap://buckwheat:389" default-realm="sample_subrealm" />
<OC4J_HOME>/config/jazn.xml
<?xml version="1.0" encoding="UTF-8" standalone='yes'?>
<!--
<!DOCTYPE jazn PUBLIC "JAZN Config" "http://xmlns.oracle.com/ias/dtds/jazn.dtd">
<jazn provider="XML" location="./jazn-data.xml" />
-->
<jazn provider="LDAP"
default-realm="sample_subrealm"
location="ldap://buckwheat:389" />
<OC4J_HOME>/j2ee/home/jazn/demo/callerInfo/etc/orion-application.xml
<?xml version="1.0"?>
<!DOCTYPE orion-application PUBLIC "-//Evermind//DTD J2EE Application runtime 1.2//EN" "http://xmlns.oracle.com/ias/dtds/orion-application.dtd">
<orion-application deployment-version="1.0.2.2" default-data-source="jdbc/OracleDS">
<web-module id="callerInfo-web" path="callerInfo-web.war" />
<persistence path="persistence" />
<!-- mapping for realm "jazn.com"
<security-role-mapping name="sr_manager">
<group name="administrators" />
</security-role-mapping>
<security-role-mapping name="sr_developer">
<group name="users" />
</security-role-mapping>
-->
<!-- mapping for realm "sample_subrealm" -->
<security-role-mapping name="sr_manager">
<group name="manager" />
</security-role-mapping>
<security-role-mapping name="sr_developer">
<group name="developer" />
</security-role-mapping>
<!-- h -->
<!-- use JAZN-XML by default
<jazn provider="XML" location="./jazn-data.xml" />
-->
<!-- use JAZN-LDAP instead -->
<jazn provider="LDAP" default-realm="sample_subrealm" location="ldap://buckwheat.jxn.wcom.com:389" />
<!-- -->
<log>
<file path="application.log" />
</log>
<namespace-access>
<read-access>
<namespace-resource root="">
<security-role-mapping name="<jndi-user-role>">
<group name="administrators" />
</security-role-mapping>
</namespace-resource>
</read-access>
<write-access>
<namespace-resource root="">
<security-role-mapping name="<jndi-user-role>">
<group name="administrators" />
</security-role-mapping>
</namespace-resource>
</write-access>
</namespace-access>
</orion-application>
<OC4J_HOME>/j2ee/home/jazn/demo/callerInfo/etc/web.xml
<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<display-name>JAZN Demo: CallerInfo</display-name>
<servlet>
<servlet-name>callerInfo</servlet-name>
<description>Servlet retrieves remote user info</description>
<servlet-class>oracle.security.jazn.samples.http.CallerInfo</servlet-class>
<!-- role name used in code -->
<security-role-ref>
<role-name>FOO</role-name>
<role-link>sr_manager</role-link>
</security-role-ref>
<security-role-ref>
<role-name>ar_manager</role-name>
<role-link>sr_manager</role-link>
</security-role-ref>
<security-role-ref>
<role-name>ar_developer</role-name>
<role-link>sr_developer</role-link>
</security-role-ref>
</servlet>
<servlet-mapping>
<servlet-name>callerInfo</servlet-name>
<url-pattern>/callerInfo/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>callerInfo</servlet-name>
<url-pattern>/callerInfoA</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>callerInfo</servlet-name>
<url-pattern>/callerInfoB</url-pattern>
</servlet-mapping>
<!-- security roles -->
<security-role>
<role-name>sr_manager</role-name>
</security-role>
<security-role>
<role-name>sr_developer</role-name>
</security-role>
<!-- security constraints -->
<security-constraint>
<web-resource-collection>
<web-resource-name>CallerInfoA</web-resource-name>
<url-pattern>/callerInfoA</url-pattern>
</web-resource-collection>
<!-- authorization -->
<auth-constraint>
<role-name>sr_developer</role-name>
</auth-constraint>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>CallerInfoB</web-resource-name>
<url-pattern>/callerInfoB</url-pattern>
</web-resource-collection>
<!-- authorization -->
<auth-constraint>
<role-name>sr_manager</role-name>
</auth-constraint>
</security-constraint>
<!-- authentication -->
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
</web-app>OID 3.0.1.0 is the latest product release to public. I did add the Install data to allow it to work. I see the data in OID but when I connect with jazn I get error.
java -jar jazn.jar -shell
JAZN:> ls
realms policy
JAZN:> cd realms
JAZN:> ls
String index out of range: 32
JAZN:> cd ../policy
JAZN:> ls
JAZN:> exit
JAZN:>
It does not error on policy dirictory but it does on the realm side. If I watch the tcp packets it is working. -
Weblogic 10.3.5
OES 11.1.1.5
Redhat 5.5
These are the steps I followed http://docs.oracle.com/cd/E21764_01/install.1111/e12002/oes.htm
I'm try to setup an evaluation domain for OES so I followed the setup for using the derby database. I have the derby schema setup correctly and I have create the OES domain using the Oracle Entitlesments Server Derby Template - 11.1.1.0. This goes through fine, but when I start the server I am getting the below error. The oracle.security.apm.derby.ear file is not in that location nor is it anywhere in the oracle home dir. So I'm not sure whats wrong, doing a search for the oracle.security.apm.derby.ear file on google returns nothing.
<Jun 11, 2013 8:49:28 AM EDT> <Error> <Deployer> <BEA-149605> <Failed to create App/Comp mbeans for AppDeploymentMBean oracle.security.apm#11.1.1.3.0. Error - weblogic.management.DeploymentException: error in opening zip file with : /oracle11g/Middleware/Oracle_IDM1/apm/modules/oracle.security.apm_11.1.1/oracle.security.apm.derby.ear.
weblogic.management.DeploymentException: error in opening zip file with : /oracle11g/Middleware/Oracle_IDM1/apm/modules/oracle.security.apm_11.1.1/oracle.security.apm.derby.ear
at weblogic.application.internal.EarDeploymentFactory.findOrCreateComponentMBeans(EarDeploymentFactory.java:193)
at weblogic.application.internal.MBeanFactoryImpl.findOrCreateComponentMBeans(MBeanFactoryImpl.java:48)
at weblogic.application.internal.MBeanFactoryImpl.createComponentMBeans(MBeanFactoryImpl.java:110)
at weblogic.application.internal.MBeanFactoryImpl.initializeMBeans(MBeanFactoryImpl.java:76)
at weblogic.management.deploy.internal.MBeanConverter.createApplicationMBean(MBeanConverter.java:89)
Truncated. see log file for complete stacktrace
Caused By: java.io.IOException: error in opening zip file with : /oracle11g/Middleware/Oracle_IDM1/apm/modules/oracle.security.apm_11.1.1/oracle.security.apm.derby.ear
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:114)
at java.util.jar.JarFile.<init>(JarFile.java:133)
at java.util.jar.JarFile.<init>(JarFile.java:97)
at weblogic.utils.jars.JarFileDelegate.<init>(JarFileDelegate.java:32)
Truncated. see log file for complete stacktrace
>
<Jun 11, 2013 8:49:28 AM EDT> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'oracle.security.apm [Version=11.1.1.3.0]' due to error weblogic.management.DeploymentException: error in opening zip file with : /oracle11g/Middleware/Oracle_IDM1/apm/modules/oracle.security.apm_11.1.1/oracle.security.apm.derby.ear.
weblogic.management.DeploymentException: error in opening zip file with : /oracle11g/Middleware/Oracle_IDM1/apm/modules/oracle.security.apm_11.1.1/oracle.security.apm.derby.ear
at weblogic.application.internal.EarDeploymentFactory.findOrCreateComponentMBeans(EarDeploymentFactory.java:193)
at weblogic.application.internal.MBeanFactoryImpl.findOrCreateComponentMBeans(MBeanFactoryImpl.java:48)
at weblogic.application.internal.MBeanFactoryImpl.createComponentMBeans(MBeanFactoryImpl.java:110)
at weblogic.application.internal.MBeanFactoryImpl.initializeMBeans(MBeanFactoryImpl.java:76)
at weblogic.management.deploy.internal.MBeanConverter.createApplicationMBean(MBeanConverter.java:89)
Truncated. see log file for complete stacktrace
Caused By: java.io.IOException: error in opening zip file with : /oracle11g/Middleware/Oracle_IDM1/apm/modules/oracle.security.apm_11.1.1/oracle.security.apm.derby.ear
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:114)
at java.util.jar.JarFile.<init>(JarFile.java:133)
at java.util.jar.JarFile.<init>(JarFile.java:97)
at weblogic.utils.jars.JarFileDelegate.<init>(JarFileDelegate.java:32)
Truncated. see log file for complete stacktrace
>Hi User814822.
I too come accross this issue. But, I didn't installed any patch on top of OES.
I just rebuild the OES schema in database and it started perfectly. Hope it helps.
B/W did you tried to configure external user store to OES like LDAP??
Thanks -
Oracle.security.jazn.JAZNRuntimeException: Invalid index
Hi all,
I'm getting this exception very often:
oracle.security.jazn.JAZNRuntimeException: Invalid index
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:480)
at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:583)
at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:334)
at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.doDispatchRequest(HttpRequestHandler.java:942)
at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:843)
at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:658)
at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:626)
at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:417)
at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:189)
at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:163)
at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:237)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:29)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:877)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalStateException: Invalid index
at org.apache.myfaces.trinidad.bean.util.StateUtils.restoreKey(StateUtils.java:68)
at org.apache.myfaces.trinidad.bean.util.StateUtils.restoreState(StateUtils.java:142)
at org.apache.myfaces.trinidad.bean.util.FlaggedPropertyMap.restoreState(FlaggedPropertyMap.java:194)
at org.apache.myfaces.trinidad.bean.FacesBeanImpl.restoreState(FacesBeanImpl.java:342)
at org.apache.myfaces.trinidad.component.UIXComponentBase.restoreState(UIXComponentBase.java:898)
at org.apache.myfaces.trinidad.component.TreeState.restoreState(TreeState.java:57)
at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:872)
at org.apache.myfaces.trinidad.component.TreeState.restoreState(TreeState.java:96)
at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:872)
at org.apache.myfaces.trinidad.component.TreeState.restoreState(TreeState.java:96)
at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:872)
at org.apache.myfaces.trinidad.component.TreeState.restoreState(TreeState.java:96)...{code}
Usualy when I click on refresh button on browser and in many other cases that I can't recognize as some rule...
Thanks in advance,
s o v i e tHi Frank!
This error occur for me when I have "pending" PPR and I start a new one (e.g. fast clicking same button twice). Also, it may happen when I have pending lazy fetching of some table or graph and I hit some action button, or when I refresh a page using browser refresh button (while PPR is still not finished).
And I notice that it doesn't occur when I don't use ADF Controller.
I have not found cause nor workaround, expect to keep users patient until the PPR is finished (blocking attribute is not working in TP4, and your very nice glasspane trick is not appropriate for each and every button click).
Regards,
PaKo -
Hi,
I managed to configure Oracle's DBTableOraDataSourceLoginModule together with JavaSSO to access two tables which reside on a 9i database. One is the user's table and the other a roles table. The only problem is that the user's passwords should be encripted in this table.
I followed the instructions in the Oracle Containers for J2EE Security Guide page 9-10 - Implementing DBLoginModuleEncodingInterface for Password Encryption, and specified in the pw_encoding_class parameter
the DBLoginModuleSHA1Encoder class provided in the oracle.security.jazn.login.module.db.util package.
I also wrote a small program to do the encryption in the table, using a getKeyDigestString method found in DBLoginModuleSHA1Encoder class of a sample dblogin module downloaded from a link in Lucas Jellema's article on how to secure an application developed with JDeveloper and deployed in OC4J. I used this class because I could not find the one mentioned in the Oracle documentation.
Now the DBTableOraDataSourceLoginModule rejects the login with an invalid password message. It seems the encoding is calculated differently in the two classes. I tried to use the sample dblogin module in the javasso specification, and got a - no class found - message. I tried to locate the oracle.security.jazn.login.module.db.util package to use in the password encoding program, but I couldn't find it anywhere in either OC4J nor JDeveloper directories.
Can you tell me where to find the oracle.security.jazn.login.module.db.util package ?
Thanks for help.
GustavoHi
As I am also tried the same and found the encryption module working fine for me.
This I could do only on JDeveloper 10g whereas while attempted on the same on JDeveloper 11g, I got lots of problems.
Will you please help out in this regard, if you had already able to acheive the same on JDeveloper 11g TP3, please let me know the steps or any relevant URL which I can refer.
Thanks in advance
Kind Rgds
Krishnamurthy. R -
Dear Forum,
we are developing portlets for Portal 3.0.9.8. We use the default JPDK version, that comes with the standalone Oracle OC4J 9.0.4 bundled with PDK.
We want to improve our portlet by check the userid of the portal user. Therefore, we want to use oracle.portal.provider.v2.ProviderUser.getUser().getName()
in a JSP.
First - even before the method call - we included
<%@ page import="oracle.portal.provider.v2.http.ServletProviderUser" %>
But even this 1 statement gives in JDeveloper 9.0.4 with the libs pdkjava and ptlshare from the OC4J the following error:
Error: cannot access class oracle.security.jazn.realm.RealmUser; file oracle\security\jazn\realm\RealmUser.class not found
What is wrong here? What missing library we must include?
Thank You in advanceProblem solved. Need to include jazn.jar in project's lib-paths.
-
hi,
in my application I am using container and ADF security. Sometimes I get following exception but not always!? What could be the cause?
(I added a new role with three members - 1 user and two sub-roles. I configured these sub-roles in web.xml as regular roles and also configured ADF security for the role and its subroles)
java.lang.NullPointerException
at oracle.security.jazn.spi.xml.XMLJAZNPolicy.getPermissions(XMLJAZNPolicy.java:593)
at oracle.security.jazn.spi.xml.XMLJAZNPolicy.getPermissions(XMLJAZNPolicy.java:574)
at oracle.security.jazn.spi.Java2PolicyProvider.getPermissions(Java2PolicyProvider.java:313)
at oracle.security.jazn.spi.PolicyProvider.getPermissions(PolicyProvider.java:202)
at javax.security.auth.SubjectDomainCombiner$3.run(SubjectDomainCombiner.java:357)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.SubjectDomainCombiner.combineJavaxPolicy(SubjectDomainCombiner.java:353)
at javax.security.auth.SubjectDomainCombiner.combine(SubjectDomainCombiner.java:191)
at java.security.AccessControlContext.goCombiner(AccessControlContext.java:390)
at java.security.AccessControlContext.optimize(AccessControlContext.java:304)
at java.security.AccessController.getContext(AccessController.java:385)
at java.lang.Thread.init(Thread.java:332)
at java.lang.Thread.<init>(Thread.java:416)
at oracle.webcache.adf.cache.basiccache.BasicCacheImpl$VGCThread.<init>(BasicCacheImpl.java:1439)
at oracle.webcache.adf.cache.basiccache.BasicCacheImpl.<init>(BasicCacheImpl.java:121)
at oracle.webcache.adf.cache.basiccache.BasicCacheManager.createBasicCacheInstance(BasicCacheManager.java:71)
at oracle.webcache.adf.cache.httpcache.HTTPCacheImpl.<init>(HTTPCacheImpl.java:96)
at oracle.webcache.adf.cache.httpcache.HTTPCacheFactory.createHTTPCache(HTTPCacheFactory.java:66)
at oracle.webcache.adf.cache.httpcache.HTTPCacheFactory.createHTTPCache(HTTPCacheFactory.java:47)
at oracle.webcache.adf.filter.PageCache.<init>(PageCache.java:218)
at oracle.webcache.adf.filter.PageCache.getInstance(PageCache.java:255)
at oracle.webcache.adf.filter.PageCache.getInstance(PageCache.java:276)
at oracle.adf.view.faces.webcache.component.UICache.getFragmentFromCache(UICache.java:514)
at oracle.adf.view.faces.webcache.component.UICache.encodeBegin(UICache.java:170)
at oracle.adfinternal.view.faces.uinode.UIComponentUINode._renderComponent(UIComponentUINode.java:297)
at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:262)
at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:239)
at oracle.adfinternal.view.faces.ui.composite.ContextPoppingUINode$ContextPoppingRenderer.render(ContextPoppingUINode.java:224)
at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)
at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderNamedChild(BaseRenderer.java:384)
at oracle.adfinternal.view.faces.ui.laf.base.desktop.PageHeaderLayoutRenderer.renderContent(PageHeaderLayoutRenderer.java:404)
at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:69)
at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)
at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:330)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:222)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.java:129)
at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:69)
at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)
at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)
at oracle.adfinternal.view.faces.ui.composite.UINodeRenderer.renderWithNode(UINodeRenderer.java:90)
at oracle.adfinternal.view.faces.ui.composite.UINodeRenderer.render(UINodeRenderer.java:36)
at oracle.adfinternal.view.faces.ui.laf.oracle.desktop.PageLayoutRenderer.render(PageLayoutRenderer.java:76)
at oracle.adfinternal.view.faces.uinode.UIXComponentUINode.renderInternal(UIXComponentUINode.java:177)
at oracle.adfinternal.view.faces.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:53)
at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
at oracle.adfinternal.view.faces.renderkit.RenderUtils.encodeRecursive(RenderUtils.java:54)
at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeChild(CoreRenderer.java:242)
at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeAllChildren(CoreRenderer.java:265)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:65)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:117)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:147)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:60)
at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.delegateRenderer(CoreRenderer.java:281)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.DocumentRenderer.encodeAll(DocumentRenderer.java:60)
at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:169)
at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:645)
at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:568)
at oracle.adf.view.faces.webapp.UIXComponentTag.doEndTag(UIXComponentTag.java:100)
...Hi,
ADF Security configures with permissions and thus doesn't need the roles to be available in web.xml (unless the roles are used for container managed authorization as well). Note that the default behavior of OC4J is that changes in the configuration files are picked up upon restart (for performance reasons you don' want to change this setting). So just make sure OC4J is stopped before re-running an application.
Frank -
Error: cannot access class oracle.security.jazn.realm.RealmUser
Hi,
I try to compile this simple jsp, which use jpdkv2, with jdeveloper 9i.
But I obtain this error:
Error: cannot access class oracle.security.jazn.realm.RealmUser; file oracle\security\jazn\realm\RealmUser.class not found
Someone has an idea ?
Source code of my jsp:
<%@ page contentType="text/html;charset=windows-1252"%>
<%@page import = "oracle.portal.provider.v2.render.PortletRenderRequest" %>
<%@page import = "oracle.portal.provider.v2.http.HttpCommonConstants" %>
<%
PortletRenderRequest portletRequest = (PortletRenderRequest)
request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
%>
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<TITLE>
Hello World
</TITLE>
</HEAD>
<BODY>
<H2>
The current time is:
</H2>
<P>
<% out.println((new java.util.Date()).toString()); %>
</P>
<P>Hello: <%= portletRequest.getUser().getName() %></P>
</BODY>
</HTML>Please check if jazn.jar is available under your <YOUR_OC4J_PATH>\j2ee\home folder.
This library files contains all the security related classes required by jpdkv2 providers. -
Hi All.
I am calling the getIdentityStoreFactory() method in the IdentityStoreFactoryBuilder class and I am getting the following error:
oracle.security.idm.ConfigurationException: java.security.AccessControlException: access denied (oracle.security.jazn.JAZNPermission getOC4JIntegrationData)
Any ideas what is going on and any possible fixes?
thanks
jamesI will move it to the OC4j and J2ee forum.
Thanks for bring it to my attention.
Message was edited by:
user480263 -
JAAS, jazn.xml, & oracle.security.jazn.config
I have a swing application using LDAP to authenticate users that will typically be launched via Java Web Start, thus the application is deploy using a jar file.
I can run this application from JDev or from the command-line when the jazn.xml file is located in the root (start-in) directory.
Unfortunately, when the jazn.xml file is only in the jar file (as it would be when launched via JWS) the application cannot find it and throws an exception:
oracle.security.jazn.JAZNInitException: d:\path\.\jazn-data.xml (The system cannot find the file specified).
I found some documentation that indicates that I can specify the path to the jazn.xml file with
System.setProperty("oracle.security.jazn.config", "path/to/jazn/xml/file");
If I set it to a relative path without the filename on the end (ex. "./my/path" or "my/path") I get the above exception.
If I set it to a relative path with the filename (ex. "./my/path/jazn.xml" or "my/path/jazn.xml") it works.
What I can't figure out is how to tell it that it is in a jar file that is in my classpath. It doesn't find it from the path examples above. I've tried things like "client.jar/jazn.xml", "d:/my/path/client.jar/jazn.xml", and a host of other things with the jazn.xml filename on the end.
Oddly enough, when I set it to "d:/my/path/client.jar" I get a different exception:
Caused by: oracle.security.jazn.JAZNInitException: no protocol: "ldap://hostname.com:389">
at oracle.security.jazn.spi.xml.FSXMLStore.<init>(FSXMLStore.java:128)
... 59 more
Caused by: java.net.MalformedURLException: no protocol: "ldap://hostname.com:389">
at java.net.URL.<init>(URL.java:537)
at java.net.URL.<init>(URL.java:434)
at java.net.URL.<init>(URL.java:383)
So it seems like it read the file but parsed it incorrectly. Any ideas?Thanks for the reply Yvonne. Sorry I haven't updated this after my testing. I think you're close to correct.
I did some more testing and figured out that any time the protocol is included in a path (protocol://d:/my/path/client.jar) that jazn does not understand. When the referenced file (jazn.xml) is in a jar file, it includes the protocol in the path. For example the path to the jazn.xml file (the value that the java.security.auth.policy property needs to be set to) would be jar:file://my/path/client.jar!/my/path/jazn.xml
I think the oracle.security.jazn.spi.PolicyProvider (the value of the java.security.auth.policy.provider property) causes the jazn.xml file to be read. That class is, I think, what fails to find that file because it doesn't understand when the protocol (jar:file:) is included in the path to the file. That's my guess anyway.
I did figure out a work around and it goes like this:
1. create a new jazn.xml file
File tmp = new File ("jazn.xml");
2. and set it to be deleted on exit
tmp.deleteOnExit();
3. get a ByteArrayInputStream for the jazn.xml file and read it out of the jar file.
4. then write the stream to the tmp file
5. then set the system property
System.setProperty("java.security.auth.policy", tmp.toURL().getPath());
It is kind of a pain since I have to check to see if the property I'm setting is "jazn.xml", but it seems to work.
I think the oracle.security.jazn.spi.PolicyProvider problem is a defect, which I'll report on meta-link.
tcoker -
Class oracle.xml.sql.query.OracleXMLQuery not found in import
I tried to perform load java using a non-sys user :
loadjava -user user1/passwd -v -o -r Archive.java
but encountered the following error:
Errors in Archive:
ORA-29535: source requires recompilation
Archive:11: Class oracle.xml.sql.query.OracleXMLQuery not found in import.
Info: 1 errors
loadjava: 3 errors
But if I use sys user I don't have any error:
loadjava -user sys/manager -v -o -r Arachive.java
initialization complete
loading : Archive
creating : Archive
resolver :
resolving: Archive
Why is this so?
ANy security setup that I missed?
Thanks in advance.
Note:
my Archive.java file contains:
// Core Java Classes
import java.io.*;
import java.sql.*;
// Oracle Java classes
import oracle.jdbc.*;
import oracle.jdbc.driver.*;
import oracle.xml.sql.query.OracleXMLQuery;
null<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Azman Diron ([email protected]):
I tried to perform load java using a non-sys user :
loadjava -user user1/passwd -v -o -r Archive.java
but encountered the following error:
Errors in Archive:
ORA-29535: source requires recompilation
Archive:11: Class oracle.xml.sql.query.OracleXMLQuery not found in import.
Info: 1 errors
loadjava: 3 errors
But if I use sys user I don't have any error:
loadjava -user sys/manager -v -o -r Arachive.java
initialization complete
loading : Archive
creating : Archive
resolver :
resolving: Archive
Why is this so?
ANy security setup that I missed?
Thanks in advance.
Note:
my Archive.java file contains:
// Core Java Classes
import java.io.*;
import java.sql.*;
// Oracle Java classes
import oracle.jdbc.*;
import oracle.jdbc.driver.*;
import oracle.xml.sql.query.OracleXMLQuery;
<HR></BLOCKQUOTE>
Managed to solve this problem.
Drop all xml objects owned by sys and user1.
Reload xml objcets for user1 with -force option.
null -
Where to find tutorial for oracle.security.jazn , specially role granting?
Hi
Thank you for reading my post
where i can find references about oracle.security.jazn and its classes and interfaces ?
i am stucked with granting roles that i created in admin console or from within my application to users ?
where is this package javadocs ?
thanksThanks for giving the link
is there any way that i add this javadocs to Jdeveloper IDE for quick javadoc facilities ?
where i can download its zip/jar package for offline IDE use ?
which jdeveloper predefined library contains oracle.security.jazn ?
thank you again -
Webutil-- oracle.forms.webutil.browserFunctions bean not found
hi friends,
im in great trouble
i got assignment from company and its very urgent
i want to change coffee cup of browser window...i m trying to use webutil, i have done following things
1.I have developer suit 9.0.4
2.I have Jinitiator1.3.1.17
3.download and unzip webutil_106 in forms90 folder
4.adding frmwebutil.jar in forms90_BUILDER_CLASSPATH
5.Create single virtual directory in orion web.xml and in forms90.config file
6.add frmwebutil.jar in formsweb.cfg and replace webutil.htm files e.g bashtml,basehtmljinitiater,basehtmljpi.
7.webutil entries in envirmnent file
8.attatch liabray webutill.pll with my form,
9. open webutil.olb and copy it into object group
10.create timer at when new_form_instance
11.on timer expiratation using following code
if WEBUTIL_SEPARATEFRAME.IsSeparateFrame then
WebUtil_SeparateFrame.SetTitle('DTS');
webUtil_SeparateFrame.SetIcon('execute.gif');
and restart oc4j
but problem is still comming when timer expire i got following message
oracle.forms.webutil.browserFunctions bean not found
plz anyone help if im missing any step or doing something wrong
thankshi friends,
im in great trouble
i got assignment from company and its very urgent
i want to change coffee cup of browser window...i m trying to use webutil, i have done following things
1.I have developer suit 9.0.4
2.I have Jinitiator1.3.1.17
3.download and unzip webutil_106 in forms90 folder
4.adding frmwebutil.jar in forms90_BUILDER_CLASSPATH
5.Create single virtual directory in orion web.xml and in forms90.config file
6.add frmwebutil.jar in formsweb.cfg and replace webutil.htm files e.g bashtml,basehtmljinitiater,basehtmljpi.
7.webutil entries in envirmnent file
8.attatch liabray webutill.pll with my form,
9. open webutil.olb and copy it into object group
10.create timer at when new_form_instance
11.on timer expiratation using following code
if WEBUTIL_SEPARATEFRAME.IsSeparateFrame then
WebUtil_SeparateFrame.SetTitle('DTS');
webUtil_SeparateFrame.SetIcon('execute.gif');
and restart oc4j
but problem is still comming when timer expire i got following message
oracle.forms.webutil.browserFunctions bean not found
plz anyone help if im missing any step or doing something wrong
thanks -
Compiler error "oracle.xml.parser.v2.XMLElement" not found in class com.oracle.demos......?
I am currently testing a simple sample application with a java code similar to the one shown at
the bottom of this post.
However during deployment/compilation the compiler gives an error:
Error(26,23): XMLElement not found in class com.oracle.demos.orderbooking.ApproveImpl
Additionally similar other errors appear:
Error(23,66): JAXBException not found in class com.oracle.demos.orderbooking.ObjectFactory
Error(51,58): UnmarshalException not found in class com.oracle.demos.orderbooking.ObjectFactory
Error(9,92): Element not found in interface com.oracle.demos.orderbooking.Approve
What's wrong?
It seems to me that I have to add some (more) *.jar files/libraries to the project?
Which *.jars and where should I add them in JDeveloper?
source code:
package com.oracle.demos.orderbooking;
public class ApproveImpl extends com.oracle.demos.orderbooking.ApproveTypeImpl implements com.oracle.demos.orderbooking.Approve
public ApproveImpl(oracle.xml.parser.v2.XMLElement node)
super(node);
}Hai James this the response I am getting can you please tell what should I write inside ora:getNodeValue() to get the value of node <genReturnText>
The drag and dropping the variable name is not working, I have to write the path manually but I dont know how.
<ns1:getRoutingAndFrameJumpersResponse xmlns:ns1="com.NetworkInstallations">
-<com.GetRoutingAndFrameJumpersOutput>
<destination>
SW
</destination>
<e2EData>
busProcOriginator
</e2EData>
<genReturnCode>
40777
</genReturnCode>
<genReturnText>
EMW_Get_Routing_And_FrameJumpers_Succeeded
</genReturnText>
<supplCode>
ISY002
</supplCode>
<supplText>
Transaction successfully completed.
</supplText>
<severityCode>
S
</severityCode>
<retriable>
false
</retriable>
</com.GetRoutingAndFrameJumpersOutput>
</ns1:getRoutingAndFrameJumpersResponse> -
SharePoint Error when importing web: Requested value 'PublishingPages' was not found
I tried to import a publishing web using the following powershell command:
Import-SPWeb http://****/test -Path E:\data.cmp -UpdateVersions Overwrite
However, it returns an error:
Import-SPWeb : Requested value 'PublishingPages' was not found. At line:1 char:1 + Import-SPWeb http://****/test -Path E:\data.cmp -Update ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData:
(Microsoft.Share...CmdletImportWeb: SPCmdletImportWeb) [Import-SPWeb], ArgumentException + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletImportWeb
Please help me to address this as it took me all day long to find the root cause.
ThanksHi Thang,
Without knowing much of what you are trying to do here like whether or not you are trying to promote/ demote a publishing site; I wanted to let you know about this limitation:
"For site collections that make use of the publishing feature it is not supported to migrate
root sites into sub sites or sub sites into root sites."
See the below blog post for details. Hope this helps!
http://blogs.technet.com/b/stefan_gossner/archive/2009/05/27/limitations-of-stsadm-o-export-import-related-to-publishing-sites.aspx
BlueSky2010
Please help and appreciate others by using forum features: "Propose As Answer", "Vote As Helpful" and
"Mark As Answer"
Maybe you are looking for
-
How to find out whether ipv6 is installed or not
Hello. I need to determine (in Java 1.5) whether ipv6 is installed on a system (Windows) or not. Any ideas how could I do that? Is it possible at all? Thanks in advance.
-
I am struggling trying to find a solution for. I have a page with an iframe. The document in the iframe comes from a different domain which I can not alter the contents for eg. google.com . If any change occur inside frame i want to get the Url of
-
Update delivery address in PO using BAPI BAPI_PO_CREATE1
Hi, I want to update the delivery address of line item using BAPI BAPI_PO_CREATE1. I am creating address using BAPI BAPI_ADDRESSORG_SAVEREPLICA and I am sending the address number in the import parameter POADDRDELIVERY but it is not updating the deli
-
How can I fix a problem with incorrect drive capacity?
When I do a get info on the drive capacity it says I have only 2.64gb free. However when I open it and total the folders there is near 300gb free which is what it should be. I can't find what is taking up the space
-
I installed OS X Mavericks, but i don't have messaging.
Is it because I didn't install Mountain Lion?