JSP / IAS 1.0 /EJB /Jdeveloper 3.1

Hello:
We upgraded to IAS 1.0 on Solaris Box. Deployed a EJB from JDeveloper to oracle8i. Ran the Snippet program successfully.
Copied the snippet program into a jsp file. tried to run from IAS. It gives a error unable to import oracle.aurora.jndi.sess_iiop.*.
Where do I copy the Client Jar / Zip files in
IAS. Is there something as CLASSPATH..
I would appreciate the input.
Thanks,
null

Can you describe what the test is doing?
Calling the browse page?
Are the JSP pages verbatim as the wizard generated them,
or have you made changes?
What application module pool mode are you using?
If you are using reserved mode and never ever checking back the
application modules in, you could end up using a lot of memory
for sure. This is not by design of course, but might be an
explanation for what you are seeing.

Similar Messages

  • "JSP-compiling" on deployment from JDeveloper

    Hi
    Can i remove compilation for JSP-files on deployment from JDeveloper 903?
    When I'm compiling and deploying a project from JDev it tries to compile my *.jsp source files.
    - Why?
    And JDevs jsp-error-checking has BIG holes. (The pages runs well then OC4J-compiles them...) Some projects don't get trough while other projects with the same code style works fine for some reason.
    I'm using JDeveloper version 9.0.3.10.35
    Thanks,
    -Erik

    Yes you can.
    Go into the "Settings..." of your deployment profile for your project. --> <yourprofile>.deploy
    Under the "WAR File" click on WEB-INF/classes.
    On the bottom right you'll see the option:
    "How should the selected source files be deployed?"
    Here you can select: "As source files only" and it won't
    compile and deploy your class files.
    Hope this helps,
    -Chris

  • JSP ADF Tree Binding in JDeveloper 10g

    I am attempting to create a JSP hierarchical tree structure in JDeveloper 10g. I can successfully create the tree structure for two levels only. I need to be able to create a tree 5 or more levels deep. I have created an ADF Master Detail structure using the sample OE schema for three levels and to the best of my knowledge, I have set up the rules correctly using the Tree Binding Editor accessed by a creating a new binding under Create Binding > Input > Tree for the UIModel of the test web application I created. However, in the JSP page, I can only access the first two levels. The code I'm using is as follows:
    <c:forEach var="masterRow" items="${bindings.CustomerOrdersTree.rootNodeBinding.children}">
    <c:out value="${masterRow.CustomerId}"/> -
    <c:out value="${masterRow.CustFirstName}"/>
    <c:out value="${masterRow.CustLastName}"/><br>
    <c:forEach var="ordersChildRow" items="${masterRow.children}">
    <c:out value="${ordersChildRow.OrderId}"/><br>
    <c:forEach var="Row2" items="${ordersChildRow.children}">
    </c:forEach>
    </c:forEach>
    </c:forEach>
    The first two levels display fine, but the third level is not displaying. What syntax should I be using to traverse further levels of the tree binding? Is it even possible? Thanks.
    Note: I didn't connect any event handlers for collapsing or expanding data. I'm just trying to display everything right now.

    I have the nodeExpanded attribute on the second level, set up exactly as the first level. I have a toggleSelection method on the second level (View Object) as well. I've stepped through this method and the arguments are passed correctly and the transient attribute is updated correctly. I'm calling this method through a second DataAction like treeHandler, and this works as far as calling the correct method with the correct argument values.
    The breakdown occurs back on the JSP. Even though the transient attibute gets populated accurately according to the toggleSelection method, when accessing that attribute on the JSP, it returns a null value. I can access all the other attributes from the same View Object, except for the transient attribute. I'm not sure what else to try.
    I'm starting to doubt this is even the best solution for a tree structure. With the way Oracle's example is set up, you would have to nest so many if-then structures in order to keep track of all the nodeExpanded attributes and which data to display or not, and I anticipate view state issues and caching problems.

  • I have deploy an EJB in weblogic 6.1,but how to use jsp to invoke the EJB's method?

    i have deploy an EJB in weblogic 6.1,but how to use jsp to invoke the EJB's method?
    thanks!

    You'd do something like:
    <%
    //vvv this part can potentially be done in initialization
    Context ctx = getInitialContext();
    BeanHome home =
    (BeanHome)PortableRemoteObject.narrow(ctx.lookup("the.jndi.name"),
    BeanHome.class);
    Bean b = home.create();
    //^^^
    Result r = b.invokeMethod();
    %>
    "toxin" <[email protected]> wrote in message
    news:3d2e95e5$[email protected]..
    >
    i have deploy an EJB in weblogic 6.1,but how to use jsp to invoke theEJB's method?
    thanks!

  • Ias support for EJB, JSP/servlets,JDBC, connection pooling, XML, SOAP, load balancing etc

    Please let me know where I can find more information regarding iPlanet usage/deployment/configuring/tuning etc for support of technologies - like EJB, JSP/servlets, JDBC, connection pooling, XML, load balancing, JDBC & Transactions
    (I have already read the 'Getting Started with the iPlanet Application Server' part five and six - http://developer.iplanet.com/appserver/testdrive/partfive.jsp and partsix.jsp)(I am using the ias testdrive version).

    Hi,
    It's difficult to explain unless the J2EE architecture is understood. Also, explaining things like load balancing, Transactions, tuning, are bit vague and could blow the disk space of this site.
    To get started, the best way is to test the sample applications and the best part is you don't require internet connection to follow each steps. Install iWS and iAS, open browser, type in http://hostname:port/ias-samples/index.html. You can find links to the sample applications bundled. Please follow the steps given on deploying the application. This will enable you to a higher level.
    Regards
    Ganesh .R
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support

  • Insert BLOB error in IAS but not in JDeveloper

    Hi
    Our application have a Servlet who executes an INSERT using a PrepareStatement (created by the Transaction of an ApplciationModule)
    In Jdeveloper (10.1.2) this works OK
    But when deploy it in the IAS (904) we have an error:
    java.sql.SQLException: Io exception: Connection reset
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:189)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:231)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:345)
    at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2094)
    at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1986)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2697)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:457)
    at com.asorco.sgie.controller.servlets.general.Archivo.uploadFile(Archivo.java:176)
    at com.asorco.sgie.controller.servlets.general.Archivo.doPost(Archivo.java:118)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:733)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:793)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.ja
    va:192)
    at java.lang.Thread.run(Thread.java:534)
    In the IAS, Im using the jars used in JDeveloper (classes12.jar, classes12dms.jar, nls_classes12.jar).
    Any knows the reason?
    Thank you!

              The effect to use <jsp:forward> or RequestDispatcher.forward is different between
              BEA and Tomcat (even Websphere). Weblogic stores the output in a buffer, before
              the buffer reaches the limit, you can call those forward methods without obvious
              problems. Tomcat (and Websphere I ever tested) is not so tolerable. If you have
              send out something via Servlet writer or JSPWriter, or have something like HTML
              tags/text before forwards, chances are big to encounter the exceptions you have.
              So I use more include methods to assemble my JSPs and servlets, for the purpose
              of portability.
              "Aidan Monroe" <[email protected]> wrote:
              >
              >I have a .war file that runs perfectly in WebLogic 7.0. Today I tried
              >to run that
              >same .war in Tomcat 4.0.6. Unfortunately, it did not run. I get the following
              >error:
              >
              >java.lang.IllegalStateException: Cannot forward after response has been
              >committed
              >
              >Now, I know what this error means, but I don't know why I would get it
              >when I
              >run in Tomcat but not WebLogic. Does WebLogic do something to "insulate"
              >me from
              >this error that perhaps Tomcat does not do?
              >
              >Aidan
              >
              

  • JSP in Project1 accessign EJB in Project2 of the same workspace???

    hi there...
    in the same workspace i have 2 projects:
    project1 and project2; project1 has a JSP page that tries to communincate with an EJB defined in project2;
    when i try to compile my JSP Page i got the following error:
    "verify that directory is reachable from classpath and/or sourcepath"
    any idea what should i do in order to solve this problem!!
    thanx in advance..

    Hi,
    a workspace is a JDeveloper terminology. The access scope of a page is determined by the J2EE context upon deployment. This means that all components that should be accessible from an application needs to be deployed with it. JSF page flows need to be configured in faces config files referenced and configured in the web.xml file of the web application, or added to the META-INF directory of a JAR file
    Frank

  • Is it possible for jsp(tomcat container)  access ejb deployed in sun app se

    if it's possible ,how to implement

    Hi,
    Yes it is possible for a JSP in tomcat container to lookup EJB in sun app server.
    Please refer following article for guidelines. If you need further help please revert back.
    http://www.onjava.com/pub/a/onjava/2003/02/12/ejb_tomcat.html?page=2
    HTH
    VJ

  • How to do a JSP talks with my "EJB from tables" ?

    Hi !!
    I'm new to Jdev.
    I have built a database, using MySql, and I also have built EJB from my tables.
    My EJB are Entity Beans and I have used the Wizard to create it from tables of my data base.
    Every EJB is working well and I have a simple JAVA client application which can use my
    beans to edit data in my database.
    Now I need create JSP pages that will use my beans, to edit my database too.
    So, I have created a new project and in this project I have built a JSP page, in the same workspace
    that has my beans' project.
    But I don't know what must I do to put my JSP page connected with my beans.
    1) What must I do?
    2) Is it possible to put a JSP page talking with a Entity Bean, or it will be necessary to create session beans?
    3) Is my beans' project a BC4J project? If not, how to change my beans' project to this goal?
    Any hint will be very helpful?
    Thanks.
    Rodrigo Pimenta Carvalho.
    Brazil.
    ==============================================================================

    There is a new feature to support this in the 9.0.3 preview release.

  • How to set the classpath to make the jsp connect to the ejb

              i make a entity ejb jar file, and put it under the applications directory. using
              a client class program test, it work ok. but when i run it from jsp, the browser
              said cannot resolve the ejb's remote and home interface.
              how can i make the jsp know where the interface is? thanks
              by the way, the weblogic server i used is wlserver6.1
              

    You will have to create the servlet mapping in the Web.xml file
    <servlet>
                 <servlet-name>FirstServlet</servlet-name>
                 <servlet-class>FirstServlet</servlet-class>
        </servlet>
    <servlet-mapping>
            <servlet-name>FirstServlet</servlet-name>
            <url-pattern>/servlet/FirstServlet</url-pattern>
        </servlet-mapping>

  • JSP 2.0 support in JDeveloper?

    Hi,
    Does JDeveloper 10g support the JSP 2.0 spec.? If no, why are there JSP 2.0 tutorials here,
    http://otn.oracle.com/sample_code/tech/java/codesnippet/jsps/simpletag/how-to-simpletaghandler.html#run
    that are deployed to the OC4J server? Is the embedded OC4J server of JDeveloper substantially different to the production OC4J? Can anybody help please?

    JDeveloper 10g (9.0.5) supports J2EE 1.3 - so no JSP 2.0 support yet.
    OC4J has a preview version with J2EE 1.4 support. It's still not production though.
    Check it out at:
    http://otn.oracle.com/tech/java/oc4j/index.html

  • Deploy JSP/Servlet along with EJB

    how could deploy EJB with JSP/Servlet?.
    First i have
    package project.account
    1.HomeInterface class
    2.RemoteInterface class
    3.Bean class
    4.Client class
    I deployed the above bean in J2EE using Deploytool GUI.
    run the client like this
    java -classpath %CLASSPATH%;personDepClientClient.jar project.account.Client
    it displays result at prompt
    what i am asking is
    now i wrote JSP file which is kept also this project.account package
    i used the JSP file as client for the that bean.
    it is Show.jsp file(client file)
    <%@ page language="java" %>
    <%@ page import="java.util.*" %>
    <%@ page import="javax.naming.Context" %>
    <%@ page import="javax.naming.InitialContext" %>
    <%@ page import="javax.rmi.PortableRemoteObject" %>
    <%
         double balance;
    try
         Context initi = new InitialContext();
         Object ref = initi.lookup("AccountHome");
         AccountHome home = (AccountHome)javax.rmi.PortableRemoteObject.narrow(ref,AccountHome.class);
         AccountRemote vijay = home.create("200","vijay",0.00);
         vijay.credit(2000.0);
         vijay.debit(600);
         balance = vijay.getBalance();
    %>
         <tr>
    <td width="38%" height="31">
    </td>
    <td width="62%" height="31">
    <div align="center"><%= balance %></div>
    </td>
         </tr>
    <%
         AccountRemote kumar = home.create("199", "kumar", 0.00);
         kumar.credit(14000);
         AccountRemote xyz = home.findByPrimaryKey("199");
         xyz.debit(200.00);
         balance = xyz.getBalance();
    %>
         <tr>
    <td width="38%" height="31">
    </td>
    <td width="62%" height="31">
    <div align="center"><%= balance %></div>
    </td>
         </tr>
    <%}
    catch(Exception ex)
         System.err.println("Caught an exception." );
    ex.printStackTrace();
    %>
    after deployed this JSP file and executed as
    http://localhost:8000/project/person/Show.jsp
    it displays error as follows
    unable to find AccountRemote,AccountHome,findByPrimaryKey
    How could deploy JSP along with EJB?.
    pls any one tells steps to be followed while Deploying EJB/JSP.
    with thanks
    vijay

    Hmmmm...
    ssniazi does nothing but ask for contact information or recommend Oracle products.
    Based on this I consider it likely that this person is some sort of sales representative either directly or indirectly associated with Oracle.
    I personally wouldn't provide any contact information to this person. Nor would I accept any advice until this person starts to actually provide some solutions or at least correctly reveals any financial interests that they might have.

  • Writing Files Access Denied JSP+IAS+W2K

    Hi.
    I'm trying to write a file from a JSP to a mapped share unit between a W2K Server (i: as mapped unit) with IAS and a W2K Server with Oracle (c:\loadDir as deposit unit which is mapped by the IAS server) . I already bring all security grants but when the JSP tries to write to the I: unit it answer "access denied".
    both machines are in the same workgroup but not inside a domain.
    tks for the help.

    I finally find the solutions in a TAR published in metalink. The problem is that the service of IAS runs as a user SYSTEM, this user don't have permissions on the other machine to write.
    The solution is to make the service to start as another user that as the enough permissions to write.
    hope this help some one else.

  • EJB + Jdeveloper Error ()

    I deploy a EJB to ORacle 8i 8.1.5 when I try to connect show me the next message...
    System Output: log3: [Root exception is java.lang.ClassNotFoundException: acmevideo.ejb.server.TitleQueriesEJBHomeHelper]javax.naming.NamingException: Unknown reasons
    System Output: log3: at oracle.aurora.jndi.sess_iiop.SessionCtx._activate(SessionCtx.java:81)
    System Output: log3: at oracle.aurora.jndi.sess_iiop.SessionCtx.activate(SessionCtx.java:304)
    System Output: log3: at oracle.aurora.jndi.sess_iiop.ServiceCtx.lookup(ServiceCtx.java:330)
    System Output: log3: at oracle.aurora.jndi.sess_iiop.sess_iiopURLContext.lookup(sess_iiopURLContext.java:232)
    System Output: log3: at oracle.aurora.jndi.sess_iiop.sess_iiopURLContext.lookup(sess_iiopURLContext.java:218)
    System Output: log3: at javax.naming.InitialContext.lookup(InitialContext.java:276)
    System Output: log3: at acmevideo.ejb.client.TitleQueries_EJBClient.<init>(TitleQueries_EJBClient.java:69)
    System Output: log3: at acmevideo.MidTierFactory.getTitleQueries(MidTierFactory.java:98)
    System Output: log3: at acmevideo.html.WebApp.<clinit>(WebApp.java:62)
    System Output: log3: at acmevideo.servlet.WebAppServlet.doGet(WebAppServlet.java:78)
    System Output: log3: at javax.servlet.http.HttpServlet.service(HttpServlet.java:715)
    System Output: log3: at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
    System Output: log3: at oracle.lite.web.JupServlet.service(JupServlet.java:128)
    System Output: log3: at oracle.lite.web.AppServletHandler.handle(AppServletHandler.java:81)
    System Output: log3: at oracle.lite.web.JupApplication.service(JupApplication.java:236)
    System Output: log3: at oracle.lite.web.JupAppHandler.handle(JupAppHandler.java:81)
    System Output: log3: at oracle.lite.web.HTTPServer.include(HTTPServer.java:129)
    System Output: log3: at oracle.lite.web.HTTPServer.forward(HTTPServer.java:90)
    System Output: log3: at oracle.lite.web.HTTPServer.handleRequest(HTTPServer.java:234)
    System Output: log3: at oracle.lite.web.JupServer.handle(JupServer.java:440)
    System Output: log3: at oracle.lite.web.JupHTTPListener$JupHTTP.run(JupHTTPListener.java:140)
    Source breakpoint occurred at line 178 in file E:\Samples\acmevideo\MidTierFactory.java.
    " this message is in console of jdeveloper.
    can any body say me what happend with this_
    thank you very much.
    [email protected]
    null

    You have to include XXXXEJBClient.jar which is created during the deployment of the EJB. In your case it should be something like TitleQueries_EJBClient.jar.
    Add it to the classpath of the client application which is connecting to the EJB.
    Good luck.
    Remi
    null

  • How to propagate JSP-Container-Login and EJB-Lookup?

    I think I have a very common problem which should be solved by multitudes of developers, but still I can't find sufficient info how to solve it. Here is my problem:
    - My App consists of 2 different EARs, one Web-EAR and one EJB-EAR
    - The Webapp uses digest authentication through web.xml security-constraint
    - Currently both EARs are using xml-based security-provider (jazn)
    - Any user has to log in to the webapp (this works)
    - the webapp delegates business-logic to EJB3 stateless SessionBeans
    - as long as I hardcode principal and password on the creation of the InitialContext, the authentication on the EJB-container works also fine
    - what I need is a propagation of the logged in webapp user to the EJB-container
    - I switched on subject-propagation as described in OC4J security guide chapter 18
    The problem: The propagation doesnt seem to work as expected. I still have to use (hardcoded) user/password credentials upon InitalContext-creation.
    - How can I reassure that subjectpropagation is switched in?
    - How do I have to instantiate the InitialContext in order to use propagation?
    This is what I do now:
    Properties p = new Properties();
    p.put(Context.INITIAL_CONTEXT_FACTORY, "oracle.j2ee.rmi.RMIInitialContextFactory");
    p.put(Context.PROVIDER_URL, ormi://localhost:23791/EJB-EAR);
    p.put(Context.SECURITY_PRINCIPAL, "myuser");
    p.put(Context.SECURITY_CREDENTIALS, "mypassword");
    Context = new InitialContext(p);
    When loggin into the web-container, the password of the logged-in user is not accessible anymore. Because of that I thought automatic subject-propagation shouold solve my problem. Did I misunderstood the concept of subjectpropagation (using ORMI)

    So far I have achived the following, but my problem is not really solved:
    As long as I use EJBs within the same EAR of my webapp everthing is fine.
    No need to proved credentials with the instantiation of the InitialContext. Also subject-propagation is not needed.
    At the moment I split ejb and webapp into separate EAR on the same OC4J-instance, I have to use the RMIInitialcontextFactory, to get acces to the EJBs at all. Subject-Propagation is obviusly on, because without the call of Subject.getSubject(AccessController.getContext) delivers null!
    So the remaining question is, how do I initiate the subject-propagation over RMI? Is there a special name under which I have to put my subject? Do I have to execute the actual ejb-method-call by subject.doAs.. and thus have to provide a wrapper for my EJB as a ProtectedObject?
    Anybody?

Maybe you are looking for

  • Customer service regarding credit card mishandling possible credit fraud

    To whom it may concern, On Tue morning I placed a order for a sprint prepaid galaxy s3 and a go pro hero package through the early black friday preview deal.  I had both items in my cart and checked out the go pro package with promo code.  I then imm

  • How can i copy and paste 100 item lines into Purchase order (ME21N) ?

    hi, Can anyone help me to use the copy and paste from Microsoft excel ? 1. i have 100 line items in excel for material item. 2. I copied the 100 lines in excel and paste into PO creation transaction code ME21n line items. 3. In one shot, i only succe

  • How to display selectManyCheckbox in a table ?

    hi, i have a problem with selectManyCheckBox. i have list in my bean and in that i have selectItem objects. but when i displaying in the screen the whole objects are displaying in a pageDirection or lineDirection.(in one line --- one by one). This li

  • Delete personal domain from iWeb

    now that .mac moved to .me when ever i post a site it publishes to the personal domain that is listed in my profile but i don't want it published there but rather to the automatic url that mac provides (i.e. http://web.mac.com/username/Site...) how d

  • Howto run a script in the idle task

    Hi all, I successfully wrote and executed an idle task routine that periodically executes a simple method. now i need to add a functionality to that method so that it executes a simple javascript. here is my code: uint32 myTestIdleTask::RunTask(