Error using Data Tags
I am working with the example explained in http://technet.oracle.com:89/ubb/Forum2/HTML/006025.html using the Row Data Tag to make a search, but I found an error message: 0. Why?
The source code for search.jsp is:
<%@ page language = "java" errorPage="errorpage.jsp" import = "java.util.*, oracle.jbo.*, javax.naming.*, oracle.jdeveloper.html.*, oracle.jbo.html.databeans.*" contentType="text/html;charset=ISO-8859-1" %>
<%
// make sure the application is registered
oracle.jbo.html.jsp.JSPApplicationRegistry.registerApplicationFromPropertyFile(session , "JSP_bc4j_Bc4jModule");
%>
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
<TITLE>Search </TITLE>
</HEAD>
<BODY>
<%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
<jbo:ApplicationModule configname="bc4j.Bc4jModule.Bc4jModuleLocal" id="Bc4jModule" username="iessuser" password="iess" />
<jbo:DataSource id="dtsmaster" appid="Bc4jModule" viewobject="KspcotempleadorView" ></jbo:DataSource>
<table border="1">
<jbo:RowsetIterate datasource="dtsmaster" >
<TR>
<TD>">See this record</a></TD>
<TD>Nombre del Empleador:</TD><TD><jbo:ShowValue datasource="dtsmaster" dataitem="Nomemp" ></jbo:ShowValue></TD>
</TR>
</jbo:RowsetIterate>
</table>
</BODY>
</HTML>
<jbo:ReleasePageResources releasemode="Stateless" />
And the source code for search2.jsp is:
<%@ page language = "java" errorPage="errorpage.jsp" import = "java.util.*, oracle.jbo.*, javax.naming.*, oracle.jdeveloper.html.*, oracle.jbo.html.databeans.*" contentType="text/html;charset=ISO-8859-1" %>
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
<TITLE>
Busqueda finalizada
</TITLE>
</HEAD>
<BODY>
<%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
<jbo:ApplicationModule configname="bc4j.Bc4jModule.Bc4jModuleLocal" id="Bc4jModule" username="iessuser" password="iess" />
<jbo:DataSource id="dtsmaster" appid="Bc4jModule" viewobject="KspcotempleadorView" ></jbo:DataSource>
<jbo:Row id="masterRow" datasource="dtsmaster" rowkeyparam="RowKeyValue" action="Find" ></jbo:Row>
<jbo:RefreshDataSource datasource="dtsmaster" />
<jbo:DataSource id="dtsDetail" appid="Bc4jModule" viewobject="KspcotemplocView" ></jbo:DataSource>
<h2> Nombre del Empleador: <jbo:ShowValue datasource="dtsmaster" dataitem="Nomemp" ></jbo:ShowValue></h2>
<table border="1">
<jbo:RowsetIterate datasource="dtsdetail" >
<TR><TD>Employee Name</TD><TD><jbo:ShowValue datasource="dtsdetail" dataitem="Empdir" ></jbo:ShowValue></TD></TR>
</jbo:RowsetIterate>
</HTML>
Please could anybody help me with this??
I looked at this thread
Update XML doc
But this thread is more to do with the problem associated with setting the current row.
My problem is in the first step i.e retreiving the RowKey value.
ODRApplications ->Master View created by query on one table
ODRUserReportList -> Detail View created by query joining various tables
Here is my Jsp Code
<%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
<%
oracle.jbo.html.jsp.JSPApplicationRegistry.registerApplicationFromPropertyFile(session , "odr_fe_real_odrn_ODRMenuModule");
%>
<jbo:ApplicationModule configname="odrn.ODRMenuModule.ODRMenuModuleLocal" id="ODRMenuModule" username="portal_apps" password="portal_apps" />
<jbo:DataSource id="ODRApplications" appid="ODRMenuModule" viewobject="ODRApplications" rangesize="1" ></jbo:DataSource>
<jbo:DataSource id="ODRUserReportList" appid="ODRMenuModule" viewobject="ODRUserReportList" rangesize="10" ></jbo:DataSource>
<script>
function execq(RV){
alert(RV);
window.location="menu1.jsp?RowKeyValue="+RV;
</script>
<BODY>
<% if (request.getParameter("RowKeyValue") !=null) { %>
<jbo:Row id="masterRow" datasource="ODRApplications" action="Find" rowkeyparam="RowKeyValue" >
</jbo:Row>
<% } %>
<select onchange="execq(this.value)">
<jbo:RowsetIterate datasource="ODRApplications" >
<option VALUE="<jbo:ShowValue datasource="ODRApplications" dataitem="RowKey" ></jbo:ShowValue>">
<jbo:ShowValue datasource="ODRApplications" dataitem="ApplicationName" ></jbo:ShowValue>
<jbo:ShowValue datasource="ODRApplications" dataitem="RowKey" > </jbo:ShowValue>
<!--the above line displays 0000 for RowKey -->
</OPTION>
</jbo:RowsetIterate>
</select>
</jsp:useBean>
<jbo:RowsetIterate datasource="ODRUserReportList" >
<br>
<jbo:ShowValue datasource="ODRUserReportList" dataitem="DisplayName" ></jbo:ShowValue>
<jbo:ShowValue datasource="ODRUserReportList" dataitem="RowKey" ></jbo:ShowValue>
<!--the above line displays 0000 for RowKey -->
<br>
</jbo:RowsetIterate>
</jsp:useBean>
<BODY>
</HTML>
Thanks in advance
Similar Messages
-
JDeveloper Team: How Do I minimize the number of Oracle Sessions using Data Tags?
I am trying to create a stateful application thru my JSP pages. Everytime there is a reference to the application module using the data tag, it looks like it creates a new Oracle Session. But thats not what I want to do.
I have a module in which my first JSP page allows viewing of the data and in subsequent pages I allow insert, update, delete, commit etc.
My Questions:
1) The problem that I am encountering is that every new page that I go to creates a new Oracle session even though I specify the "Stateful" release mode.
How do I avoid this?
It looks like , if one browser user can potentially create 10-20 oracle sessions thru one module, imagine what the impact will be when we have hundreds of users.
2) The sample JSP pages I saw has the username and password hard coded in it every time. Why? For a stateful application can I not specify the username and password just once and have the other JSP pages use the same userid and password.
What are the pros and cons? I thought if I don't use the username and password in all the JSP pages then it probably will not create additional Oracle sessions but that is not true!!
3) If it creates several Oracle sessions , will it not cause locking problems? If so, How do I minimize locking problems in a stateful application.
JDeveloper Team Please advise!!
AM I missing something? I would appreciate if someone can help me out!
nullThanks a lot for the information. That thread was indeed very helpful. But it still didn't answer all my questions:
1) In the thread you mentioned, it mostly talks about Web beans. In a jsp page (using Web bean) we need to first invoke setReleaseApplicationResources(true) and then invoke releaseApplicationResources().
Does this apply to data tags? I mean I have a tag <jbo:ReleasePageResources releasemode="Stateful" />. Is this enough to release the application module back to the pool or do I have to have something equivalent of setReleaseApplicationResources(true)?
2. In a stateful application, the state of an application is maintained between requests via a browser cookie. For each browser, you can have one state per application module class. I was attempting to run "several browser sessions from the same machine" and the end result was that I got errors and unpredictable results ie it returned me far fewer rows then I saw originally. Should I be actually be running the browser session from different machines?
3. In JDeveloper Documentation (section About Application Module pooling) there is a note section : "If the application module is not recycled the data stays the same. However if the application module was recycled and then activated through a failover, the activation logic re-executes the view objects, so it may bring in more or less rows then originally seen by the clients due to any database updates that have occured."
This is exactly what is happening to me? How do I get rid of this problem? I want to be able to see all the original rows + any new rows That have been committed. Please advise!
4. Are the JDBC connections tied to application module instances? Is it one JDBC connection per application module instance? So, in a stateful JSP, if I end up using a different application I also get a different JDBC connection. IS this true?
5. Does the no of application module instances depend on the no of available JDBC connections? Because it looks like if you set the max no of connections to "5" and set the max no of application module instances to "10", It will be able to instantiate only "5" application module instances due to the limitation set by connection pool.
6. At times I get errors which indicates that the row in view object does not exist. Is this something familiar? Or is it the same problem that John discussed in his thread.
Thanks in advance! -
Error using Data Miner on SQL Developer
Dear all.
I'm trying to use Data Miner on SQL Developer (3.1.06) with Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 -
64bit Production, with the Partitioning, OLAP, Data Mining and Real Application Testing options.
I created a project, a workflow, a data source, a classification model and connected them.
I tried to show the Decision Tree generated as described in the tutorial "Using Oracle Data Miner 11g Release 2".
But, I receive the message "It's not possible to load the data mining model because it does not exist" in a dialog box entitled "Model not found".
It seems that something was missing either during installation or granting my user.
Does anybody have seen this message and know what causes it?
Any other suggestion is welcome.
Regards,
Duncan
PUCRS-BrazilHi Mark.
Thank you on replying my post.
I'm not the DBA of Oracle repository here. So, if possible, I'd like to address my issue without having to do anything in it.
I'll try to state better what we have here.
When I try to use latest SQL Developer version, 11.2.1.1.7.42, it got me a message stating current repository isn't compatible with this SQLDev version
Repository version is: 11.2.1.1.3
I don't know what type of upgrade SQL Developer wants to do...
About your other questions.
"Is the model not found error occurring for all models or just the DT model?" -- The error occurs for all 4 standard models: SVM, GLM, NB and DT. But, I'm able to see all other options: "show tests results", "Compare tests results".
You did not report that the workflow failed, so you must be seeing a successful completion status for each of the nodes. -- Yes, all steps are executed and finished OK.
Are you using a proxy user or some other connection definition other than a standard connection. -- No.
There is currently some problems supporting proxy based connections that will be fixed in a upcoming SQL Developer release.
So, if you can provide me some details on how your connection is defined, that will be helpful.
How was the product installed and the user granted rights? -- I need to ask PUCRS DBA team to answer these questions.
Was it done through the UI or by running the scripts in the dataminer/scripts directory?
Lastly, what is your client operating system and are you using the SQL Dev 64 bit or 32 bit release? -- I tested in 2 different computers, both with Windows 7 Professional. In my notebook, it's 64 bits OS version.
Thank you for your attention and kind reply.
Regards,
Duncan -
We have a tag query that works in our sandbox environment, but not in dev. I loaded the same JDBC drivers on both systems.
The project was exported from the sandbox, and imported into dev.
I have verified the Data Server set up is identical in both environments. Connection status in both environments is identical - running, same number of connections, etc.
When I try to run the query on sandbox in workbench, the query returns data. I get this error on the dev system -
SQL error has occurred on query java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name 'tag'.
Detailed error -
java.lang.Exception: SQL error has occurred on query [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name 'publicgrouptag'.
at com.sap.xmii.Illuminator.gui.workbench.populators.IlluminatorPopulator.get(IlluminatorPopulator.java:114)
at com.sap.xmii.Illuminator.gui.workbench.populators.TagListPopulator.get(TagListPopulator.java:47)
at com.sap.xmii.Illuminator.gui.workbench.components.desktop.custom.TagQueryBuilderPanel$6.construct(TagQueryBuilderPanel.java:723)
at com.sap.lhcommon.gui.ThreadCreator$2.run(ThreadCreator.java:94)
at java.lang.Thread.run(Unknown Source)
Any suggestions??One of your included JDBC driver archives has a class that matches the path provided by the JDBCDriver setting for the data server (likely the sqljdbc.jar file).
If you take the JDBCDriver setting:
com.microsoft.sqlserver.jdbc.SQLServerDriver
and replace the periods for sub directories and add a .class on the end you'll have:
com\microsoft\sqlserver\jdbc\SQLServerDriver.class
So if you unpacked the jar file you'd find this java class (and the other ones included with the driver).
Do you get the same error about 'publicgrouptag' and 'tag' objects when you test a tag query request for GroupList mode? These tables/views would be used by the underlying queries used to populate the tag details tab in the WB. Do you see these tables or view within the SQL Server? Does the sa user have appropriate permissions? -
JDBC runtime error using data source (Oracle 9i server & Oracle 8i client)
Hi,
Wud someone help me with this? Why am I getting this run-time error?
D:\shilpa\javaprogs>java -classpath %classpath%;.; CreateMovieTables
javax.naming.NoInitialContextException: Need to specify class name in environmen
t or system property, or as an applet parameter, or in an application resource f
ile: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
40)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243
at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.jav
a:280)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at CreateMovieTables.initialize(CreateMovieTables.java:18)
at CreateMovieTables.main(CreateMovieTables.java:101)
This is how I have created the data source:
public void initialize() throws SQLException, NamingException
Context initialContext = new InitialContext();
DataSource dataSource = null;
dataSource = (DataSource) initialContext.lookup("jdbc/Oracle");
connection = dataSource.getConnection();
I have set the classpath to: C:\j2sdk1.4.2_08\jre\lib where the jndi.properties file exists.
Here's the jndi file:
datasource.name=jdbc_1
datasource.url=jdbc:oracle:thin:@10.119.5.98:1521:sea77db0
datasource.classname=oracle.jdbc.driver.OracleDriver
datasource.username=tr1
datasource.password=tr1
What am I doing wrong? Cud someone help me with this? It's working fine when I don't use the data source. Maybe I am doing something wrong.
Regards,
Shipf1After reading your posts, I noticed that my eyes were bleeding...
Wud someone help me with this?
Cud someone help me with this?
Thanks. It worked. BUt, IF i wanna ...
I don't[b] wanna...
what shud i do then?
Thought I should return the favor encapsulating the essence of this writing style:
So, IF i cud, I wud, but If i don't wanna shud i anyway?
Just funnin around... Good luck on your problem though.
Darn it, my eyes are bleeding again! -
Query Builder - Where Clause - Could not format error using date comparison
We've come across a bug in the Query Builder, under the Create Where Clause tab, if you select a column of Date type plus one of the comparison operators =, !=, <, >, <=, >=, BETWEEN or NOT BETWEEN it displays an error in the Logging Page:
Level: Severe
Source: o.d.r.queryBuilder.SQLGenerator
Message: Could not format :2010-09-02 16:20:31.0
Then under the Show SQL tab it doesn't display the date(s) you selected, e.g.
WHERE LAST_UPDATE BETWEEN AND
Also the View Results tab does not display any results.
You can still press Apply to add the SQL as is to the editor window and from there you have to manually code in the date parameters.
We're using the latest version of SQL Developer 2.1.1.64.45 Windows 32bit version with JDKHi Gordon,
When I add the following lines:
declare @refdt1 date
set @refdt =
/*select 1 from jdt1 t0 where t0.RefDate*/ '[%1]'
declare @refdt2 date
set @refdt =
/*select 1 from jdt2 t0 where t0.RefDate*/ '[%2]'
WHERE T0.RefDate >= @refdt1 and T0.RefDate <= @refdt2
... the error message is now:
Must declare the scalar variable @refdt1
Note: Before adding these lines, the query works perfectly, and returns totals from the whole database (with dynamically generated column headings!)
Thanks
Leon Lai
AMENDED QUERY:
declare @refdt1 date
set @refdt1 =
/*select 1 from jdt1 t0 where t0.RefDate*/ '[%1]'
declare @refdt2 date
set @refdt2 =
/*select 1 from jdt1 t0 where t0.RefDate*/ '[%2]'
--------- I inserted the 6 lines above ---------------------
DECLARE @listCol VARCHAR(2000)
DECLARE @query VARCHAR(4000)
SELECT @listCol =
STUFF
( SELECT DISTINCT '],[' + CAST(month(T0.RefDate) AS varchar)
FROM JDT1 T0
FOR XML PATH('')
), 1, 2, ' ') + ']'
SET @query =
'SELECT * FROM
(SELECT Account, month (T0.RefDate) Month , Debit
FROM JDT1 T0
------------------- I add the WHERE clause below --------------------
WHERE T0.RefDate >= @refdt1 and T0.RefDate <= @refdt2
GROUP BY Account, RefDate, Debit
) S
PIVOT
Sum(Debit)
FOR Month IN ('+@listCol+')
) AS pvt'
EXECUTE (@query)
Edited by: LEONLAI on Oct 21, 2011 2:36 PM -
Error using selectmany tags with backing beans - Beta 1
Hi All,
I'm not having any luck getting any of the selectmany tags working with back-end beans. I've concluded it just doesn't work. My example is derived from the selectmany sample in the tutorial, which also just doesn't work (there are 4 or 5 problems with the sample in the tutorial, including the fact that there's no tag called 'selectmany_checkbox' in Beta 1, it's renames to selectmany_checkboxlist. But I digress).
Anyway, the following is the relevant JSP snippet:
<html:selectmany_menu value="#{facesTest.items}">
<faces:selectitem itemValue="foo" itemLabel="foo" />
<faces:selectitem itemValue="bar" itemLabel="bar" />
</html:selectmany_menu>
Here's the relevant backing bean snippet:
protected ArrayList items = null;
public Object[] getItems() {
System.out.println("getItems():ENTRY");
if (items != null)
return items.toArray();
else
return null;
public void setItems(Object[] items)
System.out.println("setItems():ENTRY");
int len = 0;
if (null == items ||(len = items.length) == 0) {
return;
if (this.items != null)
this.items.clear();
this.items = new ArrayList(len);
for (int i = 0; i < len; i++) {
this.items.add(items);
I've declared the bean as follows in the face-config.xml:
<managed-bean>
<managed-bean-name>facesTest</managed-bean-name>
<managed-bean-class>ipt.faces.FacesTest</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
The errors vary, but basically when I don't select anything from the multi-select menu, all is fine. When I do select something I get one of two messages returned thru the messages tag, either "Conversion Error setting value 'null' for 'expression'" when I select one item or " Conversion Error setting value '[Ljava.lang.String;@397d4e' for 'expression'." when I select two items.
Turning on 'FINEST', I get the output below: Any ideas? I've noticed several posting regarding the selectmany tags, any response on getting these to work?
thanks!
Steve
FINE: Exiting RenderResponsePhase
Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.LifecycleImpl execute
FINE: Begin executing lifecycle phases
Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.LifecycleImpl execute
FINEST: execute(phaseId=RESTORE_VIEW 1)
Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.LifecycleImpl execute
FINEST: Begin execute(phaseId=RESTORE_VIEW 1)
Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.RestoreViewPhase execute
FINE: Entering RestoreViewPhase
Jan 9, 2004 10:11:52 AM com.sun.faces.application.ViewHandlerImpl getMappingForR
equest
FINEST: servletPath /hello.jsf
Jan 9, 2004 10:11:52 AM com.sun.faces.application.ViewHandlerImpl getMappingForR
equest
FINEST: pathInfo null
Jan 9, 2004 10:11:52 AM com.sun.faces.application.ViewHandlerImpl getFacesMappin
g
FINE: URL pattern of the FacesServlet executing the current request .jsf
Jan 9, 2004 10:11:52 AM com.sun.faces.application.ViewHandlerImpl convertViewId
FINE: viewId after appending the context suffix /hello.jsp
Jan 9, 2004 10:11:52 AM com.sun.faces.application.StateManagerImpl restoreView
FINE: Begin restoring view from response /hello.jsp
Jan 9, 2004 10:11:52 AM com.sun.faces.application.StateManagerImpl restoreView
FINE: End restoring view from response /hello.jsp
Jan 9, 2004 10:11:52 AM com.sun.faces.application.ViewHandlerImpl restoreView
FINEST: set character encoding on request to ISO-8859-1
Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.RestoreViewPhase execute
FINE: Postback: Restored view for /hello.jsf
Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.RestoreViewPhase execute
FINE: Exiting RestoreViewPhase
Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.LifecycleImpl execute
FINEST: End execute(phaseId=RESTORE_VIEW 1)
Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.LifecycleImpl hasPostDataOrQuery
Params
FINEST: Request Method: POST/PUT
Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.LifecycleImpl execute
FINEST: execute(phaseId=APPLY_REQUEST_VALUES 2)
Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.LifecycleImpl execute
FINEST: Begin execute(phaseId=APPLY_REQUEST_VALUES 2)
Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.ApplyRequestValuesPhase execute
FINE: Entering ApplyRequestValuesPhase
Jan 9, 2004 10:11:52 AM com.sun.faces.el.ValueBindingImpl getValue
FINE: getValue(ref=facesTest.items)
Jan 9, 2004 10:11:52 AM com.sun.faces.el.VariableResolverImpl resolveVariable
FINE: resolveVariable: Resolved variable:ipt.faces.FacesTest@f97d27
getItems():ENTRY
Jan 9, 2004 10:11:52 AM com.sun.faces.el.ValueBindingImpl getValue
FINE: getValue Result:[Ljava.lang.Object;@11fb68f
Jan 9, 2004 10:11:52 AM com.sun.faces.el.ValueBindingImpl getValue
FINEST: -->Returning [Ljava.lang.Object;@11fb68f
Jan 9, 2004 10:11:52 AM com.sun.faces.el.VariableResolverImpl resolveVariable
FINE: resolveVariable: Resolved variable:ipt.faces.FacesTest@f97d27
Jan 9, 2004 10:11:52 AM com.sun.faces.el.ValueBindingImpl getType
FINE: isReadonly result:class [Ljava.lang.Object;
Jan 9, 2004 10:11:52 AM com.sun.faces.el.ValueBindingImpl getValue
FINE: getValue(ref=facesTest.items)
Jan 9, 2004 10:11:52 AM com.sun.faces.el.VariableResolverImpl resolveVariable
FINE: resolveVariable: Resolved variable:ipt.faces.FacesTest@f97d27
getItems():ENTRY
Jan 9, 2004 10:11:52 AM com.sun.faces.el.ValueBindingImpl getValue
FINE: getValue Result:[Ljava.lang.Object;@1262667
Jan 9, 2004 10:11:52 AM com.sun.faces.el.ValueBindingImpl getValue
FINEST: -->Returning [Ljava.lang.Object;@1262667
Jan 9, 2004 10:11:52 AM com.sun.faces.context.FacesContextImpl addMessage
FINE: Adding Message[sourceId=_id0:_id7,summary=Conversion Error setting value '
[Ljava.lang.Object;@1262667' for 'expression'.)
Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.ApplyRequestValuesPhase execute
FINE: Exiting ApplyRequestValuesPhase
Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.LifecycleImpl execute
FINEST: End execute(phaseId=APPLY_REQUEST_VALUES 2)
Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.LifecycleImpl execute
FINEST: execute(phaseId=PROCESS_VALIDATIONS 3)
Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.LifecycleImpl execute
FINEST: Begin execute(phaseId=PROCESS_VALIDATIONS 3)
Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.ProcessValidationsPhase execute
FINE: Entering ProcessValidationsPhase
Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.ProcessValidationsPhase execute
FINE: Exiting ProcessValidationsPhase
Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.LifecycleImpl execute
FINEST: End execute(phaseId=PROCESS_VALIDATIONS 3)
Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.LifecycleImpl execute
FINE: Skipping to RenderResponsePhase
Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.RenderResponsePhase execute
FINE: Entering RenderResponsePhase
Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.RenderResponsePhase execute
FINE: About to render view /hello.jsp
Jan 9, 2004 10:11:52 AM com.sun.faces.application.ViewHandlerImpl renderView
FINE: About to render view /hello.jsp
Jan 9, 2004 10:11:52 AM com.sun.faces.application.ViewHandlerImpl getFacesMappin
g
FINE: URL pattern of the FacesServlet executing the current request .jsf
Jan 9, 2004 10:11:52 AM com.sun.faces.application.ViewHandlerImpl renderView
FINE: Found URL pattern mapping to FacesServlet .jsf
Jan 9, 2004 10:11:52 AM com.sun.faces.application.ViewHandlerImpl renderView
FINEST: Before dispacthMessage to newViewId /hello.jsp
Jan 9, 2004 10:11:52 AM com.sun.faces.application.ViewHandlerImpl getFacesMappin
g
FINE: URL pattern of the FacesServlet executing the current request .jsf
Jan 9, 2004 10:11:52 AM com.sun.faces.application.ViewHandlerImpl getViewIdPath
FINEST: viewId after modifications /hello.jsf
Jan 9, 2004 10:11:52 AM com.sun.faces.application.ApplicationImpl createConverte
r
FINEST: Created converter of type javax.faces.convert.BooleanConverter
Jan 9, 2004 10:11:52 AM com.sun.faces.application.ViewHandlerImpl writeState
FINEST: Begin writing state to response for viewId/hello.jsp
Jan 9, 2004 10:11:52 AM com.sun.faces.application.ViewHandlerImpl writeState
FINEST: End writing state to response for viewId/hello.jsp
Jan 9, 2004 10:11:52 AM com.sun.faces.application.StateManagerImpl saveSerialize
dView
FINE: Begin creating serialized view for /hello.jsp
Jan 9, 2004 10:11:52 AM com.sun.faces.application.StateManagerImpl saveSerialize
dView
FINE: End creating serialized view /hello.jsp
Jan 9, 2004 10:11:52 AM com.sun.faces.application.ViewHandlerImpl renderView
FINEST: After dispacthMessage to newViewId /hello.jsp
Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.RenderResponsePhase execute
FINE: Exiting RenderResponsePhaseCould you post your code example? I am having the same problem. And I am wondering how you can set the value, label and description using the String[] return type. I thought the object[] would basically be a SelectItem Array...
thanx! -
I am trying to use a custom tag but receive an error when I use it on a jsp page.
I have a tag handler class file, tag library descriptor file, specified the path to the .tld in the web.xml file.
The error implies that it cannot find the SimpleTag.class file, though I put it in the \webapps\examples\WEB-INF\classes\ directory.
Here is the error. Does anyone know what else it could be?
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
C:\jakarta-tomcat-4.0.1\work\localhost\examples\jsp\jspVisual\ch10\using_0005ftag$jsp.java:63: Class org.apache.SimpleTag not found.
SimpleTag_jspx_th_myFirstTag_SimpleTag_0 = new SimpleTag();I could not see any obvious mistakes. But what you could try, in order to isolate the problem, is to bypass the web.xml. In other words access the TLD directly by doing this in your JSP
<%@ taglib uri="/WEB-INF/jsp/tag_library_descriptor.tld" prefix="myFirstTag" %>
if that does work then move the your TLD out of the jsp folder and into WEB-INF , then try
<%@ taglib uri="/WEB-INF/tag_library_descriptor.tld" prefix="myFirstTag" %>
Maybe someone else has better idea. -
Illegal Access Error : using Custom Tags
Ive a very simple custom tag that try to print curent date on webpage but when I try to run it gives me following error
java.lang.IllegalAccessError: try to access class com.sun.xml.tree.ParentNode from class org.apache.jasper.compiler.TagLibraryInfoImpl
java.lang.IllegalAccessError: try to access class com.sun.xml.tree.ParentNode fr
om class org.apache.jasper.compiler.TagLibraryInfoImpl
Here is my jsp code
<html>
<head>
<%@ taglib uri="http://127.0.0.1:8080/examples/cdate.tld" prefix="examples"%>
</head>
<body>
The file is <examples:cdate/>
</body>
</html>
here goes cdate.tld code
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>examples</shortname>
<uri>http://www.mycompany.com/taglib</uri>
<info>An example tag library</info>
<tag>
<name>cdate</name>
<tagclass>datex.DateTag</tagclass>
<info>Returns Current Date</info>
</tag>
</taglib>
here is web.xml entry
<taglib>
<taglib-uri>
http://127.0.0.1:8080/examples/WEB-INF/cdate.tld
</taglib-uri>
<taglib-location>
/WEB-INF/cdate.tld
</taglib-location>
</taglib>
here is the taghandler class code
package datex;
import java.io.*;
import java.util.Date;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
public class DateTag extends javax.servlet.jsp.tagext.TagSupport {
private String date;
public int doStartTag() throws JspException {
StringBuffer html = new StringBuffer();
date = new Date().toString();
html.append("Current Date : ");
html.append(date);
try {
pageContext.getOut().write(html.toString());
} catch (IOException ioe) {
throw new JspException(ioe.getMessage());
return EVAL_BODY_INCLUDE;
public void setDate(String s) {
this.date = s;
can any one plz hlp mewhen i put the struts tags into the subforld such as /web-inf/tags , the jsp page tell me parsing tags error.
should i must put all this tags in the right fold?
i configure the url location in the web.xml as the route /web-inf/tags/....tld why invalid? -
Error using custom tag library
Hi All,
I am getting the following error:
On the browzer page when I invoke the foo.jsp page containing a tag
library.
Parsing of JSP File '/jsp/foo.jsp' failed:
/jsp/foo.jsp(7): Could not parse deployment descriptor:
org.xml.sax.SAXParseException: Could not parse taglib, starting at
line 5
probably occurred due to an error in /jsp/foo.jsp line 7:
<%@ taglib uri="example-taglib.tld" prefix="eg" %>
Wed Mar 27 13:17:49 PST 2002
The configutation is as follows
Foo.jsp in documentRoot/jsp
tld file in documentRoot/WEB-INF
class files in documentRoot/WEB-INF/classes/examples.
The server is spitting out the following code:
weblogic.servlet.jsp.JspException: (line 7): Could not parse
deployment descript
or: org.xml.sax.SAXParseException: Could not parse taglib, starting at
line 5
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(RuntimeException.java:47)
at weblogic.servlet.jsp.JspException.<init>(JspException.java:9)
Can anyone help me with this ?
Thanks for your help!!
SundayFunday!
Could anyone please let me know what is going on here?
SundayFunday!
[email protected] (SundayFunday) wrote in message news:<[email protected]>...
> Can anyone help me with this?!!
>
> Thanks!
>
> Sundayfunday.
>
> [email protected] (SundayFunday) wrote in message news:<[email protected]>...
> > Hi All,
> >
> > I am getting the following error:
> >
> > On the browzer page when I invoke the foo.jsp page containing a tag
> > library.
> >
> > Parsing of JSP File '/jsp/foo.jsp' failed:
> > --------------------------------------------------------------------------------
> > /jsp/foo.jsp(7): Could not parse deployment descriptor:
> > org.xml.sax.SAXParseException: Could not parse taglib, starting at
> > line 5
> > probably occurred due to an error in /jsp/foo.jsp line 7:
> > <%@ taglib uri="example-taglib.tld" prefix="eg" %>
> > --------------------------------------------------------------------------------
> > Wed Mar 27 13:17:49 PST 2002
> >
> >
> >
> > The configutation is as follows
> >
> > Foo.jsp in documentRoot/jsp
> >
> > tld file in documentRoot/WEB-INF
> > class files in documentRoot/WEB-INF/classes/examples.
> >
> >
> >
> > The server is spitting out the following code:
> >
> > weblogic.servlet.jsp.JspException: (line 7): Could not parse
> > deployment descript
> > or: org.xml.sax.SAXParseException: Could not parse taglib, starting at
> > line 5
> > at java.lang.Throwable.fillInStackTrace(Native Method)
> > at java.lang.Throwable.fillInStackTrace(Compiled Code)
> > at java.lang.Throwable.<init>(Compiled Code)
> > at java.lang.Exception.<init>(Compiled Code)
> > at java.lang.RuntimeException.<init>(RuntimeException.java:47)
> > at weblogic.servlet.jsp.JspException.<init>(JspException.java:9)
> >
> >
> > Can anyone help me with this ?
> >
> > Thanks for your help!!
> >
> > SundayFunday!
-
Error using Date.praseDate()
Date s1 = new Date();
s1 = Date.parseDate(request.getParameter("eDate1"));ERROR:
symbol : method parseDate (java.lang.String)
location: class java.util.Date
s1 = Date.parseDate(request.getParameter("eDate1"));
what is the error?
Thanksor try this code:
public static Date parseDate(String dateStr) {
try {
if (dateStr.length() < 10)
throw new NumberFormatException("badDateTime"); //$NON-NLS-1$
SimpleDateFormat df = new SimpleDateFormat(
"yyyy-MM-dd", INTERNAL_PARSE_LOCALE); //$NON-NLS-1$
return dateStr != null ? df.parse(dateStr) : null;
} catch (Exception e) {
throw new NumberFormatException(e.toString());
} -
Question about BC4J data tags, Oracle sessions and Locking!
Hi ,
I have seen numerous examples of JSPs using data tags and in all the examples the data tag for the application module has the "username" and "password" harcoded in it.
My questions are:
1) For a stateful application should we be including the username and password in every JSP page. I personally believe that we should not.
2) If we have a username and password in every JSP page will it not start a new ORACLE user session and if so will it not cause locking problems?
3) If we don't hard code the username and password in every JSP page, will it reuse the same ORACLE session ?
4) How do we avoid locking problems when we use data tags?
5)I can understand the inclusion of username and password in every JSP page if it is a stateless application but again Is there a way we can avoid hardcoding the username and password in every single page?
I would appreciate if some one can let me know if any of my assumptions are incorrect.
JDeveloper Team/Juan any advice?The username and password are optional. They can be provided via the connections.properties file. The multple entries for username and password don't mean that separate connection are made. The first time the ApplicationModule tag is encountered, your application instance is created. If you are running in reserved mode (look at your releasePageResources tag) the application instance is kept until your Http session times out. If you are running in Stateful or Stateless mode, you application instance is returned to the application pool and retrieved the next time you need an instance. Please refer to the application pool documentation and to the source in oracle\jbo\common\ampool provided in jbohtmlsrc.zip.
-
Frustrated with DATA TAGS (JDEVELOPER TEAM)
I have been trying to delete a record from an HTML form using data tags and unfortunately I am unable to make any progress.
It keeps telling me that I got to use either
"rowkey" or "rowkeyparam" and when I try to use it, it gives me a jsp exception.
This is the same case with me when I try to locate a record using the "Find" action.
So how am I to delete or update a record which is displayed in an HTML form?
I saw the "howto" on using the "rowkeyparam" but it simply doesn't work as advertised.
I always end up getting a JSP exception and the end result being I am unable to "UPDATE" OR "DELETE" any record from an HTML form.
JDeveloper Team, Please advice. Do you have any sample examples of "UPDATING" and "DELETING" a record from an HTML form?
I am really frustrated!!!!
nullTo see a quick example of a working UPDATE example simply use the "DataPage" Wizard.
When you choose the Edit Form generation option from the wizard, it will generate a working example of an "Edit Form"
JSP app using the Data Tags and a RowKey parameter.
For more info on the DataPage Wizard see: http://otn.oracle.com/products/jdev/info/jdev/datapage/s000.html
As for deleting a record, this is also done with the Row tag.
Instead of
<jbo:Row id="myrow" datasource="ds" rowkeyparam="MyRowKey" action="Update">
<jbo:SetAttribute dataitem="*"/>
</jbo:Row>
You can use:
<jbo:Row id="myrow" datasource="ds" rowkeyparam="MyRowKey" action="Delete"></jbo:Row>
Providing you pass the rowkey value as the Html parameter "MyRowKey"..
null -
Data Tags vs. Data Web Beans
I'm a bit confused :
should i use Data Tags or Datawebbeans ?
TIA
Sergio SetteAs a general rule,
formatting (html) customization is easier done with datatags.
Business logic is easier with web beans. You can mix and match though which provides a powerful framework.
What are you trying to achieve?
null -
Creation of triggers using CFQUERY tag is giving error
Hi,
I am creating triggers and stored procedure on ORACLE data
base using <CFQUERY>.
<CFQUERY DATASOURCE="CRM">
create or replace trigger AWC_ACCOUNTINGPERIODSID_TRI
before insert on AWC_ACCOUNTINGPERIODS
for each row
begin
select AWC_ACCOUNTINGPERIODSID_SEQ.nextval into :new.AP_ID
from dual;
end;
</CFQUERY>
But the created trigger is not compiled, it is giving the
following error
"Line # = 1 Column # = 6 Error Text = PLS-00103: Encountered the
symbol "" when expecting one of the following: begin case declare
exit for goto if loop mod null pragma raise return select update
while with <an identifier> << close current delete
fetch lock insert open rollback savepoint set sql execute commit
forall merge pipe The symbol "" was ignored."
If I edit that trigger in enterprise manager console by
pressing space and compile that, it is working fine with out any
error. If i run the above statement in sql *plus, It is working
fine with out any error. Can you please tell me why this is
happening if i run it using cfquery tag and also the possible
solutions.
Thanks in advance,
VinodI can't tell you why your particular trigger is failing, but
here is some "typical" reasons from Oracle's metalink.
Common reasons for PLS-00103
Error Summary
PLS-00103 Encountered the symbol "%s" when expecting one of
the following (Oerr
LS.103)
Error Details
~~~~~~~~~~~~~
Error: PLS-00103
Text: Encountered the symbol "%s" when expecting one of the
following:
Cause: This error message is from the parser. It found a
token
(language element) that is inappropriate in this context.
Action: Check previous tokens as well as the one given in the
error message. The line and column numbers given in the
error
message refer to the end of the faulty language construct.
PLS-00103 errors can often be difficult to localize what the
error is so here are some
common reasons for PLS-00103 errors..
A very common reason for PLS-00103 is when a reserved word is
used, with a reserved word
means words that names an oracle object or a built in
procedure, for example MOD, ABS,
TABLE, VIEW etc..
When trying to use SQL*PLUS commands in PL/SQL procedures,
like SPOOL, SET and other
commands that belongs to SQL*PLUS can result in this error.
Using parameter declaration at the IN/OUT clause in a
procedure, this works in versions
prior to 8.0.4, but it just ignored the declaration.
Using DDL commands in PL/SQL will fail in PLS-00103, the way
to use DDL commands is
to build a procedure in dynamic sql.
When creating package specification and a package body, a
PLS-00103 error will occur
if there is no slash, '/', after the package specification.
Phil
Maybe you are looking for
-
Iphoto library after Yosemite install won't upgrade
I have a MacBook 13 in from late 2009 w/ 2.26 GHz Intel Core Duo and 2 GB 1067 MHz DDR3. I have 105 GB free and 88 GB iphoto library. I upgraded to Yosemite and when I open iPhoto it says that the library needs to be upgraded. When I choose upgrade
-
I have a Samsing galaxy tablet, do any of the toshiba cloud tv's support screen sharing?
-
Issues with client authentication using certificates
We have upgraded from sun-one directory server 5.1 sp4 to odsee 11g. We were using client certificates for authenticating connections to the directory server and it is no longer working. We had a certmap.conf that worked fine on 5.1 but it no longer
-
CS5: Color Blending Mode
Okay well i have a problem Just bought Photoshop CS5 - & i'm designing my first image..... Below is an image of the sort of effect i'm trying to get. Changing colours of an object without having to paint them etc etc. The Image above says that We sho
-
Search photo's on tags/keywords
The search option in 3.0 is a great, be it a normal, option. Sadly enough it does not include photos in the search. Since the iPhone syncs with iPhoto (which is using keywords you can search on) I would expect the search to include photos as well. To