oc4j

OC4J 10.1.3.4 problem with deploying multiple 2.1 EJBs

I am having troubles migrating from OC4J 10.1.2.3 to 10.1.3.1.4. The problem is for applications that have multiple EJBs (all are 2.1, no EJB 3.0). Jdeveloper will take the default ejb-jar.xml (the one required for Jdeveloper to run it on its stand-alone OC4J instance) and package it into each EJB JAR module NO MATTER what. This results...

How can jsessionID be suppressed on OC4J?

I'm deploying a JSF (myfaces, restfaces, and richfaces) app to OC4J. I don't want the jsessionid to appear in the status bar or the URL address. I have managed to suppress it in almost all cases. The one case that I still have problems with is when the site is first visited with a "clean" browser (with no cache, history, etc.). In this c...

JDBC Thin layer encryption in Application Servers Data Sources

Hi, I came across an interesting article which shows how we can transparently encrypt jdbc connections using java thin client. http://javasight.wordpress.com/2008/08/29/network-data-encryption-and-integrity-for-thin-jdbc-clients/ However I want to know how this can be achieved for application servers (like oc4j) datasources. ...

How to determine the version of oc4j being used?

I have an oc4j installation bereft of any release notes or version documentation. In the absence of such documents, how do I know for sure, which version of oc4j I am using? ...

Better Understanding an OC4J Stack Trace

I've been tasked with deploying an application built by a third party on an Oracle Application Server, version 10.1.3.0. I've deployed it on Oracle Application Server version 10.1.2.0 without much difficulty. I'm getting the following error: javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException: No such dom...

Does the -XX:+HeapDumpOnOutOfMemoryError option work with Oracle Application Server?

We are sometimes getting an OutOfMemoryError in production and I would like to be able to analyse what caused the problem, or at least what was going on when it occurred. It seems that I should be able to get an HProf profile by using the -XX:+HeapDumpOnOutOfMemoryError option, but I have read that this is JVM specific. Has anyone succe...

Porting JDBCRealm from tomcat to OC4J

I'm porting a servlet from Tomcat 5.5 to OC4J 10.1.3.1. In Tomcat we set up a JDBCRealm for authentication and authorization. This was configured via the $TOMCAT_HOME/conf/server.xml. Is there a similar mechanism in OC4J? Where do I start looking for it? How do I define it? ...

Java WebServices with Spring and OAS/OC4J

I'm having problems deploying a simple WebServices app (like "Hello World" simple) to OC4J. The same code works fine under Jetty, but breaks in OC4J, and I'm wondering if anyone else has faced the same issue. I'm using Enterprise Manager to deploy the app, but the deployment fails with this message: [Jan 23, 2009 8:46:20 AM] Binding...

OC4J EAR file format - support jar files

I've worked with JBoss and WebLogic before, but this is the first job I've been at where we've used OC4J. We're using version 10.1.2.0.2, but using JRE 1.4.2. I'm creating an EAR file, complete with one WAR file and one EJB file. Instead of entity beans, we're using Spring/Hibernate to access the db, so the EJBs are session beans. The qu...

OC4J - toplink 10/11 at same time ?

Can you use both toplink v. 10 (toplink essentials) and toplink v. 11 (eclipselink) at the same time within the OC4J application server? Both are different implementations of JPA. I was wondering if both implementations can be added to the OC4J application server so that bean jars can choose themselves which implementation to use. Ple...

Deploying to OC4j: Unable to find/read file META-INF/application.xml

Continuum build server deploys to my oc4j instance I get the following error it seems every other build. 09/03/10 13:47:49 Notification ==>Operation failed with error: Unable to find/read file META-INF/application.xml in C:\oc4j\j2ee\home\applications\rrs (META-INF/application.xml) Continuum is running in a windows environment Any inp...

Browser asking to save JSPs

I've worked with JBoss and WebLogic before, but at my current job, we're using OC4J, which is a first for me. I think that my problem might be related to that. I'm creating an EAR file that has one WAR file inside it. The top level JSPs seems to display correctly, but when I try to display a JSP in a subdirectory, like secure/index.do or...

How to enable debug_mode for a JSP page

when you hit a serious compilation error while writing JSP pages and running under Oracle OC4J or Application Server, you can end up with the following displayed on screen: 500 Internal Server Error OracleJSP: An error occurred. Consult your application/system administrator for support. Programmers should consider setting the...

Does changing Log4j's log.properties require a restart?

Does changing Log4j's log.properties require a restart for the changes to take effect? I'm trying to work out an issue in one of our systems and don't have the ability to restart the server process (OC4J in this case). ...

How to fix a Resource not Found error in OC4J?

I am trying to deploy a web app on OC4J, and although I've followed the instructions to the letter and the deployment process goes without a hitch, I keep getting a 500 error (below). I am a newbie in OC4J, so I would appreciate some hints on what to look at and tinker with (XML/settings/etc) to fix this. Here's the actual error, just ...

How can OC4J be configured to support Arabic?

How can OC4J be configured to support Arabic? some arabic contents appear as ? question marks, however in the pages that this probelm arises in it, the page encoding (<%@ page pageEncoding="windows-1256" %>) is set properly (I tried all possible alternative windows-1256, utf8, ... etc) ...

How to send a username between web service requests?

Basically the problem is this: There is a stored database procedure that takes a username as an argument and produces some XML data depending on it. It is called by a method with no arguments in an unsecured web service (let's call that web service WSA). There is also another web service (let's call it WSB) which is supposed to call WSA....

Good tutorial on OC4J Java Web Services.

Hi I'm new at developing web services but I would like to know if anyone knows a good place to find an end-to-end tutorial on how to develop, deploy, and test a Java based Web-Service onto an OC4J environment. Thank you ...

How do I add a switch to server startup in Eclipse?

I'm using eclipse to manage my server instance, I'm wondering if it's possible to add other options/switches to the command that starts the server. Let me know if there's a way, or if I'm taking the wrong approach... This is the error I'm getting in my application (using Quartz): Not in an application scope - start OC4J with the -userT...

How do I create an EAR file with an ant build including certain files?

I'm using eclipse to build an ear file using ant. I'm using oc4j, and I want to make sure that orion-application.xml is included in the build. What I'm currently using but does not work is: <target name="ear" depends=""> <echo>Building the ear file</echo> <copy todir="${build.dir}/META-INF"> <fileset dir="${conf.dir}"...