OC4J 9.0.4 stand alone - basic questions

Hi,
I'm upgrading my web applications from OC4J (1.0.2.2) to OC4J 9.0.4.
I have a few basic questions. Since I asked these as part of another thread and didn't get a response, I thought starting a new thread might help...
1. Does the JSP compiler in OC4J 9.0.4 (JSP container) work with the JDK version set in the path ? (I'm not using OJSP).
2. I read that OC4J 9.0.4 is J2EE 1.3 compliant. With OC4J 1.0.2.2 , I used the j2ee.jar file (that was bundled with J2SDKEE 1.3) to compile my Servlets/Struts code. I copied it into the OC4J_HOME directory and set the Classpath to it, to build my classes.
With 9.0.4, can I still use this j2ee.jar file or do I need to use the jar files (Servlet.jar) in the OC4J_HOME/lib directory?
3. Could somebody throw some light on why some jar files are placed in OC4J_HOME while others are in the OC4J_HOME/lib directory ? What is the difference?
Any help/suggestions will be greatly appreciated.
Thanks,
Shyam

Hi, shyam:
It is nice to raise different questions in different threads.
1. Does the JSP compiler in OC4J 9.0.4 (JSP container) work with the JDK version set
in the path ? (I'm not using OJSP).I believe you are referring to the runtime JSP engine, which compiles your JSP when you first access it. The answer is yes.
To see the compilation setting when oracle jsp engine is compiling jsp files, start oc4j with the debug flag:
  java -Dbuild.debug=true -jar oc4j.jar
2. I read that OC4J 9.0.4 is J2EE 1.3 compliant. With OC4J 1.0.2.2 , I used the
j2ee.jar file (that was bundled with J2SDKEE 1.3) to compile my Servlets/Struts code.
I copied it into the OC4J_HOME directory and set the Classpath to it, to build my
classes. With 9.0.4, can I still use this j2ee.jar file or do I need to use the jar files
(Servlet.jar) in the OC4J_HOME/lib directory?Not sure what to say about j2ee.jar of j2SDKEE1.3 since I have never used it. For Servlet code, they are pure java code as long as you use the right libraries. Use the one in OC4J_HOME/lib if possible, although it probably does not matter much. For JSP file, there is no problem of compilation if you do not want to precompile them. All you need is packaging them and deploying them.
3. Could somebody throw some light on why some jar files are placed in OC4J_HOME
while others are in the OC4J_HOME/lib directory ? What is the difference?The executable jars are in OC4J_HOME directory. Besides that, I do not see see much difference.

Similar Messages

  • OC4J 9.0.4 stand alone + JDK 1.4.2

    Hi,
    I'm upgrading my web applications from OC4J (1.0.2.2) to OC4J 9.0.4. Also, upgrading from JDK1.3.1 to JDK 1.4.2. I have installed OC4J 9.0.4 stand alone version on my Windows 2000 machine and I have a couple of questions:
    1. I didn't find any JDK directory under OC4J_HOME. So, do I need to copy JDK 1.4.2 directory and place it under OC4J_HOME. Also, do I need to set any CLASSPATH while running OC4J ?
    2. I have an issue with running JSPs in the default application. However, the servlet examples run fine.I get the following error on running JSPs:
    quote:
    05/10/14 15:42:23 IOException in compile: CreateProcess: javac.exe -J-Xmx1024m -
    classpath oc4j.jar;E:\oc4j_extended\j2ee\home\lib/ejb.jar;E:\oc4j_extended\j2ee\
    home\lib/servlet.jar;E:\oc4j_extended\j2ee\home\lib/ojsp.jar;E:\oc4j_extended\j2
    ee\home\lib/jndi.jar;E:\oc4j_extended\j2ee\home\lib/jdbc.jar;E:\oc4j_extended\j2
    ee\home\iiop.jar;E:\oc4j_extended\j2ee\home\iiop_gen_bin.jar;E:\oc4j_extended\j2
    ee\home\lib/jms.jar;E:\oc4j_extended\j2ee\home\lib/jta.jar;E:\oc4j_extended\j2ee
    \home\lib/jmxri.jar;E:\oc4j_extended\j2ee\home\lib/javax77.jar;E:\oc4j_extended\
    j2ee\home\lib/javax88.jar;E:\oc4j_extended\j2ee\home\../../opmn/lib/ons.jar;E:\o
    c4j_extended\j2ee\home\../../opmn/lib/optic.jar;E:\oc4j_extended\j2ee\home\../..
    /lib/dms.jar;E:\oc4j_extended\j2ee\home\../../dms/lib/dms.jar;E:\oc4j_extended\j
    2ee\home\lib/connector.jar;E:\oc4j_extended\j2ee\home\lib/cos.jar;E:\oc4j_extend
    ed\j2ee\home\lib/jsse.jar;E:\oc4j_extended\j2ee\home\../../oracle/lib/jsse.jar;E
    :\oc4j_extended\j2ee\home\lib/jnet.jar;E:\oc4j_extended\j2ee\home\lib/jcert.jar;
    E:\oc4j_extended\j2ee\home?
    unquote:
    Could somebody tell me what I'm doing wrong ?
    Any help will be greatly appreciated.
    Thanks,
    Shyam

    Thanks a lot for your help qlin. I found a solution to the JSP issue from the archives.
    However, I ran into a new issue. I got the following error when I tried to access a JSP in my web application (this works with OC4J 1.0.2.2):
    05/10/17 16:38:19 dsap2: JspServlet: unable to dispatch to requested page: Exception:oracle.jsp.parse.JspParseException: Line # 165,
    Error: Unexpected end of file
    I got the same error with both JDK 1.4.2 and JDK 1.3.1.
    Any idea what could be causing the error, and how to trace it?
    Regarding the OC4J version, I have to use 9.0.4 as we have a product that uses it and I have to stick with the same version.
    Also, I have a couple of other questions.
    1. I use OC4J stand-alone on Win2K machine for development and deploy on a Solaris machine that uses the integrated OC4J version, which comes with Oracle Application Server 10g. Do you see any issues with this ?
    2. I currently have a simple logging mechanism using "System.out.println" to print output to a log file in the stand-alone version. Do you know of any better logging scheme that can be used with the integrated OC4J ?
    Any help/suggestions will be greatly appreciated.
    Thanks,
    Shyam
    I didn't find any JDK directory under OC4J_HOME.So, do I need to copy JDK 1.4.2
    directory and place it under OC4J_HOME. Also, do Ineed to set any CLASSPATH while
    running OC4J ?Yes, since 9.0.4 or even earlier possibly, oc4j
    installation is not bundled with a JDK installation.
    It is easy enough to download any JDK version you
    wanted. You do not need to place a copy of JDK
    inside OC4J_HOME. I believe it is better not to set
    any CLASSPATH for running OC4J, although it is
    probably does not matter any way.
    05/10/14 15:42:23 IOException in compile:CreateProcess: javac.exe -J-Xmx1024m -
    Please search this forum for "IOException in compile:
    CreateProcess: javac.exe". You will see the answer.
    By the way, any particular reason that you decide not
    to upgrade to 10.1.2.0.2 directly?
    It is obvious that 10.1.2 should be better than
    9.0.4. After another several months, 10.1.3 should be
    a even better choice since 10.1.3 supports j2ee 1.4
    while 10.1.2 and 9.0.4 supports j2ee 1.3.Thanks for your help qlin.I found a solution to the JSP issue by searching the archives.
    However I ran into a new issue. When I try to run my web application, I get the following exception:
    05/10/17 16:38:19 dsap2: JspServlet: unable to dispatch to requested page: Exception:oracle.jsp.parse.JspParseException: Line # 165,
    Error: Unexpected end of file
    I tried run OC4J with both JDK 1.4.2 and 1.3.1 versions but still get the same error.

  • Is eployment to IAS 10.1.3 the same way like to OC4J 10.1.3  stand alone ?

    Hi All,
    We are about to deploy our ADF Faces + BC application into IAS 10.1.3.
    Until today we have never tried the real IAS 10.1.3, so far we develop , testing and deploy for testing using OC4J stand alone.
    The question is : Is Deployment to IAS 10.1.3 the same way like Deployment to OC4J 10.1.3 stand alone ? is there anything spicific ?
    Thank you for your help,
    xtanto

    Hi,
    yes, it is the same. Just create an ApplicatioNServer connection in Jdeveloper and deploy the software. Be aware that if you use JDeveloper 10.1.3.1 you will have to install teh ADF runtime libraries first. If you deploy to OracleAs 10.1.3.0 then you should be fine
    Frank

  • JSP won't work in OC4J 9.0.4 stand alone?

    Somehow i can't seem to get OC4J 9.0.4 standalone working correctly. I did the following steps:
    1. Unzipped
    2. Changed http to 88890, jms to 9129, rmi to 23793
    3. java -jar oc4j.jar -install
    4. java -showversion -jar oc4j.jar -verbosity 10
    And the example JSP's dont even work?! Servlets seem to work. Changing to jre1.3.1_11 doesn't help (and doesn't change the error) ....
    The output is as following:
    04/07/27 11:31:16 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0) initialized
    04/07/27 11:31:59 IOException in compile: CreateProcess: javac.exe -J-Xmx1024m -classpath c:\oracle\oc4j904\j2ee\home\oc4j.jar;c:\oracle\oc4j904\j2ee\home\lib/ejb.jar; <lots more jars>
    Can anybody help me?
    BTW i changed the ports because i already have a OC4J 9.0.2 and 9.0.3 running (and working correctly).
    Regards,
    Robert Willems

    Robert,
    It appears that you have only installed the Java Runtime Environment (JRE). You need to install the Software Development Kit (SDK). Get version 1.4.2_05, since this is what your version of OC4J requires. Go to the following Web page
    http://java.sun.com/j2se/1.4.2/download.html
    And look for the "Download J2SE SDK" link -- which appears below the heading:
    J2SE v 1.4.2_05 SDK
    Good Luck,
    Avi.

  • Maximum concurrent user on OC4J Stand Alone ?

    Hi All,
    I have questions on OC4J :
    1) How many concurrent user that can be supported by OC4J 10.1.3 Stand Alone ?
    2) What is different between OC4J Stand Alone and OC4J Stand Alone that comes with JDev ?
    Thank you,
    xtanto

    Hi,
    1.) This depends on your application and of the configuration of OC4J (for example JVM parameter).
    2.) Afaik there is no difference between both OC4J. OC4J which comes with JDev
    is the J2EE runtime environment for JDeveloper. For development purposes it is much easier to use the embedded OC4J instead of deploying first the application to a remote OC4J.
    Regards
    Kersten

  • EJB lookup works in embedded OC4J but not stand-alone

    I use JDeveloper 9.0.3.1 to develop a combined web & EJB application. The EJBs are deployed on a 9.0.3 iAS server on a different machine.
    The EJB lookup is in a helper class that's called by the servlet. For EJB lookup, I use the class "com.evermind.server.rmi.RMIInitialContextFactory" as described by the OC4J servlet guide (http://download-uk.oracle.com/docs/cd/A97688_10/generic.903/a97680/develop.htm#1003973). So my code looks like this:
    Hashtable map = new Hashtable();
    map.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    map.put(Context.PROVIDER_URL, "ormi://server:port/app-business");
    map.put(Context.SECURITY_PRINCIPAL, "admin");
    map.put(Context.SECURITY_CREDENTIALS, "password");
    map.put("dedicated.rmicontext", "true");
    InitialContext context = new InitialContext(map);
    Object thing = context.lookup("MyEjb");
    EJBHome feedback = (EJBHome)PortableRemoteObject.narrow(thing, "com.company.ejb.MyEjbHome");
    The last insert into the map (map.put("dedicated.rmicontext", "true");) wasn't mentioned neither in the servlet guide nor the EJB one. But without it, I'd always get some "domain is null" error.
    Now this code above works flawlessly in the embedded OC4J of JDeveloper. But it always hangs in the "Object thing = context.lookup("MyEjb");" line when executed either in a stand-alone OC4J (the one from JDeveloper launched through the batch file in [JDeveloper directory]\jdev\bin\start_oc4j.bat) or in the OC4J in iAS.
    Does anybody know why this happens or how to fix it? I know that there are other ways of EJB lookup in servlets but since we also have plain Java classes for testing purposes that access EJBs, this seemed like the simplest thing to do for both Java classes and servlets.

    I was referring to the java client case where this optoin is not required. In general for web clients one doesn't use the rmi initial context to find the bean. This is because the bean and the webclient are both packaged in the same application. One defines the ejb-ref in the web.xml for the bean and then looks it using the default initial context. Something like
    Context ctx = new InitialCOntext();
    ctx.lookup("bean ejb-ref-name");
    However if you must use rmi for accessing the bean from the web client then the dedicated connection property is required.
    For java clients you would setup the rmi context environment.
    Since you are trying to use a common utility class for both java and webclient I would recommend that you look into packaging the java client as a j2ee application client. Basically in that case you would be able to define a ejb-ref in the aplication-client.xml and use the default initial context in code for both the cases.
    Hope that helps
    Dhiraj

  • Starting NON-stand alone oc4j in debug mode

    I have set up OC4J (in Application Server 9.0.2.0.0, NOT is stand-alone mode) and I want to start it in debug mode in order to watch some jdbc leaking connections. Which is the way? Is it done through the Enterprise Manager WebSite? All the documentation I have reached is about stand-alone mode.
    Thanx in advance

    Andreas,
    Did you try to add the debug option in OEM (Enterprise Manager WebSite) via OC4J Home > Server properties > Command line options?
    Cheers,
    -lars

  • Web Services - Issue with running OC4J stand alone server from JDeveloper

    I created a stand alone OC4J App. server instance in JDeveloper. I deployed my Webservice (WebServices.deploy) to that OC4J server.
    Now I want to test my web service. I opened a browser window and I specfied the URL as
    http://localhost:<RMI Port#>/<Project1>-context-root/<Webservice name>.
    Default RMI Port#23791.
    http://localhost:23791/<Project1>-context-root/<Webservice name>.
    and I am getting the following error message
    ã vInvalid protocol verification, illegal ORMI request or request performed with an incompatible version of this protocolvInvalid protocol verification, illegal ORMI request or request performed with an incompatible version of this protocol.
    Could you please let me know, what's going on.
    Thanks!

    OK, so there's two threads in this email.
    1. When using a Web browser client and an OC4J standalone instance, the default address of the OC4J website is http://host:8888/.
    The port you keep referring to is the ORMI port. That is a different protocol that is used with EJBs, and our remote deployment mechanism. As you have observed, JDeveloper uses it to deploy to the OC4J instance.
    2. The root problem you are seeing is related to the message you posted on the console.
    OC4J 10g (10.1.3) Default Web Site. Application: bc4j does not exist. Error creating Web application: webapp
    Because this web app is misconfigured, its not starting so you can't access it.
    In the j2ee/home/config/default-web-site.xml file, there is a reference to an application called BC4J -- which is not available on the server as a deployed application.
    So you need to correct that situation -- BC4J is not normally present in a vanilla OC4J standalone distribution.
    You can try editing the j2ee/home/config/default-web-site.xml file and remove the <web-app> entry that mentions BC4J and then try starting OC4J.
    If you don't have a lot of time invested in configuring the instance, you could also try extracting oc4j_extended.zip again and starting with a fresh one.
    cheers
    -steve-

  • Not able to download OC4J stand-alone user's guide

    Hi,
    I tried to download Oracle9iAS J2EE container (OC4J) stand-alone users guide ( The file name is
    http://otn.oracle.com/tech/java/oc4j/pdf/oc4j_so_usersguide_r2.pdf). It is a pdf file. It shows the first page of the document in the browser. When try to go to other pages, it hangs-up and says
    " A File I/O occurred. Connection Timed-out"
    after some time.
    Could u please correct it ? If not, atleaset, could u let me know whether atleast HTML version is available ?
    tnr,
    Sai

    Hi,
    try the following URL, there can you select which version of the docs you would like to display:
    http://otn.oracle.com/documentation/ias.html
    Thanks
    @

  • To set environment variables in OC4J stand alone server

    Hello,
    I deployed my application to OC4J standalone server. I need to set some environment variables, which will be accessed from my application.
    Could you please let me know, how to set the environment variables for the application which runs from stand alone OC4J server ?
    Thanks!

    Hello,
    Thanks for providing me the information. Here is what I am trying to accomplish...
    I have a Web service application which in turn calls a Java application and which invokes a third party application. The third party application expects some environment variables to be set.
    I set these environment on my local machine, and when I executed the Java application as a standalone application within JDeveloper - it works. But when I deployed this application to the stand alone OC4J server and when I execute the application, the third party application is not getting the environment variables correctly. (that's what I am guessing here..)
    I just put System.getenv() to get the environment variables and the value is displaying correctly.
    As Jacco suggested, I passed these env. variables thru' the startup of OC4J server.
    (i.e.) java -D<variable1>=value1 -D<variable2>=<value2> -jar oc4j.jar and still didn't work.
    Do I have to pass these values thru' any XML file within OC4J server..
    Any thoughts ? I appreciate if you can provide some input.
    Thanks!

  • I am trying to purchase basic lightroom  software (desktop stand alone), but am confsed by the cloud, which I do not really want. My aim is developing RAW from my camera.

    I am trying to purchase basic lightroom  software (desktop stand alone), but am confsed by the cloud, which I do not really want. My aim is developing RAW from my camera.

    The standalone version doesn't use Creative Cloud features, so if you don't want the cloud just get the standalone version.
    Note that if you want to sync your Lightroom desktop images to Lightroom on an iPad or iPhone (or the Android versions coming later), then a Creative Cloud subscription would be required.

  • Urgent!!! A question about p6.7 stand alone

    I had P6.7 stand alone installed and have used it for a while. Last week, I suddenly couldn't login. After I entered password and clicked Login, and when "loading data" came to 99%, error message popped up and task ended itself, not able to enter into Primaver interface.
    I decided to reinstall. I didn't uninstall the existing one. I just run R8.2 set up and tried to upgrad based on the existing 6.7 version. During the installation, up until the step “Creating PM database.....might take a few minutes.......”, I waited for more than 2 hours but the message still there and nothing happened. I didn't think it was good and I ended the installation.
    Next, I went to Control Panel, Add and Remove Programs, uninstalled "Oracle database" and "Primavera 6". I changed back to P6.7. During the installtion, it was unfortunately the same as before, up until the step “Creating PM database.....might take a few minutes.......”, I waited again for more than 2 hours, but the message still there and nothing happened. I ended the installation again. In addition, I found "Oracle database" and "Primavera 6" were in Start Menu and the directory I choosed during the installtion. However, in Control Panel, Add and Remove Programs, there was only Oracle Database, no Primaver 6.
    And then, I uninstalled the Oracle Database from Control Panel, Add and Remove Programs and tried to reinstall again. But I got the same bad luck. I repeated this process for a few times without success.
    Who knows a SOLUTION? Much much appreciated.

    Hello, well the Oracle Xe database is not the same that the Primavera database. If you already installed Oracle XE, go to Start menu --> Oracle XE --> Go to database homepage. Try to log in with "system" and the password that you configured in p6 installation. Go to Users, if you only have 1 user, that means that p6 database is not installed, and you need to created manually (probably windows configuration is blocking the .bat file)
    to create the database manually check http://docs.oracle.com/cd/E16688_01/Product_Manuals/adminguide.pdf , Section:Automatically Installing an Oracle Database and Loading Application Data, page 49
    And once the database is created, you need to configure the alias (connection between p6 and the database) (click on ellipsis button, add, select your name and driver type, for database connection string use XE, type your public user (eg: pubuser) , finish and try to log into p6
    Best Regards!
    PAblo

  • Compiz as stand-alone + xfce4-panel : a few questions

    After some months with gnome 3 I decided to go back to compiz, as I used to use that with gnome 2.xx and appreciated it quite a bit. I ran into a few problems when trying to set it up properly.
    First, is there some way to enable session management with compiz? I would like to be able to have a button or menu that offers to sleep, reboot or shutdown the computer. Not that I mind using 'pm-suspend' and other commands like that, but my girlfriend also uses the computer sometimes so it needs to be more user-friendly than that. I noticed there is an actions button by default in the xfce panel but it doesn't work in compiz and just says 'session management is disabled, do you want to exit X' or something like that.
    Second, I need some sort of run prompt when I hit alt-f2. The 'gnome compatibility' option in ccsm doesn't seem to work in standalone mode.
    Third, I want the computer to automatically sleep when I flip the lid. In gnome 3, it does that without any special configuration, but this doesn't work with compiz as a stand-alone. I suspect I need to configure it to pick up the 'lid is flipped' event somehow?
    Fourth, I need a volume control option that will display a volume icon in my xfce4 panel notification area and most importantly I need that volume control icon to respond accurately to the input from my 'mute' and volume 'up' and 'down' buttons. It's a thinkpad x220 laptop. I bring it to school often, so being able to know whether my volume is on or off is important when in class. This works fine in gnome3 but I have tried other DE's such as LXDE and found that the volume icon stayed the same as I used the volume buttons on the keyboard (the buttons did work, so it could be muted but still displaying that it's at full volume). To check if it was muted or not, I had to open a terminal and use alsamixer.
    Of course, I don't NEED to be using xfce4-panel. What I need is a menu, and automatic menu generation is nice because it's easier to configure. So I picked that one because I've used it in the past. If there is a better alternative, please recommend it. Or perhaps it would be best if I simply ran gnome fallback and compiz as the WM?

    I'm using compiz standalone, so here's how i solved that stuff.
    You can use obshutdown for session management, it's in AUR, look in its config file, slap a launcher in the corner of you panel, set the icon for prettyness and it works pretty well.
    I use gmrun as a launcher, set alt+f2 to call it. It's pretty simple which is what i like. You can also use synapse, or gnome-do, they have more functionality like searching your bookmarks, your files, your loved one's medical history, you name it.
    For volume control, you can use pnmixer from aur, it sits in your system tray, and you can set it's hotkeys, but you can also use CCSM to set your hotkeys for volume management.
    I think laptop-tools(check the wiki) can be used to put your computer to sleep, and general powersaving. You should check the article named laptop in the wiki for other laptop-related stuff too. I think i used xfce4-power-manager for power management as well a while ago.
    I used xfce4-panel for a while but i didn't really like it as much as i liked the old gnome-panel, so i installed mate-panel(which is the old gnome-panel). You can find it in AUR, or you can check it's wiki article for repos you can add for mate(if you want to install it from aur, it will pull some aur dependancies, and i didn't feel like compiling everything).

  • Pl/sql vs sql basic question

    Hi,
    I have a very very basic question, so excuse me for that... I just would like to know the difference ( and the difference in usage) between sql and pl/sql?
    thank you
    Yann

    SQL - the structured query language - is the language available for extracting data from the database. It is a 4GL, and each command stands alone and performs a database action.
    PL/SQL is the 3GL primarily intended to control the flow of a series of SQL commands. PL/SQL does not, in any way, interact with the data in the database. It does, however, allow SQL statements to be called, or even created, in a specific order.
    SQL is capable of a LOT more than people usually realize. Unfortunate, as people often create PL/SQL programs when single SQL statements will do the job. I encourage reading the O'Reilly 'Mastering Oracle SQL' book ... only after fiunishing that book do I recommend any of Feuerstein's excellent PL/SQL books.

  • BW report without stand alone BW server

    Hi Experts,
    My query is about basic understanding of the System Landscape for using BW reports. Basically, There is a requirement to use BW reports on stand-alone SRM 5.5 server. Installation guide of SRM suggests that we can install BI 7.0 "content" along with SRM 5.5 server.
    The question- Is it possible use BW reports just by installing BI content on SRM server?
    Further I would really like to know, if the answer of above question is YES, then what are the prerequisites for it and if 'NO' then what is the BI content's role in SRM server?
    Thanks in advance
    Regards,
    Amit

    Hi Amit,
    According to my knowledge, you can build up all in one server. But the most important thing is about client. the BW client have to be different from the others.
    And their are 2 main application component that related to BW. there are SAP_BW and BI_CONT. this 2 Application component have to be build on the netweaver infrastructure.
    Regards,
    Assign Point if you see its helpful,
    Chuong Hoang

Maybe you are looking for