oc4j

SEVERE: A message body writer for Java class java.util.ArrayList and MIME media type application/json was not found

百般思念 提交于 2019-12-29 08:27:31
问题 I am testing RESTful services and when I execute I am getting exceptions although I have the following jars in my class path(WEB-INF/lib), I am not using Maven and my JDK version is 1.5. Other questions regarding this issue didn't help to resolve the problem. Code snippet @GET @Produces("application/json") //@Produces({MediaType.APPLICATION_JSON}) tried this, didn't work either public List<Emp> getEmployees() { List<Emp> empList = myDAO.getAllEmployees(); log.info("size " + empList.size());

Using log4j in oc4j 10.1.3

爷,独闯天下 提交于 2019-12-23 03:20:35
问题 I have a web application running on OC4J 10.1.3. I am trying to do some logging using log4j. The messages show up in my IDE console as expected, but nothing is going into the application.log in OC4J. Anybody know what I need to do to get this working? Here's my log4j.properties: log4j.rootCategory=DEBUG, CON1 # CON1 is set to be ConsoleAppender sending its output to System.out log4j.appender.CON1=org.apache.log4j.ConsoleAppender log4j.appender.CON1.layout=org.apache.log4j.PatternLayout log4j

Determine Which Application Server our application is deployed to?

假装没事ソ 提交于 2019-12-20 01:11:22
问题 Our J2EE Application is deployed to JBoss and sometimes to OC4J . Can I know which one is being used? I hope there is a method returning the container information on runtime. 回答1: Simplest thing I can think of is to look through the system properties at runtime, since both servers are almost certainly going to define their own. For example, JBoss 4 defines the jboss.server.dir system property. Check to see if that property exists, and if it does, then you can assume you're running under that

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

穿精又带淫゛_ 提交于 2019-12-17 22:16:46
问题 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}" includes="orion-application.xml"/> </copy> <ear destfile="${dist.dir}/${ant.project.name}.ear" appxml="${conf.dir}/application.xml"> <fileset dir="${dist.dir}" includes="*.jar,*

Unable to run OAF page in JDeveloper in Oracle EBS R12

不打扰是莪最后的温柔 提交于 2019-12-13 19:45:21
问题 I've been following this Video tutorial: https://www.youtube.com/watch?v=_xTfRIRPsNU to run a OAF page in JDeveloper in Oracle E-Business Suite R12 As shown in the video I made a successful database connection from JDeveloper to Oracle EBS through the correct DBC file, I opened the sample projects I got with JDeveloper and set all necessary Runtime Connection information. After rebuilding the included 'tutorial' project, I reached the final step, ie, running 'HomePG.xml', but I'm unable to

OC4J to WebLogic 12c migration and security configuration questions

佐手、 提交于 2019-12-11 05:59:05
问题 In OC4J, we were using a custom JAAS LoginModule. I've created a SqlAuthenticator that replicates that same logic, and that seems to work. For our app, when I go to the login page and enter the wrong password, it sends me to the login failed page. That part's fine. However, when I enter the correct password, WebLogic just sends me back to the welcome page, with no message. I can't find anything in the log files to help me out. I'm guessing that it's an authorization problem, as opposed to

ORACLE OC4J服务器不支持XFire webservices的解决方案

☆樱花仙子☆ 提交于 2019-12-09 21:20:14
在开发项目的时候,调式demo时,采用XFire架构的webservices在tomcat下能正常运行,但是迁移到Oracle oc4j服务器下后失效了,无法运行,调用服务时总是显示错误,而且有两个命名空间,查了好久,网络基本没资料,后来查到一个英文的资料,说大概是OC4J自身带有xml解析工具的问题,导致无法解析,后来变通了一下,换成axis2架构,重新创建一个webservices工程,能顺利在OC4J上运行.以上只给出了思路.希望能有所帮助.建议少用XFire,与很多服务器有不良反应,而且问题比较古怪. 来源: oschina 链接: https://my.oschina.net/u/66324/blog/140772

JSP files in external directory

橙三吉。 提交于 2019-12-02 13:50:05
问题 In my project, we allow customer to write customer specific logic in JSP pages and attach to our product. Right now after deploying .ear file customer copy the custom files under /WebContent/custom directory so that we can refer those JSPs. This is a tedious process for installation, I would like to simplify this. I tried the following solution 1) extendedDocumentRoot - IBM WebSphere It works fine when I kept the JSP outside the EAR deployment directory 2) OC4J - This solution also works fine

Determine Which Application Server our application is deployed to?

空扰寡人 提交于 2019-12-01 18:31:33
Our J2EE Application is deployed to JBoss and sometimes to OC4J . Can I know which one is being used? I hope there is a method returning the container information on runtime. skaffman Simplest thing I can think of is to look through the system properties at runtime, since both servers are almost certainly going to define their own. For example, JBoss 4 defines the jboss.server.dir system property. Check to see if that property exists, and if it does, then you can assume you're running under that server. OC4J will have something similar. Alternatively, try reflectively loading a class that is

Batch script for set env. variable startup OC4J and remove env. variable

江枫思渺然 提交于 2019-12-01 14:01:29
on local computer are installed an Oracle client (11.2.0) and an OC4J Server (Oracle Containers for J2EE 10g (10.1.3.5.0) (build 090727.2000.36696)), both of them are using the ORACLE_HOME enviroment variable so I need to set ORACLE_HOME pointing to server folder only when server starts I'm trying to generate batch file that must do: Set enviroment variable ORACLE_HOME Start up OC4J server Unset ORACLE_HOME variable I'm trying with this script but the third statement never runs. call setx -m ORACLE_HOME "C:\Servers\oc4j_extended_101350" call C:\Servers\oc4j_extended_101350\bin\oc4j -start call