OC4J JSP SAMPLE

Dear Sir/Madam,
Can i deploy/run jsp page of oc4j jsp sample on tomcat server ?
Best regards
boris

Hi Boris,
The JSP samples were developed for OC4J. They include some samples that use EJB's(Enterprise Java Beans) which you cannot run under Tomcat. Also, there are some samples that demonstrate the use of OC4J JSP utility tag libraries and javabeans which need OC4J JSP libraries.
We would suggest that you deploy these samples under OC4J which comes packaged with the required libraries. You can download OC4J from the following location:
http://otn.oracle.com/software/products/ias/devuse.html
Regards,
Srinivas

Similar Messages

  • OC4J JSP Error compiling

    Using: OC4J Standalone, JDK 1.4
    Servelets work OK but JSPs fail to compile. Is this a problem using JDK1.4 (and if so is it possible to tell OC4J to use a lower version)
    Thanks
    The error (running the OC4J Date sample http://localhost:8888/examples/jsp/dates/date.jsp):
    500 Internal Server Error
    OracleJSP: oracle.jsp.provider.JspCompileException:
    Errors compiling:C:\oc4j_extended\j2ee\home\application-deployments\default\defaultWebApp\persistence\_pages\_examples\_jsp\_dates\_date.java
    error: Invalid class file format in c:\j2sdk1.4.0_01\jre\lib\rt.jar(java/lang/Object.class). The major.minor version '48.0' is too recent for this tool to understand.
    C:\oc4j_extended\j2ee\home\application-deployments\default\defaultWebApp\persistence\_pages\_examples\_jsp\_dates\_date.java:0: Class java.lang.Object not found in class com.orionserver.http.OrionHttpJspPage.
    package examples.jsp._dates;
    ^
    2 errors

    Ahhh after experimenting I realized what happened:
    1.) The search does not look for words in the Title (only looks in the Body)
    2.) The search does not look for occurances of words if they appear anywhere in the doc but rather only for exact phrase.
    So for the doc you gave me (http://forums.oracle.com/forums/message.jsp?id=767439) here is a test:
    [Search phrase] [did the doc come up?] [comment]
    [oc4j doesn't compile JSPs with JDK 1.4?] [no] [the doc title]
    [JSPs shipped with oc4j] [yes] [exact phrase in body]
    [JSPs shipped oc4j] [no] [words in body but not exact phrase]
    OK I have way to much time on my hands I see -- he he ... but I'm just putting this info out (respectfully of course) just so the forum owner will have the info so maybe he/she might want to change way search is done (add title, etc).
    Best regards
    Matt

  • Are Oracle Java Serlet and JSP samples working in Oracle9i?

    Oracle web site provides many good Servlet and JSP samples. All
    the instructions talk about Oracle8i. Does anybody know for sure
    they are working under Oracle9i or not?
    Thanks!
    H.

    OTN has sample applications that demonstrate a range of JSP techniques, from basic to advanced. OTN provides two versions of the samples: one version is built to the Servlet 2.0 specification and runs under Oracle9iAS-JServ or JDeveloper, the other verion is built to the Servlet 2.2 specification and runs under the Oracle Servlet Engine (OSE) built into the Oracle8i database or the mod_ose module of Oracle9iAS.
    Regards,
    -rh

  • BUG in jsp sample: m-m relation error

    When I run the jsp sample of Kodo 2.3.2 with non-flat-inheritance-mapping,
    and manullay inerted a row to table RABBIT_CHILDRENX, error occurred as
    the following: (rab1 has two children, including itself! and vice versa
    for rab2)
    Name Price Type Details
    Delete rab1 3.0 samples.jsp.petshop.Rabbit Rabbit rab1 (male) sells for
    3.0 dollars. parents: [Rabbit rab1 (male); eaten by Snake snake1; ate 2
    rabbits.; has 0 children., Rabbit rab2 (female); eaten by Snake snake1;
    ate 2 rabbits.; has 2 children.] children: []
    Delete rab2 3.0 samples.jsp.petshop.Rabbit Rabbit rab2 (female) sells for
    3.0 dollars. parents: [] children: [Rabbit rab1 (male); eaten by Snake
    snake1; ate 2 rabbits.; has 0 children., Rabbit rab2 (female); eaten by
    Snake snake1; ate 2 rabbits.; has 2 children.]
    2 animals found.

    This has been resolved in 2.3.4, and a fix will be available in 2.4.0 b2.
    -Patrick
    In article <an8r03$gid$[email protected]>, Sun Bin wrote:
    When I run the jsp sample of Kodo 2.3.2 with non-flat-inheritance-mapping,
    and manullay inerted a row to table RABBIT_CHILDRENX, error occurred as
    the following: (rab1 has two children, including itself! and vice versa
    for rab2)
    Name Price Type Details
    Delete rab1 3.0 samples.jsp.petshop.Rabbit Rabbit rab1 (male) sells for
    3.0 dollars. parents: [Rabbit rab1 (male); eaten by Snake snake1; ate 2
    rabbits.; has 0 children., Rabbit rab2 (female); eaten by Snake snake1;
    ate 2 rabbits.; has 2 children.] children: []
    Delete rab2 3.0 samples.jsp.petshop.Rabbit Rabbit rab2 (female) sells for
    3.0 dollars. parents: [] children: [Rabbit rab1 (male); eaten by Snake
    snake1; ate 2 rabbits.; has 0 children., Rabbit rab2 (female); eaten by
    Snake snake1; ate 2 rabbits.; has 2 children.]
    2 animals found.
    Patrick Linskey [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • JSP Sample Application

    We installed the SQLTAGLIB application from JSP sample application publish on TECHNET.
    Compiled and Run it successfully.
    Now we are trying to develop some Page using
    sqltaglib.tld but while compiling,
    on this line
    <%@taglib uri="sqltaglib.tld" prefix="sql" %>
    get this error message
    [ Start of root element ]
    pl. give the solution.
    Thanks
    null

    Here is some info from the docs:
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Note the following requirements for using SQL tags:
    Install the file ojsputil.jar and include it in your classpath. This file is provided with the OracleJSP installation.
    Make sure the tag library description file, sqltaglib.tld, is deployed with the application and is in the location specified in the taglib directives of your JSP pages, such as in the following example:
    <%@ taglib uri="/WEB-INF/sqltaglib.tld" prefix="sql" %>
    For general information about JSP 1.1 tag library usage, including tag library description files and taglib directives, see "Standard Tag Library Framework".<HR></BLOCKQUOTE>
    Please post follow-ups in the OTN Sample Code forum.
    Thanks,
    -rh
    null

  • OC4J JSP Debugging not working for all the jsps

    Hi,
    Initially I was not able to debug jsps using Eclipse and OC4J. The jsp debugging started working once I made the below changes:
    1) global-web-application.xml is modified
    Changed the attribute development="true" in orion-web-app
    Added the below init param for the JspServlet
    <init-param>
    <param-name>debug</param-name>
    <param-value>class</param-value>
    </init-param>
    If the jsps are present in a sub directory under the webcontent none of the breakpoints are working. I am still be able to view the jsp pages on the browser.
    Tools: Oracle 10g Application Server Standalone version(10.1.3.5.0), JDK5, Windows XP, Eclipse Indigo
    Project Structure:
    Test (Eclipse Dynamic Web Project)
    -WebContent
    Sample.jsp ( Breakpoints are working)
    -subF (Folder)
    SubSample.jsp (Breakpoints are not working)
    -WEB-INF
    web.xml
    Debugging worked for http://localhost:8888/Test/Sample.jsp
    Debugging not working for http://localhost:8888/Test/subF/SubSample.jsp
    Any help is highly appreciated.
    Regards
    Danny

    This tells there is not enough main memory (not disk space) for the program to run.
    - You can look the dump in ST22, it will have suggestions on increasing the ROLLAREA??, you can forward that to Basis.
    - Most likely you will not have any more memory to assign so the above may not be feasible. Try to rework your query so it works with less data.

  • Problem setting up OJSPSAMPLES (JSP SAMPLES)

    Hi all,
    I was trying to get the OJSPSamples to work but came into some problems.
    I followed the instructions as documented in the installation page. When I type http://localhost:8888/ojspsamples, it does not work. In order for it to work I have to place the folder and ear file in the default-web-app and get to it using the following : http://localhost:8888/ojspsamples/ojspsamples-web/HelloUser/HelloUser.jsp (which works fine)
    Has anybody had any similar problems?? Ideally I would like to be able to access the jsp using the first method (http://localhost:8888/ojspsamples).
    Thanks in Advance
    Frank

    Hi Frank,
    We don't face any problems with installing the samples and accessing it using the url : http://localhost:8888/ojspsamples. Could you please check the following :
    => make sure that you have followed all the instructions in the install document
    => check if the entries made in the http-web-site.xml and server.xml files are not commented i.e not within tags <!-- --> in which case it won't take effect.
    => delete the ojspsample.ear file under the applications directory and re-copy it. Then, re-start the OC4J server to see if the ear gets deployed while startup.
    Hope that helps. In case you face further problems please let us know the OC4J version you are using and the error you get while accessing the application URL.
    Thanks,
    Srinivas
    IDC OTN Team.

  • PUBLISHING OC4J JSP as web portlet

    I have developed a JSP page in OC4j and want to publish this page on portal 3.0.9 as web portlet. I have created web provider and registered this page as portlet. When I view the portlet it comes as a Blank Page.
    Can anyone tell me how to publish a JSP page developed in OC4J as a web portlet? Can I publish JSP web pages developed in OC4J as web portlet without modifying any JSP code?
    I have installed all JPDK samples and they are working fine.
    Regards

    Here is what we are forced to do, because V2 has had a great delay in the time scheduling.
    Hope it helps. Anyone better ideas?
    Michael.
    ------------8<----------------8<----------------8<-----------
    1. use mod_proxy in httpd.conf
    <IfModule mod_proxy.c>
    ProxyRequests On
    ProxyPass /pof/ http://localhost:7779/pof/
    ProxyPassReverse /pof/ http://localhost:7779/pof/
    </IfModule>
    2. create JSP under JServ, use hidden fields to transfer parameter
    <%
    try{
    PortletRenderRequest portletRequest = (PortletRenderRequest) request.getAttribute(HttpPro
    vider.PORTLET_RENDER_REQUEST);
    ProviderUser pUser = (ProviderUser) portletRequest.getUser();
    String vUser = pUser.getName();
    if ( !vUser.equalsIgnoreCase("PUBLIC") )
    %>
    <input type="hidden" name="user" value="<%= vUser %>">
    <%
    3. in the action-Tag, use the mapped URL to connect to OC4J
    <form action="/pof/ ....

  • Where can I find a JSP sample app?

    Folks,
    I 've been searching for hours for a simple sample jsp application that uses beans to interact with a database and has add, edit, delete functionality. I'm sure their are oodles of them out there somewhere but it's proving a nightmare trying to find one. If anyone can point me at an example I'd much appreciate it.

    Cross post
    http://forum.java.sun.com/thread.jspa?threadID=622869&tstart=0

  • New JSP Sample Apps

    New sample applications demonstrate a range of JSP techniques, from basic to advanced. OTN provides two versions of the samples: one version is built to the Servlet 2.0 specification and runs under Oracle9iAS-JServ or JDeveloper, the other verion is built to the Servlet 2.2 specification and runs under the Oracle Servlet Engine (OSE) built into the Oracle8i database or the mod_ose module of Oracle9iAS.
    Some samples require the Travel Schema, which populates the database with information about hotels, rooms, and reservations. You can download it from OTN.
    Enjoy,
    -rh
    null

    Hi Alain,
    The ConnectionPooling mechanism is very useful on the middle-tier for improving the performance. It may not show improvement in performance when running inside the database since there is no overhead of establishing a connection.
    We have included the above note in the Readme file of the OSE version for clarification. We have included the sample just to demonstrate using the feature on the server side.
    Second question, if the bean is running on
    mod-OSe of IAS not in the database, can you
    use also kbrb?Actually, mod_ose acts as a conduit from Apache to the OSE. Even in the mod_ose version, the sample still runs in the Database OSE and hence using kprb driver.
    Using mod_ose to access OSE has advantages. Please refer to the following links which talks more on OSE/mod_ose.
    1. Oracle Servlet Engine User Guide - In this, Chapter 5 has specific details on mod_ose : http://technet.oracle.com/docs/products/oracle8i/doc_library/817_doc/java.817/a83720/introduc.htm
    2. Support for Oracle Jsp in different Oracle Environments : http://technet.oracle.com/docs/products/oracle8i/doc_library/817_doc/java.817/a83726/orajspo2.htm
    Hope that helps,
    Srinivas.

  • BC4J; OC4J;JSP;JD323 - deployment on Solaris 2.6

    I am trying to deploy a BC4J JSP application to OC4J so that we can take advantage of the SErvlet API 2.2 - our sessions persistent crash on JServ. The so-called guidance on OTN viz
    http://otn.oracle.com/products/jdev/howtos/bc4jdeployment.html
    isn't much use. The BC4J installer is only for Windows; none of the paths match what I have on my Solaris OC4J installation.
    One of my colleagues has got our application working on an Apache/Tomcat configuration. When the OAS desupport was announced last year we debated whether to move to Apache or iAS. We decided to stick with Oracle because it was supported.
    However, when it comes to anything internet, java, jdeveloper, on this side of the pond at least, Oracle support is as much use as a chocolate fireguard, so we are in effect unsupported anyway. We have either resolved all our problems with our own sweat or with guidance from this forum.
    My question is: is there a guide for deploying BC4J to an OC4J installation or Solaris or should we give up on iAS and migrate to Apache?
    This is getting urgent: we have systems that need to go live very soon and we don't yet have a stable web platform.
    TIA, APC

    Mike, do give more details from your install log. Looks like copying of some of the files are not happening.
    Make sure this install is happening into an oracle home by itself.
    Also make sure you have applied all of 2.6_Recommended cluster patch from SUN before installing Oracle9iAS.
    Regards
    Pavna Jain
    Oracle9iAS Product Management

  • Please help on kodo-4.0.0RC3 samples/jdo/jsp sample

    I build and deploy this sample on Tomcat successfully,
    and boot a hsqldb database server for it.
    The following is setting of kodo.properities:
    javax.jdo.PersistenceManagerFactoryClass=kodo.jdo.PersistenceManagerFactoryImpl
    javax.jdo.option.ConnectionPassword=
    javax.jdo.option.ConnectionURL=jdbc:hsqldb:hsql://localhost/
    javax.jdo.option.ConnectionDriverName=org.hsqldb.jdbcDriver
    javax.jdo.option.ConnectionUserName=sa
    kodo.LicenseKey=xxx-xxx (valid license)
    The following error happened when I visit petshop:
    Exception thrown by getPersistenceManagerFactory(Properties)
    javax.jdo.JDOFatalUserException: Exception thrown by
    getPersistenceManagerFactor
    y(Properties)
    at
    javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:310)
    at
    javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:254)
    at samples.jdo.jsp.JDOFactory.getPersistenceManagerFactory(Unknown
    Sourc
    e)
    at org.apache.jsp.index_jsp._jspService(index_jsp.java:66)
    at
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
    .java:332)
    at
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
    14)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:252)
    at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:173)
    at
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:213)
    at
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:178)
    at
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:126)
    at
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:105)
    at
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:107)
    at
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
    a:148)
    at
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
    :869)
    at
    org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
    rocessConnection(Http11BaseProtocol.java:664)
    at
    org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
    int.java:527)
    at
    org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
    lowerWorkerThread.java:80)
    at
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
    ool.java:684)
    at java.lang.Thread.run(Thread.java:595)
    NestedThrowablesStackTrace:
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at
    javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:299)
    at
    javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:254)
    at samples.jdo.jsp.JDOFactory.getPersistenceManagerFactory(Unknown
    Sourc
    e)
    at org.apache.jsp.index_jsp._jspService(index_jsp.java:66)
    at
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
    .java:332)
    at
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
    14)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:252)
    at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:173)
    at
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:213)
    at
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:178)
    at
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:126)
    at
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:105)
    at
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:107)
    at
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
    a:148)
    at
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
    :869)
    at
    org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
    rocessConnection(Http11BaseProtocol.java:664)
    at
    org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
    int.java:527)
    at
    org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
    lowerWorkerThread.java:80)
    at
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
    ool.java:684)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.NoClassDefFoundError: javax/transaction/Synchronization
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:242)
    at kodo.kernel.Bootstrap.getFactoryClass(Bootstrap.java:131)
    at kodo.kernel.Bootstrap.getBrokerFactory(Bootstrap.java:85)
    at
    kodo.jdo.PersistenceManagerFactoryImpl.getPersistenceManagerFactory(P
    ersistenceManagerFactoryImpl.java:43)
    ... 28 more
    Please help me to figure out what the root is and slove it?
    Thanks a lot!
    -Joshua

    Caused by: java.lang.NoClassDefFoundError: javax/transaction/Synchronization
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:242)
    at kodo.kernel.Bootstrap.getFactoryClass(Bootstrap.java:131)
    at kodo.kernel.Bootstrap.getBrokerFactory(Bootstrap.java:85)
    at There is the root of the problem. You need the JTA libs in your classpath.

  • Oc4j JMS samples

    hi all
    i need to work on oc4j jms and i tried to download jms samples by searching google
    all links i found are broken at oracle site
    for example in the following link also links are dead http://radio-weblogs.com/0135826/2004/03/23.html
    can anybody have these oc4j samples, please give me some live links
    thanks
    siva k

    Radim Kolek ,
    its not there in OC4J_Production9.0.2 bundle..
    but i can see that in J2EE folder JDeveloper production bundle....
    Cheers
    --Venky

  • Approve or Reject JSP Sample Code

    Hello,
    I need to create a custom jsp to approve or reject a task. This is a Human Task but I don't know the code that I need to include to continue the process and approve or reject the task.
    Can anybody help me?
    Thanks

    Please refer to section "Creating Custom JSP Forms" in the Oracle BPEL Process Manager Developer's Guide available at http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/toc.htm.
    This section has the details creating a custom JSP and also has code sample to fetch the task details. You could also refer to Workflow Service Java API doc at http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28985/toc.htm.
    Hope that helps,
    Sidda.

  • OC4J jsp caching issues.

    Hi All,
    We have deployed a set of jsp reports using Oracle reports 10g (9.0.4.0.0) and are noticing that the reports server appears to have cached prior versions of the reports on the server. We have attempted to restart the OC4J instance several times, and have found that if we remove delete the report files from the deployment directory, we get a 404 error. Copying the new files back causes the old versions to still load. If we modify the files in that directory in some way, and then save them, that appears to force the reports server to load the new files, but we are hoping that there is a way to not have to do this every time we want to deploy new copies of these files.
    Any suggestions for what might cause this?
    Thanks,
    Allan

    It is standalone OC4J at the moment as in UAT. I notice memory usage going up and has to be restarted every 4 hours. I used a memory profiler from JDeveloper. From there I saw the memory go up and up without doing anything with our applications. There are a lot of String objects in memory that keep going up coming from similar methods to what I described above.

Maybe you are looking for

  • Weird error message need help..

    SO.. i havent updated my itunes in a while because i keep getting this weird message.. it comes up when im almost done installing the newest/newer versions of itunes. it says "the feature you are trying to use is on a network resource that is unavail

  • CRVS2010 Beta - Cannot export report to PDF with unicode characters

    My report has some unicode data (Chinese), it can be previewed properly in the windows form report viewer. However, if I export the report document to PDF file, the unicode characters in exported file are all displayed as a square. In the version of

  • Connecting a new iMac to a telly

    Hi all, The college I work at is going over to Mac from PC editing systems. What's the cheapest way to connect a new intel iMac to a television so that you can monitor video editing in Final Cut? (I don't want to go via a camcorder). Thanks, Sean

  • DCs are broken in consolidation only

    Hi All I have a Software component which is imported from an old NWDI I the new NWDI I have a track consist of this SC + the 3 standard SCs (JEE, JTECHS and BUILDT) I have checked-in all the components into the transport studio. And transported them

  • ComboBox Items & Re-ordering

    Hi guys, I was wondering if there is a way to re-order the items in a combo box on a system form, using VS2005 and SBO 2007A. for example re-ordering the list of Sales Employees on the Sales order Form. thanks, Akash