oc4j

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

爷,独闯天下 提交于 2019-12-01 12:06: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

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

邮差的信 提交于 2019-11-29 13:11:06
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()); return empList; } @XmlRootElement public class Emp { ...... web.xml <servlet> <servlet-name>Jersey Web

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

雨燕双飞 提交于 2019-11-28 18:02:20
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,*.war"/> </ear> </target> What is the right way to add this to the ear? ChssPly76 Ant EAR task