Java Portlet built with BC4J JSP
Dear Forum,
The BC4J JSP tag "jbo:ApplicationModule" creates a stateful session by storing a sessioncookie: When this cookie is found, the application module object will be re-used across webpages.
When a Java Portlet is built using BC4J-JSP, this portlet plants a cookie in its client (the portal). This seems however not to be possible. This means that the portlet can only be stateless.
Has anyone a clue how to plant a cookie in the portal; thus enabling stateful sessions?
Kind regards,
Edwin Grosmann
It looks like WebSphere is wrapping the Oracle JDBC driver with it's own classes (like com.ibm.ejs.cm.proxy.OraclePreparedStatementProxy).
On Step 1 of the Business Components Project Wizard, change the SQL Flavor toSQL92 and the Type Map to Java.
This is the same type of thing required with talking to non Oracle databases (in short, it tells BC4J not to cast things to Oracle classes and just talk against java.sql.*)
Hope this helps,
Rob
Team JDev
Similar Messages
-
Trouble with bc4j/jsp tutorial
I'm having difficulty running the bc4j/jsp tutorial in the doc pages. he ones on the oracle website, not through the help menu cos it's modal!
After the second start from scratch I'm pretty certain I'm doing excatly as instructed but on starting the oc4j, I get the following error page in IE...
Any ideas?
Rick Lawson.
Application Error
Return
Error Message: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-33001: Cannot find the configuration file /jsptags/common/bc4j.xcfg in the classpath
Error Message: JBO-33001: Cannot find the configuration file /jsptags/common/bc4j.xcfg in the classpath
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-33001: Cannot find the configuration file /jsptags/common/bc4j.xcfg in the classpath
at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:372)
at oracle.jbo.common.ampool.ContextPoolManager.findPool(ContextPoolManager.java:169)
at oracle.jbo.http.HttpContainer.findSessionCookie(HttpContainer.java:554)
at oracle.jbo.html.jsp.datatags.ApplicationModuleTag.doStartTag(ApplicationModuleTag.java:143)
at CustomersView_Browse._jspService(CustomersView_Browse.jsp:10)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:684)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
## Detail 0 ##
oracle.jbo.JboException: JBO-33001: Cannot find the configuration file /jsptags/common/bc4j.xcfg in the classpath
at oracle.jbo.client.Configuration.loadFromClassPath(Configuration.java:237)
at oracle.jbo.common.ampool.PoolMgr.createPool(PoolMgr.java:192)
at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:348)
at oracle.jbo.common.ampool.ContextPoolManager.findPool(ContextPoolManager.java:169)
at oracle.jbo.http.HttpContainer.findSessionCookie(HttpContainer.java:554)
at oracle.jbo.html.jsp.datatags.ApplicationModuleTag.doStartTag(ApplicationModuleTag.java:143)
at CustomersView_Browse._jspService(CustomersView_Browse.jsp:10)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:684)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)1. At what step in the tutorial did you see this error?the link to the web page would be http://otn.oracle.com/jdeveloper/help/topic?inOHW=true&file=jar%3Afile% (basically, at the end of autocreating the page and running oc4j (embedded) to see the JSP
2. Are you running on a deployed environment?No. This was as the tutorial, in the embedded oc4j
3. What version of JDev/ OC4J are you using?oracle IDE version is 9.0.2.829
4. Did your BC4J project compile cleanly?yes (or at least it appeared to do!)
5. Did you check the Deploy Password box when you created your database connection?yes.
I shall be reading up on the bc4j.xcfg today...
Thanks for the help
Rick -
JSP portlet built in Jdeveloper call stored procedure
Hi,
I have a simple jsp portlet built with Jdeveloper, now I'm trying to execute a stored
procedure from the jsp. How can one access database and call a proc, in a jsp which is
developed in Jdeveloper?
Is JSTL required for it or a normal jdbc calls will suffice?
Any help asap is appreciated.
Thanks,
KavithaIt is actually very simple. :)
I suggest to create a Java bean containing the Java code with the PL/SQL call.
This method can be invoked from JSP.
A good pratice is to pass database connection to this methode and commit or rollack in the JSP.
example:
public void saveData(Connection conn,
String param1,
String param2) throws SQLException
With this approach you can call several SQL statements in the same session.
This will enable transaction handling.
I suppose the db connect will be pooled in your application. -
Am i on the right track for establishing my client connection with BC4J?
I am developing web-application with BC4J JSP project now. However, I find the auto-generated page not that useful as they are not flexible enough. Then, I decided to write coding by myself. But the first problem is - how to write the coding for client connection? To make maintenance easy, I would like to place those connection code in a class file instead of hard-coding each connection details in my JSP or Servlet page.
Question 1: Through the examples I search in my JDeveloper (Candidate 2) directory, found a file TestClient.java in the \BC4J\samples\Caching\src\demo directory with the following codes:
// Create an instance of the application module by name, using local mode
String _am = "demo.DemoModule"; // Fully-qualified application module name
String _cf = "DemoModuleLocal"; // Configuration name for connection info
ApplicationModule am = Configuration.createRootApplicationModule(_am,_cf);
// Find the Managers view object by name in the application module
ViewObject mgrVO = am.findViewObject("Managers");
// We're done with the AM instance, so release it
Configuration.releaseRootApplicationModule(am,true);
Is it for testing only or really useful for the production environment? Am I doing the right thing if i use such method to establish my web client connection? What's the pros and cons for using this method? Any other better alternatives?
Question 2: As I know BC4J automatically takes care of connection pooling as a default manner since version 3.2. Can I still use the following statement
session.setAttribute("user_name", user_name); //Set session attribute
String user_name = (String) session.getAttribute(user_name); // Get session attribute
to capture and assign client session correctly for individual clients?
Question 3: What codes should I use to achieve 'Transaction' update, which assembles the coding as follows:
Connection.setAutoCommit(false); //disable auto commit
connection.commit();
connection.rollback();
connection.close();
Thanks for answering!!!Question 1: Through the examples I search in my JDeveloper (Candidate 2) directory, found a file TestClient.java in the \BC4J\samples\Caching\src\demo directory with the following codes:
// Create an instance of the application module by name, using local mode
String _am = "demo.DemoModule"; // Fully-qualified application module name
String _cf = "DemoModuleLocal"; // Configuration name for connection info
ApplicationModule am = Configuration.createRootApplicationModule(_am,_cf);
// Find the Managers view object by name in the application module
ViewObject mgrVO = am.findViewObject("Managers");
// We're done with the AM instance, so release it
Configuration.releaseRootApplicationModule(am,true);
Is it for testing only or really useful for the production environment? Am I doing the right thing if i use such method to establish my web client connection? What's the pros and cons for using this method? Any other better alternatives?The Configuration API (createRootApplicationModule, releaseRootApplicationModule) will work. However, please note
that it is intended for java clients that will hold an ApplicationModule reference for a long duration. The BC4J web
frameworks (represented, for example, by the ApplicationModule and ReleasePageResources tags) all use the
SessionCookie interface to acquire/release ApplicationModule instances on a per request basis. This will allow
better scalability. Please see the pooling sample / documentation / javadoc for more information about using these
APIs. The pooling sample servlet is located in \BC4J\samples\Pooling\src\demo\TestPoolServlet.
Question 2: As I know BC4J automatically takes care of connection pooling as a default manner since version 3.2. Can I still use the following statement
session.setAttribute("user_name", user_name); //Set session attribute
String user_name = (String) session.getAttribute(user_name); // Get session attribute
to capture and assign client session correctly for individual clients?BC4J will not interfere with your use of the HttpSession context. How do you intend the "user_name" to be used? Do
you intend it to represent the DB user, JAAS user, etc. If you intend it to be used as the DB user you will need to declare
the "user_name" to BC4J. Please see:
http://technet.oracle.com/products/jdev/howtos/bc4j/howto_dynamic_jdbc.html
Question 3: What codes should I use to achieve 'Transaction' update, which assembles the coding as follows:
Connection.setAutoCommit(false); //disable auto commit
connection.commit();
connection.rollback();
connection.close();ApplicationModule.getTransaction().commit();
ApplicationModule.getTransaction().rollback();
If you are using the Configuration or SessionCookie APIs, as mentioned above, then the connection lifecycle will be
managed for you. So, you should not need to invoke connection.close().
Thanks for answering!!!
Hope this helps.
JR -
JDeveloper 903 BC4J JSP Layout Customerization
BC4J is so powerful that enabled me to built an application in minutes. I used the JDeveloper903 this week built a BC4J JSP Application pulling data from a single table on Oracle9i
and wanted display the search summary result's lables and their corresponding data fields in a html table in the following ways:
record 1
Lable1 data 1
Lable2 data 2
Lable3 data 3
record 2
Lable1 data 1
Lable2 data 2
Lable3 data 3
Not the default way:
Lable1, lable2, lable3
data1 data2 data3
data1 data2 data3
data1 data2 data3
Also need a link to its detail page from data1.
How can I customerize the layout based on the existing application or I have to re-build the application with new design?
Any sample can show me step by steps?
Appreciate your ideas!Is "Inserting BC4J Data Tags from the JDSP Data Binding Tool" in the JDeveloper903 the right direction to go?
Thanks -
Bc4j jsp calendar deployment problem
Using jdeveloper 9.02 I made a simple webapplication with bc4j jsp's and deployed it to oc4j (9.0.2.1) directly from jdeveloper as described in the help. This works fine, except for the calendar (datepicker). When the calendar is loading in a separate frame I become an 'access is denied' error. In the http-web-access.log the following line shows up:
127.0.0.1 - - [25/Nov/2002:15:52:54 +0100] "GET /webapp/jsp/calendar.jsp?redirect=/webapp/jsp/calendar.jsp&locale=de_AT&enc=windows-1252&origValue=1980-12-24&format=yyyy-MM-dd&formatter= HTTP/1.1" 500 383
The application runs fine on the oc4j inside jdeveloper, so I assume it is a configuration problem. However, so far I couldn't find out what is wrong.
If I make a simple application using the wizards for the emp table, and deploy it with standard settings to the local oc4j, I have exactly the same problem.
does anybody have a suggestion?
thanks, Corproblem is solved.
Webapp and cabo are installed as applications in their own directory structures. However, the required libraries are not deployed automatically in the web-inf/lib directory. They are present in the main application web-inf/lib, but these are apparently not accessable. Copying the libraries solves the problem.
I'm still wondering whether I did something wrong. Simply deploying the bc4j.ear to oc4j is obviously not enough, but that is what the jdeveloper help is saying. Did I misunderstand something?
Cor -
JB0-26041 - Works in Testor but not in Wiz generated BC4J-JSP
When I use the BC4J-JSP Wizard to build a sample Dept/Emp app and then run it, I am getting a JB0-26041 error. Yet, this same VO checks out fine in the App Module Testor.
The assumption is that if it works in the Testor why is the BC4J-JSP Wizard Generated code not working?
Note: This is a modified VO that specifies control over the order of database posting. The VO contains 2 EO's which are related by a FK and both are using Sequences and Before Triggers.
See threads;
Re: "not supported"...please support...new developments!! and Re: Using XML facts in Oracle Business Rules
It's been a while since I've worked with BC4J-JSP so I must be forgetting something here, I'm going back to my notes. If I figure I'll post my result.
Any ideas?
Thanks,
Bill G...What's the full stack trace that running with the -Djbo.debugoutput=console shows you?
-
Multiple JSPs with JSR 168-compliant Java portlet
Hi,
I have an application with multiple JSPs that I'm trying to run in a portlet. Looks like a JSR 168 Java Portlet is the best way to do that. I want to avoid using proprietary PDK Portlet route.
A few questions:
1. Is there any sample of that available with multiple JSPs?
2. More specifically, if I have a form element in one jsp, can I specify another JSP in the action element, or do I have to use an actionURL or renderURL?
3. Also, how can I can debug my Java portlet from JDeveloper?
Thanks.
- AnupamHi,<br>
I'm building a JSR 168 Java portlet. I've been trying to pass params from my JSP using actionURL in my jsp, like so:<br><br>
<FORM METHOD="POST" ACTION="<portlet:renderURL/>">
<TABLE BORDER="0" CELLPADDING="4" CELLSPACING="0" BGCOLOR="#eeeeee">
<TR>
<TD ALIGN="right">
<FONT FACE="Arial" SIZE="-1 ">User Name:</FONT>
</TD>
<TD>
<INPUT NAME="userName" SIZE="12" MAXLENGTH="32">
</TD>
</TR>
<TR>
<TD>
<INPUT NAME="action" SIZE="12" TYPE="hidden" value="Login">
</TD>
</TR>
</TABLE>
</FORM>
<br><br>
I find that in my processAction, I can see value of "action" parameter but not the value the user enters in the portlet for "userName".<br><br>
Any idea why? I must be doing sthing wrong, dunno what.<br><br>
Also, if I use renderURL instead of actionURL, I don't even see "action" getting passed. Is that expected?<br><br>
Thanks -
Can a BC4J-JSP App live within a Portlet
I've read the posts AND the docs AND still do not have a clear idea if a BC4J-JSP application can live within Portal. I DO NOT WANT to click on a link from Portal and open a * NEW * window, I want the BC4J App to be contained within the Portal.
Can anyone from Oracle Portal answer this **** AND *** can you show a working example of a BC4J application. HelloWorld.jsp is not a multi-page application.
Thanks,
Bill G...Hi Bill,
1. Yes, you can access the userid from your partner app.
2. Do you want to make your code appear on a portal page, and re-render it within the portlet container, rather than have your application replace the portal page? If this is what your question is, then:
a) You may run your app in an iframe as Subramanyam has recommended. The first issue with this: ns 4.x doesn't support it. The second one, the request is sent to your app from the browser iframe, it doesn't go through the parallel page engine, thus your application is not being cached along with the page. Also, end users can't access a particular page of your application, they can only bookmark the portal page, which will always display the initial page of your application.
b) You can run your app as it is, taking advantage of the renderers of PDK, capable to render JSPs. In this case, you need to modify your code, at least the links and forms, so that the portal page URL is used as the target url (extra parameters appended to it, or implemented in hidden fields).
You find a sample portlet (Flights of Fancy External Application) implemented as a partner application in the PDK.
This is a PDK article worth to check out: Using PDK-Java to Integrate a Partner Application with Oracle9iAS Portal (V2)
And finally, you find the Administration Guide, the Appliation Developre's Guide, and the API Reference in the Oracle9iAS Documentation Library under Oracle9iAS Single Sign-On on the Management and Security tab.
Peter -
BC4J Java portlet anyone?
Hi,
Has anyone managed to write a BC4J Java portlet? Or for that matter a UIX Java portlet? I have found some info on writing a Struts based Java portlet but nothing on either BC4J or UIX.
Thanks,
SteveI have converted a three page bc4j jsp application to three portlets in 902618 version of the portal. But i was feeling lazy to remember all the steps i had to go through..but then i found these steps in Oracle9i Application Server Developer's Guide.
chapter 9 - Running in a Portal Framework
Looks like they have got most of the steps if you want to turn your application into portlets.
Here is a cut and paste for you..
--------------------xx------------------------
You need to add some calls to the JPDK API to make your application run in a portal environment.
Update the links where you want to display another page within the portlet. If the file that contains the URL is an HTML page, you have to change it to a JSP page because you need to determine the URL dynamically.
See Section 9.4, "Update the Links Between Pages Within a Portlet".
Invoke the include method instead of forward. You have to use include because the portal needs to add data from other portlets. If you use forward, the portal does not have a chance to gather data from the other portlets.
See Section 9.5, "Use include instead of the forward Method".
Use the portletParameter method in the HttpPortletRendererUtil class to ensure that request parameters have unique names. This ensures that applications on the portal page read only their parameters and not parameters for other applications. This also enables applications to use the same parameter name; the method prefixes parameter names with a unique string for each application.
See Section 9.6, "Protect Parameter Names".
Make all URL paths absolute paths using the absoluteLink or the htmlFormActionLink method in the HttpPortalRendererUtil class, depending on the HTML tag.
See Section 9.7, "Make All Paths Absolute".
---------------------xx---------------------------
This might give you a starting point. -
Installing programs built with Java
I have a client who installed programs [applications] we built in Java. One person has no problem installing and running the programs. Another can install and run two of the three programs. The third program does not open a dialog box for them to register the program with us. The third person can open one program [the second installs with the first but will not open]; and the third program does not install at all. They all use Windows 2000 5.00.2195 with Service Pack 3. For the program that will not install the task manager indicates that 100% cpu processing time is involved. For the other programs that will not run, they get the javaw.exe error message. A fourth person with Service Pack 4 cannot install any of the programs and gets the wjview.exe generated error and the computer shuts down. This represents money to us if we can solve this problem. I would appreciate any help or suggestions.
Thanks
Donna* You ship your own JRE for your app
* You get errors from wjview.exe
Based on these 2 evidences, your app is not launched
with your shipped JRE correctly. Perhaps it is
launching the default java and not the full path to
your JRE location? That is at least one of your
problem you need to fix there.
I suggest two probabilities
1) As lichudang says above, launching is not correct. wjview.exe is a component of MS Java, not Sun Java.
2) Possibly these client machines have acquired spyware/adware/viruses. Using wjview to launch these buggers is somewhat common.
Take a look at this thread http://forum.java.sun.com/wireless/thread.jsp?forum=8&thread=351762&start=30&range=15&tstart=0&trange=15 which talks about (2) above.
This Google search turns up quite a few references, try refining it with additional terms
http://www.google.com/search?num=100&hl=en&lr=lang_en&ie=UTF-8&c2coff=1&q=%22wjview.exe&btnG=Search -
I am developing a jsp application with
bc4j. I want to give a format to date fields.
I have got it when I display records but when I edit or insert records it breaks. I override methods setXXX, getXXX in the MyEntityImpl.java file. Has anyone got it?
Could you help me?You nned to become familiar with the DataWebBeanImpl.java file in jbohtmlsrc.zip. It has methods to retrive the edit and display renderers for view object attributes. When a date attribute is found , the DataField renderer is selected. You can provide your own formatting date field renderer whenever a date field needs to be presented. We are working on formatting support for the next version of JDeveloper.
null -
I can not hide borders in/with Java portlets
I not know, is this Oracle bug, but:
1) I have unchecked "Show borders" in Default Customization. - This helps not.
2) In R1 was methods show/hide Borders. In R2 these methods was not!!!
N.B. !!! These methods is not deprecated, but in R2 these methods not exists! Why?
3) In R1 I have possibility to construct in edit/default customization form with buttons Apply/OK/Cancel. How can I construct this form in JSP (Default customization)?
4) In xml_tag_reference_v2.html is:
Usage with class oracle.portal.provider.v2.render.RenderManager:
<renderer class="oracle.portal.provider.v2.render.RenderManager">
<showPage>string</showPage>
<autoRedirect>boolean</autoRedirect>
<charSet>iana_charset</charSet>
<contentType>mime_type</contentType>
<pageExpires>number</pageExpires>
<pageParameterName>string</pageParameterName>
<renderContainer>boolean</renderContainer>
<renderCustomize>boolean</renderCustomize>
</renderer>
renderContainer - Defines whether RenderManager should automatically render the portlet's container (border and title) before and after processing/invoking the page.
renderCustomize - Defines whether RenderManager should automatically render the portlet's container (border and title) in "Edit" and "EditDefaults" modes before and after processing/invoking the page.
My question: if I set renderContainer to FALSE, then I do not have border with Java portlet. But, I do not have customization form buttons in edit/default customizations!!! I have set renderCustomize to true, but this not helps.
Can any help me?! I must hide borders, who comming with JSP portlets. Thanks in advance.
Cheslavgo to settings/itunes & app store tap on the ID and then view account, log in and have a look at payment information to see available payment options
-
Issues with deploying BC4J/JSP applications on OC4J
To everyone who's been having problems deploying BC4J/JSP applications to OC4J.
We are aware that you're having problems deploying to OC4J, and we're working on them. OC4J was not available in time for us to add support for OC4J deployment to the JDeveloper 3.2.3 release. In addition there are some bugs in the first release of OC4J that have an impact on BC4J applications. This note describes the issues, and how we plan to address them.
Issue 1: Classpath problems
People have been getting "class not found" or "properties file not found" errors when they try to run their JSP. The answer is to make sure that all relevant archives and your JSP's .properties file are in the OC4J classpath - there's a note addressing the .properties file problem at http://technet.oracle.com:89/ubb/Forum99/HTML/000028.html. In general though, setting up the classpath can be tricky.
Issue 2: JSP TAG NOT RELEASED ON END TAG. SAME TAG IS REUSED.
This issue affects JSP pages whose behaviour relies on a tag instance being cleaned up as a result of release() being called.
Your tag will not be released, and subsequent instances of the tag will reuse the first instance, rather than instantiating a new
one.
Issue 3:JSP SCRIPTABLE VARIABLE NULL
A scriptable variable set in a tag cannot be accessed by a scriptlet. For example, this JSP code will throw a
NullPointerException, because the scriptlet cannot access the value of resultRow:
<jbo:Row id="resultRow" action="CURRENT" datasource="customer_vo1" />
<%
session.putValue("FIRSTNAME", resultRow.getAttribute("Firstname").toString());
%>Workaround: Add a line of code at the beginning of the scriptlet to explicitly get the variable's value from the page context, for
example:
<jbo:Row id="resultRow" action="CURRENT" datasource="customer_vo1" />
<%
resultRow = (oracle.jbo.Row)pageContext.findAttribute("resultRow");
session.putValue("FIRSTNAME", resultRow.getAttribute("Firstname").toString());
%>
What we plan to do
To address issue 1, we're currently testing a utility that installs the BC4J runtime libraries to OC4J, and provides a script to start OC4J with the correct classpath. We plan to post this by the end of this week, along with instructions for deploying a BC4J application to OC4J; deployment will be a lot simpler after running the utility.
To address issues 2 and 3, we're working on a second utility that installs BC4J runtime and provides a fix to the JSP compiler. We plan to post this second utility by the end of next week.
We do apologise for the problems you're having; please bear with us as we work on making it easier for you to deploy BC4J applications to OC4J.
Thanks
BlaiseHi, I have been trying desparately to deploy
a simple example JDeveloper application for months and months.
I HAVE NEVER BEEN SUCCESSFUL IN DEPLOYING ANYTHING.
I don't know much about webservers and I am relying
on the instructions from JDeveloper help and this website.
I have already tried Apache, and WebLogic
because there are instructions in the JDev help.
No luck.
Now I am trying to use OC4J on 9ias because there are instructions.
I have read the instructions about how to install a BC4J
app on OC4J about 25 times, but I can't get this thing to work.
It works fine inside of JDeveloper.
I create a BC4J project using the scott
schema (just the dept and emp tables).
Then I create an empty project for my JSP client.
I choose JSP Application from the web
objects and it connects to my BC4J project.
As I say, when I run it in JDeveloper, there is no problem.
In the instructions for installing BC4J
in OC4J, it first says install JDev 3.2.3 and OC4J.
This is done, and it tested fine.
Then it says to install the deployment software.
No problem.
But when I deploy the app according to the instructions,
it just hangs (like Rick Wang's program did).
The main.jsp page loads and displays correctly,
but when I click on the links to the DeptView.jsp
or EmpView.jsp it just hangs.
Here is the entire batch file I'm using
to start OC4J: cd c:\oracle_9ias\j2ee\home
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\default-web-app\lib
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\classes
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\classes12.jar
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\xmlparserv2.jar
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\jdev-rt.zip
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\jbojdbcpatch.zip
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\connectionmanager.zip
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\jbohtml.zip
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\jboimdomains.zip
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\ordim817.zip
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\ordvir817.zip
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\ordhttp.zip
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\jbomt.zip
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\jbodomorcl.zip
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\jboremote.zip
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\jndi.jar
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\jbodatum12.zip
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\al_BC4J.jar
java -cp C:\oracle_9ias\j2ee\home\orion.jar;%CLASSPATH%
com.evermind.server.ApplicationServer
pause
The file al_BC4J.jar contains my application.properties file
and my connections.properties file, as well as my business components.
All of the files referenced in my classpath are
present in my c:\oracle_9ias\j2ee\home\lib directory.
I noticed that Raghu's classpath contains a file called jdev.jar
So does the classpath of another fellow who says
he was successful in deployment (his name is Jeffrey Jackson).
I searched my JDev_3.2.3 for this file and found it nowhere.
I also searched my OC4J home and my 9iAS for this file and
found it nowhere.
It is nowhere on my C:\.
Is this file necessary?
I will also try removing my application.properties file
and my connections.properties file from my BC4J .jar file
and put them in a separate .jar file at the root level (as Raghu did).
However, Jeffery Jackson did not do this and says he was
successfull in deployment.
***DO I NEED TO JAR UP ANY OF MY THE FILES FROM the JSP
FOLDER IN JDevHome\myhtml???***
***or place them in the classpath?***
I have read over all of the discussions at: http://technet.oracle.com:89/ubb/Forum2/HTML/008232.html
and http://technet.oracle.com:89/ubb/Forum99/HTML/000028.html
many, many times.
Can anyone help me? -
Java Webconsole ELResolvers for JSR not registered with the JSP container
Trying to rebuild a LDAP server running Directory Server 6.1. Just installed Solaris 10 u9 on a SunFire V240. Loaded most recent recommended patch set dated 2011.02.02. Proceeded to load Directory Server V6.0 from native packages using JAVA ES Installer. After Directory Server installation and initialization the Java Webconsole is running but brings up a blank page login page. Note: Did not test the Webconsole prior to Directory Server installation. The errors in the /var/log/webconsole/console/console_debug_log file state:
Feb 8, 2011 10:32:32 AM com.sun.faces.lifecycle.ELResolverInitPhaseListener populateFacesELResolverForJsp
INFO: JSF1027: [console] The ELResolvers for JSF were not registered with the JSP container.
Feb 8, 2011 10:32:34 AM com.sun.faces.lifecycle.Phase doPhase
SEVERE: JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /jsp/login/BeginLogin.jsp) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@13c3b45]
The JAVA version is: 1.6.0_22
The cacao version is 2.2.4.1
Kernel Patch is Generic_144488-06
Anyone have an idea what is causing this problem for the JAVA webconsole and how to fix it?hi,
it is tomcat-6.0.20, JSF-RI 2.0.2 (Mojarra)
a whole bunch of libs and jquery4jsf (though really buggy in this manner, because all components could you rewrite for JSF2-components, etc.)
Unfortunately it is somehow a config error, because i haven't got it earlier, since i changed PhaseListener and Authentification with JAAS (sample from Ed Burns:
http://weblogs.java.net/blog/2006/03/07/repost-using-jaas-jsf, but with JDBC-based authentification)
cheers,
Istvan
Maybe you are looking for
-
How do i unlock my Sprint iphone5 with IOS 7.4 0 to use any network here in the U S?
How can i unlock my Sprint iphone5 with IOS 7.4.0 to be compartable with other service providers here in the U S?
-
Short dump - CX_SY_OPEN_SQL_DB during MODIFY statement
In production system, sometimes it dumps with this error: Runtime Errors DBIF_RSQL_INVALID_RSQL Exception CX_SY_OPEN_SQL_DB And here is the code cause this problems: CALL FUNCTION 'ENQUEUE_E_TABLE' EXPORTING mode_rstable = 'E
-
How to change linux text area background color?
Hi, I like to know the method. just like in windows platform.
-
NEW QuickTime 7.3.1 should solve problems with cd playback in iTunes 7.5
FINALLY all the problems within iTunes 7.5 as described by so many users seem to be completely solved from today by the very new version of QuickTime, check for update 7.3.1! AND the cd-drive doesn't rev up so frightening any longer! AGAIN a happy Ap
-
Set the location of JOptionPane
Hi all, i want to show a "JOptionPane.showConfirmDialog" in a specific location on the screen. i need the location to be ABSOLUTE and not to be relative to the parent of the JOptionPane. i tried to make an instance of the JOptionPane then apply the m