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

Similar Messages

  • 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

  • Trouble With Web Services Tutorial Examples

    I am having trouble getting the Web Services Tutorial examples to run.
    For example, when I compiled the hello1 example, and tried to run it, I got a directory listing. All the directory listing contained was the dukewaving.gif file.
    When I tried to run hello2, I got something similar. This time though, there were two jsp files in the listing. By clicking on the first one, I was able to run the application.
    Now I can't run the bookstore1 example. I went back a second time, to be sure that I was following the instructions exactly as written. I am gettng an HTTP Status 404 - Servlet BookStoreServlet is not available.
    I don't know why this is happening. There were no errors when I ran the Ant targets, and the WAR file did get copied to the webapps directory.
    I would be very grateful for any help. I am very new to Java and am finding this very frustrating.
    Thank You,
    Chrissy

    This is what's in my log file. Why is the servlet being marked as unavailable?
    2004-03-13 21:11:37 Manager: deploy: Deploying web application at '/bookstore1'
    2004-03-13 21:11:37 Manager: Uploading WAR file to C:\jwsdp-1.3\webapps\bookstore1.war
    2004-03-13 21:11:37 Manager: Extracting XML file to C:\jwsdp-1.3\conf\Catalina\localhost\bookstore1.xml
    2004-03-13 21:11:37 Manager: install: Installing context configuration at 'file:/C:/jwsdp-1.3/conf/Catalina/localhost/bookstore1.xml' from 'jar:file:/C:/jwsdp-1.3/webapps/bookstore1.war!/'
    2004-03-13 21:13:47 Marking servlet BookStoreServlet as unavailable

  • Trouble with Ruby-Cocoa Tutorial (IKImageBrowserView)

    Hello, I'm trying to learn some Mac programming using Ruby so I tried making the project in the Apple tutorial ( http://developer.apple.com/documentation/Cocoa/Conceptual/RubyPythonCocoa/Articl es/BuildingRubyCocoaAppl.html#//apple_ref/doc/uid/TP40005425 )
    Unfortunately it won't run. Every time the console shows this error:
    "Unknown class IKImageBrowserView in Interface Builder file."
    (it defaults to NSView and then more errors result when it gets to the app's code.)
    The tutorial there says that even though IKImageBrowserView isn't in the Library, IB "knows about it" but I feel like something's missing. Although I had no problems changing the Custom Object's Class, and connecting it up. It's only once it tries to run that it fails.

    orangekay wrote:
    RubyCocoa is neither sanctioned nor supported by Apple
    Au contraire: the primary maintainer for RubyCocoa is Laurent Sansonetti, the Apple engineer responsible for Ruby in OS X and also the author of MacRuby, and RubyCocoa is bundled in OS X 10.5 and later along with the Python-Cocoa bridge, PyObjC.
    so any sub-contracted documentation they might supply is probably not going to be kept up to date. That particular tutorial is from last year and things have almost certainly changed since then; you should look for something more recent from the project's maintainers
    Quite possibly; I believe that some of the PyObjC documentation on Apple's site also dates back to Tiger. File a bug on it; IIRC, there's a link at the bottom of each page for doing so.
    Some other links of interest:
    RubyCocoa homepage:
    http://rubycocoa.sourceforge.net
    RubyCocoa mailing list:
    https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk

  • Trouble with 2nd SOA tutorial

    Hey gang,
    Been grasping with the basics of this massive SOA suite that Oracle has put together. Everything is running fine. I just did the obligatory Hello World tutorial and it went smoothly. On the second tutorial that involves invoking a credit rating web service however I am having a bit of an issue.
    See, I deployed that web service into the AS that has the SOA running on it. And then when I am mapping the input and output values from the invoke activity in the BPEL designer, it reverts to the wsdl found on the hard drive instead of finding one on the server. Another problem is the crOutput variable...the xpath is not able to find the part for it. It does find it for the crInput variable though.
    Hope I am making sense. Any thoughts?

    The question is little bit confusing for me..
    As far my knowledge concern...whenever you deploy a webservice a wsdl file is been generated and that wsdl file I copy to my bpel workspace and invoke the wsdl file by creating partner link and selecting the wsdl from the "Project WSDL files".....it gives a message that no partner link is available for the current wsdl and it will make a reference.
    When I click OK it creates a wsdl and rest of the copy operation you do runs fine.

  • Trouble with bc4j

    Hi I get following error in my application. Any clues what could be wrong? I tried few new version of bc4j jar files but that did not help. Any help would be appreciated.
    13:08:23,106 ERROR [STDERR] at oracle.cle.process.PersistingProcess.start(PersistingProcess.java:83)
    13:08:23,106 ERROR [STDERR]      at oracle.cle.process.CLEStateMachine.start(CLEStateMachine.java:61)
    13:08:23,106 ERROR [STDERR]      at oracle.cle.process.Process.start(Process.java:108)
    13:08:23,106 ERROR [STDERR]      at oracle.cle.process.GenericProcess.start(GenericProcess.java:84)
    13:08:23,106 ERROR [STDERR]      at oracle.cle.process.ParentProcess.start(ParentProcess.java:226)
    13:08:23,106 ERROR [STDERR]      at oracle.cle.process.DisplayGroup.start(DisplayGroup.java:75)
    13:08:23,106 ERROR [STDERR]      at oracle.cle.process.CLEStateMachine.start(CLEStateMachine.java:61)
    13:08:23,106 ERROR [STDERR]      at oracle.cle.util.statemachine.StateMachine.start(StateMachine.java:120)
    13:08:23,106 ERROR [STDERR]      at oracle.cle.process.Service.start(Service.java:401)
    13:08:23,106 ERROR [STDERR]      at oracle.clex.process.controller.HttpServletController.doPost(HttpServletController.java:422)
    13:08:23,106 ERROR [STDERR]      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    13:08:23,106 ERROR [STDERR]      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    13:08:23,106 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    13:08:23,106 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    13:08:23,106 ERROR [STDERR]      at servlets.SessionFilter.doFilter(SessionFilter.java:42)
    13:08:23,106 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    13:08:23,106 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    13:08:23,106 ERROR [STDERR]      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    13:08:23,106 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    13:08:23,106 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    13:08:23,106 ERROR [STDERR]      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    13:08:23,106 ERROR [STDERR]      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    13:08:23,106 ERROR [STDERR]      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
    13:08:23,106 ERROR [STDERR]      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
    13:08:23,106 ERROR [STDERR]      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
    13:08:23,106 ERROR [STDERR]      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    13:08:23,106 ERROR [STDERR]      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    13:08:23,106 ERROR [STDERR]      at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
    13:08:23,106 ERROR [STDERR]      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    13:08:23,106 ERROR [STDERR]      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    13:08:23,106 ERROR [STDERR]      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    13:08:23,106 ERROR [STDERR]      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    13:08:23,106 ERROR [STDERR]      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    13:08:23,106 ERROR [STDERR]      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
    13:08:23,106 ERROR [STDERR]      at java.lang.Thread.run(Thread.java:595)
    Edited by: user1694903 on Dec 24, 2008 11:39 AM

    What was the exact error message? This part is missing from your printout.
    Timo

  • 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

  • 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, Cor

    problem 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?

  • JSP forms for update with BC4J?

    Hi,
    For editing a database, the Creating JavaServer Pages with Data Tags tutorial uses templates that generate two forms: one for browsing and one for editing. Does there exist a JSP-BC4J template that would allow browsing and editing in one form. It could be done with one JSP and a servlet generating a HTML form, but does the BC4J framework allow it? I'd like to get the same behaviour as with a JClient Form in the JClient Object category.
    Thanks
    Jean V.

    None of the templates we provide implement this functionality. It is definitly possible and the BC4J framework doesn't place any restrictions on your implementation. You would have to rely on some Dynamic HTML to get a more interactive web page. You may want to take a look at www.insidedhtml.com for some sample Javascript libraries.

  • OC4J: Troubles with characters in Reports 9i and JSP

    We are having troubles with especial characters in OC4J. Those problems appear in JSP's and Reports.
    Some information about it:
    - the especial characters in spanish are replaced by strange characters (2 chars for every especial char).
    - this happens with strings from ApplicationResources.properties (we use Struts framework) and NOT with those chars read from database via JDBC.
    - the problem doesn't happen in JDeveloper. It happens when we deploy the application to iAS 9i R2. With reports, it happens both from RWBuilder and local OC4J + RWServlet
    - When we used iAS R1 core version this didn't happen. When we changed to iAS R2 full installation (to be able to use Reports Server) it began to happen.
    Any help about it ?
    Thanks

    Hi Pozo,
    Have you got the solution for the problem specified. Even I'm facing the same problem with Arabic characters.
    Pl. let me know if you've got the solution.
    Thanks,
    Vinod.

  • Trouble with applet tutorial about servers

    I downloaded the sources of this (http://java.sun.com/docs/books/tutorial/deployment/applet/clientExample.html) example and am trying to make them work. However I'm having trouble with the server program.It compiles fine but when I run it I get NullPointerException in QuoteServerThread class on this line:
    packet = new DatagramPacket(buf, 256);buf is a byte array and it's set to null.
    I don't have any experience with networking in java so if the problem is something really simple you'll know why I didn't find it.
    Oh, and the code of the thread is here http://java.sun.com/docs/books/tutorial/deployment/applet/examples/QuoteServerThread.java

    Replace
    byte[] buf = null;with
    byte[] buf = new byte[ 256 ];Other problems may happen if this sample was not tested properly.
    The problem is that the DatagramPacket requires you to supply a non-null buffer, as per:
    DatagramPacket
    public DatagramPacket(byte[] buf, int length)
    Constructs a DatagramPacket for receiving packets of length length.
    The length argument must be less than or equal to buf.length.
    Parameters:
    buf - buffer for holding the incoming datagram.
    length - the number of bytes to read.
    Edited by: baftos on Jul 18, 2008 3:38 PM

  • FORMAT MASK JSP WITH BC4J

    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

  • Edit multiple records with BC4J and Struts-JSP

    Hi everybody,
    I'm building BC4J components using entities and views and JSP business components. How can I edit and update multiple records at a time with Struts-Jsp ? Have someone already an example (with JSP and ActionForm code) ?
    thank you

    Hi,
    Nobody have an example ? Is it so difficult ?
    Thanks

  • 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
    Blaise

    Hi, 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?

Maybe you are looking for

  • Macbook to Component YPbPr?

    Hello everyone, I have a black macbook 4,1. I am wanting to connect it to my Really old Mitsubishi tv that only has a YPbPr component connection for HDTV. I wondering how i need to set this up. from what it looks like, i need to connect it by Mini-DV

  • Comparision of similar equipment

    Hi One of my client requirement on Comparison of similar equipment. Please help me to get the steps for above report I am not getting the table for Comparision of similar equipment regards shiva

  • VMware FT failover not transparent on Nexus1000v

    Hello, I was wondering if anybody could help me with this one. I'm staging a new virtual infrastructure architecture for my company hosted onVMware ESX4.1 with N1KV 4.0(4) SV1 (3a)  solution on top. When testing the final design I've noticed that a V

  • Data corrupt block

    os Sun 5.10 oracle version 10.2.0.2 RAC 2 node alert.log 내용 Hex dump of (file 206, block 393208) in trace file /oracle/app/oracle/admin/DBPGIC/udump/dbpgic1_ora_1424.trc Corrupt block relative dba: 0x3385fff8 (file 206, block 393208) Bad header found

  • Plz help with deploying applet that uses SSL

    Hi, maybe this is not the adecuate forum but ive already tried in others and i got no answer. Im trying to use a certificate with my applet ( tha sends a lot of info to the server and also connects to another hibernate db) but im getting this error: