Case in XSD register
When I try to register an XSD if the element names are in lower case then when I try to describe the underlying objects i get an error Object doesnt exist even though i can see it in USER_OBJECTS, however if the element names are in upper case then i can describe the objects fine.
Is this a bug or am i doing something wrong. Also i dont seem to be able to specify a name for attributes in the Oracle Object using xdb:SQLName, it just seems to be ignored whenever i register a schema (i have included the xdb namespace)
Any ideas?
A XSD snippet as an example of xdb not functioning how i would expect. I assumed that the element from would be represented by attributes / types called sender rather than fromxxx where x is a number?
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb">
<xs:element name="content" type="xs:string"/>
<xs:element name="from" type="xs:string" xdb:SQLName="sender"/>
<xs:element name="message">
<xs:complexType>
<xs:sequence>
<xs:element ref="from"/>
<xs:element ref="to"/>
Similar Messages
-
XSD Registering Failure...pls help on this...
Hi,
While registering the xsd it self giving me execption. MetInvML.xsd is there is e:\ on windows, this one is very big xsd contains 9500 lines.
BEGIN
DBMS_XMLSCHEMA.registerSchema( SCHEMAURL => 'MetInvML.xsd',
SCHEMADOC => bfilename('EHE_DBINBOUND','MetInvML.xsd'));
END;
Error:
Error report:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00104: Warning: element "xsd:schema" is not declared in the DTD
Error at line 69
ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 37
ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 61
ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 126
ORA-06512: at line 2
31011. 00000 - "XML parsing failed"
*Cause: XML parser returned an error while trying to parse the document.
*Action: Check if the document to be parsed is valid.Can you check the XSD is valid using a tool like XMLSpy.
-
Validating xml input against schema's registered in database
Hi,
We have an application that stores a massive XSD document (with cyclical references between schemas) in a VARCHAR2 column of a table. The XSD is loaded everytime an xml input needs to be parsed. The problem is that the XSD is very huge, and maintaining it is going to be a problem as it continues to grow. I don't beleieve this is the most efficient way of doing this.
What I would like to do is to register each of the schemas that are part of the large XSD and use the <include schemaLocation/> directive. I have seen tutorials for doing this. Example tutorial at this link:
http://www.cs.utah.edu/classes/cs5530/oracle/doc/B10501_01/appdev.920/a96620/xdb05obj.htm
My sole purpose for registering the XSD's is to validate any xml input that is passed in as input to my Java program that is running in the database; I don't want to store the input xml in a table. If the input is successfully validated, my program will continue processing.
I have seen some Java OTN tutorials which have methods with 2 parameters - xml, and xsd. I want to avoid this approach because in my case, the XSD would already be registered in the database.
Any tips would be very much appreciated.
Cheers,
RudiAN XML Document may be validated with schema registered in database.
http://download-west.oracle.com/docs/cd/B14117_01/appdev.101/b10790/xdb08tra.htm#sthref843 -
Self-Register user workflow add user to Group
Hi,
I have a fairly basic Self-Register user workflow that I am playing with in OAM. I am wondering if I can somehow add a step(s) into my workflow that will add the user to be a member of a Group in OAM during registration?
If so, can this be done without an "external action" or custom code?
If anyone knows anything that can help I'd appreciate it.
Thanks,
JackieHere is a solution but will work only if users click on the appropriate self registration links. Also may not be very feasible in cases where self registered user need to be added to a group from large number of groups.
In the workflow step did you configure multiple targets?
You can configure multiple targets under the workflow domain you have chosen.
To self-register a user under a particular group you need to provide a self registration link to users with ObDomainName query string configured appropriately.
Eg:
Self registration Workflow domain is dc=acme, dc=com
Say you want users to be added to groups
cn=users1,dc=acme,dc=com and
cn=users2,dc=acme,dc=com.
For this create 2 Targets in 2nd step of your workflow for the two groups you want user should be added to. Now you have effectively two self registration urls,
http://host:port/identity/oblix/apps/userservcenter/bin/userservcenter.cgi?program=workflowSelfRegistration&ObWorkflowName=...<your value here>...&ObDomainName=cn=users1,dc=acme,dc=com
http://host:port/identity/oblix/apps/userservcenter/bin/userservcenter.cgi?program=workflowSelfRegistration&ObWorkflowName=...<your value here>...&ObDomainName=cn=users2,dc=acme,dc=com
Now if you can manage users to click on appropriate links then you can achieve the goal. -
Hi ALL,
How to make URL case-insensitive, I registered my servlets on WLS on UNIX system.It's very very urgent to me.
I am giving a example to similar to my problem.
It should invoke the same servlet using:
www.abc.com/XYZ/welcome
www.AbC.com/xYZ/WELCOme
www.ABc.com/XyZ/WelCoMe
The same servelt should invoked with the possible combinations of both cases of letters.
Thanks,
Venkat
Hi Sam,
I think there is a another way to handled the url case-sensitive using defaultservlet. I already done with my problem, I handled successfully using defaultservlet. It's working fine, Anyway Thank you very much.
Venkat Ponnala
"WebLogic" <[email protected]> wrote:
>I found the only way to get this to work perfectly is to have a web.xml with
>these entries:
>
> <servlet>
> <servlet-name>lowercasefilter</servlet-name>
> <jsp-file>lowercase.jsp</jsp-file>
> </servlet>
> <servlet-mapping>
> <servlet-name>lowercasefilter</servlet-name>
> <url-pattern>/a/*</url-pattern>
> </servlet-mapping>
> <servlet-mapping>
> <servlet-name>lowercasefilter</servlet-name>
> <url-pattern>/A/*</url-pattern>
> </servlet-mapping>
>
>with lowercase.jsp:
><jsp:forward page="<%=request.getPathInfo().toLowerCase()%>"/>
>
>Where you register it as the default webapp. All your URLs should then
>be prepended with either A or a to get the correct behaviour. If you were
>to simply filter everything you get an circular fowarding loop.
>
>Sam
>
>
>"Cameron Purdy" <[email protected]> wrote in message
>news:[email protected]...
>> You must implement your own mapping by creating a front servlet mapped to
>by
>> '*'.
>>
>> --
>>
>> Cameron Purdy
>> [email protected]
>> http://www.tangosol.com
>> Consulting Services Available
>>
>>
>> "Venkat Ponnala" <[email protected]> wrote in message
>> news:[email protected]...
>> >
>> > Hi ALL,
>> >
>> > How to make URL case-insensitive, I registered my servlets on WLS on
>> UNIX system.It's very very urgent to me.
>> >
>> > I am giving a example to similar to my problem.
>> >
>> > It should invoke the same servlet using:
>> > www.abc.com/XYZ/welcome
>> > www.AbC.com/xYZ/WELCOme
>> > www.ABc.com/XyZ/WelCoMe
>> > ...................
>> > .....................
>> > ...................
>> > ..................
>> > The same servelt should invoked with the possible combinations of
>> both cases of letters.
>> >
>> > Thanks,
>> > Venkat
>> >
>> >
>>
>>
>
>
-
Self-Register User Notifications
I need to send out several email notifications during a self-register user request: Request Initiated, Request Awaiting Approval, Request Approved/Rejected. It seems that OIM 11g/SOA is only setup to handle 2 out of these 4. The SOA engine can notify the approver of the pending approval. OIM can notify the end-user that the account was approved and created based on the Self-Register User Event. Unfortunately, there doesn't seem to be an OIM event or enough data passed to SOA to handle the Request Initiated or Request Rejected scenarios. I am wondering if anyone knows of a way to meet these requirements?
Thanks,
PeteHere is a solution but will work only if users click on the appropriate self registration links. Also may not be very feasible in cases where self registered user need to be added to a group from large number of groups.
In the workflow step did you configure multiple targets?
You can configure multiple targets under the workflow domain you have chosen.
To self-register a user under a particular group you need to provide a self registration link to users with ObDomainName query string configured appropriately.
Eg:
Self registration Workflow domain is dc=acme, dc=com
Say you want users to be added to groups
cn=users1,dc=acme,dc=com and
cn=users2,dc=acme,dc=com.
For this create 2 Targets in 2nd step of your workflow for the two groups you want user should be added to. Now you have effectively two self registration urls,
http://host:port/identity/oblix/apps/userservcenter/bin/userservcenter.cgi?program=workflowSelfRegistration&ObWorkflowName=...<your value here>...&ObDomainName=cn=users1,dc=acme,dc=com
http://host:port/identity/oblix/apps/userservcenter/bin/userservcenter.cgi?program=workflowSelfRegistration&ObWorkflowName=...<your value here>...&ObDomainName=cn=users2,dc=acme,dc=com
Now if you can manage users to click on appropriate links then you can achieve the goal. -
Constructing XML from XSD dynamically
HI All.,
can any one tell me how to generate a xml file with the given xsd (we don't know abt xsd ,this can be any type of xsd).this means dynamic generation of xml file with the given xsd using java.
More Explanation abt the problem:
Bye pointing the path xsd file..we need to show them an sample xml file.
any suggestion highly appreciated.
Thanks
Kim.The simplest approach would be to take the XSD, run it through JAXB, use reflection to populate the generated objects, and then marshall to XML. However, there are likely to be a number of edge cases where this will fail. It's also fairly straightforward to parse the XSD and construct a transformation engine that does the right thing for simple XML, but again, the edge cases (think xsd:choice will cause problems).
However, I can't help but wonder if this is really useful? While you can auto-generate syntactically valid documents, there's also semantic meaning that would be important to anyone using those documents. Throwing a random string of characters into an element defined as xsd:string probably isn't going to be useful if you want to generate XML containing a name and address. -
Hi, I have changed an object and supplied the object key successfully. I can now successfully edit the object. But, when I sign on to another machine with the same profile I get prompted for the object key again.
Any ideas why this would be? Any idea what table holds the registration information?
Thanks!When you say "another machine" are you referring to a different instance of SAP? If this is the case, when you register an object, you are registering the object for that instance of SAP only. Now, I believe that you can use the same key to access the same object in two different systems. In our landscape, we get the key for the object in our development system, make the change, then send it on to production. We only enter the key one time.
Regards,
Rich Heilman -
Errors when using inplace schema evolution
Hi, i have been having some issues when attempting to use inplace schema evolution to add a new element into an existing xsd file currently registered on the database and was looking for some help with this if possible.
Firstly, Oracle details are as follows :
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
"CORE 11.2.0.2.0 Production"
TNS for IBM/AIX RISC System/6000: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - ProductionThe xsd registered on the database is called truncheadtest2.xsd :
<?xml version="1.0" encoding="UTF-8"?>
<!--W3C Schema generated by XMLSpy v2009 sp1 (http://www.altova.com)-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" xdb:storeVarrayAsTable="true">
<xs:element name="title">
<xs:simpleType>
<xs:restriction base="xs:string"/>
</xs:simpleType>
</xs:element>
<xs:element name="clientRiskEventHeader" xdb:defaultTable="EVLN_CLIENTRISKEVENTHEADER">
<xs:complexType xdb:SQLType="EVLN_CLIENTRISKEVENTHEADER_T">
<xs:sequence>
<xs:element ref="title" xdb:SQLName="TITLE"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>registered via :
BEGIN
DBMS_XMLSCHEMA.registerSchema(
SCHEMAURL => 'http://xmlns.kfis.co.uk/testevheader/xsdin/truncheadertest.xsd',
SCHEMADOC => XDBURIType('/public/web_quotes/header/xsd/test/SchemaTest/truncheadtest2.xsd').getCLOB());
END;i have then created a new xsd, to add the new element to the xsd (using minoccurs to allow backwards compatibility between xml files conforming to the 1st xsd and this new xsd), called truncheadtestfn3.xsd :
<?xml version="1.0" encoding="UTF-8"?>
<!--W3C Schema generated by XMLSpy v2009 sp1 (http://www.altova.com)-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" xdb:storeVarrayAsTable="true">
<xs:element name="title">
<xs:simpleType>
<xs:restriction base="xs:string"/>
</xs:simpleType>
</xs:element>
<xs:element name="forename">
<xs:simpleType>
<xs:restriction base="xs:string"/>
</xs:simpleType>
</xs:element>
<xs:element name="clientRiskEventHeader" xdb:defaultTable="EVLN_CLIENTRISKEVENTHEADER">
<xs:complexType xdb:SQLType="EVLN_CLIENTRISKEVENTHEADER_T">
<xs:sequence>
<xs:element ref="title" xdb:SQLName="TITLE"/>
<xs:element ref="forename" minOccurs="0" xdb:SQLName="FORENAME"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>I can run the following code to create the difference doc between the 2 versions of the schema document, without errors:
DECLARE
schemaDiff XMLType;
res boolean;
BEGIN
SELECT xmlDiff
xdburitype('/public/web_quotes/header/xsd/test/SchemaTest/truncheadtest2.xsd').getXML(),
xdburitype('/public/web_quotes/header/xsd/test/SchemaTest/truncheadtestfn3.xsd').getXML()
INTO schemaDiff
FROM dual;
IF (dbms_xdb.existsResource('/public/web_quotes/header/xsd/test/SchemaTest/header.xml')) THEN
dbms_xdb.deleteResource('/public/web_quotes/header/xsd/test/SchemaTest/header.xml');
END IF;
res :=
dbms_xdb.createResource('/public/web_quotes/header/xsd/test/SchemaTest/header.xml',schemaDiff);
dbms_xmlschema.inPlaceEvolve('http://xmlns.kfis.co.uk/testevheader/xsdin/truncheadertest.xsd',schemaDiff,2);
END;
/ which creates the following xml file:
- <xd:xdiff xsi:schemaLocation="http://xmlns.oracle.com/xdb/xdiff.xsd http://xmlns.oracle.com/xdb/xdiff.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xd="http://xmlns.oracle.com/xdb/xdiff.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<?oracle-xmldiff operations-in-docorder="true" output-model="snapshot" diff-algorithm="global"?>
- <xd:insert-node-before xd:node-type="element" xd:xpath="/xs:schema[1]/xs:element[2]">
- <xd:content>
- <xs:element name="forename">
- <xs:simpleType>
<xs:restriction base="xs:string" />
</xs:simpleType>
</xs:element>
</xd:content>
</xd:insert-node-before>
- <xd:append-node xd:node-type="element" xd:parent-xpath="/xs:schema[1]/xs:element[2]/xs:complexType[1]/xs:sequence[1]">
- <xd:content>
<xs:element ref="forename" minOccurs="0" xdb:SQLName="FORENAME" />
</xd:content>
</xd:append-node>
</xd:xdiff>However, when i then run the inplace schema evolution code for option 1, i get the following error:
Error report:
ORA-22324: altered type has compilation errors
ORA-22328: object "WEB_STAGING"."EVLN_CLIENTRISKEVENTHEADER_T" has errors.
PLS-00215: String length constraints must be in range (1 .. 32767)
ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 173
ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 231
ORA-06512: at line 17
22324. 00000 - "altered type has compilation errors"
*Cause: The use of the ALTER TYPE statement caused a compilation error.
*Action: Correct the error reported and resubmit the statement.I am getting this issue when attempting to add any string value to the existing xsd and i was wondering if you had any idea what the issue was here and how i could resolve this.
Thanks.Hi,
When you use INPLACE_TRACE flag, it traces the operations that would be performed with option 1.
If you look at the trace file produced in this case, you'll see where the error is coming from :
------------ QMTS Executing SQL ------------
ALTER TYPE "TEST"."EVLN_CLIENTRISKEVENTHEADER_T" ADD ATTRIBUTE "FORENAME" VARCHAR2 CASCADE NOT INCLUDING TABLE DATA
/The mandatory length specification is absent.
I thought adding an explicit xs:maxLength restriction would solve the problem, but it happens the generated DDL still lacks the length specification.
After some tries, I found that the issue seems related to the usage of ref elements in the schema.
On a side note, it's not the first time we see problems associated with ref (Cf. how do i get xml db to work right with imported or included schemas?).
The workaround is to use a named type.
I've also added an xdb:defaultTable annotation to the top-level element ("title") so that the registration process doesn't generate a table for it :
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" xdb:storeVarrayAsTable="true">
<xs:element name="title" xdb:defaultTable="">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="200"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:simpleType name="forenameType">
<xs:restriction base="xs:string">
<xs:maxLength value="30"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="clientRiskEventHeader" xdb:defaultTable="EVLN_CLIENTRISKEVENTHEADER">
<xs:complexType xdb:SQLType="EVLN_CLIENTRISKEVENTHEADER_T">
<xs:sequence>
<xs:element ref="title" xdb:SQLName="TITLE"/>
<xs:element name="forename" type="forenameType" minOccurs="0" xdb:SQLName="FORENAME"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema> -
Insert really slow on 100Mb file
Hello,
I have an XMLType table with a registered XSD. Performance on smaller files is good but 1 XML file which is 100 Mb takes 8+ hours only to load. I really need to speeds this up.
I detected the most time being consumed in the INSERT statement. This i didnt expect but also i dont know how to improve this. I hope someone can help me out here.
See following for detailed information.
Thanks in advance
Remy
Table definition
CREATE TABLE PHILIPS_XML of XMLType
XMLSCHEMA "http://localhost/philips_format.xsd" ELEMENT "Tree"First thing i tried is loading the file directly into the Table using
INSERT INTO PHILIPS_XML
VALUES (XMLTYPE(bfilename('XMLDIR',:1 ),NLS_CHARSET_ID('AL32UTF8')))No performance so i tried loading using the sql*loader but no major succes on this one also
In order to find out where my performance loss is i tried loading into a CLOB and then insert into the XMLType table
CREATE TABLE TEMP_CLOB
(TEMP_DATA CLOB)
dest_clob CLOB;
src_clob BFILE;
dst_offset number := 1 ;
src_offset number := 1 ;
lang_ctx number := DBMS_LOB.DEFAULT_LANG_CTX;
warning number;
BEGIN
INSERT INTO temp_clob(temp_data)
VALUES(empty_clob())
RETURNING temp_data INTO dest_clob;
-- OPENING THE SOURCE BFILE IS MANDATORY
src_clob:=bfilename('XMLDIR',p_supplier_xml);
DBMS_LOB.OPEN(src_clob, DBMS_LOB.LOB_READONLY);
DBMS_LOB.LoadCLOBFromFile(
DEST_LOB => dest_clob
, SRC_BFILE => src_clob
, AMOUNT => DBMS_LOB.GETLENGTH(src_clob)
, DEST_OFFSET => dst_offset
, SRC_OFFSET => src_offset
, BFILE_CSID => DBMS_LOB.DEFAULT_CSID
, LANG_CONTEXT => lang_ctx
, WARNING => warning
DBMS_LOB.CLOSE(src_clob);
I let the loading part run with a trace.
INSERT INTO PHILIPS_XML
SELECT XMLTYPE(TEMP_DATA) FROM TEMP_CLOB; Here are the trace results (please forget the first error .. i made a typo in the statement)
TKPROF: Release 10.1.0.2.0 - Production on Mon May 19 09:20:45 2008
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Trace file: ecd1d_ora_19063_REMY.trc
Sort options: default
count = number of times OCI procedure was executed
cpu = cpu time in seconds executing
elapsed = elapsed time in seconds executing
disk = number of physical reads of buffers from disk
query = number of buffers gotten for consistent read
current = number of buffers gotten in current mode (usually for update)
rows = number of rows processed by the fetch or execute call
The following statement encountered a error during parse:
insert into philips_xml
(select xmltype(xml_data) from temp_table
Error encountered: ORA-00942
select metadata
from
kopm$ where name='DB_FDO'
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 2 0.01 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 2 0 1
total 4 0.01 0.00 0 2 0 1
Misses in library cache during parse: 0
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Rows Row Source Operation
1 TABLE ACCESS BY INDEX ROWID KOPM$ (cr=2 pr=0 pw=0 time=59 us)
1 INDEX UNIQUE SCAN I_KOPM1 (cr=1 pr=0 pw=0 time=31 us)(object id 365)
SELECT /* OPT_DYN_SAMP */ /*+ ALL_ROWS IGNORE_WHERE_CLAUSE
NO_PARALLEL(SAMPLESUB) opt_param('parallel_execution_enabled', 'false')
NO_PARALLEL_INDEX(SAMPLESUB) NO_SQL_TUNE */ NVL(SUM(C1),:"SYS_B_0"),
NVL(SUM(C2),:"SYS_B_1")
FROM
(SELECT /*+ NO_PARALLEL("TEMP_CLOB") FULL("TEMP_CLOB")
NO_PARALLEL_INDEX("TEMP_CLOB") */ :"SYS_B_2" AS C1, :"SYS_B_3" AS C2 FROM
"TEMP_CLOB" "TEMP_CLOB") SAMPLESUB
call count cpu elapsed disk query current rows
Parse 3 0.00 0.00 0 0 0 0
Execute 3 0.01 0.00 0 0 0 0
Fetch 3 0.00 0.00 0 23 0 3
total 9 0.01 0.00 0 23 0 3
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: ALL_ROWS
Parsing user id: 46 (recursive depth: 1)
Rows Row Source Operation
1 SORT AGGREGATE (cr=9 pr=0 pw=0 time=601 us)
0 TABLE ACCESS FULL TEMP_CLOB (cr=9 pr=0 pw=0 time=431 us)
insert into philips_xml
(select xmltype (temp_data) from temp_clob)
call count cpu elapsed disk query current rows
Parse 1 0.02 0.01 0 108 0 0
Execute 1 0.00 0.00 0 7 0 0
Fetch 0 0.00 0.00 0 0 0 0
total 2 0.02 0.01 0 115 0 0
Misses in library cache during parse: 1
Optimizer mode: ALL_ROWS
Parsing user id: 87
Rows Row Source Operation
0 TABLE ACCESS FULL TEMP_CLOB (cr=7 pr=0 pw=0 time=64 us)
(select xmltype (temp_data) from temp_clob)
call count cpu elapsed disk query current rows
Parse 2 0.01 0.00 0 8 0 0
Execute 2 0.00 0.00 0 0 0 0
Fetch 2 100.80 260.23 263377 1756877 0 1
total 6 100.81 260.24 263377 1756885 0 1
Misses in library cache during parse: 1
Optimizer mode: ALL_ROWS
Parsing user id: 87
Rows Row Source Operation
1 TABLE ACCESS FULL TEMP_CLOB (cr=7 pr=0 pw=0 time=492 us)
select sys_nc_oid$
from
xdb.xdb$resource where rowid = :1
call count cpu elapsed disk query current rows
Parse 2 0.00 0.00 0 0 0 0
Execute 2 0.00 0.00 0 0 0 0
Fetch 2 0.00 0.00 0 4 0 2
total 6 0.00 0.00 0 4 0 2
Misses in library cache during parse: 0
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Rows Row Source Operation
1 TABLE ACCESS BY USER ROWID XDB$RESOURCE (cr=2 pr=0 pw=0 time=40 us)
select value(p$)
from
"XDB"."XDB$RESOURCE" as of snapshot(:2) p$ where SYS_NC_OID$
= :1
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 2 0.00 0.00 0 0 0 0
Fetch 2 0.00 0.00 0 4 0 2
total 5 0.00 0.00 0 4 0 2
Misses in library cache during parse: 0
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 1)
select obj#,type#,ctime,mtime,stime,status,dataobj#,flags,oid$, spare1,
spare2
from
obj$ where owner#=:1 and name=:2 and namespace=:3 and remoteowner is null
and linkname is null and subname is null
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 2 0.00 0.00 0 0 0 0
Fetch 2 0.00 0.00 0 4 0 0
total 5 0.00 0.00 0 4 0 0
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Rows Row Source Operation
0 TABLE ACCESS BY INDEX ROWID OBJ$ (cr=2 pr=0 pw=0 time=53 us)
0 INDEX RANGE SCAN I_OBJ2 (cr=2 pr=0 pw=0 time=48 us)(object id 37)
insert into philips_xml
(select xmltype(temp_data) from temp_clob)
call count cpu elapsed disk query current rows
Parse 1 0.01 0.00 0 15 0 0
Execute 1 25003.01 30465.99 526759 3514263 29095 1
Fetch 0 0.00 0.00 0 0 0 0
total 2 25003.02 30465.99 526759 3514278 29095 1
Misses in library cache during parse: 1
Optimizer mode: ALL_ROWS
Parsing user id: 87
select file#
from
file$ where ts#=:1
call count cpu elapsed disk query current rows
Parse 82 0.00 0.00 0 0 1 0
Execute 82 0.08 0.11 0 0 0 0
Fetch 164 0.03 0.01 0 328 0 82
total 328 0.11 0.13 0 328 1 82
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Rows Row Source Operation
1 TABLE ACCESS FULL FILE$ (cr=4 pr=0 pw=0 time=145 us)
update seg$ set type#=:4,blocks=:5,extents=:6,minexts=:7,maxexts=:8,extsize=
:9,extpct=:10,user#=:11,iniexts=:12,lists=decode(:13, 65535, NULL, :13),
groups=decode(:14, 65535, NULL, :14), cachehint=:15, hwmincr=:16, spare1=
DECODE(:17,0,NULL,:17),scanhint=:18
where
ts#=:1 and file#=:2 and block#=:3
call count cpu elapsed disk query current rows
Parse 82 0.00 0.00 0 0 2 0
Execute 82 0.03 0.06 0 410 82 82
Fetch 0 0.00 0.00 0 0 0 0
total 164 0.03 0.06 0 410 84 82
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Rows Row Source Operation
0 UPDATE SEG$ (cr=5 pr=0 pw=0 time=537 us)
1 TABLE ACCESS CLUSTER SEG$ (cr=5 pr=0 pw=0 time=175 us)
1 INDEX UNIQUE SCAN I_FILE#_BLOCK# (cr=2 pr=0 pw=0 time=21 us)(object id 9)
select /*+ rule */ bucket_cnt, row_cnt, cache_cnt, null_cnt, timestamp#,
sample_size, minimum, maximum, distcnt, lowval, hival, density, col#,
spare1, spare2, avgcln
from
hist_head$ where obj#=:1 and intcol#=:2
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 6 0
Execute 7 0.01 0.01 0 0 0 0
Fetch 7 0.00 0.00 0 21 0 7
total 15 0.01 0.01 0 21 6 7
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: RULE
Parsing user id: SYS (recursive depth: 2)
Rows Row Source Operation
1 TABLE ACCESS BY INDEX ROWID HIST_HEAD$ (cr=3 pr=0 pw=0 time=398 us)
1 INDEX RANGE SCAN I_HH_OBJ#_INTCOL# (cr=2 pr=0 pw=0 time=374 us)(object id 257)
OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
call count cpu elapsed disk query current rows
Parse 4 0.04 0.02 0 131 0 0
Execute 4 25003.01 30465.99 526759 3514270 29095 1
Fetch 2 100.80 260.23 263377 1756877 0 1
total 10 25103.85 30726.25 790136 5271278 29095 2
Misses in library cache during parse: 3
OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS
call count cpu elapsed disk query current rows
Parse 173 0.00 0.02 0 0 9 0
Execute 182 0.14 0.20 0 410 82 82
Fetch 181 0.03 0.01 0 386 0 97
total 536 0.17 0.24 0 796 91 179
Misses in library cache during parse: 5
Misses in library cache during execute: 5
7 user SQL statements in session.
177 internal SQL statements in session.
184 SQL statements in session.
Trace file: ecd1d_ora_19063_REMY.trc
Trace file compatibility: 10.01.00
Sort options: default
0 session in tracefile.
7 user SQL statements in trace file.
177 internal SQL statements in trace file.
184 SQL statements in trace file.
11 unique SQL statements in trace file.
1653 lines in trace file.
31142 elapsed seconds in trace file.XSD + register statement is here:
DBMS_XMLSCHEMA.REGISTERSCHEMA(
'http://localhost/philips_format.xsd' ,
'<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v5 rel. 3 U (http://www.xmlspy.com) by Philips Consumer Electronics BV (Philips Consumer Electronics BV) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="Tree">
<xs:complexType>
<xs:sequence>
<xs:element ref="Node" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Node">
<xs:annotation>
<xs:documentation>This XSD is designed to have very similar structure as the XML v2 specification. Please see XMLv2Spec_rev_15.pdf for more information </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Id" type="xs:string"/>
<xs:element name="SuppliersId" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>Is used to make a unique identifier that is readable. You dont have to worry about it, this key is unique across all service providers because the id that is stored in the DB will have the service nodes id prepended to it</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TopLevel" minOccurs="0">
<xs:annotation>
<xs:documentation>Add this tag if the node is to be the first node after the service node. </xs:documentation>
</xs:annotation>
<xs:complexType/>
</xs:element>
<xs:element name="Name" type="xs:string" minOccurs="0"/>
<xs:element name="ChildNodes" minOccurs="0">
<xs:annotation>
<xs:documentation>The list of child nodes. Note that this doesnt form a strict tree!! A child node can have multiple parent nodes.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="ChildNode" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="DataItems" minOccurs="0">
<xs:annotation>
<xs:documentation>Exactly the same as the XMLv2 Spec</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="DataItem" type="DataItem" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="NodeProperties" type="Properties" minOccurs="0">
<xs:annotation>
<xs:documentation>For internal use. It is used for as a point to add service specific code that is needed for that dataloader. </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Filters" minOccurs="0">
<xs:annotation>
<xs:documentation>For internal use. This is where a list of filters can be added. There are many filters in ECD if we need.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence maxOccurs="unbounded">
<xs:element name="Filter" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="DynamicNavigationNode" minOccurs="0">
<xs:annotation>
<xs:documentation>For internal use. A flag that indicates that there will be child nodes that are going to be created so this node should be a navigationNode and not a playableNode</xs:documentation>
</xs:annotation>
<xs:complexType/>
</xs:element>
<xs:element name="DynamicDataLoader" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>For internal use. This points to an component</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="MenuHelper" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>For internal use. A menu helper is used to return how the node should be displayed and not what it actually is for example there is a DropThoughMenuHelper that will make the current node effectively invisible and will display the nodes children instead</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="PlayableProperties" type="PlayableProperties" minOccurs="0"/>
<xs:element name="Type" type="xs:int" minOccurs="0">
<xs:annotation>
<xs:documentation>This allows you to override the default node type. In almost all cases the default node type is needed. The data loader will make nodes that have children a navigationNode and the ones that have no children, playableNodes</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="DataItem">
<xs:all>
<xs:element name="Title" type="xs:string" minOccurs="0"/>
<xs:element name="Album" type="xs:string" minOccurs="0"/>
<xs:element name="Artist" type="xs:string" minOccurs="0"/>
<xs:element name="Playlength" type="xs:int" minOccurs="0"/>
<xs:element name="MIMEType" type="xs:string" minOccurs="0"/>
<xs:element name="Aspect" type="xs:string" minOccurs="0"/>
<xs:element name="Bitrate" type="xs:string" minOccurs="0"/>
<xs:element name="Description" type="xs:string" minOccurs="0"/>
<xs:element name="Filesize" type="xs:string" minOccurs="0"/>
<xs:element name="FramesPerSecond" type="xs:string" minOccurs="0"/>
<xs:element name="Genre" type="xs:string" minOccurs="0"/>
<xs:element name="Height" type="xs:int" minOccurs="0"/>
<xs:element name="Quality" type="xs:string" minOccurs="0"/>
<xs:element name="Samplerate" type="xs:string" minOccurs="0"/>
<xs:element name="TrackNumber" type="xs:string" minOccurs="0"/>
<xs:element name="Width" type="xs:int" minOccurs="0"/>
<xs:element name="Year" type="xs:int" minOccurs="0"/>
<xs:element ref="DetailSet" minOccurs="0"/>
<xs:element ref="URLSet" minOccurs="0"/>
<xs:element name="Usage" type="xs:string" minOccurs="0"/>
</xs:all>
</xs:complexType>
<xs:complexType name="Properties">
<xs:sequence>
<xs:element name="Property" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Key" type="xs:string"/>
<xs:element name="Value" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:element name="DetailSet">
<xs:complexType>
<xs:sequence>
<xs:element name="Detail" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Title" type="xs:string" minOccurs="0"/>
<xs:element name="Value" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="URLSet">
<xs:complexType>
<xs:sequence>
<xs:element name="URL" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="PlayableProperties">
<xs:sequence minOccurs="0">
<xs:element name="QualityLevels" minOccurs="0">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="Level" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Recordable" type="xs:integer" minOccurs="0"/>
<xs:element name="SkipForward" type="xs:integer" minOccurs="0"/>
<xs:element name="SkipBackward" type="xs:integer" minOccurs="0"/>
<xs:element name="Pauseable" type="xs:integer" minOccurs="0"/>
<xs:element name="Seekable" type="xs:integer" minOccurs="0"/>
<xs:element name="RepeatAll" type="xs:integer" minOccurs="0"/>
<xs:element name="RepeatTrack" type="xs:integer" minOccurs="0"/>
<xs:element name="MandatoryConnect" type="xs:integer" minOccurs="0"/>
<xs:element name="RequestSingleSet" type="xs:integer" minOccurs="0"/>
<xs:element name="InvalidateSetOnError" type="xs:integer" minOccurs="0"/>
<xs:element name="ReconnectOnError" type="xs:integer" minOccurs="0"/>
<xs:element name="Syncable" type="xs:integer" minOccurs="0"/>
<xs:element name="ShowProgressBar" type="xs:integer" minOccurs="0"/>
<xs:element name="AllowDigitalOut" type="xs:integer" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:schema>'
, TRUE
, TRUE
, FALSE
, TRUE);You can "boost" via FTP by setting database initialization parameters:
- shared servers = 5
- large_pool_size at a minimum of 150 Mb (please increase ++ if you have the room / mem.)
- java_pool_size at a minimum of 150 Mb
- don't use sga_target and other "memory wizards" but set the parameters manually
- purge the dba_recyclebin and set the feature off.
- have a look a the tnsnames.ora and listener.ora files and / or local_listener and dispatcher settings and avoid TCP/IP name resolution. Use hard coded names, tcp/ip names (name resolution via the hosts file / NOT via a nameserver)
to name some pointers. -
Hi,
I am trying out an example from http://www.coreservlets.com/JSF-Tutorial/#Section1. When I press the submit button, it doesn't seem to execute. It either doesn't give any erros or move to next page. Anybody has got an an idea ? If you want more about it, please don't hesitate to ask. I have been trying since last 2 days, so desperate to sort it out.
Thanks,
njan.Thanks Balu for reply. I think I have done the same way.
the jsp am trying to submit is :
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<f:view>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD><TITLE>New Account Registration</TITLE>
<LINK REL="STYLESHEET"
HREF="./css/styles.css"
TYPE="text/css">
</HEAD>
<BODY>
<CENTER>
<TABLE BORDER=5>
<TR><TH CLASS="TITLE">New Account Registration</TH></TR>
</TABLE>
<P>
<h:form id="form2">
Email address: <h:inputText id="email"/><BR>
Password: <h:inputSecret id="password"/><BR>
<h:commandButton value="Sign Me Up!"
action="#{registrationController.register}"/>
</h:form>
</CENTER></BODY></HTML>
</f:view>corresponding bean :
package jsftest;
public class RegistrationBean {
private String email = "user@host";
private String password = "";
private SuggestionBean suggestion;
public String getEmail() {
return(email);
public void setEmail(String email) {
this.email = email;
public String getPassword() {
return(password);
public void setPassword(String password) {
this.password = password;
public SuggestionBean getSuggestion() {
return(suggestion);
public String register() {
System.out.println("******** printing");
if ((email == null) ||
(email.trim().length() < 3) ||
(email.indexOf("@") == -1)) {
suggestion = SuggestionUtils.getSuggestionBean();
return("bad-address");
} else if ((password == null) ||
(password.trim().length() < 6)) {
suggestion = SuggestionUtils.getSuggestionBean();
return("bad-password");
} else {
return("success");
}faces-config :
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
<faces-config>
<managed-bean>
<managed-bean-name>healthPlanController</managed-bean-name>
<managed-bean-class>
jsftest.HealthPlanController
</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>registrationController</managed-bean-name>
<managed-bean-class>
jsftest.RegistrationController
</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>registrationBean</managed-bean-name>
<managed-bean-class>jsftest.RegistrationBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/signup.jsp</from-view-id>
<navigation-case>
<from-outcome>accepted</from-outcome>
<to-view-id>/WEB-INF/results/accepted.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>rejected</from-outcome>
<to-view-id>/WEB-INF/results/rejected.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>jsp/register1.jsp</from-view-id>
<navigation-case>
<from-outcome>register</from-outcome>
<to-view-id>/WEB-INF/results/result1.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>jsp/register2.jsp</from-view-id>
<navigation-case>
<from-outcome>bad-address</from-outcome>
<to-view-id>/WEB-INF/results/bad-address2.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>bad-password</from-outcome>
<to-view-id>/WEB-INF/results/bad-password2.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/WEB-INF/results/result2.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>jsp/register3.jsp</from-view-id>
<navigation-case>
<from-outcome>bad-address</from-outcome>
<to-view-id>/WEB-INF/results/bad-address3.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>bad-password</from-outcome>
<to-view-id>/WEB-INF/results/bad-password3.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/WEB-INF/results/result3.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>jsp/register4.jsp</from-view-id>
<navigation-case>
<from-outcome>bad-address</from-outcome>
<to-view-id>/WEB-INF/results/bad-address4.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>bad-password</from-outcome>
<to-view-id>/WEB-INF/results/bad-password4.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/WEB-INF/results/result4.jsp</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>and the web.xml :
<?xml version="1.0"?>
<!--<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">-->
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_3.xsd"
version="2.3">
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>
/WEB-INF/faces-config.xml
</param-value>
<description>
Comma separated list of URIs of (additional) faces config files.
(e.g. /WEB-INF/my-config.xml)
See JSF 1.0 PRD2, 10.3.2
</description>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
<description>
State saving method: "client" or "server" (= default)
See JSF Specification 2.5.2
</description>
</context-param>
<context-param>
<param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
<param-value>true</param-value>
<description>
This parameter tells MyFaces if javascript code should be allowed in the
rendered HTML output.
If javascript is allowed, command_link anchors will have javascript code
that submits the corresponding form.
If javascript is not allowed, the state saving info and nested parameters
will be added as url parameters.
Default: "true"
</description>
</context-param>
<context-param>
<param-name>org.apache.myfaces.PRETTY_HTML</param-name>
<param-value>true</param-value>
<description>
If true, rendered HTML code will be formatted, so that it is "human readable".
i.e. additional line separators and whitespace will be written, that do not
influence the HTML code.
Default: "true"
</description>
</context-param>
<context-param>
<param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
<param-value>true</param-value>
<description>
If true, a javascript function will be rendered that is able to restore the
former vertical scroll on every request. Convenient feature if you have pages
with long lists and you do not want the browser page to always jump to the top
if you trigger a link or button action that stays on the same page.
Default: "false"
</description>
</context-param>
<!-- Listener, that does all the startup work (configuration, init). -->
<listener>
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>
<!-- Faces Servlet
Marty Hall: changed .jsf back to standard of .faces -->
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
<!-- Welcome files -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<web-resource-collection>
<web-resource-name>
Restrict access to JSP pages
</web-resource-name>
<url-pattern>/jsp/register1.jsp</url-pattern>
<url-pattern>/jsp/result1.jsp</url-pattern>
</web-resource-collection>
</web-app>By looking this, can you get an idea what goes wrong please ?
Thanks,
njan -
ApEx 2.1.0.00.39 as Partner Application in Oracle AS Single Sign-On
Hi,
I've installed the last Application Express 2.1.0.00.39 (oracle-xe-10.2.0.1-1.0.i386.rpm and oracle-xe-univ-10.2.0.1-1.0.i386.rpm) but, when I try to "create an authentication scheme" for configure an ApEx application to use SSO under
Home>Application Builder>Application xxx>Shared Components>Authentication Schemes>Create Authentication Scheme
in the second step of the procedure I don't find the choice "Oracle Application Server Single Sign-On (Application Express engine as Partner App)".
I found only these:
- Show Built-In Login Page and Use Open Door Credentials
- Show Login Page and Use Application Express Account Credentials
- Show Login Page and Use Database Account Credentials
- Show Login Page and Use LDAP Directory Credentials
- No Authentication (using DAD)
even if under the help voice "V Information" the others two are describes:
Oracle Application Server Single Sign-On (Application Express engine as Partner App) delegates authentication to the Oracle Application Server Single Sign-On (SSO) Server. This Application Express site must have already been registered as a partner application with the SSO server. For more information, contact your administrator.
Oracle Application Server Single Sign-On (My application as Partner App) delegates authentication to the SSO server. In this case, you must register an application with SSO as a partner application. See the next page for more details.
Does Someone know how to resolve it?
Thanks
EmanueleThanks for all your help Scott
I've added the -PORTAL_SSO- .....
After this I've had a new problem same to this: Re: SSO Authentication Not Working
"get the error below and it then directs me to http://hostx/htmldb/f? and the "p=" is missing"
But after a lot of tests I discovered where was the problem: "The apache configuration for the proxy!!"
This an extract from the installation doc :
SetEnv force-proxy-request-1.0 1
ProxyPass /htmldb http://127.0.0.1:8080/htmldb
ProxyPassReverse /htmldb http://127.0.0.1:8080/htmldb
ProxyPass /i http://127.0.0.1:8080/i
ProxyPassReverse /i http://127.0.0.1:8080/i
ProxyPass /sys http://127.0.0.1:8080/sys
ProxyPassReverse /sys http://127.0.0.1:8080/sys
where you replace 127.0.0.1 with the name OR ip address of your XE installation. 8080 is the default http port of your XE installation. "
Well, I used the IP ADDRESS and in the @regapp > listener_token the NAME!!! (HTML_DB:servername.domain:80)
I changed the IP ADDRESS with the NAME, restarted the httpd service and now all works fine.
Emanuele -
Check for Null in Mediator Static Routing filter
Using Expression Builder for Mediator component how can I check the values for NULL in a particular XML element. In my case the XSD is
<xs:complexType name="OdsCadDataSet">
<xs:choice>
<xs:element name="odsCadCase" type="OdsCadCase" minOccurs="0"
maxOccurs="1"/>
<xs:element name="odsCadEvent" type="OdsCadEvent" minOccurs="0"
maxOccurs="1"/>
<xs:element name="odsCadUnitStatus" type="OdsCadUnitStatus"
minOccurs="0" maxOccurs="1"/>
</xs:choice>
</xs:complexType>
I want to check in expression builder of mediator whether odsCase, odsCadEvent, odsCadUnitStatus is been processed. I have three static routing for each element and plan to put filter which checks is odsCadCase is null and so forth. How to have this use case.
Thanks
Edited by: user5108636 on 28/06/2010 00:15helo, i have same problem here...
I have a xsd:choice on request like this:
<message>
<properties>
<property name="tracking.compositeInstanceId" value="80003"/>
<property name="tracking.ecid" value="0000J1MQVAZBDC^5lVg8yZ1DtZWJ000T5r"/>
<property name="transport.http.remoteAddress" value="10.106.17.137"/>
</properties>
<parts>
<part name="request">
<ns1:parametrosConsultaGuia>
<ns1:guiaCompensacaoRequest>
<ns1:anoGuia>2011</ns1:anoGuia>
<ns1:numeroGuia>314</ns1:numeroGuia>
<ns1:codigoFatoGerador>6</ns1:codigoFatoGerador>
<ns1:codigoPorte>77011</ns1:codigoPorte>
</ns1:guiaCompensacaoRequest>
<ns1:guiaComplementarRequest>
<ns1:codigoEntidade/>
<ns1:classeEmbarcacao/>
<ns1:codigoPorte/>
<ns1:codigoAssunto/>
<ns1:fatoGerador/>
<ns1:numeroTransacaoInternet/>
</ns1:guiaComplementarRequest>
<ns1:guiaDesarquivamentoRequest>
<ns1:codigoAssunto/>
<ns1:idPessoa/>
</ns1:guiaDesarquivamentoRequest>
<ns1:guiaDividaAtivaRequest>
<ns1:numeroDebito/>
<ns1:codigoUsuario/>
</ns1:guiaDividaAtivaRequest>
<ns1:guiaNormalRequest>
<ns1:codigoEntidade/>
<ns1:codigoAssunto/>
<ns1:fatoGerador/>
<ns1:numeroTransacaoInternet/>
</ns1:guiaNormalRequest>
<ns1:guiaReferenciaRequest>
<ns1:numeroGuiaPai/>
<ns1:anoGuiaPai/>
<ns1:codigoEntidade/>
<ns1:classeEmbarcacao/>
<ns1:codigoAssunto/>
</ns1:guiaReferenciaRequest>
<ns1:guiaRemanescenteRequest>
<ns1:numeroDebito/>
<ns1:codigoUsuario/>
</ns1:guiaRemanescenteRequest>
<ns1:guiaMultaRequest>
<ns1:codigoEntidade/>
<ns1:dataVencimento/>
<ns1:valorMulta/>
<ns1:percentualDesconto/>
<ns1:percentualAcrescimo/>
</ns1:guiaMultaRequest>
</ns1:parametrosConsultaGuia>
</part>
</parts>
</message>
I tried everything to check if some of the requests are filled but allways mediator returns null:
03/06/2011 13:50:42MensagemEvaluation of xpath condition "string-length($in.request/guia:guiaRequest/guia:parametrosConsultaGuia/guia:guiaReferenciaRequest) > 0" resulted false
<payload>
Atividade03/06/2011 13:50:42MensagemonCase "GuiaCompensacao.getGuiaCompensacao"
03/06/2011 13:50:42MensagemEvaluation of xpath condition "$in.request/guia:guiaRequest/guia:parametrosConsultaGuia/guia:guiaCompensacaoRequest != ''" resulted false
<payload>
Atividade03/06/2011 13:50:42MensagemonCase "GuiaRemanescenteService.getGuiaRemanescente"
03/06/2011 13:50:42MensagemEvaluation of xpath condition "string-length($in.request/guia:guiaRequest/guia:parametrosConsultaGuia/guia:guiaRemanescenteRequest) > 0" resulted false
<payload>
Atividade03/06/2011 13:50:42MensagemonCase "GuiaMultaService.gerarBoleto"
03/06/2011 13:50:42MensagemEvaluation of xpath condition "string-length($in.request/guia:guiaRequest/guia:parametrosConsultaGuia/guia:guiaMultaRequest) > 0" resulted false
<payload>
Atividade03/06/2011 13:50:42MensagemonCase "GuiaDividaAtiva.getGuiaDividaAtiva"
03/06/2011 13:50:42MensagemEvaluation of xpath condition "string-length($in.request/guia:guiaRequest/guia:parametrosConsultaGuia/guia:guiaDividaAtivaRequest) > 0" resulted false
<payload>
Atividade03/06/2011 13:50:42MensagemonCase "GuiaDesarquivamento.getGuiaDesarquivamento"
03/06/2011 13:50:42MensagemEvaluation of xpath condition "string-length($in.request/guia:guiaRequest/guia:parametrosConsultaGuia/guia:guiaDesarquivamentoRequest) > 0" resulted false
<payload>
Atividade03/06/2011 13:50:42MensagemonCase "GuiaComplementarService.gerarBoleto"
03/06/2011 13:50:42MensagemEvaluation of xpath condition "string-length($in.request/guia:guiaRequest/guia:parametrosConsultaGuia/guia:guiaComplementarRequest) > 0" resulted false
<payload>
Atividade03/06/2011 13:50:42MensagemonCase "GuiaNormalService.gerarBoleto"
03/06/2011 13:50:42MensagemEvaluation of xpath condition "string-length($in.request/guia:guiaRequest/guia:parametrosConsultaGuia/guia:guiaNormalRequest) > 0" resulted false
<payload> -
Can you help me with these exceptions??
Hi guys,
from sunday i try to eliminate these exceptions from my jsf application and i've lost any confidence in my possibility to realize it.....
It's surely a simple problem but i'm a newbie of jsf and java.
These are the exadel msg
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: #{MyBean.retrieveblob}: javax.faces.el.EvaluationException: java.lang.NullPointerException
javax.faces.webapp.FacesServlet.service(FacesServlet.java:209)
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
root cause
javax.faces.FacesException: #{MyBean.retrieveblob}: javax.faces.el.EvaluationException: java.lang.NullPointerException
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:78)
javax.faces.component.UICommand.broadcast(UICommand.java:312)
javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
ant these are the files
MyBean.java
package giu;
import org.apache.myfaces.custom.fileupload.UploadedFile;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.sql.Blob;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import java.util.StringTokenizer;
import java.util.Vector;
public class MyBean {
private UploadedFile myFile;
private String geneid=null;
private int row=0;
private int numberOfNumericColumns=0;
private int col=0;
String[]intest=null;
private ArrayList rows = new ArrayList();
Head h;
byte middlerow=' ';
byte endrow=';';
byte[] data=null;
Vector temp=new Vector(100000);
String g=null;
Riga r;
Double val[];
private String[] arraylinee;
public boolean insRighe(Riga nuovo){
return rows.add(nuovo);
public List stampaRows(){
return rows;}
public Head stampaHead(){
return h;}
public byte[] getdata(){
return data;
public UploadedFile getMyFile() {
return myFile;
public void setMyFile(UploadedFile myFile) {
this.myFile = myFile;
public int getcol(){
return col;
public void setcol(int col){
this.col=col;
public int getrow(){
return row;
public void setrow(int row){
this.row=row;
public String[] getarraylinee(){
return arraylinee;
public void setarraylinee(String[] arraylinee){
this.arraylinee=arraylinee;
public String retrieveblob(){
Database2 db = new Database2("nomeDB","root","shevagol");
try
Connection dbo=db.getConnection();
System.out.println("eccezione buona2");
System.out.println("eccezione buona2,5");
Statement st = dbo.createStatement();
System.out.println("eccezione buona3");
ResultSet rs;
rs = st.executeQuery("SELECT Data FROM tbl WHERE Nome='16'");
rs.first();
Blob blob = rs.getBlob("Data");
byte[] read = blob.getBytes(1, (int) blob.length());
st.close();
String lettura=new String(read);
String[] arraylinee=lettura.split(";");
/*for (int i = 0; i < arraylinee.length; i++) {
System.out.println(arraylinee);
catch(SQLException e)
System.out.println("Si � verificato il seguente errore: " + e.getMessage());
e.printStackTrace();
return "retrOk";
This is my result.jsp page
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ page import="giu.MyBean" %>
<%-- Instantiate class --%>
<jsp:useBean id="myBean" class="giu.MyBean" scope="request"/>
<html>
<head>
<title></title>
</head>
<body>
<f:view>
<c:forEach items="${myBean.arraylinee}" var="linea" >
<tr>
<td>
<c:out value="${linea}" />
</td>
</tr>
</c:forEach>
</f:view>
</body>
</html>
and these are web.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
<filter>
<filter-name>ExtensionsFilter</filter-name>
<filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
<init-param>
<param-name>uploadMaxFileSize</param-name>
<param-value>100m</param-value>
</init-param>
<init-param>
<param-name>uploadThresholdSize</param-name>
<param-value>100k</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>ExtensionsFilter</filter-name>
<servlet-name>FacesServlet</servlet-name>
</filter-mapping>
<servlet>
<servlet-name>FacesServlet</servlet-name>
<servlet-class>
javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>FacesServlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>FacesServlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
and faces-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
<faces-config>
<managed-bean>
<managed-bean-name>MyBean</managed-bean-name>
<managed-bean-class>giu.MyBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/pages/MyForm.jsp</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/pages/MyResult.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/pages/Login.jsp</from-view-id>
<navigation-case>
<from-outcome>Ok</from-outcome>
<to-view-id>/pages/Menu.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/pages/Menu.jsp</from-view-id>
<navigation-case>
<from-outcome>upload</from-outcome>
<to-view-id>/pages/MyForm.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>admin</from-outcome>
<to-view-id>/pages/UserForm.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>view</from-outcome>
<to-view-id>/pages/ViewForm.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>register</from-outcome>
<to-view-id>/pages/Register.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/pages/ViewForm.jsp</from-view-id>
<navigation-case>
<from-outcome>Result</from-outcome>
<to-view-id>/pages/Result.jsp</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>I hope someone can helps me...............
P.S.
Can someone says me a good program to debug my applications...?
I try with exadel but i find it bit intuitive....I don't know JSF, but it appears you haven't included part of your application - the one causing the error with the line: #{MyBean.retrieveblob}
I would assume the error is that you instantiate the bean with the name "myBean" (<jsp:useBean id="myBean" class="giu.MyBean" scope="request"/>) then refer to it as "MyBean". Java is case sensitive. -
YES I KEEP ASKING THE SAME QUESTION I KEEP GETTING THE SAME ANSWER AND IT IS NOT RESOLVING THE PROBLEM AND CHAT KEEPS SENDING ME BACK TO THE FORUMS THEY SAY THEIR EXPERTS WILL BE ABLE TO RESOLVE THE PROBLEM BUT IT IS NOT RESOLVED YET I KEEP GETTING THE SAME ANSWER FROM FORUM EXPERTS WELL THAT IS NOT WORKING I NEED A SOLUTION THAT WILL WORK I PAID FOR THIS AND I WANT TO USE IT BUT I CANNOT
TRYING TO ACTIVATE A trial version of photoshop elements 7.0 disc worked till in the middle got an erroe fur and animalskin file missing checked dvd and it had a scratch so 3 times i downloaded a trial version of photoshop elements 7.0 from adobe.com but when try to activate get invalid serial number the website said have your serial number ready to activate which i do because i am getting it right from the dvd case it is registered i am signed in and chat just keeps telling me it is too old try the forums which i have many times with no resolution but they mark it as assumed resolved premeir elements 7.0 from the same dvd case is on why can't i activate trial version of photoshop elements 7.0 my computer crashed and i had to restore then i am now trying to put the programs
maybe i can buy or exchange the dvd of photoshop elements 7.0 without because my serial number is good so i maybe just need a new disc being this disc is scratched i've got 40 to 50 hours into this 1 trial version of photoshop elements 7.0 more than i have in the whole computer restore and all the other programs i have restored have windows xp service pack 3 or 3.5 and net framework 4.0 and all the important and required updates i also have an open case which i am getting no where either case #213952591 which i responded to within 4 days as not resolved but i am still getting no help activating this trial version of photoshop elements 7.0
24 Views
Tags:YES I KEEP ASKING THE SAME QUESTION I KEEP GETTING THE SAME ANSWER AND IT IS NOT RESOLVING THE PROBLEM AND CHAT KEEPS SENDING ME BACK TO THE FORUMS THEY SAY THEIR EXPERTS WILL BE ABLE TO RESOLVE THE PROBLEM BUT IT IS NOT RESOLVED YET I KEEP GETTING THE SAME ANSWER FROM FORUM EXPERTS WELL THAT IS NOT WORKING I NEED A SOLUTION THAT WILL WORK I PAID FOR THIS AND I WANT TO USE IT BUT I CANNOT
TRYING TO ACTIVATE A trial version of photoshop elements 7.0 disc worked till in the middle got an erroe fur and animalskin file missing checked dvd and it had a scratch so 3 times i downloaded a trial version of photoshop elements 7.0 from adobe.com but when try to activate get invalid serial number the website said have your serial number ready to activate which i do because i am getting it right from the dvd case it is registered i am signed in and chat just keeps telling me it is too old try the forums which i have many times with no resolution but they mark it as assumed resolved premeir elements 7.0 from the same dvd case is on why can't i activate trial version of photoshop elements 7.0 my computer crashed and i had to restore then i am now trying to put the programs
maybe i can buy or exchange the dvd of photoshop elements 7.0 without because my serial number is good so i maybe just need a new disc being this disc is scratched i've got 40 to 50 hours into this 1 trial version of photoshop elements 7.0 more than i have in the whole computer restore and all the other programs i have restored have windows xp service pack 3 or 3.5 and net framework 4.0 and all the important and required updates i also have an open case which i am getting no where either case #213952591 which i responded to within 4 days as not resolved but i am still getting no help activating this trial version of photoshop elements 7.0
24 Views
Tags:
Maybe you are looking for
-
Goldengate calling plsql procedure
Hi Friends , as i am new to Goldengate features i need your help on working on this task. i am actually need pl/sql procedure since i am working on Goldengate replication.in my parameter i will call this procdure .actuall requirement is like this . i
-
Anyconnect VPN not prompting to accept Certificate (Windows 7)
Hello, I have an issue with windows 7 and anyconnect. When trying to connect to the VPN server the anyconnect client pops up a window saying that the server certificate cannot be verified. Doing the same in a windows XP machine just pops a window an
-
Novice needs help!! - film (XviD) downloaded onto desktop
How do I now go about turning it into a dvd so that I can watch it on my dvd player? Simple steps , please! Is there a particular type of DVD disc or programme that can only be played on the my all regions DVD player?
-
MBP won't boot recovery USB drive, need help
HDD failed on 15" mid2009 MacBook Pro, purchased a Seagate 1TB hybrid drive (SSHD) to replace it with. Went to boot to USB recovery drive with OS X 10.8 using option/alt on boot and would only get the folder with flashing question mark. Tried command
-
Is there any difference in the performance optimization done by WAE512 and WAE612 devices or is that 612 does the same factor of WAN optimization for various protocols with more connections