Subquery is not allowed within FILTER arguments
In a report I need to show two columns of same type but with values obtained with different criterias.
The criterias are difined in 2 different reports
Report
Month, ColumnA , ColumnB, Number_of_Nights
ColumnA refers to the actual column Member_id= criteria are defined with REPORT1 (where joined date between X and Y and market code=Z)
ColumnB refers to the actual column Member_id=criteria are defined with REPORT2 (where joined date between A and B and market code=C)
I can not use on ColumnA the normal filter and than filter based on results from another request, because it would apply to columnB as well.
I need therefore to use the filter from the "Edit Formula" screen and than filter on a column and select REPORT1 for ColumnA and REPORT2 for ColumnB.
This approach doesn't seem to work because I return :
[nQSError: 10058] A general error has occurred. [nQSError: 22033] Subquery is not allowed within FILTER arguments. (HY000)
How do you manage such reports?
Thanks!!
Edited by: user6185307 on 14.05.2012 06:00
Edited by: user6185307 on 14.05.2012 06:01
Edited by: user6185307 on 14.05.2012 06:02
Try creating the report in one go...
Instead of creating a subquery, and then a subquery using that subquery, and finally a "master" query, create the "master" query first, and within the conditions, create your subquery as you go along.
I'm not sure whether this would work, as I don't currently have access to Discoverer!
Alternatively, subqueries are rarely the most efficient way of processing information, so consider writing a PL/SQL function to do some of the work for you.
Similar Messages
-
Yielding is not allowed within a C or metamethod call
The way I'm developing my plug in is that I'm creating individual modules, testing those modules and then integrating the modules into my plugin. The individual modules work. However, I have a problem when I try to integrate.
I'm using an anonymous function to call a function when a user presses a button. That function calls another lua file (is that a module?) If I place the require statement at the top of the file I receive the Yielding is not allowed within a C or metamethod call error.
However, if I place the require statement within the function that specifically requires accessing the lua file then I don't receive the error. Clearly, I don't understand what's going on. Can anyone explain what is happening here?
Thanks!Hey Rob,
Thanks for helping me with this. Since this is so new to me, I'm all over the place and I'm having trouble even understanding what my problems are :-)
Anyway, here's where I'm at:
I have a button in sectionsForTopOfDialog. I have changed the action to be action = function() .... end
When I press the button the function is called. The problem is when I call the LrHttp.post function. That's when the yield error is being thrown. -
Help regarding Materialized view ( subquery expression not allowed here )
Hi all,
while creating materialized view i got following error
ORA- 22818
subquery expression not allowed here
following is my query
CREATE MATERIALIZED VIEW MV_NAV_REC
BUILD IMMEDIATE
REFRESH COMPLETE ON DEMAND
as
select folio_no FOLIONO,CHKDIGIT as Check_Digit,sch_code SCHEMECODE, sysdate as FOLIODATE ,
(select case when count(distinct SUBBROKERCODE) =1 then to_char(max(SUBBROKERCODE)) else 'Multiple Broker' end from transaction_st
where folio_no = tst.folio_no
group by folio_no) ARN_Number ,
(select sum(case when tran_type in ('PURCHASE','SWITCH IN') then UNITS else 0 - UNITS end ) from transaction_st
where folio_no = tst.folio_no AND SCH_CODE = tst.sch_code
group by folio_no,sch_code) NUM_UNITS_NEW ,
--SUM (case when tran_type NOT in ('REDEMPTION','SWITCH OUT') THEN UNITS ELSE 0 - UNITS END ) AS Num_Units,
(select sum(case when tran_type in ('PURCHASE','SWITCH IN') then AMOUNT else 0 - AMOUNT end ) from transaction_st
where folio_no = tst.folio_no AND SCH_CODE = tst.sch_code
group by folio_no,SCH_CODE) as NUM_AMOUNT_NEW ,
--SUM (case when tran_type NOT in ('REDEMPTION','SWITCH OUT') THEN AMOUNT ELSE 0 -AMOUNT END ) AS Scheme_Amount,
sum( CASE WHEN upper(tran_type) NOT in ('REDEMPTION','SWITCH OUT') THEN
units * (select nav_rs from nav_rec where nav_rec.sch_code = tst.sch_code and nav_rec."Date" = /*trunc(sysdate)*/to_date('23/03/2009','dd/mm/yyyy'))
ELSE (0 - units) * (select nav_rs from nav_rec where nav_rec.sch_code = tst.sch_code and nav_rec."Date" = /*trunc(sysdate)*/to_date('23/03/2009','dd/mm/yyyy')) END ) Scheme_Valuation ,
null as SCHEMEPHRASEID ,
null as "Prefered Mode of SOA",
( select sum( case when upper(tran_type) NOT in ('REDEMPTION','SWITCH OUT') THEN AMOUNT ELSE 0 - AMOUNT END ) from transaction_st t where t.folio_no = tst.folio_no group by folio_no ) as Folio_Amount,
select sum(CASE when upper(tran_type) NOT in ('REDEMPTION','SWITCH OUT') THEN
units * ( select nav_rs from nav_rec where nav_rec.sch_code = ts.sch_code and nav_rec."Date" = /*trunc(sysdate)*/to_date('23/03/2009','dd/mm/yyyy'))
ELSE
(0 - units) * ( select nav_rs from nav_rec where nav_rec.sch_code = ts.sch_code and nav_rec."Date" = /*trunc(sysdate)*/to_date('23/03/2009','dd/mm/yyyy')) END
) from transaction_st ts where ts.folio_no =tst.folio_no group by ts.folio_no
) as Folio_Valuation
from transaction_st tst
group by folio_no ,sch_code,CHKDIGIT
order by folio_no , SCH_CODE
please help meHi,
You cannot use scalar subqueries in a materialized view.
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:4110947624538#22981269011674
edit
From 10g doc:
ORA-22818: subquery expressions not allowed here
Cause: An attempt was made to use a subquery expression where these are not supported.
Action: Rewrite the statement without the subquery expression.
(http://download.oracle.com/docs/cd/B19306_01/server.102/b14219/e19400.htm#sthref6020)
Edited by: hoek on Jun 10, 2009 7:56 AM -
SET CHAINED command not allowed within multi-statement transaction
Hi,
i need to do one transaction and i am setting autocommit(false) and
once i am don ewith my 2 inserts i am settins it to true.
i have like 20 thousand rows and when it is working fine for some inserts but after that it is throwing
"SET CHAINED command not allowed within multi-statement transaction".
can anyone please help me.You can find some information here:
http://publib.boulder.ibm.com/infocenter/wsphelp/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/rtrb_dsaccess.html
it's first problem for sybase DB -
Materialized view ....subquery expression not allowed
Hi,
I have been assigned to create a materialized view using the following subquery.
When I executed it is giving error ora-22818:subquery expressions not allowed here. The same query is good for view but not MV.
Can anybody help me in writing MV for my query.
select rownum as ROWNUMBER,f.id Folder_ID, concatyear(f.id) year_name,
(select nvl(fr.requestor,fr.requested_by) from fts_folder_request fr where
fr.folder_id=f.id and fr.status=0 ) Pending_Requestor,
(select nvl(fr.requestor,fr.requested_by)
from fts_folder_request fr,fts_folder_checkout_history fch where
fr.folder_id=f.id and fch.folder_requested=fr.id and fch.return_date is null) CheckOut_To from fts_folder f;
Thanks in advance.Any help in creating MV for my query.It contains subquery expressions that have to be avoided in MV.
select rownum as ROWNUMBER,f.id Folder_ID, concatyear(f.id) year_name,
(select nvl(fr.requestor,fr.requested_by) from fts_folder_request fr where
fr.folder_id=f.id and fr.status=0 ) Pending_Requestor,
(select nvl(fr.requestor,fr.requested_by)
from fts_folder_request fr,fts_folder_checkout_history fch where
fr.folder_id=f.id and fch.folder_requested=fr.id and fch.return_date is null) CheckOut_To from fts_folder f;
Thanks.
Message was edited by:
user617694 -
Received ORA-22818 subquery expressions not allowed here when creating mate
Hello,
I was trying to create a materialized view to describe the referential integrity between the tables in my schema:
create materialized view user_references
tablespace tbspc
build immediate
using index
refresh complete on demand next sysdate + 1
as
select uic.table_name to_table, uic.column_name to_column,
ucc.table_name from_table, ucc.column_name from_column
from user_ind_columns uic, user_constraints uc, user_cons_columns ucc
where uic.index_name = uc.r_constraint_name
and uc.constraint_name = ucc.constraint_name
and uc.owner=upper('my_schema');
I was able to create this MV in Oracle 9.2. It failed with the following error when I ran it against Oracle 10.1:
from user_ind_columns uic, user_constraints uc, user_cons_columns ucc
ERROR at line 9:
ORA-22818: subquery expressions not allowed here
Is not allowing subqueries in MV a new restriction in Oracle 10? Is there a workaround?
ThanksHello
This may be a bug in your version as I can do it successfully on 10.2
tylerd@DEV2> create materialized view user_references
2 build immediate
3 using index
4 refresh complete on demand next sysdate + 1
5 as
6 select uic.table_name to_table, uic.column_name to_column,
7 ucc.table_name from_table, ucc.column_name from_column
8 from user_ind_columns uic, user_constraints uc, user_cons_columns ucc
9 where uic.index_name = uc.r_constraint_name
10 and uc.constraint_name = ucc.constraint_name
11 and uc.owner=upper('my_schema');
Materialized view created.
tylerd@DEV2> select * from v$version
2 /
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Prod
PL/SQL Release 10.2.0.2.0 - Production
CORE 10.2.0.2.0 Production
TNS for 32-bit Windows: Version 10.2.0.2.0 - Production
NLSRTL Version 10.2.0.2.0 - Production
5 rows selected.HTH
David -
Sybase: SET CHAINED command not allowed within multi-statement transaction
Hello,
I'm getting the error message "SET CHAINED command not allowed within
multi-statement transaction" for CMP Entity beans against Sybase.
The errors appear in my jdbc.log in this order:
010SM: This database does not support the initial proposed set of
capabilities, retrying.) SQLState(010SM)
JZ0EM: End of data.
JZ0SJ: Metadata accessor information was not found on this database.
Please install the required tables
as mentioned in the jConnect documentation.
010SL: Out-of-date metadata accessor information was found on this
database. Ask your database administrat
or to load the latest scripts.) SQLState(010SL)
SQLState(ZZZZZ) vendor code(226)
com.sybase.jdbc2.jdbc.SybSQLException: SET CHAINED command not allowed
within multi-statement transaction.
I'm using JConnect 5.5, WebLogic 6.1 sp3, Solaris 8, and Sybase 11.
The weird thing is, the app works on a box running 6.1 sp2 and Win2k
Prof.
Any ideas?
Thanks!
DanHi Dan,
There is a patch for this sybase problem, please contact [email protected] to
get a temp patch.
sree
"Dan Blaner" <[email protected]> wrote in message
news:[email protected]..
Hello,
I'm getting the error message "SET CHAINED command not allowed within
multi-statement transaction" for CMP Entity beans against Sybase.
The errors appear in my jdbc.log in this order:
010SM: This database does not support the initial proposed set of
capabilities, retrying.) SQLState(010SM)
JZ0EM: End of data.
JZ0SJ: Metadata accessor information was not found on this database.
Please install the required tables
as mentioned in the jConnect documentation.
010SL: Out-of-date metadata accessor information was found on this
database. Ask your database administrat
or to load the latest scripts.) SQLState(010SL)
SQLState(ZZZZZ) vendor code(226)
com.sybase.jdbc2.jdbc.SybSQLException: SET CHAINED command not allowed
within multi-statement transaction.
I'm using JConnect 5.5, WebLogic 6.1 sp3, Solaris 8, and Sybase 11.
The weird thing is, the app works on a box running 6.1 sp2 and Win2k
Prof.
Any ideas?
Thanks!
Dan -
Subquery over a subquery is not allowed?
I am trying to create subquery over another sheet which is a subquery itself, but it seems it is not allowed.
I have the original sheet S1(A,B,C) with the items A,B,C. I create a new sheet S2(A,B,C,D) and I add an item D with the condition that the value of D is equal to the value of the item B of the original, so I create the following condition with a subquery, S2.D=S1.B. Until here everything goes fine.
Then I want to create a new sheet S3(A,B,C,D) with the condition S3.D=S2.D. The problem is that the sheet S2 does not appear in the dialog where I should select the subquery sheet. Only the S1 appears.
Is there anything I can do about it?
Thank you in advance for any help.
Th.D.Try creating the report in one go...
Instead of creating a subquery, and then a subquery using that subquery, and finally a "master" query, create the "master" query first, and within the conditions, create your subquery as you go along.
I'm not sure whether this would work, as I don't currently have access to Discoverer!
Alternatively, subqueries are rarely the most efficient way of processing information, so consider writing a PL/SQL function to do some of the work for you. -
ORA-22818: subquery expressions not allowed here
I am currently optimizing my report. Before, this report has only a single query for all. But when I have revised it having subquery it is performing much more faster. The problem is, I cannot perform a calculation on my query since subquery expressions are not allowed in 'group by'. Heres my sample report:
SELECT ab.batch_name,
ai.invoice_amount,
ai.invoice_date,
ai.invoice_num,
ai.invoice_id,
(SELECT pv.vendor_name
FROM apps.po_vendors pv
WHERE pv.vendor_id = ai.vendor_id)vendor_name,
aid.distribution_line_number,
SUM(aid.amount * (atc.tax_rate/100))amount,
(SELECT gcc.segment2
FROM apps.gl_code_combinations gcc
WHERE gcc.code_combination_id = aid.dist_code_combination_id)segment2,
(SELECT gcc.segment5
FROM apps.gl_code_combinations gcc
WHERE gcc.code_combination_id = aid.dist_code_combination_id)segment5
FROM apps.ap_batches_all ab,
apps.ap_invoices_all ai,
apps.ap_invoice_distributions_all aid,
apps.ap_awt_groups aag,
apps.ap_tax_codes_all atc
WHERE ab.batch_id = ai.batch_id
AND ai.invoice_id = aid.invoice_id
AND aag.group_id = aid.awt_group_id
GROUP BY ab.batch_name,
ai.invoice_amount,
ai.invoice_date,
ai.invoice_num,
ai.invoice_id,
(SELECT pv.vendor_name
FROM apps.po_vendors pv
WHERE pv.vendor_id = ai.vendor_id),
aid.distribution_line_number,
(SELECT gcc.segment2
FROM apps.gl_code_combinations gcc
WHERE gcc.code_combination_id = aid.dist_code_combination_id),
(SELECT gcc.segment5
FROM apps.gl_code_combinations gcc
WHERE gcc.code_combination_id = aid.dist_code_combination_id)
Can anyone advise on what to do? I really need the computation part but at the same time I would like to optimize my report using subqueries.You dont need to group by the actual inline SQL/sub-query but only the columns you used from the main query ( ie, aid.dist_code_combination_id, ai.vendor_id )
You also have to make sure that the in-line SQL you are using will return not more than 1 row.
Also, why not just use a normal join (or outer join if necessary)? -
Private modifier not allowed within Interface
hello,
Can someone explain to me the logic behind not being able to declare a method's modifier as "private" when defining my Interface? When I do so the compiler generates the following error:
"modifer private not allowed here at line 23, column 16"
I change it back to public and its fine. One would think that the compiler would allow one to declare a method private within an Interface so long as the Implementation matches? Thanks in advanced.The idea behind interfaces is to provide information to the outside world about a class that implements the interface. Specifically, it lets the outside world know about certain methods that can be called on instances of that class. That way, a class can use instances of any class that implements a given interface rather than commiting itself to one specific implementation only.
Since the outside world cannot see private methods, it doesn't make sense for interfaces to prescribe private methods in the first place. In fact, how a class deals with implementing a method is none of the interface's business... -
Subquery not allowed - PL/SQL Function Body returning bolean
Is subquery is not allowed in PL/SQL Expresion.????
I am using the following query in one of my derived report column but I am getting the error.
BEGIN
if :COL1<>'abc' and :COL2 in (select deptno from dept1) then
return 1;
elsif :COL1<>'abc' and :COL2 in (select deptno from dept2) then
return 0;
elsif :COL1<>'abc' and :COL2 in (select deptno from dept3) then
return 1;
else
return 0;
end if;
END;
secondly CAN I use return value such as 'ABC' or 'XYZ' other than 0,1.
Error-
Invalid function body condition: ORA-06550: line 4, column 8: PLS-00405: subquery not allowed in this context ORA-06550: line 2, column 3: PL/SQL: Statement ignored
-----------------Hi Deepak,
There are at least methods.
1 - You could create a SQL function that returned 0 or 1 and use that in your statement
2 - You could use a CASE clause in the SQL statement
As I don't have your dept1/2/3 tables, I've tried the following on the sample EMP/DEPT tables:
SELECT EMPNO,
ENAME,
SAL,
COMM,
DEPTNO,
CASE WHEN DEPTNO IN (SELECT DEPTNO FROM DEPT) THEN
CASE WHEN ENAME LIKE '%A%' THEN NVL(SAL,0) + NVL(COMM,0) ELSE 456 END
ELSE
CASE WHEN DEPTNO NOT IN (SELECT DEPTNO FROM DEPT) THEN
CASE WHEN ENAME LIKE '%A%' THEN NVL(SAL,0) + NVL(COMM,0) ELSE 123 END
ELSE
789
END
END "TOTAL"
FROM EMPThis returns the values I expect:
EMPNO ENAME SAL COMM DEPTNO TOTAL
7936 ATD 3000 - 40 3000
7958 dino4 - - - 789
7839 KINGS 5000 - 40 456
7698 BLAKES 2850 - 30 2850
7782 CLARK 2450 - 10 2450
7566 JONES 2975 - 30 456
7788 SCOTT 3000 - 20 456
7902 FORD 3000 - 40 456
7369 SMITH 800 - 20 456
7499 ALLEN 1600 300 30 1900Obviously, you may have to experiment with the various CASE statements, but it will work using just a sql select statement.
Andy -
ORA-22902 CURSOR expression not allowed Error Cause: CURSOR on a subquery..
Hi,
I found same issue in a metalink thread which is addressed in Oracle 12.1 which doesn't help me now. I need to rewrite the below query. Does anyone have any suggestions how to go about it?
thanks,
April
working in Oracle 11.2.0.3.1, windows server, doing an upgrade from 10g to 11g. Piece of code is failing with following error via TOAD
Oracle Database Error Code ORA-22902 Description :
CURSOR expression not allowed
Error Cause:
CURSOR on a subquery is allowed only in the top-level SELECT list of a query.
The below code is returning a tree of data for projects, units within the buildings.
Code as follows:
SELECT LEVEL
, p.project_id
|| NVL (p.file_ref, ' ')
|| '] ['
|| NVL (p.project_ref, ' ')
|| '] '
|| p.project_name
|| ' ( '
|| (SELECT COUNT (*)
FROM PROJECT p1
WHERE p1.parent_project_id = p.project_id)
|| ' sub-projects, '
|| (SELECT COUNT (*)
FROM PROJECT_ELEMENT pe2
WHERE pe2.project_id = p.project_id)
|| ' elements)' AS project_description
CURSOR
(SELECT pe.element_id
|| pe.element_ref
|| '] '
|| pe.element_name
|| ' ('
|| pe.unit_count
|| ')' AS element_description
CURSOR
(SELECT hu.hu_id
|| hu.hu_ref
|| '] '
|| CASE
WHEN hu.bedroom_count IS NOT NULL
THEN ', Bedrooms: ' || hu.bedroom_count
ELSE NULL
END
|| CASE
WHEN hu.bedspace_count IS NOT NULL
THEN ', Bedspaces: ' || hu.bedspace_count
ELSE NULL
END AS hu_descripton
FROM HOUSING_UNIT hu
WHERE hu.element_id = pe.element_id
ORDER BY hu.hu_ref
) AS housing_units
FROM PROJECT_ELEMENT pe
WHERE pe.project_id = p.project_id
ORDER BY pe.element_ref, pe.element_name
) elements
FROM PROJECT p
START WITH p.project_id = l_root_project_id
CONNECT BY PRIOR p.project_id = p.parent_project_id -- connect by used with LEVEL keyword
ORDER SIBLINGS BY p.file_ref DESC
, p.project_ref DESC
, p.project_name DESC;
Edited by: AprilM on Jul 17, 2012 10:28 AMInteresting. I am getting even worse results on 11.2.0.1.0:
SQL> select * from v$version
2 /
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
SQL> select dname,cursor(select ename from emp e where e.deptno = d.deptno) from dept d
2 /
select dname,cursor(select ename from emp e where e.deptno = d.deptno) from dept d
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-00905: missing keyword
SQL> connect scott
Enter password: *****
Connected.
SQL> select * from v$version
2 /
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
TNS for 32-bit Windows: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
SQL> select dname,cursor(select ename from emp e where e.deptno = d.deptno) from dept d
2 /
DNAME CURSOR(SELECTENAMEFR
ACCOUNTING CURSOR STATEMENT : 2
CURSOR STATEMENT : 2
ENAME
CLARK
KING
MILLER
RESEARCH CURSOR STATEMENT : 2
CURSOR STATEMENT : 2
ENAME
SMITH
JONES
SCOTT
ADAMS
FORD
SALES CURSOR STATEMENT : 2
CURSOR STATEMENT : 2
ENAME
ALLEN
WARD
MARTIN
BLAKE
TURNER
JAMES
6 rows selected.
OPERATIONS CURSOR STATEMENT : 2
CURSOR STATEMENT : 2
no rows selected
SQL> And double CURSOR also works fine in 10g:
SQL> select cursor(select dname,cursor(select ename from emp e where e.deptno = d.deptno) from dept d) from dual
2 /
CURSOR(SELECTDNAME,C
CURSOR STATEMENT : 1
CURSOR STATEMENT : 1
DNAME CURSOR(SELECTENAMEFR
ACCOUNTING CURSOR STATEMENT : 2
CURSOR STATEMENT : 2
ENAME
CLARK
KING
MILLER
RESEARCH CURSOR STATEMENT : 2
CURSOR STATEMENT : 2
ENAME
SMITH
JONES
SCOTT
ADAMS
FORD
SALES CURSOR STATEMENT : 2
CURSOR STATEMENT : 2
ENAME
ALLEN
WARD
MARTIN
BLAKE
TURNER
JAMES
6 rows selected.
OPERATIONS CURSOR STATEMENT : 2
CURSOR STATEMENT : 2
no rows selectedSY.
Edited by: Solomon Yakobson on Jul 17, 2012 1:27 PM -
I just statred Flash CC for the first time and it seems that the text within the pop-up window (dialog box) is mis-aligned and not allowing me access to the command buttons, nor all the text. (ie: the NEW Template Box, can't see but 2/3 of the content) is there a fix to this problem? using 8.1, Monitor is a high res.2560x1440.
Another View.
the GUI is so hard to read (so small) I enlarge my Ps UI by the instructions below...which helped a lot. -
Hi there,
Does someone know in SharePoint 2010 list view - How to filter on a multiline text box field - the view filter does not allow me to select it.
Thanks,Hi,
Per my knowledge,
it is by design that the data type multiple lines of text can only use “contains” and “begins with” operators.
You can also filter the list view using SharePoint Designer,
Open your list AllItem.aspx page in SPD ->click “Filter” > in “Field Name” select your multipe line of text field, in “Comparison” will displayed four choices.
Best Regards,
Lisa Chen
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
HELP: "web-app" does not allow "filter"
Here is my web.xml, but everytime I tried to start the web server 6.1, it complains:
info: CORE3282: stdout: PARSE error at line 108 column -1
info: CORE3282: stdout: org.xml.sax.SAXParseException: Element "web-app" does not allow "filter" here.
failure: ContextConfig[simple] WEB3524: Parse error in application web.xml
org.xml.sax.SAXParseException: Element "web-app" does not allow "filter" here.
at org.apache.crimson.parser.Parser2.error(Parser2.java:3160)
The following is my web.xml file, thank you let me know what make it!
<?xml version="1.0" encoding="ISO-8859-1"?>
<!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>
<display-name>webapps-simple</display-name>
<description>
The jakarta-tomcat-4.0.3 sample apps ports over to Sun One Web Server.
</description>
<distributable></distributable>
<servlet>
<servlet-name>HelloWorldExample</servlet-name> <servlet-class>samples.webapps.simple.servlet.HelloWorldExample</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HelloWorldExample</servlet-name>
<url-pattern>/helloworld</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
<taglib> <taglib-uri>http://java.apache.org/tomcat/examples-taglib</taglib-uri> <taglib-location>/WEB-INF/tlds/example-taglib.tld</taglib-location>
</taglib>
<security-constraint>
<web-resource-collection>
<web-resource-name>Protected Area</web-resource-name>
<url-pattern>/jsp/security/protected/*</url-pattern>
<http-method>DELETE</http-method>
<http-method>GET</http-method>
<http-method>POST</http-method>
<http-method>PUT</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>tomcat</role-name>
<role-name>role1</role-name>
</auth-constraint>
</security-constraint>
<filter>
<filter-name>Validation Filter</filter-name> <filter-class>filter.ISValidationFilter</filter-class>
<init-param> <param-name>onlyAllowRequestWithToken</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>Validation Filter</filter-name>
<url-pattern>/filtered/*</url-pattern>
</filter-mapping>
</web-app>I also getting the same error
my web.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<filter>
<filter-name>Security Filter</filter-name>
<filter-class>org.securityfilter.filter.SecurityFilter</filter-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/securityfilter-config.xml</param-value>
<description>Configuration file location (this is the default value)</description>
</init-param>
<init-param>
<param-name>validate</param-name>
<param-value>true</param-value>
<description>Validate config file if set to true</description>
</init-param>
</filter>
<filter-mapping>
<filter-name>Security Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- Action Servlet Configuration -->
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>3</param-value>
</init-param>
<init-param>
<param-name>application</param-name>
<param-value>ApplicationResources</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>3</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<!-- Action Servlet Mapping -->
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<!-- The Welcome File List -->
<welcome-file-list>
<welcome-file>abc.jsp</welcome-file>
</welcome-file-list>
<taglib>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
</web-app>
if I change as you said
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
line with
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
then it's not loading the application
pls suggest me
my mail id is [email protected]
Maybe you are looking for
-
My ipod nano is no longer recognized by itunes after I installed windows 8.1. The ipod nano still is recognized and works with a Windows 7 computer
-
E72 : Unable to configure email post 071.004 firmw...
My emails on e72 were working perfectly fine before this upgrade. but post upgrade, I was unable to recieve my emails. So I removed the accounts and tried to reconfigure them. But the configuration wizard doesn't get past the 'Detecting Email Setting
-
Goods Issue from Production Order in SAP
Dear experts, I faced one issue not yet solve is that my customer created the production order then already issue for production for all quantities of child item . Example: Production OrderItem A Item A1 = 2 Qty Item A2 = 2 Qty Item A3 = 2 Qty Issue
-
Holiday rule in time card approval and workflow
HRMS application windows 2003 EBS 11.5.10.2 db 10.2.0.4 We have customized our workflow for time card approval. If time card is not approved by monday 10 AM by my supervisor and time card is pushed to my supervisors boss. If monday is holiday and and
-
Garageband software instruments not in Logic Express
Hey When I go into the Input popup menu of a tracks channel strip, none of the garageband software instruments are listed. It only shows the logic ones. Why is this? Can you import them somehow? Thanks