JSP on JDeveloper9i emedded OC4J

Hello-
When trying to run the JSP samples on OC4J, I get the following
errors:
500 Internal Server Error
OracleJSP: oracle.jsp.provider.JspCompileException:
Errors compiling:C:\JDeveloper9i\j2ee\home\application-
deployments\default\defaultWebApp\temp\_pages\_examples\_jsp\_num
\_numguess.java
Line # Error
4
Package javax.servlet not found in import. import
javax.servlet.*;
5
Package javax.servlet.http not found in import. import
javax.servlet.http.*;
6
Package javax.servlet.jsp not found in import. import
javax.servlet.jsp.*;
14
Superclass com.orionserver.http.OrionHttpJspPage of class
examples.jsp._num._numguess not found. public class _numguess
extends com.orionserver.http.OrionHttpJspPage { 
The OC4J I'm using is the one embedded with JDeveloper9i. Does
anyone have a suggestion as to how I can get JSP to work
correctly?
Thanks in advance,
Ricardo Guzman

Hi !!
There is another forum exclusively for JDeveloper questions that
is monitored by JDeveloper development team and I would
recommend
you to post this question in that forum as this is related to
deploying on Oc4J from JDeveloper.
I'm sorry for the inconvinience that may have caused to you.
regards
Debu

Similar Messages

  • JSP-XSL problem in oc4j

    Hi,
    Im using a JSP page to generate XML and the same jsp contains reference to another jsp that outputs an XSL. In the client side the XML-XSL transformation will happend and result will be displayed on the screen.
    My problem is when the jsp generates XML/, the oc4j container is trying to apply the transformation on the server side on its own.I want to avoid this.
    Iam sure there must be a setting in some property file to do this,,
    Can any one shed some light to solve this problem??
    Thx
    Ravi

    Please post this question on the J2EE forum: http://forums.oracle.com/forums/forum.jsp?id=486963
    Ashesh Parekh
    Oracle9iAS Product Management

  • How to create OA Frame Work Jsp through JDeveloper9i

    Hi,
    any one can help me,
    how to create OA Frame Work Jsp through JDeveloper9i.
    and how to depoy that jsp page into oracle application server.
    plse help me,
    Regards
    ravi

    I am also having the same problem.
    can anyone help me out......?

  • Remte JSP debugging for standalong OC4J 10.3.x not working

    Follow the next steps:
    1. Copying the ojc.jar, jdev-rt.jar and jdev-remote.jar to the OC4J_HOME/lib
    directory
    2. Add the next lines to the application.xml file
    < !-- Remote Debug settings -->
    < library path="../../../lib/jdev-rt.jar" />
    < library path="../../../lib/ojc.jar" />
    < library path="../../../lib/ojmisc.jar" />
    3. Change the global-web-application.xml in a text editor.
    From the following section:
    < orion-web-app
    jsp-cache-directory="./persistence"
    servlet-webdir="/servlet"
    development="false"
    >
    Change development="false" to development="true" to enable servlet
    debugging.
    4. In the global-web-application.xml file, modify the jsp servlet tags to be:
    < servlet>
    < servlet-name>jsp< /servlet-name>
    < servlet-class>oracle.jsp.runtimev2.JspServlet< /servlet-class>
    < init-param>
    < param-name>debug_mode< /param-name>
    < param-value>true< /param-value>
    < /init-param>
    < init-param>
    < param-name>developer_mode< /param-name>
    < param-value>true< /param-value>
    < /init-param>
    < init-param>
    < param-name>encode_to_java< /param-name>
    < param-value>true< /param-value>
    < /init-param>
    < init-param>
    < param-name>emit_debuginfo< /param-name>
    < param-value>true< /param-value>
    < /init-param>
    < init-param>
    < param-name>jspjavacompiler< /param-name>
    < param-value>oracle.jdevimpl.jsp.JspOjcCompiler< /param-value>
    < /init-param>
    < load-on-startup>0< /load-on-startup>
    < /servlet>
    5. Start the oc4j using the next command:
    java -hotspot -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4000 -jar oc4j.jar
    6. Deploy the application
    7. Select the Remote Debugging and Profiling option in the Run Configuration
    for the project with the jsp to debug.
    8. In the Debugger/Remote section of the run Configuration set the host, port
    and timeout to the correct ones (name of the computer where you are running
    the application).
    When trying to run the jsp you are going to get the error:
    STACK ERROR:
    07/12/28 11:56:56
    ....\j2ee\home\application-deployments\MyJ2eeApp\MyJ2eeApp\persistence\_pages\_MyPage
    error #552: illegal forward reference
    07/12/28 11:56:56 /*@lineinfo:filename=/MyPage.jsp*/
    07/12/28 11:56:56
    2007-12-28 11:56:57.703 NOTIFICATION J2EE JSP-0008 Unable to dispatch JSP
    Page : oracle.classloader.util.AnnotatedClassNotFoundException:
    Missing class: _MyPage
    Dependent class: oracle.jsp.runtimev2.JspPageInfo
    Loader: oc4j:10.1.3
    Code-Source: ..../j2ee/home/lib/ojsp.jar
    Configuration: < code-source> in META-INF/boot.xml in ....\j2ee\home\oc4j.jar
    This load was initiated at MyJ2eeAppInfo.web.MyJ2eeAppInfo.jsp26687282:0.0.0 using the loadClass() method.
    The missing class is not available from any code-source or loader in the system.
    at oracle.classloader.PolicyClassLoader.handleClassNotFound
    (PolicyClassLoader.java:2068) [/C:/sw/oracle/oc4j101330/j2ee/home/lib/pcl.jar
    (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@9627532]
    Reproduced the problem with the next products:
    JDev OC4J Reproduced?
    10.1.3.3.0 10.1.3.2.0 YES
    10.1.3.3.0 10.1.3.3.0 YES
    10.1.3.2.0 10.1.3.2.0 YES
    When i try not use the following tags section
    < init-param>
    < param-name>emit_debuginfo< /param-name>
    < param-value>true< /param-value>
    < /init-param>
    everything is working, but ojc not generate debug information for compiled JSP page and debugger doesn't stop at break points.
    When i try use thise tags section, i got the next instructions for compiler in MyPage.java (it is generated from MyPage.jsp):
    /*@lineinfo:filename=/MyPage.jsp*/
    /*@lineinfo:generated-code*/
    and compiler is generating next message in console:
    error #552: illegal forward reference
    07/12/28 11:56:56 /*@lineinfo:filename=/MyPage.jsp*/
    and doesn't want to compile MyPage.java.
    I need help with this problem! And i don't have any ideas how to solve it. People, help me, please!

    Dear dvohra, have you ever try yourself the method, which you suggest?
    It is not working!
    If i try to configure OC4j like in blog, IDE doesn't stop in JSP's break points.
    So, I need in 100% working solution for remote debugging on oc4j 10.3.x. The main reason of using remote debug for me is that i have to develop portlets, and i have to invoke my portlets from portal. It is posible only when i deploy my portlet on stand alone oc4j!
    I really need remote debug! And i'll be very thankful someone for 100% working solution!

  • JSP Response Slow in OC4J

    Hi,
    I have a web application (jsps and servlets accessig to an oracle database) deployed by jdeveloper 10g in OC4J Standalone 10g, the problem appears when my aplication turned very slow where i go to a jsp page, only the html pages are fast but my jsps not, this appears incomplete because of the slow response, the pc that i install oc4j has 1GB memory, and i don't know what to do, please help me to find out why is this happening, i did the same thing in opther pc and i have no problems, so in this pc why is it happening.
    Thanks

    David, I do not think that oc4j 10.1.2 is certified with jdk-1_5_0_03. It is certified with JDK 1.3.1 and JDK 1.4.1, although it is quite possible that it can be run with other jdk versions.
    I can not see why your jsp is running incredibly slow. From what you provided, it seems that the process is stuck somewhere inside the _jspService method of the jsp page. To confirm that, it is much easier for you do a little more debugging. Just insert
      <% System.out.println(System.currentTimeMillis()); %>
    into various places of your jsp. Also, you may make a thread dump by "ctrl^break" on Windows or "ctrl^\" on Unix from time to time so as to find which methods stay on top of the stacks of the running threads. Then we can pinpoint the places that take most of the time.

  • Can't Profile my JSP's on embedded OC4J - what am I doing wrong?

    I can profile (Event and Execution) my executable client-side classes (ie, fired off via a main method) fine, but cannot get any profiling info on my JSP's - any suggestions on what I'm missing?
    I'm using JDev 9.0.3. I've tried it with and without the .jsps package in the Profile "Classes and Packages to include" path. I've tried it with and without the "Remote Profiling" option checked. I'm using the exact same section of code in my class and jsp, and the class works fine for both Execution and Event profiling, so I don't think its the code or my use of the API that's flawed. I've set the project's "Default Run Target" to the JSP (for attempts to profile the JSP - its set to the class for profiling of the main-invoked class).
    ojvm is selected under the Runner "Java Virtual Machine" option. The standard defaults are selected under the Tools:Preferences Embedded OC4J options.
    The profiler window just acts as if the JSP never runs (though in the log window, I get the "Profiler UI connected..." and the OC4J startup messages just fine.
    Most frustrated and appreciate any assistance!
    Thanks,
    Jim

    I can profile (Event and Execution) my executable client-side classes (ie, fired off via a main method) fine, but cannot get any profiling info on my JSP's - any suggestions on what I'm missing?
    I'm using JDev 9.0.3. I've tried it with and without the .jsps package in the Profile "Classes and Packages to include" path. I've tried it with and without the "Remote Profiling" option checked. I'm using the exact same section of code in my class and jsp, and the class works fine for both Execution and Event profiling, so I don't think its the code or my use of the API that's flawed. I've set the project's "Default Run Target" to the JSP (for attempts to profile the JSP - its set to the class for profiling of the main-invoked class).
    ojvm is selected under the Runner "Java Virtual Machine" option. The standard defaults are selected under the Tools:Preferences Embedded OC4J options.
    The profiler window just acts as if the JSP never runs (though in the log window, I get the "Profiler UI connected..." and the OC4J startup messages just fine.
    Most frustrated and appreciate any assistance!
    Thanks,
    Jim Jim,
    your solution is not inconsistent with how the execution and event profiler work. In the online documentation it states that "samples that have accumulated from the start of the program (or the last clear) are displayed when you pause the Execution Profiler or when the program terminates." You can hit 'pause' as you mention, 'snapshot', or stop the process to get results from the execution and event profilers. Basically, you need to tell the profiler when to provide a sample. Also if you plan to do any remote profiling of JSP's you will need to manually start the application and start a browser to invoke the JSP or servlet.
    I hope this

  • Where Can I Find the JSP Class files on OC4J (Orion server)

    I am using Oracle J2EE Container (OC4J 1.0.2.2 aka Orion server) and I need to find the ".class" file generated for each JSP I created. I've looked under the "WEB-INF" directory under the "application" directory and the "persistence" directory under application-deployments and didn't find them. Any help would be appreciated. Thank you.

    hi
    Just check in _pages directory
    regds

  • JSP 2.0 and OC4J 9iAS 9.0.4

    Does anyone know if the next release of 9iAS, specifically OC4J 9.0.4 support the JSP 2.0 standard? If not when will JSP 2.0 be supported in OC4J?
    Laith E.H.

    OC4J 9iAS 9.0.4 will not support JSP 2.0.
    The release following that will support JSP 2.0.
    A developer preview version is planned to be released
    some time in next couple of months.
    -Prasad

  • Where Can I Find the JSP Class files on OC4J

    Hi,
    I am using OC4J 1.0.2.2 and I need to find the ".class" file generated for each JSP I created. I've looked under the "WEB-INF" directory under the "application" directory and the "persistence" directory under application-deployments and didn't find them. Any help would be appreciated. Thank you.

    your jsp class are compiled in a file named namejsp.jsp.jspCache in the application-deployments\your app\persistence ...
    but this file is not readable.
    To hav your jsp like .class you have to delete your directory applications-deployments\your app
    and open the file orion-web.xml and add the following:
    development="true" under the tag jsp-cahce-dirctory
    restart the server and then your jsp are created like .class

  • Edited/Recompiled JSP not reflected in OC4J instance

    After starting OC4J to run my JSP project, if I edit and make/build a jsp, I won't get the updated version if I go to the page without first stopping the process and restarting OC4J. Am I missing something to get it to deploy on the fly if I edit it? It's a bit cumbersome to have to stop and start OC4J everytime I tweak a JSP page a little.
    Andrew

    Doing the right-click-run option will not work for me as I'm using a Model 2 pattern for my JSP development. The JSP has to have been served by a controller servlet before being valid. And I definitely know it's not a cache issue, I can see a log being generated everytime I refresh the page, but no matter how many times I make/rebuild/make, the changes don't show up. And besides, I thought the right-click-run option essentially starts a new OC4J instance, not continuing the previous version, isn't that right? I'd like to maintain state of the current session and not have to end up logging back in to my app everytime I tweak a character on a JSP page.
    I know other, much simpler, JSP containers are able to do this, like Tomcat running in JBuilder 6. There, if I edit a JSP page, recompile it, and access it from a browser, it will show up with the changes. Perhaps someone at the JDeveloper team can clarify this for me?
    Andrew

  • JSP binary deployment in OC4J

    Can we do binary deployment of JSP as supported in JSERV env.
    null

    David, I do not think that oc4j 10.1.2 is certified with jdk-1_5_0_03. It is certified with JDK 1.3.1 and JDK 1.4.1, although it is quite possible that it can be run with other jdk versions.
    I can not see why your jsp is running incredibly slow. From what you provided, it seems that the process is stuck somewhere inside the _jspService method of the jsp page. To confirm that, it is much easier for you do a little more debugging. Just insert
      <% System.out.println(System.currentTimeMillis()); %>
    into various places of your jsp. Also, you may make a thread dump by "ctrl^break" on Windows or "ctrl^\" on Unix from time to time so as to find which methods stay on top of the stacks of the running threads. Then we can pinpoint the places that take most of the time.

  • How to deploy JSP application using inbuilt OC4J of Oracle BPEL??

    I have to combine JSP pages with BPEL and for that i have to deploy applications with the inbuilt OC4J i dont know from where to deploy the whole application and how to write build.xml for deploying using obant

    You can deploy your application to the Oracle Bpel Server by specifying a new Application Server connection that points to yout LocalBpelServer.
    You don't need to write a build.xml file, you can just use the Deployment Descriptor functionality of JDeveloper which is much more easier than using the obant.
    The process of automatically deploying your UI-application to the Oracle Bpel Server, without any manual steps or restaring the server, is fully documented on the following blog: http://iadvise.blogspot.com/

  • HOW CAN I DEPLOY BC4J JSP APPLICATION ON REMOTE OC4J?

    Hi,
    I am using JDeveloper9iRC. I am trying to go through 'Oracle9i JDeveloper Reviewers Guide'. After having built business components and a JSP front-end I would like to deploy my application on remote OC4J (release 2). I started with the deployment of the middle-tier components as an EJB. It was a success, but I had to add the following line to application.xml file (because of JBO-28300: Piggyback read error):
    <library path="../../home/lib/bc4jdomorcl.jar" />
    I also deployed the JavaServer Pages as Web Module - WAR. When I am trying to access the web application in a browser
    (http://hostname:8888/j2eeapp-3JSP-context-root/
    OrdersView_BrowseEdit.jsp) I get an empty page. However, locally it works.
    It looks like something wrong was with 'datatags.jar' library.
    Is the following tag correct, if I have business components in different project than JSP:
    <jbo:ApplicationModule id="am" configname="bizlogic.BizlogicModule.BizlogicModuleLocal" releasemode="Stateful" />?
    I would be grateful for every advice.

    hy wang.
    to deploy a simple jsp-project create a deployment-profile (WAR-File) in this project. -->file-->new-->deployment-profiles-->war.
    now you need a connection to the oc4j where you want to put your files. this can be done in the system-navigation of jdev.
    you then can rightclick the <myapp>.deploy and deploy the project to a selected oc4j.
    don't forget to have a look at the jdev-help.
    hope this helps you for the first.

  • How to put  jsp/servlets on the oc4j and view them with browser

    I have no experience with it.
    perhaps with: localhost:8888/ ???
    witch xml-files must I configure??
    thank you

    I m new in jboss application server with myeclipse plateform.
    im unable to solve this error.which are occured doring the starting of server in my eclipse.
    How to compile jsp project on the plateform of Myeclipse and jboss
    hi :-) this is not eclipse forum and not that sure about your problem but i'll try to answer :-)
    i'm not sure how you create your war but there something wrong with your web.xml. kindly check it :-)
    by d way, you can deploy your project in my-eclipse by
    - right click on the project then select my-eclipse > Add and Remove Project Deployment's
    - a new window will open and you can now configure how you deploy your project :-)
    other alternative edit your jboss-service.xml then put something like this
    <attribute name="URLs">deploy/, file:/D:/workspace/deploy</attribute>
    (note, change the path according to your needs)
    regards,

  • Application modules in jsp uix jdeveloper9i

    I have an application module with customer table as the top driving table to get customer information. I have a seperate application module that has phone table as the top driving table in a master detail to my customer. I now want to take the customer number from the customer table based off the phone search and pass it to my other application module, so that I can edit that customer. I can not find a way to pass customer number from the same customer table in one application module to another application module. I have to keep these seperate so I can search by phone number or customer number. Any help or suggestions would be appreciated. I have tried nested modules, and passing values between jsp pages but get error with rowkey.

    See: Re: how to store large xml data?
    Charles.

Maybe you are looking for

  • Regarding the access key for an object

    HI all Please clarify me the doubt that an access key will be different for each and every object or one for all the objects. regs karna

  • Printer turns off even though is connected on MacBook

    Hi all, I got my dad a MacBook to replace his Dell. A lot of complains aroused since the switch and managed to answer most to him. However, one I cannot figure out is the following. When we had the Dell we left the printer connected to the laptop and

  • JROCKIT for Solaris 8

    Where do we get Jrockit VM for Solaris 8 ? Thanks..sankar

  • Change filters in an infopackage

    Hi expert i use an ancien version of BW (V3.5 i think) and i can get to change the filters in an infopackage. Can you help me on that, Thanks a lot

  • JP2 batching

    I'm trying to create an action and batch in CS5 to resize and change some images extension from TIFF to JPEG2000. I want my files to have extention JP2; however, when I clicked saved as JPEG2000 I'm gettin jpf as a default extension, so I manually ch