Error deploying to standalone OC4J app server

Hey all,
I created a web app with jdeveloper 10.1.3.3 using OC4J 10.1.3.3 as well. I'm using EJB and session beans to communicate with a database. nothing particularly fancy about it, i just read tables from the db. however, when i try and deploy through jdev to the standalone OC4J i get an error. here's the last part of the deployment log when it fails:
Deployment Log:
Binding ibmswauth web-module for application ibmswauth to site default-web-site under context root ibmswauth
Operation failed with error:
[ibmswauth:ibmswauth] - Exception creating EntityManagerFactory using PersistenceProvider class oracle.toplink.essentials.PersistenceProvider for persistence unit WD_WORK.
The only thing in my Persistence.xml file is the <persistence-unit> tag with name "WD_WORK", and in that a <jta-data-source> tag.
Also, it runs fine on the local embedded server, it's only when i try and deploy that it gives this error. I even deployed my app to an EAR file and tried uploading it manually to the app server, still same error.
any ideas?

If you have a model project that has objects referenced by the view controller/UI project then you need to explicitly include them in the deployment. Unlike in embedded OC4J they wont be automatically included.
Create an ADF library deployment profile in the model project and include the generated library in your UI project war file. You can add this jar to the project Libraries/Classpath then make sure it is included in the WEB-INF/lib Contributors list.

Similar Messages

  • Error deploying EJBs on Sun App Server

    Someone please help, I am getting a strange problem when deploying an EJB jar.
    I have had this code working before (before Xmas), but now I am getting the following error:
    java.lang.NoSuchMethodException: com.enterprise.entity.ContentBean.getId();Remote;public abstract java.lang.Integer com.enterprise.entity.ContentRemote.getId() throws java.rmi.RemoteException;_RequestID=e1c03c30-18d9-4f08-b57f-58d97180c1d9;|EJB5111:Bean class for ejb [content:java.lang.NoSuchMethodException: com.enterprise.entity.ContentBean.getId()] does not define a method corresponding to [Remote] interface method [public abstract java.lang.Integer com.enterprise.entity.ContentRemote.getId() throws java.rmi.RemoteException]
    Code snippets of offending classes:
    In remote interface:
    public interface ContentRemote extends EJBObject {
        public Integer getId() throws RemoteException;
    }In bean class:
    public Integer getId() throws RemoteException {
            return new Integer(this.id);
    }I think the code is right, please could someone suggest where I am going wrong, this is driving me up the wall.....
    Thanks.....
    null

    Hello,
    the build runs a verifier on your EJBs and makes sure everything is in proper order. The ear file holds everything, including the jsps which are inside the war file that gets created.
    Regards jP

  • Error deployment to standalone oc4j (jdeve 11g tech prev 3)

    something to do with persistence...
    and entitymanager.. similar to bundleoc4j issue..
    AnnotatedClassNotFoundException
    even though the classes are chosen and checkmarked..
    (as in 10g)
    Caused by: java.lang.InstantiationException: Application: M2miAPplicationDemo is in failed state as initialization failed
         at com.evermind.server.Application.setConfig(Application.java:645)
         at com.evermind.server.Application.setConfig(Application.java:448)
         at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:2114)
         at oracle.oc4j.admin.internal.ApplicationDeployer.addApplication(ApplicationDeployer.java:554)
         ... 7 more
    Caused by: oracle.oc4j.persistence.PersistenceException: [M2miAPplicationDemo] - Exception creating EntityManagerFactory using PersistenceProvider class oracle.toplink.PersistenceProvider for persistence unit Model.
         at oracle.oc4j.persistence.PersistenceException.exceptionCreatingEntityManagerFactory(PersistenceException.java:113)
         at oracle.oc4j.persistence.PersistenceUnitManagerImpl.createContainerEntityManagerFactory(PersistenceUnitManagerImpl.java:177)
         at oracle.oc4j.persistence.PersistenceUnitManagerImpl.createPersistenceUnit(PersistenceUnitManagerImpl.java:139)
         at oracle.oc4j.persistence.PersistenceUnitManagerImpl.initialize(PersistenceUnitManagerImpl.java:79)
         at oracle.oc4j.persistence.ServerPersistenceUnitManagerImpl.initialize(ServerPersistenceUnitManagerImpl.java:17)
         at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:268)
         at com.evermind.server.Application.setConfig(Application.java:551)
         ... 10 more
    Caused by: javax.persistence.PersistenceException: Exception [TOPLINK-28018] (Oracle TopLink - 11g Technology Preview 3 (11.1.1.0.0) (Build 071207)): oracle.toplink.exceptions.EntityManagerSetupException
    Exception Description: Predeployment of PersistenceUnit [Model] failed.
    Internal Exception: Exception [TOPLINK-30007] (Oracle TopLink - 11g Technology Preview 3 (11.1.1.0.0) (Build 071207)): oracle.toplink.exceptions.PersistenceUnitLoadingException
    Exception Description: An exception was thrown while loading class: m2mi.model.Hoststats to check whether it implements @Entity, @Embeddable, or @MappedSuperclass.
    Internal Exception: oracle.classloader.util.AnnotatedClassNotFoundException:
         Missing class: m2mi.model.Hoststats
         Dependent class: oracle.toplink.internal.ejb.cmp3.persistence.PersistenceUnitProcessor
         Loader: oracle.toplink:11.1.1.0.0
         Code-Source: /C:/jdeveloper/lib/java/shared/oracle.toplink/11.1.1.0.0/toplink-core.jar
         Configuration: <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\jdeveloper\j2ee\home\oc4j.jar

    Hi,
    please try this with the embedded OC4J that you can start as stand alone server. If you use the OC4J isntance you download from OTN then you get one of version TP1, which is probably not working well with the changes in JDeveloper 11 TP3
    Frank

  • Failed deployment to standalone oc4j server from JDeveloper 10.1.2

    Built a simple application using JHeadStart 10.1.2
    I could deploy it when I defined the datasource connections inside the application. When I changed the datasource connections to refur to the jndi lookup values found in data-sources.xml it works only on the oc4j app server embedded into jdeveloper 10.1.2.
    When I deploy the ear file to my standalone version it fails with the following stack trace:
    JBO-30003: The application pool (com.bcaa.maint.model.common.AppNEATGlobalParameterLocal) failed to checkout an application module due to the following exception:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.ClassCastException, msg=null
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1772)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2611)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:441)
         at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:230)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:411)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:406)
         at oracle.adf.model.bc4j.DCJboDataControl.rebuildApplicationModule(DCJboDataControl.java:1336)
         at oracle.adf.model.bc4j.DCJboDataControl.beginRequest(DCJboDataControl.java:1234)
         at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:76)
         at oracle.adf.model.BindingContext.get(BindingContext.java:411)
         at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:228)
         at oracle.adf.model.binding.DCUtil.findContextObject(DCUtil.java:308)
         at oracle.adf.model.binding.DCIteratorBinding.<init>(DCIteratorBinding.java:127)
         at oracle.jbo.uicli.binding.JUIteratorBinding.<init>(JUIteratorBinding.java:59)
         at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:58)
         at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:47)
         at oracle.adf.model.binding.DCBindingContainerDef.createIterBindings(DCBindingContainerDef.java:197)
         at oracle.adf.model.binding.DCBindingContainerDef.createBindingContainer(DCBindingContainerDef.java:273)
         at oracle.adf.model.binding.DCBindingContainerReference.getBindingContainer(DCBindingContainerReference.java:40)
         at oracle.adf.model.BindingContext.get(BindingContext.java:427)
         at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:228)
         at oracle.adf.model.binding.DCUtil.findContextObject(DCUtil.java:308)
         at oracle.adf.model.binding.DCUtil.findBindingContainer(DCUtil.java:536)
         at oracle.adf.controller.lifecycle.LifecycleContext.initialize(LifecycleContext.java:121)
         at oracle.adf.controller.lifecycle.LifecycleContext.initialize(LifecycleContext.java:77)
         at oracle.adf.controller.struts.actions.DataActionContext.initialize(DataActionContext.java:51)
         at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:150)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at oracle.jheadstart.controller.strutsadf.JhsActionServlet.process(JhsActionServlet.java:127)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)
         at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
         at org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1012)
         at org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:582)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:260)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at oracle.jheadstart.controller.strutsadf.JhsActionServlet.process(JhsActionServlet.java:127)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)
         at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
         at org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1012)
         at org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:582)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:260)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at oracle.jheadstart.controller.strutsadf.JhsActionServlet.process(JhsActionServlet.java:127)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
         at oracle.jheadstart.controller.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:172)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
         at com.bcaa.maint.view.filter.NEATUserFilter.doFilter(NEATUserFilter.java:65)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:793)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.lang.ClassCastException
         at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1385)
         at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:271)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolConnect(ApplicationModuleImpl.java:8014)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:7785)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:3923)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:1915)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1739)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2611)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:441)
         at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:230)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:411)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:406)
         at oracle.adf.model.bc4j.DCJboDataControl.rebuildApplicationModule(DCJboDataControl.java:1336)
         at oracle.adf.model.bc4j.DCJboDataControl.beginRequest(DCJboDataControl.java:1234)
         at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:76)
         at oracle.adf.model.BindingContext.get(BindingContext.java:411)
         at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:228)
         at oracle.adf.model.binding.DCUtil.findContextObject(DCUtil.java:308)
         at oracle.adf.model.binding.DCIteratorBinding.<init>(DCIteratorBinding.java:127)
         at oracle.jbo.uicli.binding.JUIteratorBinding.<init>(JUIteratorBinding.java:59)
         at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:58)
         at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:47)
         at oracle.adf.model.binding.DCBindingContainerDef.createIterBindings(DCBindingContainerDef.java:197)
         at oracle.adf.model.binding.DCBindingContainerDef.createBindingContainer(DCBindingContainerDef.java:273)
         at oracle.adf.model.binding.DCBindingContainerReference.getBindingContainer(DCBindingContainerReference.java:40)
         at oracle.adf.model.BindingContext.get(BindingContext.java:427)
         at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:228)
         at oracle.adf.model.binding.DCUtil.findContextObject(DCUtil.java:308)
         at oracle.adf.model.binding.DCUtil.findBindingContainer(DCUtil.java:536)
         at oracle.adf.controller.lifecycle.LifecycleContext.initialize(LifecycleContext.java:121)
         at oracle.adf.controller.lifecycle.LifecycleContext.initialize(LifecycleContext.java:77)
         at oracle.adf.controller.struts.actions.DataActionContext.initialize(DataActionContext.java:51)
         at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:150)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at oracle.jheadstart.controller.strutsadf.JhsActionServlet.process(JhsActionServlet.java:127)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)
         at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
         at org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1012)
         at org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:582)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:260)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at oracle.jheadstart.controller.strutsadf.JhsActionServlet.process(JhsActionServlet.java:127)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)
         at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
         at org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1012)
         at org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:582)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:260)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at oracle.jheadstart.controller.strutsadf.JhsActionServlet.process(JhsActionServlet.java:127)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
         at oracle.jheadstart.controller.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:172)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
         at com.bcaa.maint.view.filter.NEATUserFilter.doFilter(NEATUserFilter.java:65)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:793)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)

    ok - this is just wierd - I get an object back from the jndi context. .getClass().getName identifies it as an instance of OrionCMTDataSource, which is a subclass of OrionPooledDataSource which implements javax.sql.DataSource.
    I should be able to cast the object directly to a DataSource type, but when I try it throws a ClassCast exception.
    If I Cast to an OrionCMTDataSource then to a DataSource it casts correctly... WTF ?!?
    oh - and my ADF application is still broken...
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.ClassCastException, msg=null
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1772)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2611)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:441)
         at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:230)
    ## Detail 0 ##
    java.lang.ClassCastException
         at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1385)
         at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:271)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolConnect(ApplicationModuleImpl.java:8014)
    ???

  • JspParse Error when trying to run jsp/jspx page deployed on standalone OC4J

    I have ADF Faces Application, which is developed with JDev 11 TP3.
    I have deployed the application to Standalone OC4J Server, packed within JDeveloper 11 TP3.
    The problem comes, when i try to acess my login jsp or other JSPX page,then i receive the following error on the standalone OC4J Server console:
    for the JSP:
    JSP Servlet Error: Internal Error, registered Directive handlers MUST descend from JspDirective
    oracle.jsp.parse.JspParseException: /login.jsp : Line 4,
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    The content of my JSP page (login.jsp) is:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1251"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    for JSPX:
    Directive handlers must descend from JSP Directive..
    But i have:
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=windows-1251"/>
    That works fine with JDev embedded OC4J.
    Thank you in advance,
    Krasimir
    Message was edited by:
    K.Penev

    Same trouble. Anyone have solution?
    JDeveloper 11 TP4
    OC4J 11 TP4 from this http://www.oracle.com/technology/tech/java/oc4j/index.html
    Do this instruction http://www.oracle.com/technology/products/jdev/tips/muench/oc4j11gtp/index.html
    Nothing to change.
    Message was edited by:
    user644372

  • Urgent :deployment to Standalone OC4J failed

    Hi,
    I am posting this problem for second time.
    It is of utmost importance for me to solve the problem b'coz the whole progress of my project/application depends on successfully working of the application on Standalone OC4J.So can anybody plz help me.
    1)I have developed an application using Struts framework(For the View and controller part ) and EJBs. When I run this application using the Embedded OC4J provided with JDeveloper,it runs fine.But when I try to deploy the same to the StandAlone OC4J(which I downloaded from OTN) or to the Application Server,I get the following error
    --503 Service Unavailable,Servlet error: Parsing error processing resource path ---
    2)The StandAlone OC4J version is 9.0.4.0.0 and I used JDK 1.4.
    3)The same application runs fine when deployed to StandAlone OC4J when I developed it using only JSPs and EJB.
    4)I even added the different libs for Struts inside WEB-XML folder under my Application Folder Structure.
    5)The StandAlone OC4J Server runs fine and displays the First Page when it is started.
    6)I even installed a totally new StandAlone OC4J and deployed all my previous applications to this new server.All the applications except where I used Struts Framework ran fine.
    The Error Message is
    04/11/01 10:36:44 Notification ==> Unpack EJBapplication.ear begins...
    04/11/01 10:36:44 Auto-unpacking C:\OC4J\New Folder\j2ee\home\applications\EJBap
    plication.ear... done.
    04/11/01 10:36:44 Notification ==> Unpack EJBapplication.ear ends...
    04/11/01 10:36:44 Notification ==> Initialize EJBapplication.ear begins...
    04/11/01 10:36:44 Auto-unpacking C:\OC4J\New Folder\j2ee\home\applications\EJBap
    plication\EJBDEMOwar.war... done.
    04/11/01 10:36:45 Copying default deployment descriptor from archive at C:\OC4J\
    New Folder\j2ee\home\applications\EJBapplication/META-INF/orion-application.xml
    to deployment directory C:\OC4J\New Folder\j2ee\home\application-deployments\EJB
    application...
    04/11/01 10:36:45 Notification ==> Initialize EJBapplication.ear ends...
    04/11/01 10:36:45 Notification ==> Initialize EJBDEMOwar begins...
    04/11/01 10:36:45 Notification ==> Initialize EJBDEMOwar ends...
    04/11/01 10:36:46 ArchiveContext: containsDirectory(META-INF) plus '/' found in
    C:\OC4J\New Folder\j2ee\home\applications\EJBapplication\EJBDEMOear.jar in entry
    META-INF/MANIFEST.MF
    04/11/01 10:36:46 Copying default deployment descriptor from archive at C:\OC4J\
    New Folder\j2ee\home\applications\EJBapplication\EJBDEMOear.jar/META-INF/orion-e
    jb-jar.xml to deployment directory C:\OC4J\New Folder\j2ee\home\application-depl
    oyments\EJBapplication\EJBDEMOear.jar...
    04/11/01 10:36:46 Auto-deploying - EJBDEMOear.jar (No previous deployment found)
    04/11/01 10:36:49 Auto-deploying - compiling and loading...
    04/11/01 10:37:00 done.
    04/11/01 10:37:00 Notification ==> Application Deployer for EJBapplication COMPL
    ETES [ 2004-11-01T10:37:00.405IST ]
    Nov 1, 2004 10:37:04 AM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=tru
    e
    Nov 1, 2004 10:37:04 AM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNul
    l=true
    Nov 1, 2004 10:37:04 AM org.apache.commons.digester.Digester startElement
    SEVERE: Begin event threw exception
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property
    Utils.java:1789)
    at org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property
    Utils.java:1684)
    at org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.
    java:1713)
    at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:101
    9)
    at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
    at org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule
    .java:259)
    at org.apache.commons.digester.Rule.begin(Rule.java:200)
    at org.apache.commons.digester.Digester.startElement(Digester.java:1273)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingPa
    rser.java:1181)
    at oracle.xml.parser.v2.ValidatingParser.parseRootElement(ValidatingPars
    er.java:138)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingP
    arser.java:267)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149)
    at org.apache.commons.digester.Digester.parse(Digester.java:1548)
    at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionSe
    rvlet.java:1006)
    at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet
    .java:955)
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.
    java:2094)
    at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.
    java:4523)
    at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpAppl
    ication.java:4617)
    at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.
    java:765)
    at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:
    497)
    at com.evermind.server.Application.getHttpApplication(Application.java:8
    86)
    at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.jav
    a:688)
    at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:570)
    at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:263)
    at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplica
    tionBinder.java:171)
    at com.evermind.server.administration.DefaultApplicationServerAdministra
    tor.bindWebApp(DefaultApplicationServerAdministrator.java:364)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
    3)
    at com.evermind.util.OC4JSecureClassLoader.defineClassEntry(OC4JSecureCl
    assLoader.java:172)
    at com.evermind.naming.ContextClassLoader.defineClass(ContextClassLoader
    .java:1154)
    at com.evermind.naming.ContextClassLoader.findClass(ContextClassLoader.j
    ava:390)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at com.evermind.naming.ContextClassLoader.loadClass(ContextClassLoader.j
    ava:138)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
    at com.evermind.naming.ContextClassLoader.loadClass(ContextClassLoader.j
    ava:138)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at org.apache.struts.config.FormBeanConfig.formBeanClass(FormBeanConfig.
    java:320)
    at org.apache.struts.config.FormBeanConfig.setType(FormBeanConfig.java:1
    91)
    ... 40 more
    Nov 1, 2004 10:37:04 AM org.apache.struts.action.ActionServlet handleConfigExcep
    tion
    SEVERE: Parsing error processing resource path
    java.lang.reflect.InvocationTargetException
    at org.apache.commons.digester.Digester.createSAXException(Digester.java
    :2540)
    at org.apache.commons.digester.Digester.createSAXException(Digester.java
    :2566)
    at org.apache.commons.digester.Digester.startElement(Digester.java:1276)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingPa
    rser.java:1181)
    at oracle.xml.parser.v2.ValidatingParser.parseRootElement(ValidatingPars
    er.java:138)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingP
    arser.java:267)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149)
    at org.apache.commons.digester.Digester.parse(Digester.java:1548)
    at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionSe
    rvlet.java:1006)
    at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet
    .java:955)
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.
    java:2094)
    at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.
    java:4523)
    at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpAppl
    ication.java:4617)
    at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.
    java:765)
    at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:
    497)
    at com.evermind.server.Application.getHttpApplication(Application.java:8
    86)
    at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.jav
    a:688)
    at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:570)
    at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:263)
    at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplica
    tionBinder.java:171)
    at com.evermind.server.administration.DefaultApplicationServerAdministra
    tor.bindWebApp(DefaultApplicationServerAdministrator.java:364)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)
    Nov 1, 2004 10:38:25 AM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNul
    l=true
    Nov 1, 2004 10:38:25 AM org.apache.commons.digester.Digester startElement
    SEVERE: Begin event threw exception
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property
    Utils.java:1789)
    at org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property
    Utils.java:1684)
    at org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.
    java:1713)
    at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:101
    9)
    at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
    at org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule
    .java:259)
    at org.apache.commons.digester.Rule.begin(Rule.java:200)
    at org.apache.commons.digester.Digester.startElement(Digester.java:1273)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingPa
    rser.java:1181)
    at oracle.xml.parser.v2.ValidatingParser.parseRootElement(ValidatingPars
    er.java:138)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingP
    arser.java:267)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149)
    at org.apache.commons.digester.Digester.parse(Digester.java:1548)
    at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionSe
    rvlet.java:1006)
    at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet
    .java:955)
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.
    java:2094)
    at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.
    java:4523)
    at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApp
    lication.java:2561)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
    tHandler.java:640)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:270)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:112)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
    3)
    at com.evermind.util.OC4JSecureClassLoader.defineClassEntry(OC4JSecureCl
    assLoader.java:172)
    at com.evermind.naming.ContextClassLoader.defineClass(ContextClassLoader
    .java:1154)
    at com.evermind.naming.ContextClassLoader.findClass(ContextClassLoader.j
    ava:390)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at com.evermind.naming.ContextClassLoader.loadClass(ContextClassLoader.j
    ava:138)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
    at com.evermind.naming.ContextClassLoader.loadClass(ContextClassLoader.j
    ava:138)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at org.apache.struts.config.FormBeanConfig.formBeanClass(FormBeanConfig.
    java:320)
    at org.apache.struts.config.FormBeanConfig.setType(FormBeanConfig.java:1
    91)
    ... 29 more
    Nov 1, 2004 10:38:25 AM org.apache.struts.action.ActionServlet handleConfigExcep
    tion
    SEVERE: Parsing error processing resource path
    java.lang.reflect.InvocationTargetException
    at org.apache.commons.digester.Digester.createSAXException(Digester.java
    :2540)
    at org.apache.commons.digester.Digester.createSAXException(Digester.java
    :2566)
    at org.apache.commons.digester.Digester.startElement(Digester.java:1276)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingPa
    rser.java:1181)
    at oracle.xml.parser.v2.ValidatingParser.parseRootElement(ValidatingPars
    er.java:138)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingP
    arser.java:267)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149)
    at org.apache.commons.digester.Digester.parse(Digester.java:1548)
    at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionSe
    rvlet.java:1006)
    at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet
    .java:955)
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.
    java:2094)
    at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.
    java:4523)
    at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApp
    lication.java:2561)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
    tHandler.java:640)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:270)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:112)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:534)

    Add to WEB-INF/lib
    struts.jar
    tiles.jar
    commons-beanutils.jar
    commons-collections.jar
    commons-digester.jar

  • Deployment problem on 10g App server and 8.1.6 Oracle Db

    Hello
    I have a problem. I have an application which were developed on Jdeveloper by using ADF Classes. Apllication has consist of 2 project 1st project run on 10g DB. Second one connected to 8.1.6. Apllication run well on Embedded OC4j of J Developer. But While ı have deployed the application to App Server 10g, Part of the Application which uses 10 g is working but part of the application which uses 8.1.6 not working. When I Try to connect the application i get the following error.
    I thought that this may be caused because of security setting.
    Application which uses 8.1.7 cannot be open JDBC connection. Authentication may cause this problem.
    But i couldnt resolve
    Any Idea?
    ERROR MESSAGE :
    at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
    at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:56)
    at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:856)
    at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1095)
    at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:5724)
    at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:6843)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:3886)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:1886)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1711)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2576)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:441)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:411)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:406)
    at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1370)
    at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1328)
    at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1300)
    at pasttel.view.MindBalanceAction.<init>(MindBalanceAction.java:33)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    at java.lang.Class.newInstance0(Class.java:308)
    at java.lang.Class.newInstance(Class.java:261)
    at org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:231)
    at org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcessor.java:326)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:268)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:228)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher
    .java:649)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
    at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:220)
    at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:135)
    at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:523)
    at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:318)
    at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:87)
    at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
    at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:56)
    at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:856)
    at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1095)
    at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:5724)
    at oracle.jbo.server.DBTransactionImpl2.connect(DBTransactionImpl2.java:116)
    at oracle.jbo.server.ApplicationModuleImpl.doPoolConnect(ApplicationModuleImpl.java:7073)
    at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:6843)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:3886)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:1886)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1711)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2576)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:441)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:411)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:406)
    at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1370)
    at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1328)
    at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1300)
    at pasttel.view.MindBalanceAction.<init>(MindBalanceAction.java:33)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    at java.lang.Class.newInstance0(Class.java:308)
    at java.lang.Class.newInstance(Class.java:261)
    at org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:231)
    at org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcessor.java:326)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:268)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:228)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:649)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)
    at oracle.jbo.server.DBTransactionImpl2.connect(DBTransactionImpl2.java:116)
    at oracle.jbo.server.ApplicationModuleImpl.doPoolConnect(ApplicationModuleImpl.java:7073)

    From the App Server oracle home, and with the same connection information as app is using, can you connect to 8.1.6 db with sqlplus?
    You said it works from JDeveloper - which version?
    From AS 10.1.2 (which means net/client libraries 10.1.0.3) I get
    "ORA-03134: Connections to this server version are no longer supported."
    To 8.1.7.4 database connection succeeds. (hint: 8.1.6 is not supported!)
    Maybe this could be the culprit?

  • Oc4j starting with Oracle Database & oc4j App Server on same machine

    Hi ALL, can anybody help me(pls read this)
    This is Sagar, i have created a GIS Application(java) using Oracle 10g.
    Senario I:
    oc4j server and oracle 10g Database Server on different machines:
    When i start oc4j server with NO. OF Mappers = 64 or 30 in DNS using
    1. oc4j -start (normally)
    from the path c:/oc4j/bin by setting ORACLE_HOME path normally
    application is working fine but when users are increased say 4 to 5 oc4j server gives error:
    java.lang.OutOfMemoryError: Java Heap Space
    I searched for this error i found a solution for starting oc4j as follows:
    2.Java -Xmx1024m -Xms1024m -jar oc4j.jar
    from the path c:/oc4j/j2ee/home --- oc4j.jar
    Then map & application works fine and fast since heap space is increased to 1GB (speed is noticable)
    but if...(in other senario)
    Senario II:
    oc4j server and oracle 10g Database Server on same machine:
    if step 2: is used form above senario, oc4j Server does not gets started only it gets initialized...(server does not gets started)
    but Step 1: is used application works fine but again heap space error as mentioned above is seen.
    Again if changes are made in oc4j.cmd file in c:/oc4j/bin ....by giving the heap space command oc4j works fine but the application(performance) is very very slow but heap space error is not seen.
    Please can any body suggest the solution.. application should work fast and also the heap space should be increased but taking the senario - oc4j App Server & Oracle 10g Database Server on Same machine..

    Hello,
    How much RAM do you have on the machine? What is the size of the SGA for the database you are using?
    if step 2: is used form above senario, oc4j Server does not gets started only it gets >initialized...(server does not gets started)What do you mean by this? Provide the output from the server when you start your server.

  • Deploying to standalone OC4J

    hi,
    I've got the same problem as below, but saw no answer - can anyone help???
    I have gone through all the steps to deploy on standalone OC4J 10 g. I started the oc4j from Command line and from the IDE when i right click my <appname>.deploy and choose "Deploy to <a connection>" in the log window i see that deployment is complete and it gave me a context root (http://nv1665:8888/webapp2). I used that context to open in the browser but the page is not accessible. I get an access denied! "HTTP Error 403 - Forbidden Internet Explorer"
    Is there a security issue with oc4j that I have overlooked?
    thanks for your time,
    diane

    got - wasn't referring to the complete deployment name...
    d

  • Deploy on Standalone OC4J

    Hi everyone,
    We are developing application on JDeveloper11 TP2. Now I am trying to run it on the latest OC4J TP4. Following instructions from: http://www.oracle.com/technology/products/jdev/tips/muench/oc4j11gtp/index.html
    and modifying default-web-site.xml I succeeded to deploy and run simple "Hello World" application and with it everything is fine. Our application that we are developing is much more complex (ADF Faces, ADF BC). I have deployed it and started it with success but when I try to access it from browser I receive internal server error with following server log:
    08/07/03 11:35:29 ADFc: BindingContext is not present, not using ADFm APIs for DataControlFrames.
    08/07/03 11:35:29 ADFc: Controller caching of MDS metadata resources ENABLED.
    08/07/03 11:35:29 ADFc: Loading bootstrap metadata from '/WEB-INF/adfc-config.xml'.
    08/07/03 11:35:29 ADFc: Loading bootstrap metadata from '/WEB-INF/adfc-config.xml'.
    08/07/03 11:35:29 WARNING: ADFc: Duplicate bootstrap configuration file specified:'/WEB-INF/adfc-config.xml'.
    08/07/03 11:35:50 WARNING: tee: Servlet error java.lang.ClassCastException:oracle.adf.share.security.providers.jazn.JAZNSecurityContext
    at oracle.adf.share.ADFContext.getSecurityContext(ADFContext.java:276)
    at oracle.adf.share.http.ServletADFContext.initialize(ServletADFContext.java:357)
    at oracle.adf.share.http.ServletADFContext.initThreadContext(ServletADFContext.java:333)
    at oracle.adf.model.servlet.HttpBindingRequestHandler.initADFContext(HttpBindingRequestHandler.java:60)
    at oracle.adf.model.BindingRequestHandler.beginRequest(BindingRequestHandler.java:103)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:170)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.adfinternal.view.faces.webapp.rich.SharedLibraryFilter.doFilter(SharedLibraryFilter.java:135)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:284)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:69)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:284)
    at oracle.adfinternal.view.faces.activedata.ADSFilter.doFilter(ADSFilter.java:74)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:284)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:208)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:165)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:583)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:334)
    at com.evermind.server.http.HttpRequestHandler.doDispatchRequest(HttpRequestHandler.java:942)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:843)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:658)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:626)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:417)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:189)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:163)
    at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:237)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:29)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:877)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
    at java.lang.Thread.run(Thread.java:595)
    What can be the reason for this and how can I solve it.
    Thanks!!!

    Hi again,
    as you suggested I tried with TP4 and it ended with success. I haven't used standalone oc4j because TP4 doesn't have adf runtime installer. Instead I have used embedded oc4j in standalone mode. First after deploying app I got missing class error which I solved with Missing library error while deploying the ADFBC application
    After that application pages are accessible but it is TP4 version of app and lot of things don't work as should.

  • Import not found when deploying to Standalone OC4J

    Hi,
    I'm developing a small application, consisting of a few classes and a few jsp pages. I'm using JDeveloper 9.0.3.1 with the sun j2sdk 1.4.2 for windows.
    I test my application with the embedded OC4J in Jdeveloper, and it runs fine. But when I deploy it to the standalone OC4J, I get this error:
    500 Internal Server Error
    OracleJSP: oracle.jsp.provider.JspCompileException:
    Errores de compilación:F:\programas\Oracle\jdeveloper\j2ee\home\application-deployments\Workspace4-WSWrappers-WS\WebServices\persistence\_pages\\_integrate2.java
    Note: sun.tools.javac.Main has been deprecated.
    F:\programas\Oracle\jdeveloper\j2ee\home\application-deployments\Workspace4-WSWrappers-WS\WebServices\persistence\_pages\_integrate2.java:6: Class webservices.Integrator not found in import.
    import webservices.Integrator;
    ^
    1 error, 1 warning
    This error does not happen when using the embedded OC4J server, only when deploying to the standalone. Since leaving JDeveloper up all times to use de app is not an option :) I really would appreciate any help towards solving this matter. I suspect it has to do with deployment options and whatnot, but I can't find anything wrong. Of course, I'm fairly new to this (jsp/OC4J), so it can be an obvious mistake right under my nose.
    thanks
    Javier

    Fixed. The problem was my Standalone OC4J was not properly installed, AND I was doin the deplyment wrong. Now it works by creating a war file, deploying to the war file and THEN deploying to the OC4J Standalone connection.
    So, if you start seeing "import not found" when deploying to standalone and it works on the embedded, check you war files to see if they REALLY are packing the classes they are supposed to carry.

  • Deployment to standalone OC4J

    Please Help!
    This app works well in Embedded OC4J but anytime I deploy it to standalone OC4J, I get the below error:
    Thanks
    ---- Deployment started. ---- Mar 5, 2005 1:31:09 PM
    Target platform is Standalone OC4J (AppServerConnection1).
    Wrote EJB JAR file to D:\Ora\jdev\mywork\App3\Model\deploy\ejb1.jar
    Wrote WAR file to D:\Ora\jdev\mywork\App3\ViewController\deploy\webapp1.war
    Wrote EAR file to D:\Ora\jdev\mywork\App3\ViewController\deploy\alashoofi.ear
    Invoking OC4J admin tool...
    D:\Ora\jdk\jre\bin\javaw.exe -jar D:\Ora\oc4j\j2ee\home\admin.jar ormi://Princeton/ admin **** -deploy -file D:\Ora\jdev\mywork\App3\ViewController\deploy\alashoofi.ear -deploymentName alashoofi
    Error: Deploy error: deploy failed!: ; nested exception is:
         oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-module; Exception Error in application alashoofi: Error loading package at file:/D:/Ora/oc4j/j2ee/home/applications/alashoofi/ejb1.jar,
    Error compiling D:\Ora\oc4j\j2ee\home\applications\alashoofi\ejb1.jar: Syntax error in source
    com.evermind.client.orion.AdminCommandException: Deploy error: deploy failed!: ; nested exception is:
         oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-module; Exception Error in application alashoofi: Error loading package at file:/D:/Ora/oc4j/j2ee/home/applications/alashoofi/ejb1.jar,
    Error compiling D:\Ora\oc4j\j2ee\home\applications\alashoofi\ejb1.jar: Syntax error in source
         at com.evermind.client.orion.DeployCommand.execute(DeployCommand.java:95)
         at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminConsole.java:118)
         at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminConsole.java:27)
    java.rmi.RemoteException: deploy failed!: ; nested exception is:
         oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-module; Exception Error in application alashoofi: Error loading package at file:/D:/Ora/oc4j/j2ee/home/applications/alashoofi/ejb1.jar,
    Error compiling D:\Ora\oc4j\j2ee\home\applications\alashoofi\ejb1.jar: Syntax error in source
         at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMIConnection.java:1527)
         at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java:1480)
         at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:55)
         at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:22)
         at __Proxy0.deploy(Unknown Source)
         at com.evermind.client.orion.DeployCommand.execute(DeployCommand.java:92)
         at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminConsole.java:118)
         at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminConsole.java:27)
    Caused by: oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-module; Exception Error in application alashoofi: Error loading package at file:/D:/Ora/oc4j/j2ee/home/applications/alashoofi/ejb1.jar,
    Error compiling D:\Ora\oc4j\j2ee\home\applications\alashoofi\ejb1.jar: Syntax error in source
         at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:91)
         at com.evermind.server.administration.DefaultApplicationServerAdministrator.internalDeploy(DefaultApplicationServerAdministrator.java:378)
         at com.evermind.server.administration.DefaultApplicationServerAdministrator.deploy(DefaultApplicationServerAdministrator.java:278)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Unknown Source)
    ---- Embedded exception
    oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-module; Exception Error in application alashoofi: Error loading package at file:/D:/Ora/oc4j/j2ee/home/applications/alashoofi/ejb1.jar,
    Error compiling D:\Ora\oc4j\j2ee\home\applications\alashoofi\ejb1.jar: Syntax error in source
         at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:91)
         at com.evermind.server.administration.DefaultApplicationServerAdministrator.internalDeploy(DefaultApplicationServerAdministrator.java:378)
         at com.evermind.server.administration.DefaultApplicationServerAdministrator.deploy(DefaultApplicationServerAdministrator.java:278)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Unknown Source)
    ---- Embedded exception
    java.lang.InstantiationException: Error initializing ejb-module; Exception Error in application alashoofi: Error loading package at file:/D:/Ora/oc4j/j2ee/home/applications/alashoofi/ejb1.jar,
    Error compiling D:\Ora\oc4j\j2ee\home\applications\alashoofi\ejb1.jar: Syntax error in source
         at com.evermind.server.ejb.EJBContainer.throwInstantiationException(EJBContainer.java:2428)
         at com.evermind.server.ejb.EJBContainer.postInitBatch(EJBContainer.java:2412)
         at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.java:2195)
         at com.evermind.server.Application.postInit(Application.java:553)
         at com.evermind.server.Application.setConfig(Application.java:170)
         at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1927)
         at oracle.oc4j.admin.internal.ApplicationDeployer.addApplication(ApplicationDeployer.java:407)
         at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:127)
         at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:73)
         at com.evermind.server.administration.DefaultApplicationServerAdministrator.internalDeploy(DefaultApplicationServerAdministrator.java:378)
         at com.evermind.server.administration.DefaultApplicationServerAdministrator.deploy(DefaultApplicationServerAdministrator.java:278)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Unknown Source)
    ---- Embedded exception
    java.lang.InstantiationException: Error initializing ejb-module; Exception Error in application alashoofi: Error loading package at file:/D:/Ora/oc4j/j2ee/home/applications/alashoofi/ejb1.jar,
    Error compiling D:\Ora\oc4j\j2ee\home\applications\alashoofi\ejb1.jar: Syntax error in source
         at com.evermind.server.ejb.EJBContainer.throwInstantiationException(EJBContainer.java:2428)
         at com.evermind.server.ejb.EJBContainer.postInitBatch(EJBContainer.java:2412)
         at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.java:2195)
         at com.evermind.server.Application.postInit(Application.java:553)
         at com.evermind.server.Application.setConfig(Application.java:170)
         at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1927)
         at oracle.oc4j.admin.internal.ApplicationDeployer.addApplication(ApplicationDeployer.java:407)
         at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:127)
         at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:73)
         at com.evermind.server.administration.DefaultApplicationServerAdministrator.internalDeploy(DefaultApplicationServerAdministrator.java:378)
         at com.evermind.server.administration.DefaultApplicationServerAdministrator.deploy(DefaultApplicationServerAdministrator.java:278)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Unknown Source)
    Exit status of OC4J admin tool (-deploy): 1
    Elapsed time for deployment: 34 seconds
    #### Deployment incomplete. #### Mar 5, 2005 1:31:43 PM

    you should deploy it in deploy file.
    example:
    1,start_oc4j in cmd.exe or .sh
    2,use run =====>deploy to===>new deploy
    3,input you information.
    4,right click the deploy file and click the deploy to .....

  • Deploying jdeveloper application to apps server fails

    I'm trying to deploy application from jdeveloper to apps server 10.1.2.02
    connection to apps server is successful. but deployment fails with foll error
    ---- Deployment started. ---- Sep 10, 2007 4:51:49 PM
    Target platform is Standard J2EE.
    Wrote EJB JAR file to D:\Program\JDeveloper\jdev\mywork\HDFCCustWeb\website\deploy\ejb1.jar
    Elapsed time for deployment: 1 second
    ---- Deployment finished. ---- Sep 10, 2007 4:51:50 PM
    ---- Deployment started. ---- Sep 10, 2007 4:54:37 PM
    Target platform is Oracle Application Server 10g 10.1.2 (Windows) (howsora9).
    Wrote EJB JAR file to D:\Program\JDeveloper\jdev\mywork\HDFCCustWeb\website\deploy\ejb1.jar
    Wrote EAR file to D:\Program\JDeveloper\jdev\mywork\HDFCCustWeb\website\deploy\ejb1.ear
    Invoking DCM servlet client...
    D:\Program\JDeveloper\jdk\jre\bin\javaw.exe -Djava.protocol.handler.pkgs=HTTPClient -jar D:\Program\JDeveloper\jdev\lib\oc4j_remote_deploy.jar http://howsora9:18100/Oc4jDcmServletAPI/ ias_admin **** redeploy G:\Oraappsr2 D:\Program\JDeveloper\jdev\mywork\HDFCCustWeb\website\deploy\ejb1.ear hdfccustweb
    Initializing log
    Servlet interface for OC4J DCM commands
    Command timeout defined at 600 seconds
    Executing DCM command...
    Executing command redeploy G:\Oraappsr2 D:\Program\JDeveloper\jdev\mywork\HDFCCustWeb\website\deploy\ejb1.ear hdfccustweb UNDEFINED
    Command = REDEPLOY
    Reading application's ear file
    Ear file was successfully read
    Opening connection to Oc4jDcmServlet
    Setting userName to ias_admin
    Sending command to DCM servlet
    HTTP response code = 200, HTTP response msg = OK
    Command was successfully sent to Oc4jDcmServlet
    Receiving session id from servlet to check command status
    Session id = 0a0000b746b40e54065c96c04298b795b7b5e8caef3b
    Please, wait for command to finish...
    Checking command status...
    Setting userName to ias_admin
    Setting Cookie to JSESSIONID=0a0000b746b40e54065c96c04298b795b7b5e8caef3b
    Checking command status
    HTTP response code = 200, HTTP response msg = OK
    Command has finished
    Receiving command exit value
    Receiving command output
    **** No output was received from command
    Closing connection to Oc4jDcmServlet
    #### DCM command did not complete successfully (-8)
    #### HTTP return code was -8
    Exit status of DCM servlet client: -8
    Elapsed time for deployment: 13 seconds
    #### Deployment incomplete. #### Sep 10, 2007 4:54:50 PM

    Try deploying directly from the OAS EM Web interface - it might provide a more detailed error message.
    If you are using JDev 10.1.3 my guess it might be that your deployment descriptor files are using J2EE 1.4 syntax instead of J2EE 1.3 syntax which is what OAS 10.1.2 expects.

  • JDeveloper won't deploy to standalone OC4J

    Hello:
    I have installed OC4J 10.1.3 and I want to get JDeveloper 10.1.3.3 to deploy to it. I completed to Application Server wizard using localhost and port 8888 as my settings. When I try to deploy a web app, the deployment pauses indefinitely with just the messages:
    ---- Deployment started. ---- Feb 18, 2008 11:20:54 AM
    Target platform is Standalone OC4J 10g 10.1.3 (OC4J101300).
    Wrote WAR file to C:\jdev10133\jdev\mywork\Experiments\A3\deploy\webapp.war
    Wrote EAR file to C:\jdev10133\jdev\mywork\Experiments\A3\deploy\webapp.ear
    I when I test the connection in the App Server properties it runs forever, too. I tried reading the online documentation to no avail. Is it the localhost and/or port 8888 causing the trouble? How can I find out the correct settings?
    Thanks.
    Eric

    hi Eric
    Did you use port 8888 in the connection your Application Server connection you defined?
    Typically that would be the HTTP port for the standalone OC4J, while you need the RMI port.
    I don't think it is possible to find the RMI port using the Oracle EM 10g Application Server Control for a standalone OC4J 10.1.3 (that is using "http://localhost:8888/em").
    You can find the RMI port in the file "<your-oc4j-1013-dir>\j2ee\home\config\rmi.xml" as the "port" attribute for the "rmi-server" element.
    Mine has the value "23791".
    success
    Jan Vervecken

  • How to deploy a secured oc4j app in 9iAS

    Hi,
    We are running 9iAS Rel.2 Ent. Edition (9.0.2.0.1) and we want to setup a secured site portion that works through SSL.
    The secured application is already deployed in oc4j but we were using the standalone oc4j container capabilities to mount our application under a secured area, using this fashion:
    <web-site host="myhost" port="443" display-name="Secured app" secure="true">
    Everything works fine using the container-only deployment but now we need a way to deploy this application in 9iAS.
    My efforts to do this were not succesful so far. I was thinking of mounting an SSL folder using httpd.conf and then to forward the request to the secured oc4j application. I tried to do it but I lack the experience with the apache conf unfortunately, so I failed.
    If you can point me to a document that explains how to expose an oc4j application (war or ear) via Apache SSL or if you have any idea, please let me know.
    Thank you!
    florin

    Ok, I found a [very helpful blog post |http://andrejusb.blogspot.com/2009/01/practical-adf-security-deployment-on.html] by [Andrejus Baranovski|http://www.blogger.com/profile/04468230464412457426]. I wish Oracle's documentation was as clear as this...
    The blog post refers to an article by Steve Muench, called [Simplified ADF 11g Application Credential and Policy Migration to Standalone WebLogic Servers|http://www.oracle.com/technology/products/jdev/tips/muench/credmig111100/index.html]. This article presents an Ant script that migrates policies from JDeveloper to WebLogic, using some PFM. (See the last definition here.)
    The problem is that Steve Muench's script assumes that JDeveloper and the standalone WebLogic are on the same machine. However, in a typical environment, such as the one I'm working in currently, this is not the case. In our case the developer stations are Windows machines, while our WebLogic server runs on a HP-UX machine. So the question is: how to perform this migration between two machines with different operating systems?
    Regards,
    Bart Kummel

Maybe you are looking for