OC4J 9.0.3 ClassCastException instability

Hi,
I´m trying to use OC4J 9.0.3 StandAlone, I packaged the app on a EAR and deploied them using JDeveloper 9.0.3.
The deploy was fine and the app runs nicely for about 3 or 5 hours but then the OC4J throws ClassCastException when I try to access one JSP file that has a CustomTag and throws a ClassCastException when try to run the getTagHandle method on the servlet.
This problem is realy a uncommon error and it is generate completly random !
I tried to deploy the same app on 9iAS (9.0.2) and I got another strange error:
java.lang.NullPointerException
     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:279)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
     at oracle.jsp.parse.JspUtils.loadClassJDK(JspUtils.java:219)
I´d like any help on this ?
Thanks,
Felipe

Are you calling an EJB from the customTag class.
If so make sure that you declare the ejb app as the parent in he server.xml file
here is a sammple of my server.xml file
     <application name="ejb1" path="../applications/_ejb1.ear" auto-start="true" />
     <application name="struts-ex" path="../applications/webapp1.ear" parent="ejb1" auto-start="true" />

Similar Messages

  • Migration from Oracle OC4J to Weblogic 10.3 and CLOB ClassCastException

    I am migrating a web application from Oracle OC4J to Weblogic 10.0.3. In this application there are number of java files which uses the following piece of code and I can't change that:
    oracle.sql.CLOB clob = (oracle.sql.CLOB)rs.getClob(columnNumber);
    I have deployed the application on Weblogic Application Server. But when I run the application, it gives me the following exception:
    *1. SEVERE: Standard exception info for exception of type: 'java.lang.ClassCastException' at level: 0 - Error Text: 'weblogic.jdbc.wrapper.Clob_oracle_sql_CLOB'*
    *2. Apr 3, 2008 10:19:33 AM com.agencyport.menu.MenuController insert*
    *3. SEVERE: java.lang.ClassCastException: weblogic.jdbc.wrapper.Clob_oracle_sql_CLOB*
    *4.*
    *5. at com.agencyport.database.OracleDatabaseAgent.updateLOB(OracleDatabaseA*
    *6. gent.java:111)*
    *7. at com.agencyport.menu.MenuController.insert(MenuController.java:815)*
    [Post New]posted Today 11:09:13 AM private message
    Quote [Up]
    Dear Marcos,
    I have tried using ojdbc5, ojdbc6 and classess12 but with the same result. I am stuck with the problem. I have googled a lot but in vein. In some posts I got the idea to use weblogic.jdbc.vendor.oracle.OracleThinClob. But there is no package or class like mentioned in bold, available in weblogic.jar that I get from WEBLOGIC_HOEM/lib. I have downloaded weblogic 10.3 two times but still got no solution. weblogic.jar does not contain weblogic.jdbc.vendor.oracle.OracleThinClob.
    I have also read about using weblogic.jdbc.common.OracleClob to write unicode data but I do not find this package within the weblogic.jar
    Any idea please......
    Regards
    Muhammad Ijaz

    Have you reviewed this set of documentation:
    http://download.oracle.com/docs/cd/E12839_01/wls/docs103/jdbc/thirdparty.html#wp1043705
    http://download.oracle.com/docs/cd/E12839_01/wls/docs103/jdbc/thirdparty.html#wp1045809
    http://download.oracle.com/docs/cd/E12839_01/wls/docs103/jdbc/thirdparty.html#wp1043777
    There is also a special forum for WebLogic JDBC related questions:
    WebLogic Server - JDBC

  • ClassCastException while using session bean in OC4J

    I am facing the same problem while deploying a stateless session bean in Oracle 9i AS 1.0.2.2.1. The details are given below.
    The following code snippet is used in the client to prepare for the lookup:
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.SECURITY_PRINCIPAL, "admin");
    env.put(Context.SECURITY_CREDENTIALS, "welcome");
    //the following line can also have the actual machine name instead of "localhost"
    env.put(Context.PROVIDER_URL, "ormi://localhost:23893/myejbs");
    Context ctx = new InitialContext(env);
    System.out.println("Getting Home....");
    Object obj=ctx.lookup("Grouping");
    System.out.println("Home Object Is : "+obj);
    GroupingHome groupingHome = (GroupingHome)obj;
    System.out.println("Got Home");
    Grouping grouping = groupingHome.create( );
    graphs=grouping.<mehtods>();
    I've edited the config/server.xml file to have the following line:
    <application name="myejbs" path="C:\oracle\ora102\j2ee\home\applications\classes\myejbs" auto-start="true" />
    which points to the directory where the class files reside
    I've also change the port in the config/rmi.xml file to 23893.
    Now... the problem that I am facing is - while I am running a client from outside the server JVM i.e standalone client... which uses the Grouping interfaces, it works fine. giving me the desired result. But the moment I place the code in a service client deployed in the server or a jsp, I get a ClassCastException for GroupingHome whereas the SOP that I have given after lookup shows that I have found - "Grouping EJBHome". The funny thisng is that bith the working client and the JSP are using sme set of interface class files - Grouping.class (Remote) and GroupingHome.class.
    Where am I going wrong?? If anybody knows, or Giri has found an answer to his query... please post a reply.
    Thanks.
    PS: I've tried new InitialContext(); solution but it didn't work. I have also narrowed the home object with javax.rmi.PortableRemoteObject.narrow(obj,GroupingHome.class) but to no avail :(.

    Hi Gauarv,
    Did you not see my reply in the following post?
    Re: 502 service temporarily unavailable
    If I'm not mistaken, this is exactly the same question as you asked
    there.
    By the way, is there some reason you are still using OC4J version
    1.0.2.2? Is there something stopping you from upgrading to the later
    versions (9.0.2 and 9.0.3)?
    Good Luck,
    Avi.

  • Toplink JAXB - ClassCastException after redeploy in OC4J

    Hi,
    I'm experiencing an issue casting an unmarshalled object after the application is being redeployed in the container.
    I'm trying to unmarshall an xml that I retrieve as a resource from the classloader (the xml is also in the jar)
    The ClassCastException is being thrown at the point where I try to cast the unmarshalled object. A sysout on the unmarshalled object prints a classtype that I expect, so my first impression is that the cast fails due the ClassLoader used by the JAXBContext (?) So I've tried to create the JAXBContext with the ClassLoader parameter using the class' classloader directly and the contextClassLoader, both unsuccessfull.
    The problem solves after I restart the OC4J container, but for convenience, I would like to solve this without having to restart, if possible.
    Has anyone experienced this problem, or know a solution?
    Thx!
    Bert
    Below, some example code and the console output on the server.
    Code:
    /* create the jaxb context */
    JAXBContext context = JAXBContext.newInstance(
              "be.cm.apps.tpb.common.helper",
         Thread.currentThread().getContextClassLoader());
    if (LOGGER.isDebugEnabled()) {
         LOGGER.debug("JAXBContext=" + context);
    /* create unmarshaller */
    Unmarshaller unmarshaller = context.createUnmarshaller();
    if (LOGGER.isDebugEnabled()) {
         LOGGER.debug("Unmarshaller=" + unmarshaller);
    /* open refac-config.xml as inputstream */
    URL url = Thread.currentThread().getContextClassLoader().getResource(CONFIGURATION);
    if (LOGGER.isDebugEnabled()) {
         LOGGER.debug("url: " + url);
    /* unmarshall the configuration */
    Object unmarshalledObject = unmarshaller.unmarshal(url);
    if (LOGGER.isDebugEnabled()) {
         LOGGER.debug("unmarshalled object: " + unmarshalledObject);
    * THROWS CLASSCASTEXCEPTION AFTER REDEPLOY
    configurationDefinition = (ConfigurationDefinition) unmarshalledObject;
    if (LOGGER.isDebugEnabled()) {
         LOGGER.debug("<- initialize()");
    Output:
    |DEBUG|JAXBContext=oracle.toplink.ox.jaxb.JAXBContext@675f26|º@#
    |DEBUG|Unmarshaller=oracle.toplink.ox.jaxb.JAXBUnmarshaller@97dadf|º@#
    |DEBUG|url: code-source:/C:/java/101310/j2ee/home/applications/tpb/tpb-online-1.0.0.jar!/refac-config.xml|º@#
    |DEBUG|unmarshalled object: be.cm.apps.tpb.common.helper.ConfigurationDefinition@8f310f|º@#
    |ERROR|Unable to create BusinessFacade instance named be.cm.apps.tpb.business.facade.SendingManager|
    Caused by: java.lang.ClassCastException: be.cm.apps.tpb.common.helper.ConfigurationDefinition
    at be.cm.apps.tpb.common.helper.ConfigHelper.initialize(ConfigHelper.java:93)
    ... 83 more

    Hello Bert,
    This is a known issue and there is a patch that is available from Oracle Support. When you contact support please indicate whether you are using TopLink 10.1.3 or 10.1.3.1. Also you can refer Oracle Support to me and I can help them find the correct patch.
    -Blaise

  • How can I use a 3rd party XML parser such as xerces with OC4J ?

    Hi all tech experts,
    I am using Oracle Application Server 10g Release 2 (10.1.2) and i have
    installed Portal and Wireless and OracleAS Infrastructure on the same
    computer.
    i tried all the solutions on this thread
    Use of Xerces Parser in out application with Oracle App Server 9.0.4
    but still fighting.
    I have also posted this query on OTN on following thread
    How can I use a 3rd party XML parser such as xerces with OC4J?
    but no reply....
    Please help me on this issue.
    Since OC4J is preconfigured to use the Oracle XML parser which is xmlparserv2.jar.
    i have read the following article which states that
    OC4J is preconfigured to use the Oracle XML parser. The Oracle XML parser is fully JAXP 1.1 compatible and will serve the needs of applications which require JAXP functionality. This approach does not require the download, installation, and configuration of additional XML parsers.
    The Oracle XML parser (xmlparserv2.jar) is configured to load as a system level library of OC4J through it's inclusion as an entry in the Class-Path entry of the oc4j.jar Manifest.mf file. This results in the Oracle XML parser being used for all common deployment and packaging situations. You are not permitted to modify the Manifest.mf file of oc4j.jar.
    It must be noted that configuring OC4J to run with any additional XML parser or JDBC library is not a supported configuration. We do know customers who have managed to successfully replace the system level XML parser and the Oracle JDBC drivers that ship with the product, but we do not support this type of configuration due to the possibility of unexpected system behavior and system errors that might occur from replacing the tested and certified libraries.
    If you absolutely must use an additional XML parser such as xerces, then you have to start OC4J such that the xerces.jar file is loaded at a level above the OC4J system classpath. This can be accomplished using the -Xbootclasspath flag of the JRE.
    i have also run the following command
    java -Xbootclasspath/a:d:\xerces\xerces.jar -jar oc4j.jar
    but no success.
    How could i utilize my jar's like xerces.jar and xalan.jar for parsing instead of OC4J in-built parser ?
    All reply will be highly appreciated.
    Thnx in advance to all.
    Neeraj Sidhaye
    try_catch_finally @ Y !

    Hi Neeraj Sidhaye,
    I am trying to deploy a sample xform application to the Oracle Application Server (10.1.3). However, I encountered the class loader issue that is similar to your stuation. I tried all the three solutions but the application is still use the Oracle xml paser class. I am wondering if you have any insight about this?
    Thanks for your help.
    Xingsheng Qian
    iPass Inc.
    Here is the error message I got.
    Message:
    java.lang.ClassCastException: oracle.xml.parser.v2.XMLElement
    Stack Trace:
    org.chiba.xml.xforms.exception.XFormsException: java.lang.ClassCastException: oracle.xml.parser.v2.XMLElement
         at org.chiba.xml.xforms.Container.dispatch(Unknown Source)
         at org.chiba.xml.xforms.Container.dispatch(Unknown Source)
         at org.chiba.xml.xforms.Container.initModels(Unknown Source)
         at org.chiba.xml.xforms.Container.init(Unknown Source)
         at org.chiba.xml.xforms.ChibaBean.init(Unknown Source)
         at org.chiba.adapter.servlet.ServletAdapter.init(ServletAdapter.java:153)
         at org.chiba.adapter.servlet.ChibaServlet.doGet(ChibaServlet.java:303)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.ClassCastException: oracle.xml.parser.v2.XMLElement
         at org.chiba.xml.xforms.Instance.iterateModelItems(Unknown Source)
         at org.chiba.xml.xforms.Bind.initializeModelItems(Unknown Source)
         at org.chiba.xml.xforms.Bind.init(Unknown Source)
         at org.chiba.xml.xforms.Initializer.initializeBindElements(Unknown Source)
         at org.chiba.xml.xforms.Model.modelConstruct(Unknown Source)
         at org.chiba.xml.xforms.Model.performDefault(Unknown Source)
         at org.chiba.xml.xforms.XFormsDocument.performDefault(Unknown Source)
         at org.chiba.xml.xforms.XFormsDocument.dispatchEvent(Unknown Source)
         at org.apache.xerces.dom.NodeImpl.dispatchEvent(Unknown Source)
         ... 18 more

  • Error while running a trusted application in OC4J

    I have created a trusted application to access the CDB and I can directly run this application in the Embedded OC4J and get the right result. The login code is :
    public ManagersFactory loginCDB(){
    FdkCredential credential = new S2SFdkCredential(
    "orcladmin" , "orclapplicationcommonname=s2stestapplication,cn=ifs,cn=products,cn=oraclecontext",
    "welcome1", null);
    try {
    session = ManagersFactory.login(credential, CDBURL);
    Item user = session.getUser(null);
    s_Logger.log("Connected user: "+LoggingUtils.log(user));
    s_Logger.log(session.getUserManager().toString());
    catch (FdkException e) {
    s_Logger.log(e);
    return session;
    But when I deploy this application to the Local/Remote OC4J and access this application by web, the error is shown as below:
    java.lang.RuntimeException:java.lang.RuntimeException: Unknown exception. See cause.
    java.lang.RuntimeException: Unknown exception. See cause.
         at oracle.ifs.fdk.client.impl.AxisRemoteManagersFactory.handleException(AxisRemoteManagersFactory.java:1271)
         at oracle.ifs.fdk.client.impl.AxisRemoteManagersFactory.<init>(AxisRemoteManagersFactory.java:326)
         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:494)
         at oracle.ifs.fdk.ManagersFactory.login(ManagersFactory.java:214)
         at oracle.ifs.fdk.ManagersFactory.login(ManagersFactory.java:121)
         at oracle.ifs.fdk.ManagersFactory.login(ManagersFactory.java:84)
         at oracle.l360.cdb.S2SLoginUtil.loginCDB(S2SLoginUtil.java:43)
         at view.backing.LearningActivity.getCdbFileList(LearningActivity.java:152)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.faces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:99)
         at oracle.adfinternal.view.faces.model.FacesPropertyResolver.getValue(FacesPropertyResolver.java:92)
         at com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:187)
         at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:171)
         at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:160)
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
         at javax.faces.component.UIData.getValue(UIData.java:547)
         at org.apache.myfaces.component.html.ext.HtmlDataTableHack.createDataModel(HtmlDataTableHack.java:437)
         at org.apache.myfaces.component.html.ext.HtmlDataTableHack.getDataModel(HtmlDataTableHack.java:414)
         at org.apache.myfaces.component.html.ext.HtmlDataTableHack.getRowCount(HtmlDataTableHack.java:87)
         at org.apache.myfaces.custom.datalist.HtmlListRenderer.encodeChildren(HtmlListRenderer.java:120)
         at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:721)
         at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:465)
         at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:253)
         at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:721)
         at javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:629)
         at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:566)
         at com.sun.faces.taglib.html_basic.PanelGridTag.doEndTag(PanelGridTag.java:460)
         at mdssys.viewcontroller._public__html._LearningActivity_jspx._jspService(_LearningActivity_jspx.java:317)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:598)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:522)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.mds.jsp.MDSJSPFilter.doFilter(Unknown Source)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:620)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:286)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:50)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:192)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:197)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
         at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:100)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:620)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl
         at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
         at org.apache.axis.client.Call.invoke(Call.java:1820)
         at oracle.ifs.fdk.SessionManagerSoapBindingStub.getCurrentUser(SessionManagerSoapBindingStub.java:365)
         at oracle.ifs.fdk.client.impl.AxisRemoteManagersFactory.<init>(AxisRemoteManagersFactory.java:319)
         ... 88 more
    Caused by: java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl
         at org.apache.axis.Message.setup(Message.java:341)
         at org.apache.axis.Message.<init>(Message.java:243)
         at org.apache.axis.client.Call.invoke(Call.java:2406)
         at org.apache.axis.client.Call.invoke(Call.java:2347)
         at org.apache.axis.client.Call.invoke(Call.java:1804)
         ... 90 more
    How can I resolve this problem? Do I need to config the OC4J server?
    Thanks.
    Message was edited by:
    user564999

    I am a little new to library management in this environment. I am also doing CDB Development and since the libraries are different from what is bundled with JDeveloper 10.1.3.x, I am curious, how did you end up dealing with the library conflicts in a production environment?
    Also, I was under the impression that libraries defined in the application and included in the deploy (ear file) would take presidence over the "global" libraries. Is this not correct?
    Thanks in advance,
    Steve

  • Error messages when installing/starting oc4j (11.1.1.0.0) Technical Preview

    Hello,
    Could someone please assist me with the following error messages?
    08/08/12 10:25:30 SEVERE: AbstractInfo.getAnnotation oracle.webservices.annotations.async.AsyncWebService cannot be found in the given classpath.
    08/08/12 10:25:30 SEVERE: AbstractInfo.getAnnotation oracle.webservices.annotations.async.AsyncWebService cannot be found in the given classpath.
    08/08/12 10:25:32 Don't know how to map non-serializable type: interface javax.management.j2ee.statistics.Stats to Open MBean Type.
    08/08/12 10:25:34 WARNING: J2EE JNDI-00002
    08/08/12 10:25:34 WARNING: No javax.jms.ConnectionFactory found at null
    08/08/12 10:25:38 Oracle Containers for J2EE 11g (11.1.1.0.0) initialized.
    Obviously oc4j is installing, but these error messages are certainly a problem (for example, I can't successfully deploy applications).
    When I used the previous version of oc4j none of these errors surfaced. I also have tried installing this new version in a new, clean directory, and still get the same error messages.
    Please help,
    John

    Thank you for your quick response.
    I hope that you are right, that these errors don't cause any other problems down the line, but I still have a problem trying to deploy applications.
    For example, I tried to deploy mapviewer, using the following syntax --
    java -jar admin_client.jar deployer:oc4j:localhost fmwadmin <admin_pwd>
    -deploy
    -file <path-to-ear-file>
    -deploymentName <name>
    -bindAllWebApps
    -- and recieved the following errors, which I didn't get before when I was using the previous version of oc4j (Oracle Containers for J2EE 10g [10.1.3.1]):
    08/08/13 08:49:30 WARNING: web: Servlet error
    java.lang.ClassCastException: com.sun.faces.application.ApplicationAssociate
    at com.sun.faces.application.ApplicationAssociate.getInstance(ApplicationAssociate.java:180)
    at com.sun.faces.application.WebappLifecycleListener.getAssociate(WebappLifecycleListener.java:289)
    at com.sun.faces.application.WebappLifecycleListener.handleAttributeEvent(WebappLifecycleListener.java:225)
    at com.sun.faces.application.WebappLifecycleListener.requestDestroyed(WebappLifecycleListener.java:78)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:743)
    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)
    Do you have any idea why I may be getting these error messages?
    Thank you for your time and assistance!
    John

  • Multiple instances of the same application under OC4J

    Hello,
    I've currently deployed three copies (differently named deployments, differently named EARs) of the exact same application (using the BC4J framework) on OC4J. One version is the stand-alone distribution of OC4J 9.0.2.* running under UNIX. I have an identical deployment running under the JDeveloper 9iRC-bundled OC4J 9.0.2.* under Windows NT.
    So far, I've had no problems running the three instances on the Windows NT servers concurrently. The UNIX server, however, allows access to whatever instance is accessed first, and fails on access to all other instances with a "cannot create application module" exception (a java.lang.ClassCastException is listed as cause, if that tells anyone anything).
    This behavior is consistent, even when the java virtual machine is passed the jbo.server.in_oc4j=true flag on the command-line. Does anyone have an idea as to why? Has anyone been successful in deploying multiple applications on stand alone OC4J 9.0.2.* under unix?
    Thanks in advance,
    Gard Westrum

    Your best bet to prevent this is to detach or unmount this drive; however, you can also try resetting your Mac's launch services, to have it re-scan only the Applications folders on your boot drive for programs to associate with documents and services you are using. Running the following command in the OS X Terminal will kill the current launch services database (its long, but copy and paste the entire line):
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill
    Following this, run the following command to seed the database with the apps you currently have installed:
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -seed
    Note that these changes will only apply when opening documents that have not been specifically assigned to a program. If you find a specific document continues to open the program on the external drive, then you can get info on it and change the associated program in the "Open With" section of the info window. After doing this, you might need to re-run these commands above, as opening the program will register it with OS X's launch services and have it now be available for automatically handling other documents.

  • JDev 10.1.3 OC4J JDBC Error

    I'm having a problem running an application in JDev10.1.3 when mapping an oracle object to a java object.
    The error occuring is "java.lang.ClassCastException: oracle_oc4j_sql_proxy_SQLBCELProxy_tuinsurance_lib_ejb_PolicyRate__BCELProxy"
    This error only happens when i'm using Datasources retrieved through JNDI. If i use oracle.jdbc.DriverManager to instantiate a sql connection i have NO problem.
    Only when i look up a datasource do i have this problem with mapping oracle objects to java objects. Note this has worked in earlier version of JDeveloper (9.0.5.2) with JDBC 2.0.
    Does this have to do with Drivers or javax.sql.Datasource class in JDK1.4 ???
    Has anyone had this problem ? Any JDBC or JDev experts who can help me out on this one ?
    Thanks in advance
    Gurinder

    Here is a boat-load of system info for the error message posted by Eric Everman:
    java.class.version     48.0
    java.endorsed.dirs     C:\j2sdk1.4.2_06\jre\lib\endorsed
    java.ext.dirs     C:\j2sdk1.4.2_06\jre\lib\ext
    java.home     C:\j2sdk1.4.2_06\jre
    java.io.tmpdir     C:\DOCUME~1\eeverman\LOCALS~1\Temp\
    java.library.path     
    * C:\j2sdk1.4.2_06\bin
    * C:\WINDOWS\System32
    * C:\WINDOWS
    * C:\j2sdk1.4.2_06\bin
    * d:\oracle\oraids2\bin
    * d:\oracle\oraids2\jlib
    * d:\oracle\ora92\bin
    * C:\WINDOWS\system32
    * C:\WINDOWS
    * C:\WINDOWS\System32\Wbem
    * C:\Program Files\Common Files\Adaptec Shared\System
    * C:\Program Files\Reflection\
    * C:\Program Files\Executive Software\Diskeeper\
    java.naming.factory.initial     com.evermind.server.ApplicationInitialContextFactory
    java.naming.factory.url.pkgs     oracle.oc4j.naming.url
    java.net.preferIPv4Stack     true
    java.protocol.handler.pkgs     com.evermind.protocol
    java.runtime.name     Java(TM) 2 Runtime Environment, Standard Edition
    java.runtime.version     1.4.2_06-b03
    java.specification.name     Java Platform API Specification
    java.specification.vendor     Sun Microsystems Inc.
    java.specification.version     1.4
    java.util.prefs.PreferencesFactory     java.util.prefs.WindowsPreferencesFactory
    java.vendor     Sun Microsystems Inc.
    java.vendor.url     http://java.sun.com/
    java.vendor.url.bug     http://java.sun.com/cgi-bin/bugreport.cgi
    java.version     1.4.2_06
    java.vm.info     mixed mode
    java.vm.name     Java HotSpot(TM) Client VM
    java.vm.specification.name     Java Virtual Machine Specification
    java.vm.specification.vendor     Sun Microsystems Inc.
    java.vm.specification.version     1.0
    java.vm.vendor     Sun Microsystems Inc.
    java.vm.version     1.4.2_06-b03
    javax.management.builder.initial     oracle.oc4j.admin.jmx.server.Oc4jMBeanServerBuilder
    javax.rmi.CORBA.PortableRemoteObjectClass     com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject
    javax.rmi.CORBA.StubClass     com.sun.corba.ee.impl.javax.rmi.CORBA.StubDelegateImpl
    javax.rmi.CORBA.UtilClass     com.sun.corba.ee.impl.javax.rmi.CORBA.Util
    line.separator     
    oc4j.jms.usePersistenceLockFiles     false
    oracle.dms.sensors     NONE
    oracle.home     D:\Program Files\jdev10.1.3
    oracle.j2ee.container.name     Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview 3
    oracle.j2ee.container.version     10.1.3.0.0
    oracle.j2ee.dont.use.memory.archive     true
    oracle.j2ee.home     D:\Program Files\jdev10.1.3\jdev\system\oracle.j2ee.10.1.3.3.51
    oracle.j2ee.http.socket.timeout     500
    oracle.security.jazn.config     D:\Program Files\jdev10.1.3\jdev\system\oracle.j2ee.10.1.3.3.51\oc4j-config\jazn.xml
    org.apache.commons.logging.Log     org.apache.commons.logging.impl.SimpleLog
    org.apache.commons.logging.simplelog.defaultlog     info
    org.apache.tapestry.disable-caching     true
    org.omg.CORBA.ORBClass     com.sun.corba.ee.impl.orb.ORBImpl
    org.omg.PortableInterceptor.ORBInitializerClass.oracle.oc4j.corba.iiop.server.IIOPInitializer     NO_VALUE
    os.arch     x86
    os.name     Windows XP
    os.version     5.1
    path.separator     ;
    sun.arch.data.model     32
    sun.boot.class.path     
    * C:\j2sdk1.4.2_06\jre\lib\endorsed\bsf.jar
    * C:\j2sdk1.4.2_06\jre\lib\endorsed\xalan.jar
    * C:\j2sdk1.4.2_06\jre\lib\endorsed\xercesImpl.jar
    * C:\j2sdk1.4.2_06\jre\lib\endorsed\xml-apis.jar
    * C:\j2sdk1.4.2_06\jre\lib\rt.jar
    * ....[clipped]
    sun.boot.library.path     C:\j2sdk1.4.2_06\jre\bin
    sun.cpu.endian     little
    sun.cpu.isalist     pentium i486 i386
    sun.io.unicode.encoding     UnicodeLittle
    sun.os.patch.level     Service Pack 1
    user.country     US
    user.dir     D:\Program Files\jdev10.1.3\jdev\system\oracle.j2ee.10.1.3.3.51\oc4j-config

  • Error accessing web application in OC4J-reg.

    Hi All,
    We deployed a web application into oc4j 903.
    We got the ERROR 1 when trying to access the application. Then we replaced the jaxb-rt-1.0-ea.jar & jaxp.jar in oc4j with the latest
    version from jwsdk1.1. Then we got the ERROR 2. This error is thrown because it is trying to use JXDocumentBuilderFactory from
    xmlparserv2.jar in oc4j instead of DocumentBuilderFactory in jaxp.jar. Then we tried to uncomment the tag "<web-app-class-loader
    search-local-classes-first="true" include-war-manifest-class-path="true" />" in orion-web.xml file. This ensures the use of jaxp.jar
    instead of xmlparserv2.jar but we got the ERROR 3. Now we don't know how to proceed further. Are we going in the right direction or
    are we missing anything?
    I will appreciate if any of you can provide any inputs.
    Please reply to me directly.
    ERROR 1:
    500 Internal Server Error
    ee.wm.jwlf.module.ModuleManagerException: Modules mappings loading failed.
    at ee.wm.jwlf.module.BaseModuleManager.init(BaseModuleManager.java:54)
    at
    ee.wm.jwlf.controller.MainServlet.getModuleManager(MainServlet.java:432)
    at ee.wm.jwlf.controller.MainServlet.init(MainServlet.java:72)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpApplication.loadServlet(HttpApplication.java:1956)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpApplication.findServlet(HttpApplication.java:4355)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2484)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:617)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
    at
    EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797)
    at java.lang.Thread.run(Unknown Source)
    Caused by: ee.wm.jwlf.module.mapping.ModuleMappingDAOException:
    Initialization of modules mappings source failed.
    at
    ee.wm.jwlf.module.mapping.ModuleMappingJAXBDAOImpl.initializeSource(ModuleMappingJAXBDAOImpl.java:255)
    at ee.wm.jwlf.module.BaseModuleManager.init(BaseModuleManager.java:49)
    ... 11 more
    Caused by: javax.xml.bind.JAXBException: Provider
    com.sun.xml.bind.ContextFactory could not be instantiated:
    java.lang.IncompatibleClassChangeError: Implementing class - with
    linked exception:[java.lang.IncompatibleClassChangeError: Implementing
    class]
    at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:118)
    at
    javax.xml.bind.ContextFinder.searchcontextPath(ContextFinder.java:233)
    at javax.xml.bind.ContextFinder.find(ContextFinder.java:153)
    at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:281)
    at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:238)
    at
    ee.wm.jwlf.module.mapping.ModuleMappingJAXBDAOImpl.initializeSource(ModuleMappingJAXBDAOImpl.java:228)
    ... 12 more
    ERROR 2:
    500 Internal Server Error
    ee.wm.jwlf.module.ModuleManagerException: Modules mappings loading
    failed.
    at ee.wm.jwlf.module.BaseModuleManager.init(BaseModuleManager.java:54)
    at
    ee.wm.jwlf.controller.MainServlet.getModuleManager(MainServlet.java:432)
    at ee.wm.jwlf.controller.MainServlet.init(MainServlet.java:72)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpApplication.loadServlet(HttpApplication.java:1956)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpApplication.findServlet(HttpApplication.java:4355)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2484)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:617)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
    at
    EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797)
    at java.lang.Thread.run(Unknown Source)
    Caused by: ee.wm.jwlf.module.mapping.ModuleMappingDAOException:
    Initialization of modules mappings source failed.
    at
    ee.wm.jwlf.module.mapping.ModuleMappingJAXBDAOImpl.initializeSource(ModuleMappingJAXBDAOImpl.java:255)
    at ee.wm.jwlf.module.BaseModuleManager.init(BaseModuleManager.java:49)
    ... 11 more
    Caused by: java.lang.IllegalArgumentException
    at
    oracle.xml.jaxp.JXDocumentBuilderFactory.setAttribute(JXDocumentBuilderFactory.java:133)
    at
    ee.wm.jwlf.module.mapping.ModuleMappingJAXBDAOImpl.initializeSource(ModuleMappingJAXBDAOImpl.java:235)
    ... 12 more
    ERROR 3:
    500 Internal Server Error
    ee.wm.jwlf.module.ModuleManagerException: Modules mappings loading failed.
    at ee.wm.jwlf.module.BaseModuleManager.init(BaseModuleManager.java:54)
    at ee.wm.jwlf.controller.MainServlet.getModuleManager(MainServlet.java:432)
    at ee.wm.jwlf.controller.MainServlet.init(MainServlet.java:72)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpApplication.loadServlet(HttpApplication.java:1956)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpApplication.findServlet(HttpApplication.java:4355)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2484)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:617)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797)
    at java.lang.Thread.run(Thread.java:536)
    Caused by: ee.wm.jwlf.module.mapping.ModuleMappingDAOException: Initialization of modules mappings source failed.
    at ee.wm.jwlf.module.mapping.ModuleMappingJAXBDAOImpl.initializeSource(ModuleMappingJAXBDAOImpl.java:255)
    at ee.wm.jwlf.module.BaseModuleManager.init(BaseModuleManager.java:49)
    ... 11 more
    Caused by: java.lang.ClassCastException
    at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:139)
    at ee.wm.jwlf.module.mapping.ModuleMappingJAXBDAOImpl.initializeSource(ModuleMappingJAXBDAOImpl.java:231)
    ... 12 more
    Thanks & Regards,
    Yoga

    Thanks Avi -- I did have a JDK versioning problem when first deploying in OC4J 9.0.4 -- but when I used JDK1.4.1 things worked. The problem appears to be that some classes are present in several different JAR files in the JDev libraries. Can anyone tell me about the dependencies out there between these JAR files? I can run the application in JDeveloper's OC4J container but cannot get it to deploy on 9.0.4 standalone.
    1) I had this error for a bit... the problem was caused by bc4jmt.jar and mc4jct.jar in my MT deployment.
    java.lang.IncompatibleClassChangeError
         at oracle.jbo.common.ampool.ApplicationPoolImpl.createSessionCookie(ApplicationPoolImpl.java:418)
    2) now I get this error -- looks like another version incompatibility. Can anyone shed light on this??
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.LinkageError, msg=Class oracle/jbo/ApplicationModule violates loader constraints
         at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:532)

  • EJB JNDI access from app1 to app2 in same oc4j (standalone) 9.0.4

    I have two applications CatalogosWeb and WSCatalogosWeb both in the same instance of a 9.0.4 standalone OC4J. The first one implements a set of EJB's (both entity and session). In the second i have the EJB classes included int the "classes" directory.
    When I try to acces de EJB from the second application I get a ClassCastException.
    The source code is approximately:
    ic = new InitialContext(env);
    where env is>
    {java.naming.provider.url=ormi://localhost:23791/CatalogosWeb, java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory, java.naming.security.principal=admin, java.naming.security.credentials=welcome}
    later I try to access the EJB>
    Object objref = ic.lookup(jndiHomeName);
    Object obj = PortableRemoteObject.narrow(objref, className);
    When the PortableRemoteObject tries to "narrow" the class I get the ClassCastException.

    user496903 ,
    When you need to perform lookups within the same OC4J container, you don't use RMIInitialContextFactory. Instead, you should use the new InitialContext() constructor, that defaults the initial context factory property to (if my memory doesn't fail) ApplicationInitialContextFactory...
    Look for more info in the Oracle App Server EJB developer Guide,
    hope it helps
    RB

  • Problem configuring JTA with Spring in OC4J

    Hi all,
    I'm trying to develop an application that uses Spring with JTA in OC4J standalone.
    I've already read http://www.oracle.com/technology/tech/java/spring/how-to-jta-spring.html and the only difference to my configuration is that I'm not employing annotation-driven transaction definitions.
    All seems to be ok but during the deployment of the application I have the following error:
    07/10/11 17:07:03 WARNING: DeployerRunnable.run Error creating bean with name 'txAdvice': Cannot resolve reference to bean 'txManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'txManager' defined in ServletContext resource [WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.transaction.TransactionSystemException: Could not initialize OC4JJtaTransactionManager because OC4J API classes are not available; nested exception is oracle.classloader.util.AnnotatedClassNotFoundException:
    Missing class: oracle.j2ee.transaction.OC4JTransactionManager
    Dependent class: org.springframework.transaction.jta.OC4JJtaTransactionManager
    Loader: global.libraries:1.0
    Code-Source: /home/jkliff/apps/oc4j-10.1.3.2/j2ee/home/applib/spring.jar
    Configuration: <code-source> in /home/jkliff/apps/oc4j-10.1.3.2/j2ee/home/config/server.xml
    This load was initiated at global.libraries:1.0 using the loadClass() method.
    The missing class is available from the following locations:
    1. Code-Source: /home/jkliff/apps/oc4j-10.1.3.2/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in /home/jkliff/apps/oc4j-10.1.3.2/j2ee/home/oc4j.jar)
    This code-source is available in loader oc4j:10.1.3.
    Any ideas?

    Hi timo,
    I'm using OC4J - StandAlone runnig a application for wikis manageiment that uses servelt and have the system authenticate using JASS. I belive that the problem is about using JASS on OC4J.
    The code that the error shows is that:
    HttpServletRequest req = context.getHttpRequest();
    if( req != null && req.getSession() != null )
    HttpSession session = req.getSession();
    try
    String s;
    if( (s = (String)session.getAttribute( varName )) != null )
    return s;
    if( (s = context.getHttpParameter( varName )) != null )
    return s;
    catch( ClassCastException e ) {}
    for me it seem a problem when the application is trying to get a session, the OC4J block with a problem with authentication.
    I thank your help!

  • SAX Parser ClassCastException

    Guidance on the issue described below would be appreciated.
    Product Oracle Containers for J2EE Product Version 10.0.3
    Platform Microsoft Windows
    HOW TO OVERRIDE PARSER IN 10.0.3 OAS 10G PREVIEW 2
    ### Provide the full build number for the OC4J version that you are running: ###
    Oracle Application Server Containers for J2EE 10g (10.0.3.0.0) - Developer
    Preview (build 040227.1923)
    ### Which type of OC4J installation are you running? ###
    standalone OC4J installation (from zip file)
    ### If this OC4J instance is 'standalone', where was it installed? ###
    it's own dedicated ORACLE_HOME
    ### Provide the exact text and location for any error seen in a log file: ###
    java
    -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl
    -Djavax.xml.parsers.TransformerFactory=org.apache.xalan.processor.TransformerFac
    toryImpl
    -Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerF
    actoryImpl -Dorg.dom4j.verbose=true -DCRN_ROOT=f:\cognos\crn -jar oc4j.jar
    04/03/23 10:51:25 Node started with id=68984609063434
    04/03/23 10:51:44 log4j:WARN LogFileWatchdog: shutDownHierarchy
    04/03/23 10:51:44 log4j:WARN LogIPFControl - Unknown error during initialize
    04/03/23 10:51:44 log4j: Setting IPF internal debugging to true
    04/03/23 10:51:45 log4j:WARN No appenders could be found for logger
    (Audit.RTUsage.CAM.CRP.jcam).
    04/03/23 10:51:45 log4j:WARN Please initialize the log4j system properly.
    04/03/23 10:51:46 log4j: Log Server Port is: 9362
    04/03/23 10:51:46 log4j: Encoding set to: false
    04/03/23 10:51:46 log4j: Number of Server Worker Threads is: 10
    04/03/23 10:51:46 log4j: Encoding set to: false
    04/03/23 10:51:46 log4j: Relative file path set to:
    F:/cognos/crn/logs/crnserver.log
    04/03/23 10:51:46 log4j: Exception encountered while trying to convert
    configuration document into W3C Document.
    04/03/23 10:51:46 log4j:ERROR null
    04/03/23 10:51:47 Warning: Caught exception attempting to use JAXP to load a
    SAX XMLReader
    04/03/23 10:51:47 Warning: Exception was: java.lang.ClassCastException
    04/03/23 10:51:47 Warning: I will print the stack trace then carry on using the
    default SAX parser
    04/03/23 10:51:47 java.lang.ClassCastException
    04/03/23 10:51:47 at
    javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
    04/03/23 10:51:47 at
    org.dom4j.io.JAXPHelper.createXMLReader(JAXPHelper.java:34)
    04/03/23 10:51:47 at
    org.dom4j.io.SAXHelper.createXMLReaderViaJAXP(SAXHelper.java:80)
    04/03/23 10:51:47 at
    org.dom4j.io.SAXHelper.createXMLReader(SAXHelper.java:49)
    04/03/23 10:51:47 at
    org.dom4j.io.SAXReader.createXMLReader(SAXReader.java:528)
    04/03/23 10:51:47 at
    org.dom4j.io.SAXReader.getXMLReader(SAXReader.java:411)
    04/03/23 10:51:47 at org.dom4j.io.SAXReader.read(SAXReader.java:277)
    04/03/23 10:51:47 at org.dom4j.io.SAXReader.read(SAXReader.java:201)
    04/03/23 10:51:47 at org.dom4j.io.SAXReader.read(SAXReader.java:190)
    04/03/23 10:51:47 at
    com.cognos.cclcfgapi.CCLStartupConfiguration.getConfigDoc
    (CCLStartupConfiguration.java:253)
    04/03/23 10:51:47 at
    com.cognos.cclcfgapi.CCLStartupConfiguration.getStartupConfigurationDocumen
    t(CCLStartupConfiguration.java:136)
    04/03/23 10:51:47 at
    com.cognos.cclcfgapi.CCLStartupConfiguration.getStartupConfigurationDocument
    (CCLStartupConfiguration.java:112)
    04/03/23 10:51:47 at
    com.cognos.cclcfgapi.CCLConfiguration.init(CCLConfiguration.java:209)
    04/03/23 10:51:47 at
    com.cognos.pogo.config.ConfigurationImpl.reconfigure(ConfigurationImpl.java:43)
    04/03/23 10:51:47 at
    com.cognos.pogo.services.DispatcherServices.startInititalServices(DispatcherServ
    ices.java:394)
    04/03/23 10:51:47 at
    com.cognos.pogo.transport.PogoServlet$PogoStartup.run(PogoServlet.java:499)
    04/03/23 10:51:47 at java.lang.Thread.run(Unknown Source)
    04/03/23 10:51:48 Oracle Application Server Containers for J2EE 10g
    (10.0.3.0.0) - Developer Preview initialized
    ### Describe in detail the problem you are having: ###
    Trying to override the parser used by our application and getting the error
    above in the console. I also have <web-app-class-loader
    search-local-classes-first="true" include-war-manifest-class-path="true" />
    set in the orion-web.xml for our application.
    I've tried various options on the command line, this seems to get the furthest
    but our app doesn't start.

    Thanks, I did try that as well.....
    E:\o10g\j2ee\home>java -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl -Dorg.xml.sax.driver=
    org.apache.xerces.parsers.SAXParser -Djavax.xml.parsers.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl
    -Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl -Xbootclasspath/a:e:\o10g\dom4j-1.
    4\dom4f-1.4\lib\tool\xerces.jar -DCRN_ROOT=f:\cognos\crn -jar oc4j.jar
    04/03/25 07:50:28 Node started with id=68984609063434
    04/03/25 07:50:35 setting transaction-timeout to:30000
    04/03/25 07:50:48 log4j:WARN LogFileWatchdog: shutDownHierarchy
    04/03/25 07:50:48 log4j:WARN LogIPFControl - Unknown error during initialize
    04/03/25 07:50:48 log4j: Setting IPF internal debugging to true
    04/03/25 07:50:49 log4j:WARN No appenders could be found for logger (Audit.RTUsage.CAM.CRP.jcam).
    04/03/25 07:50:49 log4j:WARN Please initialize the log4j system properly.
    04/03/25 07:50:50 log4j: Log Server Port is: 9362
    04/03/25 07:50:50 log4j: Encoding set to: false
    04/03/25 07:50:50 log4j: Number of Server Worker Threads is: 10
    04/03/25 07:50:50 log4j: Encoding set to: false
    04/03/25 07:50:50 log4j: Relative file path set to: F:/cognos/crn/logs/crnserver.log
    04/03/25 07:50:50 log4j: Exception encountered while trying to convert configuration document into W3C Document.
    04/03/25 07:50:50 log4j:ERROR null
    04/03/25 07:50:50 log4j: ***** Thread begin: Thread-7 JVM used memory: 8699568
    04/03/25 07:50:50 log4j: ***** Thread begin: Thread-8 JVM used memory: 8837624
    04/03/25 07:50:50 log4j: ***** Thread begin: Thread-9 JVM used memory: 8838480
    04/03/25 07:50:50 log4j: ***** Thread begin: Thread-10 JVM used memory: 8839536
    04/03/25 07:50:50 log4j: ***** Thread begin: Thread-11 JVM used memory: 8840392
    04/03/25 07:50:50 log4j: ***** Thread begin: Thread-12 JVM used memory: 8841248
    04/03/25 07:50:50 log4j: ***** Thread begin: Thread-13 JVM used memory: 8842304
    04/03/25 07:50:50 log4j: ***** Thread begin: Thread-14 JVM used memory: 8843160
    04/03/25 07:50:50 log4j: ***** Thread begin: Thread-15 JVM used memory: 8844016
    04/03/25 07:50:50 log4j: ***** Thread begin: Thread-16 JVM used memory: 8845072
    04/03/25 07:50:51 Warning: Error occurred using JAXP to load a SAXParser. Will use Aelfred instead
    04/03/25 07:50:52 Oracle Application Server Containers for J2EE 10g (10.0.3.0.0) - Developer Preview initialized

  • Has anyone had a WebService running on standalone OC4J 101300 / 101310

    I am trying to run the most basic of webservices on these containers - what was achieved within minutes on IBM WAS 6.0, JBoss 4.0 and WLS 9.1 is just not getting possible with this release of the container!
    Initially thought it was a deployment / code issue - but have been consistently able to take the same WSDL and generate the WebService (and deploy) on other containers except OC4J. The same service runs successfully within JDev embedded OC4J.
    Using JDeveloper, I was able to generate both top-down and bottom-up services. Neither got deployed - either through uploading the EAR file, ANT build file, JDeveloper deploy to connections etc...
    Even tried changed entries in the server.xml and the default-web-site.xml file - but it is of no use.
    No extra libraries were added - same results were obtained even with a fresh install of the container in this environment: WinXP Pro + JDK 1.5.2_09 + OC4J 101300 / 101310.
    All these come back with the same error:
    06/11/16 20:01:15 SEVERE: ProgressObjectImpl.reportError java.lang.ClassCastExce
    ption: com.sun.org.apache.xerces.internal.dom.DeferredElementNSImploracle.oc4j.a
    dmin.jmx.shared.exceptions.InternalException: java.lang.ClassCastException: com.
    sun.org.apache.xerces.internal.dom.DeferredElementNSImpl
    at oracle.oc4j.admin.jmx.shared.deploy.NotificationUserData.<init>(Notif
    icationUserData.java:107)
    at oracle.oc4j.admin.internal.Notifier.reportError(Notifier.java:429)
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:123
    at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun
    (OC4JDeployerRunnable.java:52)
    at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(Deplo
    yerRunnable.java:81)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExec
    utor.java:819)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: oracle.oc4j.admin.internal.DeployerException: java.lang.ClassCastExce
    ption: com.sun.org.apache.xerces.internal.dom.DeferredElementNSImpl
    at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplica
    tionBinder.java:214)
    at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplica
    tionBinder.java:96)
    at oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(Application
    Deployer.java:541)
    at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDe
    ployer.java:197)
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
    ... 4 more
    Caused by: java.lang.ClassCastException: com.sun.org.apache.xerces.internal.dom.
    DeferredElementNSImpl
    at oracle.j2ee.ws.server.deployment.WebServiceEndpoint.writeRuntimeXml(W
    ebServiceEndpoint.java:660)
    at oracle.j2ee.ws.server.deployment.WebServiceEndpoint.writeXML(WebServi
    ceEndpoint.java:616)
    at com.evermind.xml.XMLUtils.writeAll(XMLUtils.java:136)
    at oracle.j2ee.ws.server.deployment.WebService.writeEndpoints(WebService
    .java:382)
    at oracle.j2ee.ws.server.deployment.WebService.writeXML(WebService.java:
    374)
    at com.evermind.xml.XMLUtils.writeAll(XMLUtils.java:136)
    at oracle.j2ee.ws.server.deployment.WebServicesDescriptor.writeWebServic
    es(WebServicesDescriptor.java:447)
    at oracle.j2ee.ws.server.deployment.WebServicesDescriptor.writeOrionXML(
    WebServicesDescriptor.java:426)
    at oracle.j2ee.ws.server.deployment.WebServicesDescriptor.writeOrionConf
    ig(WebServicesDescriptor.java:401)
    at com.evermind.server.J2EEComponent.getDeploymentContent(J2EEComponent.
    java:403)
    at com.evermind.server.J2EEComponent.storeDeployment(J2EEComponent.java:
    494)
    at com.evermind.server.http.WrapperClassGenerator.generateWebServiceArts
    (WrapperClassGenerator.java:93)
    at com.evermind.server.http.HttpApplication.generateWebServiceArtifacts(
    HttpApplication.java:8403)
    at com.evermind.server.http.HttpApplication.populateLoaderWithWebService
    sDeploymentCache(HttpApplication.java:5465)
    at com.evermind.server.http.HttpApplication.populateLoader(HttpApplicati
    on.java:5394)
    at com.evermind.server.http.HttpApplication.initClassLoader(HttpApplicat
    ion.java:5333)
    at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:
    645)
    at com.evermind.server.ApplicationStateRunning.getHttpApplication(Applic
    ationStateRunning.java:428)
    at com.evermind.server.Application.getHttpApplication(Application.java:5
    12)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.cre
    ateHttpApplicationFromReference(HttpSite.java:1975)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<in
    it>(HttpSite.java:1894)
    at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:15
    91)
    at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplica
    tionBinder.java:206)
    ... 8 more
    2006-11-16 20:01:15.642 ERROR java.lang.ClassCastException: com.sun.org.apache.x
    erces.internal.dom.DeferredElementNSImpl
    2006-11-16 20:01:15.764 NOTIFICATION Application UnDeployer for tanfsandbox COMP
    LETES.
    06/11/16 20:01:15 WARNING: DeployerRunnable.run java.lang.ClassCastException: co
    m.sun.org.apache.xerces.internal.dom.DeferredElementNSImploracle.oc4j.admin.inte
    rnal.DeployerException: java.lang.ClassCastException: com.sun.org.apache.xerces.
    internal.dom.DeferredElementNSImpl
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:126
    at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun
    (OC4JDeployerRunnable.java:52)
    at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(Deplo
    yerRunnable.java:81)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExec
    utor.java:819)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.ClassCastException: com.sun.org.apache.xerces.internal.dom.
    DeferredElementNSImpl
    at oracle.j2ee.ws.server.deployment.WebServiceEndpoint.writeRuntimeXml(W
    ebServiceEndpoint.java:660)
    at oracle.j2ee.ws.server.deployment.WebServiceEndpoint.writeXML(WebServi
    ceEndpoint.java:616)
    at com.evermind.xml.XMLUtils.writeAll(XMLUtils.java:136)
    at oracle.j2ee.ws.server.deployment.WebService.writeEndpoints(WebService
    .java:382)
    at oracle.j2ee.ws.server.deployment.WebService.writeXML(WebService.java:
    374)
    at com.evermind.xml.XMLUtils.writeAll(XMLUtils.java:136)
    at oracle.j2ee.ws.server.deployment.WebServicesDescriptor.writeWebServic
    es(WebServicesDescriptor.java:447)
    at oracle.j2ee.ws.server.deployment.WebServicesDescriptor.writeOrionXML(
    WebServicesDescriptor.java:426)
    at oracle.j2ee.ws.server.deployment.WebServicesDescriptor.writeOrionConf
    ig(WebServicesDescriptor.java:401)
    at com.evermind.server.J2EEComponent.getDeploymentContent(J2EEComponent.
    java:403)
    at com.evermind.server.J2EEComponent.storeDeployment(J2EEComponent.java:
    494)
    at com.evermind.server.http.WrapperClassGenerator.generateWebServiceArts
    (WrapperClassGenerator.java:93)
    at com.evermind.server.http.HttpApplication.generateWebServiceArtifacts(
    HttpApplication.java:8403)
    at com.evermind.server.http.HttpApplication.populateLoaderWithWebService
    sDeploymentCache(HttpApplication.java:5465)
    at com.evermind.server.http.HttpApplication.populateLoader(HttpApplicati
    on.java:5394)
    at com.evermind.server.http.HttpApplication.initClassLoader(HttpApplicat
    ion.java:5333)
    at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:
    645)
    at com.evermind.server.ApplicationStateRunning.getHttpApplication(Applic
    ationStateRunning.java:428)
    at com.evermind.server.Application.getHttpApplication(Application.java:5
    12)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.cre
    ateHttpApplicationFromReference(HttpSite.java:1975)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<in
    it>(HttpSite.java:1894)
    at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:15
    91)
    at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplica
    tionBinder.java:206)
    at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplica
    tionBinder.java:96)
    at oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(Application
    Deployer.java:541)
    at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDe
    ployer.java:197)
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
    ... 4 more
    2006-11-16 20:01:15.764 WARNING java.lang.ClassCastException: com.sun.org.apache
    .xerces.internal.dom.DeferredElementNSImpl
    BTW, the service interface is added below:
    package botupws;
    public class SayHello {
    public SayHello() {
    public String say(String name) {
    return ("Hello" + name);
    The WSDL file is added below:
    <definitions
    name="MyWebService1"
    targetNamespace="http://botupws/"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://botupws/"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:tns0="http://botupws/types/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    >
    <types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://botupws/types/"
    elementFormDefault="qualified" xmlns:tns="http://botupws/types/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/">
    <element name="sayElement">
    <complexType>
    <sequence>
    <element name="name" type="string" nillable="true"/>
    </sequence>
    </complexType>
    </element>
    <element name="sayResponseElement">
    <complexType>
    <sequence>
    <element name="result" type="string" nillable="true"/>
    </sequence>
    </complexType>
    </element>
    </schema>
    </types>
    <message name="MyWebService1_say">
    <part name="parameters" element="tns0:sayElement"/>
    </message>
    <message name="MyWebService1_sayResponse">
    <part name="parameters" element="tns0:sayResponseElement"/>
    </message>
    <portType name="MyWebService1">
    <operation name="say">
    <input message="tns:MyWebService1_say"/>
    <output message="tns:MyWebService1_sayResponse"/>
    </operation>
    </portType>
    <binding name="MyWebService1SoapHttp" type="tns:MyWebService1">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="say">
    <soap:operation soapAction="http://botupws//say"/>
    <input>
    <soap:body use="literal"/>
    </input>
    <output>
    <soap:body use="literal"/>
    </output>
    </operation>
    </binding>
    <service name="MyWebService1">
    <port name="MyWebService1SoapHttpPort" binding="tns:MyWebService1SoapHttp">
    <soap:address location="http://192.168.5.100:8888/tanfsandbox-BotUpWS-context-root/MyWebService1SoapHttpPort"/>
    </port>
    </service>
    </definitions>
    Thanks in advance!

    This doesn't help with your specific issue, but it's an example of a WS being generated in JDeveloper then deployed to a separate standalone OC4J 10.1.3.1.0 instance.
    The WS was created from a simple Java class like yours, then deployed using JDeveloper remote connection to a separate OC4J instance.
    ---- Deployment started. ---- 17/11/2006 12:31:49
    Target platform is Standalone OC4J 10g 10.1.3 (local).
    Wrote WAR file to C:\java\jdev-10131-prod\jdev\mywork\webservices\simplest\deploy\WebServices.war
    Wrote EAR file to C:\java\jdev-10131-prod\jdev\mywork\webservices\simplest\deploy\webservices-simplest-WS.ear
    Uploading file webservices-simplest-WS.ear ...
    Application Deployer for webservices-simplest-WS STARTS.
    Copy the archive to C:\java\oc4j-10131-dev\j2ee\home\applications\webservices-simplest-WS.ear
    Initialize C:\java\oc4j-10131-dev\j2ee\home\applications\webservices-simplest-WS.ear begins...
    Unpacking webservices-simplest-WS.ear
    Done unpacking webservices-simplest-WS.ear
    Unpacking WebServices.war
    Done unpacking WebServices.war
    Initialize C:\java\oc4j-10131-dev\j2ee\home\applications\webservices-simplest-WS.ear ends...
    Starting application : webservices-simplest-WS
    Initializing ClassLoader(s)
    Initializing EJB container
    Loading connector(s)
    Starting up resource adapters
    Initializing EJB sessions
    Committing ClassLoader(s)
    Initialize WebServices begins...
    Initialize WebServices ends...
    Started application : webservices-simplest-WS
    Binding web application(s) to site default-web-site begins...
    Binding WebServices web-module for application webservices-simplest-WS to site default-web-site under context root webservices-simplest-context-root
    Initializing Servlet: oracle.j2ee.ws.server.JAXRPCServlet for web application WebServices
    Binding web application(s) to site default-web-site ends...
    Application Deployer for webservices-simplest-WS COMPLETES. Operation time: 3905 msecs
    Elapsed time for deployment: 7 seconds
    ---- Deployment finished. ---- 17/11/2006 12:31:56
    Here's the WSDL
    <definitions name="HelloWorldService" targetNamespace="http://sab.demo.webservices/">
         <types>
         <schema targetNamespace="http://sab.demo.webservices/types/" elementFormDefault="qualified">
         <element name="sayHelloElement">
         <complexType>
    <sequence/>
    </complexType>
    </element>
         <element name="sayHelloResponseElement">
         <complexType>
         <sequence>
    <element name="result" type="string" nillable="true"/>
    </sequence>
    </complexType>
    </element>
    </schema>
    </types>
         <message name="HelloWorldService_sayHello">
    <part name="parameters" element="tns0:sayHelloElement"/>
    </message>
         <message name="HelloWorldService_sayHelloResponse">
    <part name="parameters" element="tns0:sayHelloResponseElement"/>
    </message>
         <portType name="HelloWorldService">
         <operation name="sayHello">
    <input message="tns:HelloWorldService_sayHello"/>
    <output message="tns:HelloWorldService_sayHelloResponse"/>
    </operation>
    </portType>
         <binding name="HelloWorldServiceSoapHttp" type="tns:HelloWorldService">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
         <operation name="sayHello">
    <soap:operation soapAction="http://sab.demo.webservices//sayHello"/>
         <input>
    <soap:body use="literal"/>
    </input>
         <output>
    <soap:body use="literal"/>
    </output>
    </operation>
    </binding>
         <service name="HelloWorldService">
         <port name="HelloWorldServiceSoapHttpPort" binding="tns:HelloWorldServiceSoapHttp">
    <soap:address location="http://localhost:8888/webservices-simplest-context-root/HelloWorldServiceSoapHttpPort"/>
    </port>
    </service>
    </definitions>
    So it does work. What the specific problem is with your situation, one of our WS PMs most likely be able to help with.
    The error you have:
    2006-11-16 20:01:15.764 WARNING java.lang.ClassCastException: com.sun.org.apache.xerces.internal.dom.DeferredElementNSImpl
    Is strange -- can you check your WAR file and see if there are other libraries in the WEB-INF/lib that may be being loaded?
    Do you have xerces-impl.jar or anything like that in the JRE/lib directory of your JDK?
    cheers
    -steve-

  • 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)
    ???

Maybe you are looking for

  • Screen Saver Freeze - Repeated

    Before calling AppleCare and spending hours ... Screen saver with clock is freezing. Repeatedly. This just started a couple days ago. Done absolutely nothing new. I've deleted the Home>Library>Preferences>By Host .plist screen saver files (3 times);

  • OS X LION and Time Capsule

    I have a 2TB Time Capsule (wi-fi), and cannot use it with OS X Lion!  It says the airport utility is not compatible with my operating system.  What do I do now?  Is there a solution to this issue?

  • KG 1061 Wireless Keyboard Does not work

    Key "a" stopped working after I haven't used my computer for a week. Other keys seem fine. It was working fine before. I've tried replacing batteries, uninstalling the keyboard and updating driver. Nothing works. Please help!

  • Having Trouble Signing In To iTunes

    So, I was having some trouble with my account usernames and e-mail addresses, etc. Anyway, I was able to straigten it all out, but I cannot always login to iTunes. Why is this happening? I am obviously logged in to this forum, but how come iTunes som

  • Greeting cards and Elements

    I'm thinking of purchasing photoshop elements 3.0. I have 2 questions- 1. Will there soon be a 4.0 elements? Should I wait to purchase, or did 3.0 just come out? (I noticed there's a windows 4.0 elements version) 2. Can you design greeting cards with