Heeeel Jdeveloper + OC4J

When I run some simple JSP a get:
[Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
**** Unable to obtain password from principals.xml. Using default.
D:\jdev1013EA1\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\config>
D:\jdev1013EA1\jdk\bin\javaw.exe -ojvm -classpath D:\jdev1013EA1\j2ee\home\oc4j.jar;D:\jdev1013EA1\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config D:\jdev1013EA1\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\config\server.xml
[waiting for the server to complete its initialization...]
Process exited with exit code 128.
Why this happing and what to do???
Please help me.

I had this happen when QuickTest was installed on my machine. QT has its own Env settings that were conflicting with JDEV. For my situation it was the JAVAOPTIONS setting that was causing problems. I now have a batch that I run that clears and sets the ENV for my jdev session.
Take a look at your enviorment and see if there are java conflicts.

Similar Messages

  • JDeveloper / OC4J rewriting my orion-ejb-jar.xml

    Hi All.
    Im having a play around with OC4J and CMP entity beans and struts at the moment learning some stuff for a new job, so ive started to write a little test app to get used to things.
    Ive created a CMP entity - CustomerEntityEJB, manually defined the tables etc wrote and built it using JDeveloper 10.
    Ive created all the necessary classes and descriptors in JDeveloper and the bean compiles and deploys fine, however no matter what i do, the table attribute of the <entity-deployment> elemnt is ALWAYS removed from the orion-ejb-jar.xml file before its deployed and i have no idea why.
    Here are some snippets form the xml config files im using....
    ejb-jar.xml :
    <entity>
    <description>Entity Bean ( CMP )</description>
    <display-name>CustomerEntityEJB</display-name>
    <ejb-name>CustomerEntityEJB</ejb-name>
    <local-home>com.gb.ejb.entity.customer.CustomerEntityEJBLocalHome</local-home>
    <local>com.gb.ejb.entity.customer.CustomerEntityEJBLocal</local>
    <ejb-class>com.gb.ejb.entity.customer.CustomerEntityEJBBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.Long</prim-key-class>
    <reentrant>false</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>CustomerEntityEJB</abstract-schema-name>
    <cmp-field>
    <field-name>id</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>title</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>forename</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>surname</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>email</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>password</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>active</field-name>
    </cmp-field>
    <primkey-field>id</primkey-field>
    <query>
    <query-method>
    <method-name>findAll</method-name>
    <method-params/>
    </query-method>
    <ejb-ql>SELECT OBJECT(c) FROM CustomerEntityEJB c</ejb-ql>
    </query>
    </entity>
    orion-ejb-jar.xml as in JDeveloper:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <orion-ejb-jar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/orion-ejb-jar-10_0.xsd" schema-major-version="10" schema-minor-version="0">
    <enterprise-beans>
    <persistence-manager name="toplink"/>
    <session-deployment name="CustomerSessionEJB" local-location="CustomerSessionEJB" />
    <entity-deployment name="CustomerEntityEJB" data-source="jdbc/PostgresDS" table="Customer" local-location="CustomerEntityEJB">
    <primkey-mapping>
    <cmp-field-mapping name="id"/>
    </primkey-mapping>
    <cmp-field-mapping name="active"/>
    <cmp-field-mapping name="email"/>
    <cmp-field-mapping name="forename"/>
    <cmp-field-mapping name="id"/>
    <cmp-field-mapping name="password"/>
    <cmp-field-mapping name="surname"/>
    <cmp-field-mapping name="title"/>
    </entity-deployment>
    </enterprise-beans>
    </orion-ejb-jar>
    orion-ejb-jar.xml as viewed in the OC4J enterprise manager.     
    <?xml version="1.0" encoding="utf-8"?>
    <orion-ejb-jar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/orion-ejb-jar-10_0.xsd" deployment-version="10.1.3.3.0" deployment-time="1151415a0e3" schema-major-version="10" schema-minor-version="0" >
    <enterprise-beans>
    <persistence-manager name="toplink" class="oracle.toplink.internal.ejb.cmp.oc4j.Oc4jPersistenceManager" descriptor="toplink-ejb-jar.xml">
    </persistence-manager>
    <session-deployment name="CustomerSessionEJB" location="CustomerSessionEJB" local-location="CustomerSessionEJB" persistence-filename="CustomerSessionEJB">
    <ejb-ref-mapping name="ejb/local/CustomerEntityEJB" location="TWA-EJB_CustomerEntityEJBLocal" />
    </session-deployment>
    <entity-deployment name="CustomerEntityEJB" location="CustomerEntityEJB" local-location="CustomerEntityEJB" concrete-bean-class="CustomerEntityEJB_ConcreteSubClass3" data-source="jdbc/PostgresDS" local-wrapper="CustomerEntityEJBLocalHome_LocalEntityHomeWrapper5">
    </entity-deployment>
    </enterprise-beans>
    <assembly-descriptor>
    <default-method-access>
    <security-role-mapping name="<default-ejb-caller-role>" impliesAll="true" />
    </default-method-access>
    </assembly-descriptor>
    </orion-ejb-jar>
    As you can see, the orion-ejb-jar.xml that been deployed on the server has had extra attributes defined in it (like concrete-bean-class) which makessense - its adding in the bits i didnt to get th bean to deploy - however the table attribue is just removed, meaning my bean cant find the table - hence my app not working.
    i just dont know how to stop this and would be extremely grateful if someone could give me a clue how to get my bean up and working properly as this is driving me insane.
    Thanks in advance..
    Gareth.

    sorted - the <persistence-manager name="toplink"/> element was automatically generated by JDeveloper and put in my orion-ejb-jar.xml appears to be un necessary and seemed to be breaking eveything - as soon as i removed it, the bean seemed to deploy ok and pick up the table name =]
    as a bit of an aside does anyone know why it was automatically put there in the first place if it breaks things?

  • Jdeveloper + OC4J Problem

    Hi all,
    I have an application that runs fine on tomcat and any other app server. When I try to run it from within Jdeveloper, for some reason I get all sort of class-loader or xml parsing problems.
    So it turns out that embedded oc4j tries to use its own xml parser, its own struts jar and this causes a lot of problems and it throws errors and I can't run this app.
    Please how do I turn off jdeveloper/embedded OC4J from using its own jars and rather just run the app, since the app has all needed libraries ?
    Here's a sample error -
    SEVERE: MessageResourcesFactory.createFactory
    oracle.classloader.util.AnnotatedClassNotFoundException:
         Missing class: org.apache.struts.util.PropertyMessageResourcesFactory
         Dependent class: org.apache.struts.util.RequestUtils
         Loader: current-workspace-app.web.zeims-c:0.0.0
         Code-Source: /C:/devtools/java/jdeveloper/jdev/mywork/zeims/customer/lib/struts.jar
         Configuration: <classpath> in C:\devtools\java\jdeveloper\jdev\mywork\zeims\customer\public_html
    This load was initiated at current-workspace-app.root:0.0.0 using the loadClass() method.
    Pls help !!!

    I think that i they works is lucky, because your two modules get managed through the same class loader in your standalone oc4j
    Correct if I'm wrong, but you should not trust using local references if they aren't implemented in the same instance of the classloader, which you can control

  • Eclipse Tomcat Hibernate Struts - JDeveloper OC4J migration problem.

    In my current project, everybody uses Eclipse and Tomcat as development environment. I decide to try JDeveloper in this project. Not that this configuration works with eclipse WPT.
    When I try to open project, I get an error as below.
    Target URL -- http://127.0.0.1:8988/PSSO/index.html
    30.Haz.2008 21:50:03 oracle.classloader.util.ClassLoadLogger log
    WARNING: Code-source D:\atilla\projects\javaProjects\meteksan\EclipseWorkspace_RTUK\BuildScripts\DirectoryThirdPartyLibraries\jta.jar (from <classpath> in D:\atilla\projects\javaProjects\meteksan\EclipseWorkspace_RTUK\PSSO\WebContent) has the same filename but is not identical to /E:/downloads/tools/jdevstudiobase1111/j2ee/home/lib/jta.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in E:\downloads\tools\jdevstudiobase1111\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.PSSO:0.0.0.
    30.Haz.2008 21:50:03 oracle.classloader.util.ClassLoadLogger log
    WARNING: Code-source E:\downloads\tools\jdevstudiobase1111\jakarta-struts\lib\struts.jar (from <classpath> in D:\atilla\projects\javaProjects\meteksan\EclipseWorkspace_RTUK\PSSO\WebContent) has the same filename but is not identical to /D:/atilla/projects/javaProjects/meteksan/EclipseWorkspace_RTUK/BuildScripts/DirectoryThirdPartyLibraries/struts.jar (from <classpath> in D:\atilla\projects\javaProjects\meteksan\EclipseWorkspace_RTUK\PSSO\WebContent). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.PSSO:0.0.0.
    08/06/30 21:50:17 Hibernate: select t.name, sa.value from RTUK_PSSO.ytk_sistem_attribute sa, RTUK_PSSO.ytk_attribute t where sa.attribute_id = t.id
    21:50:20,687 ERROR ActionServlet:364 - Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable. Most likely, this is due to an incorrect or missing library dependency.
    javax.servlet.ServletException: org.hibernate.QueryException: ClassNotFoundException: org.hibernate.hql.ast.HqlToken [from tr.com.meteksan.genel.gnlKurumOrganizasyon.GnlKurumOrganizasyon ko order by ko.organizasyonKodu]
    at tr.com.meteksan.web.plugin.InitSozlukDegerleriPlugIn.init(InitSozlukDegerleriPlugIn.java:49)
    at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)
    what is interesting is that
    first query with hibernate works, but second query does not works.
    My JDeveloper as below
    CVS Version Internal to Oracle JDeveloper 11g Technology Preview 4 (client-only)
    Java(TM) Platform 1.5.0_15
    Oracle IDE 11.1.1.0.22.49.49
    Versioning Support 11.1.1.0.22.49.49
    I wonder if it is related to struts and jta jars defined twice.

    There might be a problem with the OC4J not finding the hibernate library you are trying to use.
    Try setting the library also in the tools->embedded OC4J preferences.

  • Jdeveloper OC4J need help

    Hi all,
    i am using JDeveloper latest version. i have 2 applications, one is JSF and another one is WebService. i need to call that webservice from jsf webapp. But in jdeveloper how to run two applications simultaneously.
    i tried with oc4j standalone application server. i deployed webservice in oc4j standalone app server. its runnining in some port number. another jsf application running from jdeveloper itself. its running in different port number.
    But its not working. but i tried with different machine in LAN, its working fine.
    How to resolve it.
    Is it any other port number, i have to change ? in which file ?
    I need to deploy the webservice, should run background through oc4j standalone and debugging or running the jsf webapp through jdeveloper ide.
    Help me. thanks in advance.
    Srinivas.R

    The simplest solution would be to have one application with two projects.
    Then you righ click run the WS and then right-click run the JSF.
    If you are running on another port - you'll need to change the WS data control files to include the right port number. Do a search on your project for the port number and change it as needed.

  • JDeveloper/OC4J session lost

    I installed JDeveloper(jdev9033) with OC4J onto my Win XP machine which had installed Oracle9i. When I ran JSP application, the current session got lost. Whenever I clicked the button in the form to change to the new page, it generated a new session ID.
    The following are test examples for this problem:
    Test.jsp
    ========
    <!doctype html public "-//w3c//dtd html 4.0 transitional//en" "http://www.w3.org/TR/REC-html40/strict.dtd">
    <%
    session.setAttribute("1st", "First");
    System.out.println(session.getId());
    %>
    <HTML>
    <STYLE>
    TD {font-size:8pt}
    </STYLE>
    <HEAD>
    <H3>Sear Incomplete Orders</H3>
    </HEAD>
    <FORM id="theForm" name="theForm" method="post" action="Test2.jsp">
    <TABLE >
    <TR>
    <TD align="right">Created between:</TD>
    <TD >
    <input type="text" name="startDate" size="17" value="01/10/2003"/>
    <b> and </b>
    <input type="text" name="endDate" size="17" value="15/10/2003"/>
    </TD>
    </TR>
    <tr>
    <td>
    <input type="submit" name="s" value="Retrieve" />
    </td>
    </tr>
    </TABLE>
    </FORM>
    </HTML>
    Test2.jsp
    =========
    <!doctype html public "-//w3c//dtd html 4.0 transitional//en" "http://www.w3.org/TR/REC-html40/strict.dtd">
    <%
    session.setAttribute("2nd", "Second");
    System.out.println(session.getId());
    %>
    <HTML>
    <STYLE>
    TD {font-size:8pt}
    </STYLE>
    <HEAD>
    <H3>Sear Incomplete Orders</H3>
    </HEAD>
    <FORM id="theForm" name="theForm" method="post" action="Test2.jsp">
    <TABLE >
    <TR>
    <TD align="right">Created between:</TD>
    <TD >
    <input type="text" name="startDate" size="17" value="01/10/2003"/>
    <b> and </b>
    <input type="text" name="endDate" size="17" value="15/10/2003"/>
    </TD>
    </TR>
    <tr>
    <td>
    <input type="submit" name="s" value="Retrieve" />
    </td>
    </tr>
    </TABLE>
    </FORM>
    </HTML>

    Further to this ... I found session id is lost while html frames are used. My below jsp page is a forward to a struts action. First time (on server re-start) it works fine, after closing and "running" the same url, the frame with url "contents.jsp" creates a new session which is not required. Any reasons for this. (The java code added are the results of the attempts to fix it. ) Pls help.
    <%@ page contentType="text/html;charset=windows-1252"%>
    <HTML>
    <HEAD>
    <META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
    <LINK REL=STYLESHEET TYPE="text/css" HREF="bc4j.css">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <TITLE>NGT Registration Database</TITLE>
    </HEAD>
    <%
    System.out.println("Here is main.jsp with url: "+"contents.jsp;jsessionid="+session.getId());
    %>
    <FRAMESET ROWS="85,*" FRAMESPACING="0" FRAMEBORDER="0" border="false" >
    <FRAME SRC="title.jsp" NAME="titleFrame" FRAMEBORDER="0" MARGINHEIGHT="1"
    MARGINWIDTH="10" FRAMESPACING="0" SCROLLING="NO">
    <FRAMESET COLS="175,*" FRAMESPACING="0" FRAMEBORDER="0" SCROLLING="AUTO">
    <FRAME SRC="<%="contents.jsp;jsessionid="+session.getId()%>" name="navFrame">
    <FRAME SRC="description.html" name="contentsFrame">
    </FRAMESET>
    </FRAMESET>
    </HTML>

  • Jdeveloper / OC4J - Server is currently shutting down

    Hello,
    Sometimes when running our application through JDeveloper we get a 500 Error in which it states TOPLINK exception and that the "server is currently shutting down". If we re-start and try again there is no problem.
    Any idea what causes this?
    Thanks!
    Phil
    Here are the 500 Errror details:
    500 Internal Server Error
    javax.faces.FacesException: #{MaintainContactPage.saveBtnAction}: javax.faces.el.EvaluationException: Exception [TOPLINK-4014] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DatabaseExceptionException Description: Cannot register SynchronizationListener.Internal Exception: Exception [TOPLINK-7061] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.ValidationExceptionException Description: Exception occurred within JTS.Internal Exception: javax.transaction.SystemException: Server is currently shutting down, no further transactions may be startedError Code: 000 at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:78) at oracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:211) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381) at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64) at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367) at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336) at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196) at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:629) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230) at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33) at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:595)Caused by: javax.faces.el.EvaluationException: Exception [TOPLINK-4014] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DatabaseExceptionException Description: Cannot register SynchronizationListener.Internal Exception: Exception [TOPLINK-7061] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.ValidationExceptionException Description: Exception occurred within JTS.Internal Exception: javax.transaction.SystemException: Server is currently shutting down, no further transactions may be startedError Code: 000 at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:130) at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72) ... 25 moreCaused by: Exception [TOPLINK-4014] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DatabaseExceptionException Description: Cannot register SynchronizationListener.Internal Exception: Exception [TOPLINK-7061] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.ValidationExceptionException Description: Exception occurred within JTS.Internal Exception: javax.transaction.SystemException: Server is currently shutting down, no further transactions may be startedError Code: 000 at oracle.toplink.exceptions.DatabaseException.cannotRegisterSynchronizatonListenerForUnitOfWork(DatabaseException.java:56) at oracle.toplink.jts.AbstractExternalTransactionController.registerSynchronizationListener(AbstractExternalTransactionController.java:127) at oracle.toplink.publicinterface.UnitOfWork.registerWithTransactionIfRequired(UnitOfWork.java:3841) at oracle.toplink.publicinterface.Session.acquireUnitOfWork(Session.java:253) at org.ic.sms.apps.das.DasClientManager.createClientUnit(DasClientManager.java:469) at org.ic.sms.apps.bus_logic.core.client.ClientManagerImpl.save(ClientManagerImpl.java:263) at org.ic.sms.apps.bus_logic.publicapi.managers.ClientManager.save(ClientManager.java:102) at org.ic.sms.apps.s02_client.MaintainContactPage.saveBtnAction(MaintainContactPage.java:854) 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.MethodBindingImpl.invoke(MethodBindingImpl.java:126) ... 26 moreCaused by: Exception [TOPLINK-7061] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.ValidationExceptionException Description: Exception occurred within JTS.Internal Exception: javax.transaction.SystemException: Server is currently shutting down, no further transactions may be started at oracle.toplink.exceptions.TopLinkException.<init>(TopLinkException.java:46) at oracle.toplink.exceptions.ValidationException.<init>(ValidationException.java:254) at oracle.toplink.exceptions.ValidationException.jtsExceptionRaised(ValidationException.java:784) at oracle.toplink.jts.JTSExternalTransactionController.beginTransaction(JTSExternalTransactionController.java:56) at oracle.toplink.publicinterface.Session.beginExternalTransaction(Session.java:354) at oracle.toplink.publicinterface.Session.beginTransaction(Session.java:385) at oracle.toplink.publicinterface.UnitOfWork.beginTransaction(UnitOfWork.java:412) at oracle.toplink.jts.oracle9i.Oracle9iJTSSynchronizationListener.register(Oracle9iJTSSynchronizationListener.java:92) at oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController.register(Oracle9iJTSExternalTransactionController.java:50) at oracle.toplink.jts.AbstractExternalTransactionController.registerSynchronizationListener(AbstractExternalTransactionController.java:122) ... 37 moreCaused by: javax.transaction.SystemException: Server is currently shutting down, no further transactions may be started at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.ApplicationServerTransactionManager.createTransactionWithMaxConcurrentTxCheck(ApplicationServerTransactionManager.java:146) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.ApplicationServerTransactionManager.createTransaction(ApplicationServerTransactionManager.java:104) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.ApplicationServerTransactionManager.begin(ApplicationServerTransactionManager.java:89) at oracle.toplink.jts.JTSExternalTransactionController.beginTransaction(JTSExternalTransactionController.java:52) ... 43 more

    Phil,
    I have not seen this before. Are you referring to the embedded server?
    Is there any chance that an exception was thrown before this which could have caused the active JTA transaction to be marked for rollback or something more critical in the container. I believe you are looking at a follow on symptom caused by the application continuing after some failure.
    I would recommend posting this to the OC4J to see if any of the experts there could shed some light on this.
    Doug

  • Can't get JDeveloper/OC4J to auto-create MySQL table

    My EJB 3.0 based application is failing to create the MySQL table specified by the @TableGenerator annotation.
    Following are the details of my setup and application:
    System Setup:
    - JDeveloper 10.1.3.1.0
    - JDK 1.5.0_07
    - Ubuntu Linux kernel 2.6.15-27-k7
    - MySQL 5.0
    - MySQL ConnectorJ 3.1.13
    - Using the embedded OC4J server.
    I have done the following so far:
    1. Created a database in MySQL called, "test". Did not create any tables.
    2. Created a JDeveloper library whose classpath contains the MySQL ConnectorJ JAR file, and tested a database connection from JDeveloper successfully.
    3. Added the MySQL/JDeveloper library to my ejb project, "Test1/Model", and selected the database connection from the project properties EJB panel. The database connector is called, "SmashDB". Selecting the database connector on the EJB panel resulted in JDeveloper setting "SmashDBDS" as the default datasource.
    A JSF managed bean calls an EJB Session Bean, CustomerFacadeBean.persistEntity(Customer customer) with a Customer object as a parameter to save in the database. OC4J successfully connects to the MySQL "test" database, but fails when trying to access the ID_GENERATOR table, which is specified in an @TableGenerator annotation. The class-level annotations in the Customer entity are as follows:
    @Entity
    @NamedQuery(name = "Customer.findAll", query = "select o from Customer o")
    @TableGenerator(name = "BasicIDGen", table = "ID_GENERATOR", pkColumnName = "GEN_KEY",
    pkColumnValue = "CUSTOMER_ID", valueColumnName = "GEN_VALUE")
    public class Customer implements Serializable {
    private Long id;
    private Integer version;
    private String firstName;
    private String lastName;
    private String emailAddr;
    My persistence.xml file contains:
    <?xml version="1.0" encoding="UTF-8" ?>
    <persistence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
    version="1.0" xmlns="http://java.sun.com/xml/ns/persistence">
    <persistence-unit name="Model">
    <properties>
    <property name="toplink.ddl-generation" value="drop-and-create-tables"/>
    </properties>
    </persistence-unit>
    </persistence>
    With the above definition for Customer and persistence.xml, I expected the ID_GENERATOR and CUSTOMER tables to be created automatically, but this doesn't seem to be happening.
    Instead, I get the following error message and stack trace:
    2006-09-27 12:25:29.564 ERROR J2EE EJB-08006 [CustomerFacade:public java.lang.Object facade.CustomerFacadeBean.persistEntity(java.lang.Object)] exception occurred during method invocation: oracle.oc4j.rmi.OracleRemoteException: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.7 (Build 060720)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: Table 'test.ID_GENERATOR' doesn't existError Code: 1146
    Call:UPDATE ID_GENERATOR SET GEN_VALUE = GEN_VALUE + ? WHERE GEN_KEY = ?
         bind => [50, CUSTOMER_ID]
    Query:DataModifyQuery(); nested exception is:
         Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.7 (Build 060720)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: Table 'test.ID_GENERATOR' doesn't existError Code: 1146
    Call:UPDATE ID_GENERATOR SET GEN_VALUE = GEN_VALUE + ? WHERE GEN_KEY = ?
         bind => [50, CUSTOMER_ID]
    etc.....
    Help would be greatly appreciated. I've gotten to this point, which appears to be one error away from success (I hope) but don't have a clue what this problem is caused by.
    Thanks,
    Rick Horowitz

    darby wrote:
    I can't get this to compile. help!
    You can not issue DDL in PL/SQL. You need to use dynamic SQL for that:
    create or replace
    PROCEDURE CREATE_STAGING_TABLES as
    BEGIN
      -- I CAN'T GET THIS TO WORK BUT I CAN COPY THESE LINES AND RUN THEM AND THEY WORK! WHATUP?
      DBMS_OUTPUT.PUT_LINE('Begin Create Import Tables');
      EXECUTE IMMEDIATE 'Create table FAC_STAGING_PROJECTS As select * from FAC_PROJECTS where 1=2';
        EXECUTE IMMEDIATE 'alter table FAC_STAGING_PROJECTS add(ERROR_DESCRIPTION VARCHAR2(4000 CHAR))';
        EXECUTE IMMEDIATE 'alter table FAC_STAGING_PROJECTS add(bImported NUMBER)';
        EXECUTE IMMEDIATE 'alter table FAC_STAGING_PROJECTS add(dteImported DATE)';
      EXECUTE IMMEDIATE 'Create table FAC_STAGING_PURCHASE_ORDERS As select * from FAC_PURCHASE_ORDERS where 1=2';
        EXECUTE IMMEDIATE 'alter table FAC_STAGING_PURCHASE_ORDERS add(ERROR_DESCRIPTION VARCHAR2(4000 CHAR))';
        EXECUTE IMMEDIATE 'alter table FAC_STAGING_PURCHASE_ORDERS add(bImported NUMBER)';
        EXECUTE IMMEDIATE 'alter table FAC_STAGING_PURCHASE_ORDERS add(dteImported DATE)';
      DBMS_OUTPUT.PUT_LINE('End Create Import Tables'); 
      EXCEPTION
       WHEN OTHERS THEN
         raise_application_error(-20022,substr(SQLERRM,1,255));
    END CREATE_STAGING_TABLES;SY.
    P.S. I am not questioning why do you need to create tables from a stored procedure.

  • Not able to get coverage output in JDeveloper- OC4J- Emma combination.

    Hi,
    I have instrumented(overwrite and in the correct location) my class files with emma. I have setup the classpath to point to emma.jar. I then run the project in the embedded oc4j server.
    After I run a few flows and terminate the oc4j I cannot find the coverage file(coverage.ec) anywhere. I looked into the <oc4jhome>/j2ee/home and it is not there.
    I know that it is touching those class files because, when I remove emma.jar from the class path and try to run the project the oc4j excution terminates with an exception saying it cannot find emma classes. Once I add it back I am able to execute the project.
    So it looks like the instrumented class files are being accessed, but I cannot find the coverage file anywhere. Appreciate any ideas/tips to solve this.

    Try looking under the system directory and see if it was created there.

  • Newbie JDeveloper OC4J doesn't install

    Followed instructions for installing OC4J. From the command prompt went to the correct directory, typed 'start java -jar
    oc4j.jar -install and a window flashes by and I am never asked for an admin password?? Any ideas?

    Followed instructions for installing OC4J. From the command prompt went to the correct directory, typed 'start java -jar
    oc4j.jar -install and a window flashes by and I am never asked for an admin password?? Any ideas? Don't prefix it with start, just use java -jar oc4j.jar -install
    Rob

  • JDeveloper OC4J - client method calls

    I am having trouble in getting result while I was calling a clientt method in OC4J.
    The SQL query used was not fetching results. when I run the query in a SQL developer it is working fine.
    Showing no error but not bringing any results.
    The client method is:
    public KanbanSupplierViewRow findBySupIdMinNMax(long idl, long idu){   
    setWhereClauseParam(0,new Long(idl));
    setWhereClauseParam(1,new Long(idu));
    executeQuery();
    return (KanbanSupplierViewRow) first();
    ----------------------------------------------------Please see the message out put from debugging mode
    [3227] ViewObject : Created new QUERY statement
    [3228] select supplier_id,
    supplier_number,
    supplier_name,
    created_by,
    creation_date,
    last_updated_by,
    last_update_date
    from ( select a.supplier_id,
    a.supplier_number,
    a.supplier_name,
    a.created_by,
    a.creation_date,
    a.last_updated_by,
    a.last_update_date,
    rownum r from ( select * from ekb_suppliers order by supplier_number) a where rownum < :2 ) where r > :1
    [3229] Binding param 1: 1
    [3230] Binding param 2: 101
    2005-07-14 14:21:00,375 DEBUG [KanbanSupplierAction_db]
    Result Null

    Test

  • Help on Debug Mode in Oracle JDeveloper 10g/OC4J

    Hi All,
         Presently I am using Oracle JDeveloper 10g Early Access version
              ADF Business Components     10.1.3.34.12
              Java™ Platform          1.5.0_05
              Oracle IDE               10.1.3.34.12
              PMD               JDeveloper Extension 1.7
              and OC4J.
    I want to debug all the Java files between request submission and getting response from the server in j2ee application. This we can do in eclipse ide by putting break points where ever we require and running the server in debugging mode. But I don't know how this can be done in JDeveloper/OC4J. Please can any one of you guide me, if you are aware of it. Thanks in advance.
    -immu

    If you mean remote debugging the application on a stand alone OC4J then here is a basic how-to:
    http://blogs.oracle.com/shay/2005/10/24#a55
    This is also covered in the online help.

  • JDeveloper 9i RC and OC4J virtual directory

    Hi,
    How can I configure the following tags from my tomcat/catalina "server.xml" file to JDeveloper OC4J?
    <context path="/images" docBase="c:\images"/>
    <context path="/javascript" docBase="c:\javascript"/>
    <context path="/styles" docBase="c:\styles"/>
    I have tried adding the following entries to the "%JDEV_HOME%\jdev\system\oc4j-config\global-web-application.xml" without success.
    <virtual-directory real-path="c:\images" virtual-path="/images" />
    <virtual-directory real-path="c:\javascript" virtual-path="/javascript" />
    <virtual-directory real-path="c:\styles" virtual-path="/styles" />
    As a work-around I have copied these directories to the default-web-app root directory.
    Your assistance would be greatly appreciated.
    Thanks,
    David

    Try this in the orion-web.xml for your web application.
    Assuming you all your images in a directory called e:\pictures and you want to add this /img virtual directory you have to edit the orion-web.xml file for your web application as follows:
    <virtual-directory
    virtual-path="/img"
    real-path="/e:/pictures/" />
    regards
    Debu panda
    Oracle

  • How do I use Generic LDAP Authentication in JDeveloper?

    I have an existing JSP/Java Servlet application that uses a generic LDAP server for user authentication. Each JSP page checks the user name against a database entry for authorization to that page (it’s a legacy app).
    The following web.xml fragment describes the
    security/login configuration:
    <security-constraint>
    <display-name>I Security Constraint</display-name>
    <web-resource-collection>
    <web-resource-name>ALL</web-resource-name>
    <url-pattern>/*</url-pattern>
    <http-method>GET</http-method>
    <http-method>POST</http-method>
    </web-resource-collection>
    <auth-constraint>
    <description>I</description>
    <role-name>*</role-name>
    </auth-constraint>
    <user-data-constraint>
    <transport-guarantee>NONE</transport-guarantee>
    </user-data-constraint>
    </security-constraint>
    <login-config>
    <auth-method>BASIC</auth-method>
    <realm-name>I Enterprise Server</realm-name>
    </login-config>
    I want to use JDeveloper and the built-in OC4J environment for development/debugging. I have tried configuring jazn.xml to use a LDAP provider (both in **\j2ee\home\config\ and **\jdev\system9.0.3.1035\oc4j-config\)
    1) How do I configure the internal OC4J environment to use the generic LDAP service?
    2) Does the JAZN LDAP only work with Oracle OID?
    3) Is there a document or list-of-documents that consolidates the JDeveloper OC4J server administration functions? The existing OC4J administrative documentation is splattered about various web documents.
    Thanks
    Jake

    Todd,
    This how-to may help answer some of your questions
    http://otn.oracle.com/tech/java/oc4j/htdocs/how-to-jazn.html
    If you have additional questions on configuring jazn.xml for LDAP and OiD, I think your best bet is post to 9iAS J2EE forum.
    Thanks,
    Yvonne

  • Crystal Reports for Eclipse issues running under Oracle Jdeveloper.

    <p>I am having issues trying to get a small application that I developed in eclipse that uses Crystal Reports to work with Oracle&#39;s JDeveloper OC4J embedded server.  I can run the application fine and when I try to view  a report I get a partial report rendering and then get the following exception:</p><p> </p><p>2006-10-03 06:55:38.778 NOTIFICATION  J2EE JSP0008 Unable to dispatch JSP Page : java.lang.IllegalStateException: Writer already retrieved<br />    at com.evermind.server.http.EvermindHttpServletResponse.getOutputStream(EvermindHttpServletResponse.java:882)<br />    at com.evermind.server.http.EvermindHttpServletResponse.getJspOutputStream(EvermindHttpServletResponse.java:877)<br />    at com.evermind.server.http.EvermindJSPWriter.initServletOut(EvermindJSPWriter.java:480)<br />    at com.evermind.server.http.EvermindJSPWriter.writeOut(EvermindJSPWriter.java:492)<br />    at com.evermind.server.http.EvermindJSPWriter.jspflush(EvermindJSPWriter.java:391)<br />    at com.evermind.server.http.EvermindJSPWriter.close(EvermindJSPWriter.java:361)<br />    at oracle.jsp.runtime.OracleJspRuntime.extraHandlePCFinally(OracleJspRuntime.java:1574)<br />    at sample20_reports._MartyRpt_2d_viewer._jspService(_MartyRpt_2d_viewer.java:143)<br />    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:60)<br />    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:416)<br />    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)<br />    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)<br />    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)<br />    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)<br />    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)<br />    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)<br />    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)<br />    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)<br />    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)<br />    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)<br />    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)<br />    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)<br />    at java.lang.Thread.run(Thread.java:595)</p><p> </p><p>Does anyone have any idea of what is causing this?  </p><p>I really need help fixing this issue.  Any help would be much appreciated.</p><p>Marty </p>

    <p>I agree with Rob that it is likely the OutputStream object throwing the error. Another option is to try the following code for your viewer code:</p><p> </p><p class="MsoNormal"><font face="Courier New" size="2" color="#3f7f5f"><span style="font-size: 10pt; font-family: "Courier New"; color: #3f7f5f">// ****** BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************<span>  </span></span></font></p>  <p class="MsoNormal"><font face="Courier New" size="2" color="black"><span style="font-size: 10pt; font-family: "Courier New"; color: black">{</span></font></p>  <p class="MsoNormal"><font face="Courier New" size="2" color="#3f7f5f"><span style="font-size: 10pt; font-family: "Courier New"; color: #3f7f5f">// Create the CrystalReportViewer object</span></font></p>  <p style="margin-right: -0.75in" class="MsoNormal"><font face="Courier New" size="2" color="black"><span style="font-size: 10pt; font-family: "Courier New"; color: black">CrystalReportViewer crystalReportPageViewer = </span></font><strong><font face="Courier New" size="2" color="#7f0055"><span style="font-size: 10pt; font-family: "Courier New"; color: #7f0055; font-weight: bold">new</span></font></strong><font face="Courier New" size="2" color="black"><span style="font-size: 10pt; font-family: "Courier New"; color: black"> CrystalReportViewer();</span></font></p>  <p class="MsoNormal"><font face="Courier New" size="2"><span style="font-size: 10pt; font-family: "Courier New""> </span></font></p>  <p class="MsoNormal"><font face="Courier New" size="2" color="#3f7f5f"><span style="font-size: 10pt; font-family: "Courier New"; color: #3f7f5f">//<span>    </span>set the reportsource property of the viewer</span></font></p>  <p class="MsoNormal"><font face="Courier New" size="2" color="black"><span style="font-size: 10pt; font-family: "Courier New"; color: black">IReportSource reportSource = clientDoc.getReportSource();<br />crystalReportPageViewer.setReportSource(reportSource);</span></font></p>  <p class="MsoNormal"><font face="Courier New" size="2"><span style="font-size: 10pt; font-family: "Courier New""> </span></font></p>      <p class="MsoNormal"><font face="Courier New" size="2" color="black"><span style="font-size: 10pt; font-family: "Courier New"; color: black">// set viewer attributes<br />crystalReportPageViewer.setOwnPage(</span></font><strong><font face="Courier New" size="2" color="#7f0055"><span style="font-size: 10pt; font-family: "Courier New"; color: #7f0055; font-weight: bold">true</span></font></strong><font face="Courier New" size="2" color="black"><span style="font-size: 10pt; font-family: "Courier New"; color: black">);<br />crystalReportPageViewer.setOwnForm(</span></font><strong><font face="Courier New" size="2" color="#7f0055"><span style="font-size: 10pt; font-family: "Courier New"; color: #7f0055; font-weight: bold">true</span></font></strong><font face="Courier New" size="2" color="black"><span style="font-size: 10pt; font-family: "Courier New"; color: black">);</span></font></p>  <p class="MsoNormal"><font face="Courier New" size="2"><span style="font-size: 10pt; font-family: "Courier New""> </span></font></p>  <p class="MsoNormal"><font face="Courier New" size="2" color="#3f7f5f"><span style="font-size: 10pt; font-family: "Courier New"; color: #3f7f5f">// Apply the viewer preference attributes</span></font></p>  <p class="MsoNormal"><font face="Courier New" size="2" color="#3f7f5f"><span style="font-size: 10pt; font-family: "Courier New"; color: #3f7f5f">// Process the report</span></font></p>  <p class="MsoNormal"><font face="Courier New" size="2" color="black"><span style="font-size: 10pt; font-family: "Courier New"; color: black">String output = crystalReportPageViewer.getHtmlContent(request, response, application); </span></font></p>  <p class="MsoNormal"><font face="Courier New" size="2" color="black"><span style="font-size: 10pt; font-family: "Courier New"; color: black">out.print(output);</span></font></p>  <p class="MsoNormal"><font face="Courier New" size="2" color="black"><span style="font-size: 10pt; font-family: "Courier New"; color: black">}</span></font></p>  <p class="MsoNormal"><font face="Courier New" size="2" color="#3f7f5f"><span style="font-size: 10pt; font-family: "Courier New"; color: #3f7f5f">// ****** END CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************<span>  </span></span></font></p>  <p> </p><p>Regards,<br />Sean Johnson (CR4E Product Manager) </p>

Maybe you are looking for

  • Is there a way to set two different settings for the backlight?

    I was wondering if there is a way for me to set the backlight to always on when watching videos on my 5G 30 gig iPod and off when doing anything else? Or do I have to manually go in and change the setting everytime?

  • HP LaserJet 1000 Printer

    Good day to all, I have a HP printer laserjet  1000  that I like to use because it is very  effecient.   I use it with my old laptop.  I try to install the dfriver on my other laptop, Windows 7 pro. and unfortunatly I cannot fond any driver for Win 7

  • Acer Aspire V17 Nitro Black Number Lock

    I know this has been asked before but the answers given have not worked.1.  Edit the registery.2.  Disable fast startup.I have an Acer Aspire V17 Nitro Black (VN7-791G) with Windows 8.1.  I want Num Lock on always.  When I boot the machine in the mor

  • How can I automatically load the most recent photo gallery?

    I would like to add a "Recent Photos" section to my home page. Is there any good way to do that?

  • Insufficient Bandwidth Linksys WRT54G 2.2

    IChat 3.01 works fine if I connect my computer directly to my Comcast cable modem. When connected through the WRT54G I can text chat but audio chat attempts produce the dreaded "insufficient bandwidth" message. I updated the Linksys to v4.20.7. I hav