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

Similar Messages

  • OC4J Problem

    Hello
    I have created Servlet Application.
    Now when i run JDeveloper and run the BIController (by default it starts OC4J i.e. :-
    Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    D:\jdev\jdk\bin\javaw.exe -ojvm -classpath D:\jdev\j2ee\home\oc4j.jar;D:\jdev\jdev\lib\jdev-oc4j.jar -Doc4j.userThreads=true -Xverify:none -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 com.evermind.server.OC4JServer -config D:\jdev\jdev\system9.0.3.4.1247\oc4j-config\server.xml
    [waiting for the server to complete its initialization...]
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 17109 ms.
    Target URL -- http://192.168.1.243:8988/Proj-Workspace-Profitable-Products-context-root/mypackage1.BIController1
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    When this is done clients can access through browser using url: -
    http://192.168.1.243:8988/Proj-Workspace-Profitable-Products-context-root/mypackage1.BIController1
    I want that client can access this in a scenarion that i don't have to run JDeveloper (OC4J)
    Plz some one tell me that how to run embedded OC4J without JDevloper with configuration same as in JDeveloper i.e.
    Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    D:\jdev\jdk\bin\javaw.exe -ojvm -classpath D:\jdev\j2ee\home\oc4j.jar;D:\jdev\jdev\lib\jdev-oc4j.jar -Doc4j.userThreads=true -Xverify:none -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 com.evermind.server.OC4JServer -config D:\jdev\jdev\system9.0.3.4.1247\oc4j-config\server.xml
    [waiting for the server to complete its initialization...]
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 17109 ms.
    Target URL -- http://192.168.1.243:8988/Proj-Workspace-Profitable-Products-context-root/mypackage1.BIController1
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    In simple words i want to do all that (above) without opening Jdeveloper so that clients can access through browser. (Note:- i don't want to deploy it to application server or to any other tech,.....)

    hi
    usually the application is deployed to an application server, please note that the oc4j itself is intended only for development purpose and not ment for a production system. this is because it lacks the clustering/failover/etc features
    if you want to try the "deployment", here is what you can do:
    either download the oc4j (just for testing) or use the one supplied with jdeveloper.
    if using the one from jdeveloper do the following (assuming you run under windows):
    open a dos prompt and set the path the following way:
    set path=YOUR_JDEV_HOME\jdk\bin;%PATH%
    cd YOUR_JDEV_HOME\j2ee\home
    java -jar oc4j.jar -install
    you now get prompted for the admin password
    start your oc4j:
    java -jar oc4j.jar
    o)afterwards, create a "deployment profile" within your project
    o)put all the files together
    o)create a new delopyment connection (oc4j standalone) and deploy it to your recently configured oc4j
    o) thats it
    note: i recommend you tune the deployment profile and change the name of your webapp and the context as well
    "Proj-Workspace-Profitable-Products-context-root" isnt very fancy ;)
    regards,
    thomas

  • CMB accessing remote OC4J problem

    I create a CMBean from table, before using this CMB accesses remote OC4J,all are right (deploy is ok,testing in embedded oc4j is ok,even using session bean accessing remote OC4J is ok)
    the client code is:
    try
    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");
    env.put(Context.PROVIDER_URL, "ormi://cly:23791/emp");
    Context ctx = new InitialContext(env);
    EmpHome empHome = (EmpHome)ctx.lookup("Emp");
    Emp emp;
    The console displays:
    javax.naming.NamingException: Lookup error: java.io.IOException: Class Not Found: com.evermind.server.ejb.DummyRemote; nested exception is:
         java.io.IOException: Class Not Found: com.evermind.server.ejb.DummyRemote
         java.lang.Object com.evermind.server.rmi.RMIContext.lookup(java.lang.String)
         java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
         void Samplepk.EmpClient2.main(java.lang.String[])
    Process exited with exit code 0.
    How can solve this problem

    Hi Chen,
    I assume you mean CMP entity bean (when you talk about a "CMB").
    However, what I cannot deduce is, what OC4J are you referring to:
    1. OC4J in JDeveloper
    2. OC4J stand-alone
    3. OC4J in 9iAS
    [and which version(s) of the above]
    I'm only guessing, but perhaps you have developed your (CMP entity) bean in JDeveloper, and are trying to deploy it in either OC4J stand-alone or 9iAS, correct?
    If this is the case, you may have a compatibility mismatch between the various products (JDeveloper, OC4J, 9iAS).
    Personally, I only use OC4J stand-alone. I don't use JDeveloper, and I use the tools that come with OC4J stand-alone to deploy my EJBs.
    Hope this helps.
    Good Luck,
    Avi.

  • Hi! I am new to Jdeveloper.Having problem while deploying on embeded OC4J

    hi everybody
    I am new to JDeveloper.I am using OracleJDeveloper 10.2.3 version.I am facing problem while deploying any application on embeded OC4J server.I have tried a lot after searching solution on this site,but all of no use.Actually i am not able to established connection with OC4J.Whenever i am testing the connection it`s giving message Connection Failed message.Please provide me the exact solution.I am in need of this so reply as soon as possible.
    Thanks In Advance
    Rohit Tiwary

    Hi Rohit,
    You dont have to create a connection to deploy in embedded oc4j. You can simply right click on the jsf page and run.
    HTH.
    Regards,
    Arun

  • 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.

  • New Jdeveloper 11g problem

    Hi ,
    I intalled the new Jdeveloper 11g preview version and tried craeting a simple page using my database connection.Its does everything fine but when i run the page it generates following log:
    :\Documents and Settings\deolk\Application Data\JDeveloper\system11.1.1.0.22.47.96\o.j2ee\embedded-oc4j\config>
    C:\JDev11g\jdk\bin\javaw.exe -client -classpath C:\JDev11g\j2ee\home\oc4j.jar;C:\JDev11g\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -XX:MaxPermSize=512m -Ddisable.checkForUpdate=true -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false "-Djava.security.policy=C:\Documents and Settings\deolk\Application Data\JDeveloper\system11.1.1.0.22.47.96\o.j2ee\embedded-oc4j\config\java2.policy" oracle.oc4j.loader.boot.BootStrap -config "C:\Documents and Settings\deolk\Application Data\JDeveloper\system11.1.1.0.22.47.96\o.j2ee\embedded-oc4j\config\server.xml"
    [waiting for the server to complete its initialization...]
    Feb 8, 2008 11:32:01 AM oracle.j2ee.xml.XMLMessages warningException
    WARNING: Exception Encountered
    C:\JDev11g\jdk\bin\javaw.exe -jar C:\JDev11g\j2ee\home\admin.jar ormi://10.30.139.243:23891 fmwadmin **** -updateConfig
    Feb 8, 2008 11:32:12 AM oracle.security.jps.fmw.util.JpsFmwUtil findSystemUser
    WARNING: findSystemUser: System user is not available from Credential Store.
    08/02/08 11:32:24 WARNING: ApplicationServer.enableOC4JDocumentChangeNotifier Alternate DocumentChangeNotifier in use!
    08/02/08 11:32:24 JMS server will listen on port 9227.
    08/02/08 11:32:26 oracle.j2ee.jms.oc4j.JMSServer startup complete
    Feb 8, 2008 11:32:27 AM oracle.security.jps.fmw.util.JpsFmwUtil findSystemUser
    WARNING: findSystemUser: System user is not available from Credential Store.
    Feb 8, 2008 11:32:28 AM oracle.security.jps.fmw.util.JpsFmwUtil findSystemUser
    WARNING: findSystemUser: System user is not available from Credential Store.
    Feb 8, 2008 11:32:33 AM oracle.security.jps.fmw.util.JpsFmwUtil findSystemUser
    WARNING: findSystemUser: System user is not available from Credential Store.
    Feb 8, 2008 11:32:33 AM oracle.security.jps.fmw.util.JpsFmwUtil findSystemUser
    WARNING: findSystemUser: System user is not available from Credential Store.
    Feb 8, 2008 11:32:34 AM oracle.security.jps.fmw.util.JpsFmwUtil findSystemUser
    WARNING: findSystemUser: System user is not available from Credential Store.
    Feb 8, 2008 11:32:34 AM oracle.security.jps.fmw.util.JpsFmwUtil findSystemUser
    WARNING: findSystemUser: System user is not available from Credential Store.
    Feb 8, 2008 11:32:34 AM oracle.j2ee.util.AnnotatedLogger logWithThrowable
    WARNING: J2EE JNDI-00002
    Feb 8, 2008 11:32:34 AM oracle.j2ee.util.AnnotatedLogger log
    WARNING: No javax.jms.ConnectionFactory found at null
    Feb 8, 2008 11:32:34 AM oracle.security.jps.fmw.util.JpsFmwUtil findSystemUser
    WARNING: findSystemUser: System user is not available from Credential Store.
    Feb 8, 2008 11:32:35 AM oracle.security.jps.fmw.util.JpsFmwUtil findSystemUser
    WARNING: findSystemUser: System user is not available from Credential Store.
    Feb 8, 2008 11:32:38 AM oracle.j2ee.jmsrouter.util.JmsRouterMessages logException
    WARNING: oracle.j2ee.jmsrouter.RouterException: JMS Destination, {0}, does not exist
    Ready message received from Oc4jNotifier.
    Embedded OC4J Server startup time: 39078 ms.
    Target URL -- http://127.0.0.1:8988/test-ViewController-context-root/faces/untitled1.jspx
    The target URL creates the page with HTTP Error
    Status : 504 Gateway Time-Out
    Description : Unable to connect to origin Web server.
    Thanks
    Kamal

    Well, I have exactly the same problem "System user not available..."
    I am doing something VERY simple: create a JavaEE app, create a single Session bean, everything deafult and then simply "Run..." that bean.
    This problem remains even after I have successfully changed the OC4J path to "c:\kkk2".
    Any other ideas?
    Another question: in the previous JDeveloper, local and remote interfaces to EJB-s were hidden in the pp explorer. Can I still activate this feature?
    Regards: Á

  • 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

  • Deploy standalone OC4J problem

    I'm pretty new Jdeveloper So Please help me.
    I'm very strange about my deploy.
    I downloaded OC4J in c:/Oc4J, and I did ADF Runtime Installer for Standalone OC4J.
    I can deploy my local host sucessfully.
    So now I tyied to deploy to our compuany server.
    I created application server, I put company's hostname at hostname when I created application server.
    And I tried to deploy my application to the application server.
    I got error.
    This is very strange for me.
    I downloaded OC4J at C:\OC4J_home, and I put OC4J_HOME for Oc4J root directory.
    But this is working with D drive like below whenere I try to deploy my application.
    What should I do?
    Can I change this directory?
    ---- Deployment started. ---- Dec 11, 2006 11:43:08 AM
    Target platform is Standalone OC4J 10g 10.1.3 (dev).
    Running dependency analysis...
    Wrote JAR file to C:\Documents and Settings\train2.SDC\Desktop\jdevstudio10131\jdev\mywork\customerMain1204\Model\deploy\ModelArchive.jar
    Wrote WAR file to C:\Documents and Settings\train2.SDC\Desktop\jdevstudio10131\jdev\mywork\customerMain1204\ViewController\deploy\CustomerMaintenance.war
    Wrote EAR file to C:\Documents and Settings\train2.SDC\Desktop\jdevstudio10131\jdev\mywork\customerMain1204\ViewController\deploy\CustomerMaintenance.ear
    Uploading file CustomerMaintenance.ear ...
    Uploading file CustomerMaintenance.ear ...
    Uploading file CustomerMaintenance.ear ...
    Uploading file CustomerMaintenance.ear ...
    Uploading file CustomerMaintenance.ear ...
    Uploading file CustomerMaintenance.ear ...
    Uploading file CustomerMaintenance.ear ...
    Uploading file CustomerMaintenance.ear ...
    Application Deployer for CustomerMaintenance STARTS.
    Copy the archive to D:\oc4j\j2ee\home\applications\CustomerMaintenance.ear
    Initialize D:\oc4j\j2ee\home\applications\CustomerMaintenance.ear begins...
    Unpacking CustomerMaintenance.ear
    Done unpacking CustomerMaintenance.ear
    Unpacking CustomerMaintenance.war
    Done unpacking CustomerMaintenance.war
    Initialize D:\oc4j\j2ee\home\applications\CustomerMaintenance.ear ends...
    Starting application : CustomerMaintenance
    Initializing ClassLoader(s)
    Initializing EJB container
    Loading connector(s)
    Starting up resource adapters
    Initializing EJB sessions
    Committing ClassLoader(s)
    Initialize CustomerMaintenance begins...
    Initialize CustomerMaintenance ends...
    Started application : CustomerMaintenance
    Binding web application(s) to site default-web-site begins...
    Binding CustomerMaintenance web-module for application CustomerMaintenance to site default-web-site under context root customerMain
    Exception: NoClassDefFoundError: oracle/jbo/JboException
    Operation failed with error:
    oracle/jbo/JboException
    Deployment failed
    Elapsed time for deployment: 1 minute, 18 seconds
    #### Deployment incomplete. #### Dec 11, 2006 11:44:24 AM

    S,
    Yes, causes a bit of a problem, the fact that all Oracle products tend to rely on the ORACLE_HOME environment variable.
    In any case, this issue has been discussed previously in this forum. I suggest you search the forum archives for "ORACLE_HOME".
    Good Luck,
    Avi.

  • Rmi to Oc4j Problem

    Hi,
    we have the following problem:
    We want to call an Enterprise Java Bean from an Oracle10g DataBase. The Ejb is deployed in an Oc4j-ApplicationServer.
    When we try to get the Initial-Context on the DataBase, then we get an error which tells us that the class which implements this Functionallity is not found:
    .javax.naming.NoInitialContextException: Cannot instantiate class: oracle.j2ee.rmi.RMIInitialContextFactory [Root exception is java.lang.ClassNotFoundException: oracle.j2ee.rmi.RMIInitialContextFactory]
    I think that it is in the oc4jclient.jar file which comes with the jDeveloper installation.
    When we try to send the oc4jclient.jar via loadjava to the database we get some errors during the deployment. When we look at the deployed classes we see that many classes are invalid because of missing classes.
    Has anybody an Idea how to fix this?
    (This is really urgent)
    Regards
    Jan

    hi Jan,
    I have few links which may help u .
    1. http://www.oracle.com/technology/tech/java/oc4j/1013/how_to/howtoORMIS/doc/how-to-ORMIS.html
    2.
    http://www.oracle.com/technology/tech/java/oc4j/htdocs/how-to-rmi-iiop.html
    3.
    re:Accessing EJB on OC4J from Oracle 8.1.7.3
    Trinath Somanchi,
    Hyderabad.

  • 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.

  • 10.1.3 EA1 library deployment to standalone oc4j problem

    I'm having trouble getting a library to deploy with EA1. It deployed OK with 10.1.3 DP.
    The deployment consists of the ViewController and Model projects (as created by jdev) plus a third project I created called businessobjects.
    The problem lies with a library that fails to be deployed but is needed by the Model and businessobjects projects. This results in "Missing class" error messages. (BTW, the library consists of a directory and a jar).
    With 10.1.3 EA1 under War Deployment Profile Properties>WEB-INF/lib>Contributers, the library does not show up whereas it does with 10.1.3 DP. As far as I can see it looks like I've specified all the dependancies and check-marked the appropriate boxes but obviously I must be doing something wrong.
    The application runs as expected within jdev.
    Anyone have any specific places I should double check?
    Regards,
    Al Malin

    Don't worry,
    It just means that the embedded server inside JDeveloper is a developer preview version. The OC4J team uses a different way to name their "early access" releases.

  • JDeveloper IDE problems with google Calendar development libraries

    Hello all,
    I am using JDeveloper as an IDE for developing the google calendar events.
    I am referring the http://code.google.com/apis/calendar/data/2.0/developers_guide_java.html site.
    Instead of ANT to run the sample code, I am using JDeveloper IDE and added all required libraries from sample and source code.
    Still I am getting weird error as Error(22,29): GDataRequest$RequestType not found in enum com.google.gdata.client.Service.GDataRequest.RequestType in class com.google.gdata.client.GoogleService in class com.google.gdata.client.calendar.CalendarService in class project1.CalendarTest
    Code is as below
    package project1;
    import com.google.gdata.client.*;
    import com.google.gdata.client.calendar.*;
    import com.google.gdata.data.*;
    import com.google.gdata.data.acl.*;
    import com.google.gdata.data.calendar.*;
    import com.google.gdata.data.extensions.*;
    import com.google.gdata.util.*;
    import java.net.*;
    import java.io.*;
    import sample.util.*;
    public class CalendarTest {
    public static void main(String[] args) throws AuthenticationException,
    MalformedURLException,
    IOException,
    ServiceException
    CalendarService myService = new CalendarService("exampleCo-exampleApp-1.0");
    // myService.setUserCredentials("[email protected]", "pa$$word");
    // URL feedUrl;
    // CalendarFeed resultFeed = myService.getFeed(feedUrl, CalendarFeed.class);
    // feedUrl = new URL("http://www.google.com/calendar/feeds/default/allcalendars/full");
    // System.out.println("Your calendars:");
    // System.out.println();
    // for (int i = 0; i < resultFeed.getEntries().size(); i++) {
    // CalendarEntry entry = resultFeed.getEntries().get(i);
    // System.out.println("\t" + entry.getTitle().getPlainText());
    Please if somebody has already faced such problem, show me some way or give the direction.

    Problem is solved by changing jdeveloper Compilat settings.
    Checked the checkbox of 'Use Javac'.
    and then compile the project. It will get compiled.
    Thanks to Shishir Shrivastava's post
    http://www.mail-archive.com/[email protected]/msg00984.html
    -Vedika

  • JDeveloper 9i - Problem with using tag lib

    I am having problem with building my project, using JDeveloper 9i.
    My project includes custom tag libraries.
    When I build my project, I get back the following error:
    Error(1): oracle.xml.parser.v2.XMLParseException: Invalid element 'servlet' in content of 'web-app', expected elements '[error-page, taglib, resource-ref, security-constraint, login-config, security-role, env-entry, ejb-ref]'
    for every jsp file that has the taglib directive as follows:
    <%@ taglib prefix="srp" uri="/srpTagLib" %>
    Please note that the application runs OK, but it can not be build by JDeveloper for debugging purpose.
    Any ideas? Please help!!!!
    Thanks,
    Cathy

    What version is your tag library and what version is your deployment descriptor?

  • Jdeveloper 10g Problem in Making  EAR

    Hi,
    I am migating a J2EE application source code from Sun One studio to Jdeveloper 10 g (10.1.2),while creating the EAR,there are lot of jsp compilation errors,unable to Bulid the EAR.
    Any body have any Idea that to stop jsp compilation at the time of creating EAR or Make or ReBulid.
    if any options to set, pl suggest.
    Awaiting for Quick respose.
    Thanks....Regards

    Hi, the compilation of the JSPs before building the WAR file is a there to help you finding problems/errors before deployment. You should take them serious and resolve them before the deployment.
    What kind of errors do you get?
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • Vendor delivery?

    Dear Gurus, Vendor is supplying material X in 10 days and and the same material in 15 days.. How can i mention in PO so that the delivery date will come exactly? How can i maintain in info-record, vendor master, material master...?? pls help..

  • How can I get my calendar to sync?

    My calendar claims to be synced, but none of my events are appearing. This should have carried over from my old phone.

  • I have an old Mac OS 9.0.4 - bought it used, no start up disks!  HELP??

    I want to know what my options are for wiping the hard drive clean and starting fresh?  There are several issues with this iMac: **The extensions folder has 250+ items in it, I have no clue what should be there or not.  Extensions go on and off witho

  • IMT error

    hi , I tried to create a text index for a table.Iam granted ctxapp,connect and resource. The error is create index quick_text on quick ( text ) ERROR at line 1: ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine ORA-20000: ConText

  • Error 45 initializing SQL*Plus

    Hi All, When I try to execute a create view script, I encounter a "Error 45 initializing SQL*Plus Internal Error". When googled for it. The BUG 3039738 is associated with this error message. My question is, When the Metalink has explained the scenari