JSP + AppModule to OAS

Hello.
I have created a JSP Application Project and and Application Module that I run on JDeveloper's built-in JVM. I have a connection to an Oracle 7.3.4 database nearby. Now I wish to deploy both the Application Module and the JSP project to the OAS I have setup on my computer.
How do I do this?
I've used some pre-built Oracle Web Beans and I've created some myself that calls methods on the AppModule. I use code similar to the one below to call my method.
rs = getRowSet();
ViewObject vo = rs.getViewObject();
TimePackage.TimeViewImpl theView = (TimePackage.TimeViewImpl) vo;
this.time = theView.getTime();
Question is if this will work after deployment and will the pre-built web beans work?
When you create the JSP Application Project, you can only choose wether the AppModule is deployed as a stored procedure on Oracle 8i or not. But I want it on my OAS... ;)
Please help...
/Janne
null

There are two parts to the deployment of a BC4J JSP Web App: the deployment of the BC4J application module, and the deployment of the JSP Web Application client.
With OAS, you can deploy your Bc4J application module as an EJB Session Bean, or you can deploy it locally. Both methods are documented in the online help system. Local mode is the easiest way to go. For an EJB Session Bean, only OAS 4.0.8.2 is supported with JDev 3.1.
Before you deploy your BC4J JSP web application, make sure that the ConnectMode setting in your applicationmodule.properties file is set to match the deployment method you chose for your BC4J app module. This setting in this file determines how the JSP app talks to the BC4J app module.
So, if you will deploy your BC4J app module locally to the web server, then you want:
ConnectMode=Local
If you decide to deploy your BC4J app module as an EJB session Bean to OAS, then you want:
ConnectMode=EJB
If you want to deploy in local mode, just create a simple archive for your BC4J project that contains all the .class, and .xml files, the .jpx file and connection.properties.
For your JSP web app, follow the instructions in the online help. When you put everything on the webserver, make sure the path to the BC4J project .jar file and all of the supporting archives is in the classpath for the webserver.
The JSP files, cascading style sheets, and images should be in your webserver doc root.

Similar Messages

  • Problem running JSP program on OAS 4.0.8.1 with JSP patch

    Hi all
    I've been running a JSP application on OAS 4.0.8.1 for a month now, but a week ago, when I updated a Java package on the server, the application will no longer run. The simple JSP pages with no bean-tags runs fine, but the ones with bean-tags doesn't work anymore.
    This is the error message:
    Request URI:/jsp/sag/login.jsp
    Exception:
    java.lang.VerifyError
    at java.lang.ClassLoader.resolveClass(Compiled Code)
    at oracle.jsp.app.JspClassLoader.loadClass(Compiled Code)
    at java.lang.ClassLoader.loadClass(Compiled Code)
    at oracle.jsp.app.JspAppLoader.instantiatePage(Compiled Code)
    at oracle.jsp.app.JspAppLoader.reloadPage(Compiled Code)
    at oracle.jsp.app.JspAppLoader.loadPage(Compiled Code)
    at oracle.jsp.app.JspAppLoader.getPage(Compiled Code)
    at oracle.jsp.app.JspApplication.dispatchRequest(Compiled Code)
    at oracle.jsp.JspServlet.doDispatch(Compiled Code)
    at oracle.jsp.JspServlet.service(Compiled Code)
    at javax.servlet.http.HttpServlet.service(Compiled Code)
    at oracle.OAS.servlet.servletrunner.exec(Compiled Code)
    I've read on java.sun.com that verifyerrors normally is due to bad package-files, but I've rebuilt the package at least 10-times now, so thats probably not it. What could it be?
    The application runs fine in JDeveloper 3.1
    Thanks on advance,
    Christian Holm

    Hi,
    I am trying to run JSPs on OAS 4.0.8.1.
    I have installed JSP patch, downloaded form olab.com
    I am not able to execute JSPs. I am getting 2 different problems.
    1. If I call the JSP directly from browser, Netscape will ask for save option, it won't execute.
    2. If I call the JSP from another page with submit button, I am getting the following error :
    The requested access method is not allowed for that object.
    Same error for any JSP.
    The same problem for all the samples available with JSP patch.
    Hi chrholm,
    I already tested for 1 month, so
    could you please help me to configure OAS 4.0.8.1 for JSPs.
    Could you please send me mail : [email protected]
    Any help appreciated.
    Thanks,
    Naidu
    null

  • Deployment for JSP Application on OAS 4.0.8.2

    Hi,
    I would appreciate, if someone could share its experience of deploying the JSP application which utilizes certain JavaClasses for database access and businesslogic.
    My question is that do we need to add JSP files or .java files created under the myprojects directory. Also where do we place the java classes.
    Also, do I need to get my classpath settings in the environment variables for JSP's to run. Because my WinNT crashed twice on changing the env settings.
    Any help shall be appreciated
    Thanks

    Hi ,
    As u had said in the previous mail... I also have lot of basic doubts. Let us share them..
    What do u mean by a JSP cartridge... Should i download it or something...
    Regards,
    Ganesh R

  • JSP / OAS 4.0.8.1 /JDeveloper / Oracle8i

    Hello:
    Has anyone sucussfully ran a JSP with OAS 4.0.8.1 on Jdeveloper 3.0 connecting to Oracle8i database.
    We are running sucesfully on Client in Jdeveloper 3.0 using snippet.
    The same program on JSP is giving Null pointer Exception.
    Is JSP supported in OAS 4.0.8.1 at all.
    All input will be greatly appreciated.
    Thanks in Advance

    Yes JSP is supported in OAS 4.0.8.1.
    My team has successfully used JDeveloper 3.1 to develop and deploy JSPs to OAS. There are a few things to look out for when formatting the output.
    I am happy to share more specific detail with you. Email me at [email protected]

  • JSP 2.0 on OAS 10g R2 (10.1.2.0.2)

    I am wondering if it is possible to update the JSP spec of OAS to use 2.0 instead of 1.2. We were starting to develop on 10.1.3 but had to push back to the lower version because of customer requirements. I was wonder if there was a way to do this to lessen the impact of switching to Release 2. Thanks for any input.

    Hello,
    Your customer is right OracleAS Portal is currently running on OracleAS 10.1.2, and you need to install it.
    But it is totally supported to have OracleAS 10g R3 (10.1.3) as part of the same topology (sharing the same OHS and Web cache, and be managed by the OPMN). This will allow you to have OracleAS Portal running in a J2EE 1.3 container and in the same time develop and deploy J2EE 1.4 application in 10.1.3, leveraging the scheduler, JSP 2.0 and more.
    You can also deploy your portlet in OracleAS 10.1.3 and register them into a 10.1.2 Portal.
    I am inviting you to read the "Oracle® Application Server Upgrade and Compatibility Guide"
    Let me know if you have any question, since we have especially work on the compatibility between release to provide this flexibility.
    Regards
    Tugdual Grall

  • Is OAS 4.0.8 supports JSPs?

    Hi We have ordered for Oracle Application Server 4.0.8. But website says JSPs in future versions.
    I have already finished my project developed using JSPs. Now it is time to move my project to production.
    Please let know whether OAS 4.0.8 supports JSPs or not. I can cancel my order if it doesn't support JSPs.
    Thanks in advance,
    Naidu
    [email protected]

    Officially (as of version 4.0.8.1) no, but unofficially yes. There is a beta JSP patch for OAS 4.0.8.1 that you can download at www.olab.com, which creates a JSPServlet application and uses that servlet to handle JSP requests. As far as I know it is very robust and of production quality, although it has not been officially rolled out yet. You need to get UID/PWD for the download area from the JSP Team.
    Eric Ma

  • Deploy JSP in OAS

    Hello,
    I have a JSP developed in JDeveloper to initiate a BPEL process, what I have read is that I have to deply the JSP using obant in the bpel server, can I deploy the jsp in the OAS server so I can run it there and start the BPEL process there? and if I can do that how can I do it?
    Thanks

    Hi! now we can help you better!
    First, you need to create a simple folder structure to make the deploy of the jsp. A jsp file should be part of a Web App, you can build an entire Web App but this is not the case.
    Go to this path ORACLE_HOME\bpel\samples\hw\worklistapp, this is the worklist application, you can use a folder structure like that, your jsp file should be in the public_html folder, but you need the application.xml, the build.xml and other files, you can copy the worklistapp folder and work in it, delete the files you will not use, like servlets, libraries. and go to this thread:
    Please Please Help with worklist in SOA Suite!
    in this thread is explained how to change the build.xml and the properties files to deploy the worklistapp, and is the same procedure for you, use the information you need, the build.xml edition, the edition of the properties files and the location of the libraries. the threads explain a lot of more things you will use when customizing the worklistapp!!!
    Use ant not obant, obant is deprecated.
    hope this help!
    best regards and blesses!

  • OAS and JSP Application Events

    I installed the JSP patch to OAS 4.0.8.1. I am not able to run Java Server Pages. Whenever I try, I get an "Internal Server Error" message. I also get around 8 event log enteries per request. The following undocumented oracle errors occur.
    OWS-04764
    OWS-04517
    OWS-04512

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by sanjay pandey ([email protected]):
    Hi Maire,
    According to U Jsp sample runs fine i IDE, but it creat problem in deployement time. U have to configure OAS at the installation time using system Manager Wizard for managing
    the dlls( selecting jsp scripting files from src folder)to make it visible at its port address.
    <HR></BLOCKQUOTE>
    null

  • JSP with PL/SQL Cartridge

    I have installed OAS 4 and JavaServer Web Development Kit
    Version 1.0 in one PC and with o8i in another PC.
    I've got problem in linking a PL/SQL cartridge, which will
    return a small page, with my jsp.
    I've got no problem if I run the jsp under the OAS while the
    small page can't be retrieved if I run the jsp on other PC.
    Syntax of my jsp for including plsql cartridge :
    <IFRAME ID=IFrame1 title="Testing" FRAMEBORDER=1 SCROLLING=auto
    SRC="http://hkg-wsn-1014/plsql/current_users"></IFRAME>
    where
    http://hkg-wsn-1014/plsql/current_users is my plsql cartridge
    and
    http://hkg-wsn-1014:7070 is the entry point for jsp server
    Can anyone help ?
    Rgds,
    Edward
    null

    The resule is similar to you can't reach the site.
    I've got no problem if I install the OAS 4 and JavaServer Web
    Development Kit in separate machine.
    How can I solve it ?
    Rgds,
    Edward
    Oracle Java Technical Team wrote:
    : Please provide more information. Do you get back a response
    : to the JSP page or just a standard error message?
    : Edward (guest) wrote:
    : : I have installed OAS 4 and JavaServer Web Development Kit
    : : Version 1.0 in one PC and with o8i in another PC.
    : : I've got problem in linking a PL/SQL cartridge, which will
    : : return a small page, with my jsp.
    : : I've got no problem if I run the jsp under the OAS while the
    : : small page can't be retrieved if I run the jsp on other PC.
    : : Syntax of my jsp for including plsql cartridge :
    : : <IFRAME ID=IFrame1 title="Testing" FRAMEBORDER=1
    SCROLLING=auto
    : : SRC="http://hkg-wsn-1014/plsql/current_users"></IFRAME>
    : : where
    : : http://hkg-wsn-1014/plsql/current_users is my plsql cartridge
    : : and
    : : http://hkg-wsn-1014:7070 is the entry point for jsp server
    : : Can anyone help ?
    : : Rgds,
    : : Edward
    null

  • Where is OAS 4.0.8

    All the examples of the jdev 3.0 docs are developed for oas
    4.0.8 where i can download this version, all that i can find is
    oas 4.0.7 ....
    Regards , Nacho
    null

    Officially (as of version 4.0.8.1) no, but unofficially yes. There is a beta JSP patch for OAS 4.0.8.1 that you can download at www.olab.com, which creates a JSPServlet application and uses that servlet to handle JSP requests. As far as I know it is very robust and of production quality, although it has not been officially rolled out yet. You need to get UID/PWD for the download area from the JSP Team.
    Eric Ma

  • OAS 4.0.8

    How can I use JSP with OAS 4.0.8 and the JServ cartridge.
    null

    How can I contact jsolomon? [email protected]?
    Regards,
    Jean-Philippe Doucet
    Oracle Java Technical Team wrote:
    : You have to upgrade to OAS 4.0.8.1 to use the JSP
    : implementation. The Oracle JSP implementation can
    : also be obtained from www.olab.com. The download
    : from www.olab.com provides installation scripts
    : and samples for using JSP within OAS.
    : Currently www.olab.com JSP download is password
    : protected. Please contact jsolomon to obtain access.
    : Karl P. Traar (guest) wrote:
    : : Crille (guest) wrote:
    : : : How can I use JSP with OAS 4.0.8 and the JServ cartridge.
    : : I feel that there is no way to use Oracle JSP (ojsp) with OAS
    : : 4.0.8. ojsp works fine for me with Apache 1.3.9 and Jserv
    1.1b3
    : : on NT on Solaris. It also works with the JSWDKK Web Server,
    but
    : : what about OAS? Could someone at Oracle answer this question?
    : : My neighbour department is presenting a demo with JSP and
    JRUN
    : : tomorrow. I am using OAS and I would need JSP with OAS, say
    : next
    : : week. Please help ?
    null

  • Changing language to OAS

    Hello! I have successfully deployed a jsp application to oas 4.0.8.2 but when I'm trying to insert a new record in greeks(I'm from Greece), when I do commit I get ?????.
    In the database(8.1.6) it is saved this way too! If I do it from web-to-go web server(the default web-server of jdev) there is no problem!If a record in Greeks is already inserted, it shows fine to OAS! How can i fix that? thanks in advance!

    is it a matter of going to the optional installs and selecting the packages?
    Yes. The instructions related to how to do that with a DVD, which was somehow different than with a CD, but I no longer remember how.

  • Error in my jsp pages

    Hi,
    Well, I4ve installed my jsp application in OAS. The application works fine, except for one function that gives me this error:
    Request URI:/paa/jsp/Atividade.jsp
    Exception:
    java.lang.NoSuchMethodError: java.lang.Double: method parseDouble(Ljava/lang/String;)D not found
    The strange thing is I use other similar methods like parseInt(String) and nothing happened.
    Can anyone help me?
    Thanks in advance,
    Mamra

    Maira,
    The Double.parseDouble(String) method is available only in JDK1.2 . Unfortunately OAS does not support JDK1.2.
    You might want to try using valueOf(String s):
    (JavaDoc for Double)
    parseDouble
    public static double parseDouble(String s)
    throws NumberFormatException
    Returns a new double initialized to the value represented by the specified String, as performed by the
    valueOf method of class Double.
    Parameters:
    s - the string to be parsed.
    Returns:
    the double value represented by the string argument.
    Throws:
    NumberFormatException - if the string does not contain a parsable double.
    Since:
    JDK1.2
    See Also:
    valueOf(String)
    Regards,
    Arun
    null

  • Simple JSP

    Hi gurus,
    I'm trying to run a small JSP page on OAS, which displays the date and time.
    For this my code is :
    Hello World !!! Today is <%=new java.util.Date()%>. Have a nice day! :-)
    When I run it from the OAS server, the browser displays :
    Hello World !!!
    Today is <%=new java.util.Date()%>. Have a nice day! :-)
    It does not seem to understand the JSP tag and treats it as part of HTML.
    Have I got any settings wrong with OAS ?
    Please help.
    Thanks and regards,
    Aditya
    Message was edited by:
    user512453

    Aditya,
    Using OC4J stand-alone 10.1.3.0.0 on Windows XP with JDK 1.5.0_07, I create a file "simplest.jsp" as follows:
    &lt;html>
      &lt;head>
        &lt;title>Simplest JSP&lt;/title>
      &lt;/head>
      &lt;body>
        &lt;h1>Simplest JSP&lt;/h1>
        Hello World !!!
        Today is &lt;%=new java.util.Date()%>. Have a nice day! :-)
      &lt;/body>
    &lt;/html>And put it in the following subdirectory of my OC4J installation:
    j2ee/home/default-web-appThen I have no trouble displaying it when I point my Web browser to the following URL:
    http://localhost:8888/simplest.jsp[Since OC4J is running on my local PC.]
    Hope this helps you.
    Good Luck,
    Avi.

  • Installing OJSP on OAS 4.081

    What do I have to do to install ojsp.jar
    on OAS 4.081. Please remember my low IQ.
    OS

    I got JSP running on OAS 4.081.
    Here is what I've done:
    -Load down the file ojsp.zip from technet.oracle.com
    -Copy ojsp.jar to your Webserver
    -Merge jservlet.jar from JDeveloper
    to jservlet.jar found on your Webserver(Web_Home)
    (You need to merge javax.servlet.jsp)
    -Create a Servlet-Application in OAS
    named "JspServlet"
    -Add a Cartridge named "JspServlet"
    The physical path points to the directory
    of your *.jsp files
    The virtual path is for example "/myApp"
    -In "Enviroment Variables" add to "classpath"
    the path to your copy of ojsp.jar
    -In "Java Enviroment" add the parameter
    "DELEGATE_SERVLET_CLASS" with "oracle.jsp.JspServlet"
    -Reload your OAS
    -Now you can browse to
    http://your.webserver/myApp/test.jsp

Maybe you are looking for

  • The difference between the bubble and the panel

    I just experienced another reason why I hate the bubble instead of the drawer/panel, besides the whole data entry thing. I had the calendar on my smaller 20" monitor on my right - I use my 30" monitor for the nuts and bolts of my work. The calendar w

  • How do i autorise music from iPod to iMac?

    put music from ipod to new imac and don't know how to autorise it

  • How can I get a low resolution audio file?

    Hello to all. I have recently upgraded my iTunes to 11.0.03. I remember being able to create a new audio file of specifications offered by the menu in iTunes. My present requirement is to make a low quality MP3 file of an existing higher quality file

  • Dealer Portal

    Hi, How to Start with dealer Portal ? I know what is to be done at Portal side but dont know about SPRO settings . Is there any special authorisation required for the users of Portal ? What else I should keep in mind ? Regards, Sanjay

  • Business place and section code to be made mandatory for EWT purpose

    Dear Sir/Madam, We want to make Business place and Section code mandatory for EWT purpose in all the Transaction codes. Kindly suggest us how the same can be made mandatory in all the transaction codes. Regards Prashant P.Zinge