OC4J enterprise vs Standalone

I have a java application which connects to OC4J which manages Session Beans. We have recently upgraded to OC4J 10g (9.0.4.0.0) which deploys correctly when we use the standalone version. When the appname.ear is deployed in the enterprise version the application does not deploy correctly. I think the main issue is that, in the standalone version we deploy the .ear file from a subdirectory in the oc4j home. (/u01/app/oracle/oc4j/j2ee/home/x/appname.ear) which results in deployments created in (/u01/app/oracle/oc4j/j2ee/home/x/appname/)
The enterprise manager of course deploys to the default deployment directory (u01/app/oracle/oc4j/j2ee/home/application-deployments). Do we have to do code changes to fit in with the standard oc4j enterprise deployment structure?

There is no changes in deployment in OC4J Standalone and in OracleAS. How are you dpeloying the EAR ? Are you using dcmctl or EM console ?
What errors are you getting ?
-Debu

Similar Messages

  • How do I create a second instance of oc4j in a standalone enviroment

    I am using OC4J standalone to deploy a sparql endpoint using jena, joseki, and the oracle jena adaptor. OC4J is running on the same server as my DEV and QAR databases. The current instance of OC4J is using a data source called "OracleSemDS" to connect to my DEV database. We are now ready to migrate the endpoint to QAR. As I was setting up the QAR endpoint, I discovered the the jena/joseki tools are hard-coded to use the "OracleSemDS" data source. Therefore, I cannot have 2 endpoints running in the same OC4J instance where one points to DEV and the other points to QAR.
    Therefore, I need to create a second instance of OC4J that specifies QAR as the "OracleSemDS" data connection. Can someone tell me how to do that?
    Thanks,
    Phil

    jphilb wrote:
    I am using OC4J standalone to deploy a sparql endpoint using jena, joseki, and the oracle jena adaptor. OC4J is running on the same server as my DEV and QAR databases. The current instance of OC4J is using a data source called "OracleSemDS" to connect to my DEV database. We are now ready to migrate the endpoint to QAR. As I was setting up the QAR endpoint, I discovered the the jena/joseki tools are hard-coded to use the "OracleSemDS" data source. Therefore, I cannot have 2 endpoints running in the same OC4J instance where one points to DEV and the other points to QAR.
    Therefore, I need to create a second instance of OC4J that specifies QAR as the "OracleSemDS" data connection. Can someone tell me how to do that?
    Thanks,
    Philgday Phil -- Melli Annamalai from the Oracle Server PM team pointed me to your question. I was an OC4J Product Manager before we bought out BEA and I swapped over to WLS -- so I have some information below that hopefully is of assistance to you.
    Since you are using OC4J standalone, the simplest way to get a second instance, is to just clone the existing, whole directory structure of your working OC4J instance into another directory, and configure/run it from that directory. To map the OracleSemDS to another target (QAR) you change the data-sources.xml file in the second instance. If you want to run them concurrently on the same server, you'll need to change the ports in the second instance so they have unique values: default-web-site.xml, rmi.xml, internal-settings.xml, jms.xml. These additional ports can be specified on the command line as a Java property string, albeit this is not a documented nor supported feature. See http://buttso.blogspot.com/2007/02/specifying-oc4j-standalone-ports-from.html for more information.
    Now as an example, assuming you have your OC4J you want to clone in the dev directory, and now want to create a second instance of OC4J in qar, I'd do this:
    cp -rp dev/* qar
    cd qar/j2ee/home/config
    vi data-sources.xml
    (edit any other files if needed to alter ports) ...
    cd ..
    java -jar oc4j.jar That should work, and should create the second instance using the current configuration (ie dev) as its basis (including deployed apps). Of course, you'll need to manage them independently from here as they really are just two separate OC4J standalone instances.
    Now what else you could potentially do is to create a secondary configuration file subset only which only changes the necessary files to support running the second instance. In this case, you'd make a copy of the j2ee/home/config/server.xml, j2ee/home/config/application.xml and j2ee/home/config/data-sources.xml files, renaming them to qar-server.xml, qar-application.xml and qar-data-sources.xml.
    Then do the following:
    1. In qar-server.xml file, you'd change the global-application application to point at qar-application.xml instead of application.xml:
    <global-application name="default" path="qar-application.xml" parent="system" start="true" />
    2. Change qar-application.xml so that it used the qar-data-sources.xml file:
    <data-sources path="qar-data-sources.xml" />
    3. Change qar-data-sources.xml file so it points to the qar database target.
    4. Start OC4J, telling it to use qar-server.xml instead of the default server.xml
    D:\java\oc4j-10135-prod\j2ee\home>java -jar oc4j.jar -config config/qar-server.xmlI think you could run into some concurrency problems if you try and run the two instances simulataneously, but in general it should be OK I think if you run them separately.
    Another solution here is look at how the application specifies/uses datasources. The hard coding of the data-source name into the applicaiton via a direct JNDI lookup works, but restricts the flexibility you as a deployer/administrator has.
    If the application used the Java EE resource-ref approach to look up and use the datasource, then the actual JNDI name of the datasource the application uses it totally abstracted from the actual physical name of the datasource that is created on the container -- so you'd have DEVDS and QARDS as physical datasources configured and running on OC4J -- and what happens is that as you deploy the application, you essentially map its lookup and use of OracleSemDS (which would need to change to a java:env/ namespace) to the physical datasource you want it to use (DEVDS or QARDS for example). You can easily alter this post deployment by changing the generated orion-application.xml file to point at the alternate physical datasource. Following that, you can also create separate deployment plans which map the app to the different datasources, then feed this in with the deployment operation so that the correct mapping to either DEVDS or QARDS is done during the deployment process.
    I don't know what scope you have to change the application so the above may not be possible -- you'd need to change the lookup code so that it uses the Java EE reference model and change the meta-inf/application.xml to add the corresponding resource-ref entry which declares the logical datasource name that needs to be mapped on deployment.
    Another approach here may be to use an application embedded datasource, where you put a data-sources.xml file into the application archive itself (along with an orion-application.xml file which references it) whereupon at deployment time, a datasource specific to the application will be created. In this manner, you'd have say two copies of the same application to deploy (DEV, QAR) which contain different data-sources.xml file. From memory, each application will have its own JNDI namespace so their datasources can co-exist with the same names, with application level data-sources overriding server level ones. Since you'll most likely want to keep the same context-root for the web modules (which has to be unique per server) you'll generally need to run just one of the applications at a time. I'd do this like this: deploy one, stop it, deploy the other, stop it, then start only the one you need to test. In that way, you'll have one copy of the application running (either DEV or QAR) and one datasource definition running within it.
    Here's some documentation links to get you going:
    Managing Application Lifecycle (start, stop): http://download.oracle.com/docs/cd/E14101_01/doc.1013/e13978/adminclient.htm#BABHJAFE <-- describes admin_client.jar but general principles apply to ascontrol management of application.
    Packaging and Testing Applications: http://download.oracle.com/docs/cd/E14101_01/doc.1013/e13979/packag.htm#BHCFBEEC
    Application Level DataSources: http://download.oracle.com/docs/cd/E14101_01/doc.1013/e13975/datasrc.htm#CHDIBFHG
    Using Deployment Plans: http://download.oracle.com/docs/cd/E14101_01/doc.1013/e13980/deployplan.htm#CHDFEFAE
    cheers
    -steve-

  • Error while trying to start oc4j 11g in standalone mode

    I get this error while trying to start oc4j 11g (that comes with JDeveloper 11g Technical Preview 2 ) in standone mode. Any ideas ?
    Sep 17, 2007 6:29:21 PM com.sun.faces.spi.InjectionProviderFactory createInstance
    INFO: jsf.core.injection.provider_generic_web_configured
    Sep 17, 2007 6:29:23 PM org.apache.myfaces.trinidad.component.UIXComponentBase _createType
    SEVERE: Could not load type properties
    java.lang.NullPointerException
    at oracle.classloader.PolicyClassLoader.findLocalClass(PolicyClassLoader.java:1491)
    at oracle.classloader.SearchPolicy$FindLocal.getClass(SearchPolicy.java:226)
    at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
    at oracle.classloader.SearchPolicy.loadClass(SearchPolicy.java:852)
    at oracle.classloader.PolicyClassLoader.askParentForClass(PolicyClassLoader.java:1315)
    at oracle.classloader.SearchPolicy$AskParent.getClass(SearchPolicy.java:72)
    at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
    at oracle.classloader.SearchPolicy.loadClass(SearchPolicy.java:852)
    at oracle.classloader.PolicyClassLoader.askParentForClass(PolicyClassLoader.java:1315)
    at oracle.classloader.SearchPolicy$AskParent.getClass(SearchPolicy.java:72)
    at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
    at oracle.classloader.SearchPolicy.loadClass(SearchPolicy.java:852)
    at oracle.classloader.PolicyClassLoader.askParentForClass(PolicyClassLoader.java:1315)
    at oracle.classloader.SearchPolicy$AskParent.getClass(SearchPolicy.java:72)
    at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
    at oracle.classloader.SearchPolicy.loadClass(SearchPolicy.java:852)
    at oracle.classloader.PolicyClassLoader.askParentForClass(PolicyClassLoader.java:1315)
    at oracle.classloader.SearchPolicy$AskParent.getClass(SearchPolicy.java:72)
    at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
    at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1681)
    at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1642)
    at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1627)
    at org.apache.myfaces.trinidad.component.UIXComponentBase._createType(UIXComponentBase.java:1393)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.<clinit>(UIXComponentBase.java:96)
    at oracle.adfinternal.view.faces.renderkit.rich.DialogRenderer.<init>(DialogRenderer.java:34)
    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 java.lang.Class.newInstance0(Class.java:350)
    at java.lang.Class.newInstance(Class.java:303)
    at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:1024)
    at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:1096)
    at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:505)
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:398)
    at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1285)
    at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:856)
    at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:473)
    at com.evermind.server.Application.getHttpApplication(Application.java:753)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:2039)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:1958)
    at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:645)
    at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:289)
    at com.evermind.server.http.HttpServer.setSites(HttpServer.java:270)
    at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:177)
    at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2747)
    at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1255)
    at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:129)
    at java.lang.Thread.run(Thread.java:595)
    07/09/17 18:29:26 Oracle Containers for J2EE 10g (11.1.1.0.0) initialized
    Thanks
    Ramesh

    Using the OTN2 tech preview build 4684 now available on OTN, I used the JDEVHOME/jdev/bin/start_oc4j script to startup the embedded server in standalone mode and cannot reproduce these errors.
    Can you try with build 4684 from OTN and see if the same issue still reproduces?
    If so, does it occur even before ever deploying any applications of your own to the instance?

  • Error while deploying in OC4J Enterprise Manager

    Hello. I´ve got a problem deploying EAR and WAR files on my AS10g (904) via web enterprise manager. The following is a german orginal error output:
    Installation nicht erfolgreich:
    Plug-In-Fehler beim Lesen von verwalteten Dokumenten.
    Root-Ursache: Expected 'EOF'.
    Lösung:: Die Informationen der "OC4J"-Komponente in der Basis-Exception sind möglicherweise hilfreich.
    Außerdem gibt es folgende allgemeine Problemursachen:
    Falsche Berechtigungen für Dateien
    Konfigurationsdateien fehlen oder sind ungültig. Expected 'EOF'.
    Translated in english would result in something like this:
    Installation not successfully:
    Plug in error when reading administered documents.
    A root cause: Expected 'EOF'.
    Solution:: The information of the "OC4J"-Komponente in the basic exception is possibly helpful.
    In addition there are the following general problems:
    Wrong authorizations for files
    configuration files are missing or are invalid. Expected ' eof '.
    I tried different EAR files (like the oracle petshop ear file) and one war file but i get allways that mysterious error. Btw, I do not have any possibility to deploy it manualy via console.
    Thank you for any hint and greetings,
    Daniel

    Try to fragment the 'ear' in less than 64k blocks or don't transmit as long raw.
    Please let me know if this works.

  • How to insert message in OC4J JMS from standalone java client.

    Hi,
    I have been following available examples for creating standalone java clients to insert messages in JMS queues.
    I am able to insert using java client when the SOA suite and the standalone java code are on same machine.
    package producerconsumerinjava;
    import javax.jms.*;
    import javax.naming.*;
    import java.util.Hashtable;
    public class QueueProducer
    public static void main(String[] args)
    String queueName = "jms/demoQueue";
    String queueConnectionFactoryName = "jms/QueueConnectionFactory";
    Context jndiContext = null;
    QueueConnectionFactory queueConnectionFactory = null;
    QueueConnection queueConnection = null;
    QueueSession queueSession = null;
    Queue queue = null;
    QueueSender queueSender = null;
    TextMessage message = null;
    int noMessages = 5;
    * Set the environment for a connection to the OC4J instance
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "oracle.j2ee.rmi.RMIInitialContextFactory");
    env.put(Context.SECURITY_PRINCIPAL, "oc4jadmin");
    env.put(Context.SECURITY_CREDENTIALS, "mypass");
    env.put(Context.PROVIDER_URL,"ormi://myserver.company.com:12402"); //12402 is the rmi port
    * Set the Context Object.
    * Lookup the Queue Connection Factory.
    * Lookup the JMS Destination.
    try
    jndiContext = new InitialContext(env);
    queueConnectionFactory =
    (QueueConnectionFactory) jndiContext.lookup(queueConnectionFactoryName);
    queue = (Queue) jndiContext.lookup(queueName);
    catch (NamingException e)
    System.out.println("JNDI lookup failed: " + e.toString());
    System.exit(1);
    * Create connection.
    * Create session from connection.
    * Create sender.
    * Create text message.
    * Send messages.
    * Send non text message to end text messages.
    * Close connection.
    try
    queueConnection = queueConnectionFactory.createQueueConnection();
    queueSession =
    queueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
    queueSender = queueSession.createSender(queue);
    message = queueSession.createTextMessage();
    for (int i = 0; i < noMessages; i++)
    message.setText("Message " + (i + 1));
    System.out.println("Producing message: " + message.getText());
    queueSender.send(message);
    queueSender.send(queueSession.createBytesMessage());
    catch (JMSException e)
    System.out.println("Exception occurred: " + e.toString());
    finally
    if (queueConnection != null)
    try
    queueConnection.close();
    catch (JMSException e)
    System.out.println("Closing error: " + e.toString());
    But when the SOA Suite is remote, I am struggling to get the settings correct
    Till now, here is what I have figured out from looking at blogs/tars etc on the Net:
    1. I need to use ApplicationClientInitialContextFactory instead of RMIInitialContextFactory (http://download.oracle.com/docs/cd/E14101_01/doc.1013/e13975/jndi.htm)
    2. The project should have a META-INF/application-client.xml file, which may be dummy (http://www.wever.org/java/space/Oracle/JmsTar1). Question is, my code is there in a single absolutely standalone code..how I can use this application-client.xml and where it has to be placed.
    Errors:
    When trying to run exact same code on local server that tries to enqueue JMS on remotee serverer
    Exception occurred: javax.jms.JMSException: Unable to create a connection to "xxxxxxx.yyyyyy01.dev.com/10.42.456.11:12,602" as user "null".
    Any help is greatly welcome.
    As an exercise, I copied this complete code on the server and then ran locally using a telnet client...it worked. So the problem is coming when accessing the server remotely.
    Rgds,
    Amit

    1. I need to use ApplicationClientInitialContextFactory instead of RMIInitialContextFactoryNot necessarily.
    2. The project should have a META-INF/application-client.xml fileThat's only necessary if going the ApplicationClientInitialContextFactory route.
    There are two types of JMS client applications you can write -- a pure/plain Java app, and an "AppClient". That first is your everyday run-of-the-mill Java application, nothing special. That latter is a special, complicated beast that tries to act as a part of the whole client/server/J2EE architecture which provides you with a semi-managed environment. Either can be made to work, but if all you need is JMS access (using plain OC4J JMS factory/queue names and not JMS Connector names), then the first is easier to get working (and performs a tiny bit better as well due to being a lighter-weight solution).
    I think the problem you are having might be: When you use the plain Java client solution, you do not have any type of management, and that includes user management. With no user management (and if the JMS server is not configured to allow anonymous connections) you need to include the username and password in the call to createConnection. (I think it may be that this is actually true in the AppClient case as well -- I avoid using the AppClient model as much as possible so my memory there is weaker.)
    If you prefer to go the AppClient route, I would point you to a demo I wrote which had a functioning example, but Oracle seems to have removed it (and all of the 10.1.3 demos?) from OTN. :-(
    Hmm, it seems to still be available on the wayback machine:
    http://web.archive.org/web/20061021064014/www.oracle.com/technology/tech/java/oc4j/1013/how_to/index.html
    (Just look down the page for "With OEMS JMS (In-Memory and File-Based)" -- there is an .html document with info, and there is a .zip file with source code.)
    Question is, my code is there in a single absolutely standalone code..how I can use this application-client.xml and where it has to be placed.The app client in my demo had the following directory structure:
    myjavaclient.class
    jndi.properties
    META-INF\MANIFEST.MF
    META-INF\application-client.xml
    META-INF\orion-application-client.xml
    When you use ApplicationClientInitialContextFactory I think it just looks under .\META-INF for the .xml files.
    -Jeff

  • Enterprise or Standalone CA for Windows and linux computers

    Hi
    i plan to deploy a certificate architecture mainly for our internal web server and no more receive the certificate warning pop up
    So first i will install an offline Root CA
    Then i will setup a subordinate CA
    My question is about the type : standalone or Enterprise since i have both Linux and Windows computers ... maybe an enterprise AND a standalone to manage both ?
    Thanks for your help

    The easiest way (but not the most secure of course) is to install IIS on the enterprise sub CA with single website serving static content. Then set CA to publish the CRL in the directory where website is pointing. Add CDP location as follows:
    http://caname.contoso.com/<crl file name> where CRL file name is the name under which CRL is published.
    Keep in mind that since you'll have offline root CA to set CRL expiration time to some long period (you'll need to publish it again before the expiration time occur, so 2 days for an example is not okey.). Also the enterprise CA will publish new CRL on very
    short period and you must ensure it will be accessible by all clients ASAP (Not to mention delta CRL where publishing period is even shorter).
    The type of the CA (standalone or enterprise) has nothing to do with the CRL publishing (except that Enterprise can publish in Active Directory automatically, standalone only on file system). Both can have ldap://, file:// or http:// CDP and AIA endpoints.
    It's up to you to send the CRL file to this point. Also as Zelliptic says, any web server (IIS, Apache, Ngenx, etc) can serve as CRL/AIA endpoint - it's just static files at all.

  • How to lookup EJBs deployed in OC4J from a standalone client application

    Hello all,
    I am trying to lookup an EJB deployed in OC4J 10.1.3 from a standalone client application using the following code:
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.PROVIDER_URL, "ormi://localhost:23791");
    env.put(Context.SECURITY_PRINCIPAL, "jazn.com/test");
    env.put(Context.SECURITY_CREDENTIALS, "test");
    Context context = new InitialContext(env);
    Object ref = context.lookup("ejb/Dispatch");
    I get the following error:
    javax.naming.NameNotFoundException: ejb/Dispatch not found
         at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:51)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
    For the lookup string I've also tried:
    "java:comp/env/ejb/Dispatch" and "Dispatch"
    For the Context.PROVIDER_URL property I've also tried:
    opmn:ormi://localhost:6003:instance
    The result is always the same.
    I appreciate if someone could help me with this?
    Thanks,
    Georgi

    Georgi,
    Your question has been discussed many times on this forum. Search the forum archives for "RMIInitialContextFactory".
    The PROVIDER_URL needs to include the name of the deployed application that your EJB is part of, for example:
    env.put(Context.PROVIDER_URL, "ormi://localhost:23791/MyApp");The lookup name has to be the value of the "ejb-name" element in your "ejb-jar.xml" descriptor file.
    Your SECURITY_PRINCIPAL value looks strange to me. Personally, I use "principals" (and not JAZN), so I modified the "application.xml" file (in the "j2ee/home/config" subdirectory) to use "principals". Look for the following comment in that file:
    &lt;!-- Comment out the jazn element to use principals.
          When both jazn and principals are present jazn is used  --&gt;Good Luck,
    Avi.
    Message was edited by:
    Avi Abrami

  • Upgrading to Enterprise from Standalone Questions

    Hello,
    We currently have successfully rolled out the Standalone installation of ZAM 7.5 but we want to move to Enterprise with SQL 2000.
    I would like to build and install a new server (same name, ip address, hardware etc.) with the Enterprise version and scrap the Standalone database. Basically we're starting fresh. Would this work with the existing client installs out there?
    Would there be any problems with this (seeing as though we rolled out the clients to over 800 machines) or would it be better to perform the upgrade on the Standalone to Enterprise and clear out the database?
    Any help or insight would be appreciated.
    Thanks!

    Yup - as Jared said, that should work just fine as each workstation will have a unique identified (WorkstationOID) in the registry - as the new build will have no workstation records it will happily accept these machines with their current OIDs.
    One recommendation / note - patch the new build up to the same IR and PRU level (or newer) than in the current standalone system, add your UDFs and configure your Option Sets before you let the workstations connect to the Collection Server(s), as the ZAM server(s) will:
    a) Upgrade *or* Downgrade the Clients to the server IR version, which can take a long time as it is throttled to avoid network saturation (allow maybe 1-2 days for 800 workstations)
    and
    b) Push down the current KB files (a merge of the PRU and your Local Products) then run a scan (assuming you have enabled a collection schedule etc.)
    These file transfers can add up to 10-20MB per workstation from the Collection Server, so worth getting right the first time :)

  • Error creating Engine in Enterprise Server(Standalone)

    Hi,
    I am trying to create a new engine in AquaLogic BPM Process Admin 5.7 (standalone). I have created the directory service in an Oracle database. But while creating the engine it gives me the follwing error.
    Exception [ORA-01407: cannot update ("FUEGOSCHEMA"."FUEGO_CONFIG"."FUEGO_STRVALUE") to NULL ]. Caused by: ORA-01407: cannot update ("FUEGOSCHEMA"."FUEGO_CONFIG"."FUEGO_STRVALUE") to NULL
    kindly suggest me a way out.
    Thanks

    please verify that the user you are connecting to Oracle has the appropriate permissions on the schema, and that the schema is either clean or the tables are properly created.
    A suggestion would be to drop the schema and start over, if you don't have data, there is no problem doing it.
    MAriano Benitez
    Join us at BEAParticipate, May 6-9 2007 | Atlanta, Georgia

  • Migrating JAAS LoginModule from oc4j to WLS

    Hi,
    We are trying to migrate oc4j enterprise web service application to weblogic which implements JAAS LoginModule.
    Followed Weblogic Docs for :
    Developing Custom Security Providers
    http://download.oracle.com/docs/cd/E12890_01/ales/docs32/dvspisec/progrmng.html
    CustomAuthProvider (SecurityProvider) class points to the LoginModule which references to
    application-specific classes.
    Following are the issues we are dealing with:
    1.Security Provider exist at the global-context means every request to WLS is going to hit to the provider
    which we do not want, we need LoginModule to work at the application-context and not the global
    weblogic context.
    2. Clearly there is a disconnect if LoginModule resides in EAR (web app) and standalon MBean jar is
    trying to invoke the LoginModule. It can't find the LoginModule.
    so, the question is how can we have the JAAS LoginModule implemented in Weblogic
    at the application (EAR) level and not at Weblogic server global level
    (by MBean JAR) as it used to be in oc4j
    public class CustomAuthProviderimplements AuthenticationProviderV2 {
        public AppConfigurationEntry getLoginModuleConfiguration() {
            System.out.println("Inside getLoginModuleConfiguration.");
            return new AppConfigurationEntry("com.test.security.loginmodule.CustomLoginModule",
                                             LoginModuleControlFlag.REQUIRED,
                                             new HashMap());
    }OC4J Doc Reference : Packaging Login Modules
    http://download.oracle.com/docs/cd/B31017_01/web.1013/b28957/loginmod.htm#BABCFADI
    Here's how it used to be done in oc4j
    http://download.oracle.com/docs/cd/B14099_19/web.1012/b14013/loginmod.htm#i1006128
    Thank you
    Edited by: 877976 on Aug 8, 2011 11:11 AM

    There is a WebLogic Server release specific for running Oracle Forms and Reports that is available for you to switch to from Oracle AS if you are current on your support and version. Just an FYI
    Edited by: ChrisBaker on Jan 4, 2010 5:33 AM

  • Error ORA-12560 prompts when trying to log in to the Enterprise Manager

    Hi all,
    I am a newbie to Oracle.
    Just installed the Oracle 9i Database Enterprise Edition (9.0.1) into Windows Server 2003 Standard Edition. Problem is encountered when trying to log in to the Enterprise Manager Standalone mode using either system/oracle or scott/tiger as credentials. Error "ORA-12560: TNS:protocol adapter error" prompts.
    I tried to check with some configuration and see whether the services are started. Services of "OracleOraHome90TNSListener" and "OracleServiceORCL" have been started and the database exists in the dedicated directory. Environment variables of "ORACLE_HOME" and "ORACLE_SID" have been added manually as the SID is set to orcl, which I just follow what the instruction manual has stated. Moreover, I can't get access using command prompt typing "svrmgrl"; error returned stating " 'svrmgrl' is not recognized as an internal or external command, operable program or batch file."
    Another information is that there is no domain set in my server. Just a server with a name being assigned in a workgroup.
    Hence, would you mind please advice me what to do in order to get access into the Enterprise Manager? It's quite an urgent task.
    A million thx in advance!
    Best Regards,
    Karen

    Hi Jigneshrp,
    Thanks for your reply.
    It is checked that the listener is running and TNS name service exists. Following your advice, I did create a new listener and another name service and use them, but the same error turns out when trying to log in to the Enterprise Manager again.
    Additional information to take note for is that while reconfiguring the existing listener or creating a new listener, a mesage prompts stating "The information provided for this listener is currently in use by other software on this computer. You can proceed with the configuration as it is, but it will not be possible to start this listener until the conflict is resolved. Would you like to continue with the continue with the configuration anyway? Yes/No".
    As for the reconfiguration or the new creation of TNS names service, when I am trying to test for the connection, the results in the details pane states that "Connecting... ORA-12560: TNS:protocol adapter error. The test did not succeed...."
    Would you mind pls advice me on these?
    Furthermore, there exist 2 questions I am wondering is that it is stated in the instruction manual that prior to the installation, a static IP should be specified for it instead of the DHCP one; hence, I wanna ask after the complete insallation, is it that the server should be running in the network, i.e. allow it to get connected with the outside network?
    2nd question is that can Oracle 9i Database Server Standard Edition (9.0.1) be installed under a Windows Server 2003 Standard Edition and just a Window XP Professional?
    Thanks for your reply.
    Best Regards,
    Karen

  • Error while creating  connectionpool in oc4j for

    sqlserver2000
    I am trying to create a connection pool for sqlserver2000
    database using <b>oc4j enterprise manager 8888</b> I got the
    following error
    <i>Please suggest me a way to create a connection pool for
    sqlserver2000<i>
    <b>
    An error has occurred.
    Unable to create :
    com.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory
    Missing class:
    com.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory
    Dependent class: oracle.oc4j.sql.config.DataSourceConfigUtils
    Loader: oc4j:10.1.3 Code-Source:
    /D:/JDeveloper/j2ee/home/lib/oc4j-internal.jar Configuration: in
    META-INF/boot.xml in D:\JDeveloper\j2ee\home\oc4j.jar This load
    was initiated at ascontrol.web.ascontrol:0.0.0 using the
    Class.forName() method. The missing class is available from the
    following locations: 1. Code-Source:
    /D:/JDeveloper/j2ee/home/shared-lib/SQLServer2000Libraries/1/mss
    qlserver.jar (from in
    /D:/JDeveloper/j2ee/home/config/server.xml) This code-source is
    available in loader SQLServer2000Libraries:1. This
    shared-library can be imported by the "ascontrol" application.
    </b>

    What has this to do with forms?
    Ah, I see you have posted this in every forum possible.

  • Error while creating  connectionpool in oc4j for sqlserver2000

    I am trying to create a connection pool for sqlserver2000 database using ,<b>oc4j enterprise manager 8888</b> I got the following error
    <i>Please suggest me a way to create a connection pool for sqlserver2000<i>
    <b><i>
    An error has occurred.
    Unable to create : com.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory
    Missing class: com.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory Dependent class: oracle.oc4j.sql.config.DataSourceConfigUtils Loader: oc4j:10.1.3 Code-Source: /D:/JDeveloper/j2ee/home/lib/oc4j-internal.jar Configuration: in META-INF/boot.xml in D:\JDeveloper\j2ee\home\oc4j.jar This load was initiated at ascontrol.web.ascontrol:0.0.0 using the Class.forName() method. The missing class is available from the following locations: 1. Code-Source: /D:/JDeveloper/j2ee/home/shared-lib/SQLServer2000Libraries/1/mssqlserver.jar (from in /D:/JDeveloper/j2ee/home/config/server.xml) This code-source is available in loader SQLServer2000Libraries:1. This shared-library can be imported by the "ascontrol" application.
    </i></b>

    What has this to do with forms?
    Ah, I see you have posted this in every forum possible.

  • Error while creating  connectionpool in oc4j forsqlserver2000

    I am trying to create a connection pool for sqlserver2000
    database using <b>oc4j enterprise manager 8888</b> I got the
    following error
    <i>Please suggest me a way to create a connection pool for
    sqlserver2000<i>
    <b>
    An error has occurred.
    Unable to create :
    com.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory
    Missing class:
    com.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory
    Dependent class: oracle.oc4j.sql.config.DataSourceConfigUtils
    Loader: oc4j:10.1.3 Code-Source:
    /D:/JDeveloper/j2ee/home/lib/oc4j-internal.jar Configuration: in
    META-INF/boot.xml in D:\JDeveloper\j2ee\home\oc4j.jar This load
    was initiated at ascontrol.web.ascontrol:0.0.0 using the
    Class.forName() method. The missing class is available from the
    following locations: 1. Code-Source:
    /D:/JDeveloper/j2ee/home/shared-lib/SQLServer2000Libraries/1/mss
    qlserver.jar (from in
    /D:/JDeveloper/j2ee/home/config/server.xml) This code-source is
    available in loader SQLServer2000Libraries:1. This
    shared-library can be imported by the "ascontrol" application.
    </b>

    Based on you info it is hard to know if you are using TopLink or not. If you are, then can you get me more information. How are you creating the pool, when are you getting the exception, etc...
    As this does not appear to be TopLink related, you may get a better answer from this forum: OC4J

  • Help with starting oc4j

    I installed Oc4j as a standalone package in a directory (Solaris2.6) where
    everybody in my group has full access. Now the problem is I'm the only person
    who can start the application server by the following:
    java -jar oc4j.jar
    For other people in the group , they get exceptions like:
    java.lang.ClassNotFoundException: oracle.dms.instrument.DMSConsole
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.lang.ClassNotFoundException.<init>(Compiled Code)
    at java.net.URLClassLoader$1.run(Compiled Code)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessController.doPrivileged(Compiled Code)
    at java.net.URLClassLoader.findClass(Compiled Code)
    at java.lang.ClassLoader.loadClass(Compiled Code)
    at sun.misc.Launcher$AppClassLoader.loadClass(Compiled Code)
    at java.lang.ClassLoader.loadClass(Compiled Code)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:125)
    at
    com.evermind.server.ApplicationServer.initConsole(ApplicationServer.java:2970)
    at com.evermind.server.OC4JServer.main(OC4JServer.java:224)
    Unable to initialize DMS:oracle.dms.instrument_stub.DMSConsole
    java.lang.SecurityException: sealing violation
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.lang.RuntimeException.<init>(RuntimeException.java:47)
    at java.lang.SecurityException.<init>(SecurityException.java:39)
    at java.net.URLClassLoader.defineClass(Compiled Code)
    at java.net.URLClassLoader.access$1(Compiled Code)
    at java.net.URLClassLoader$1.run(Compiled Code)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessController.doPrivileged(Compiled Code)
    at java.net.URLClassLoader.findClass(Compiled Code)
    at java.lang.ClassLoader.loadClass(Compiled Code)
    at sun.misc.Launcher$AppClassLoader.loadClass(Compiled Code)
    at java.lang.ClassLoader.loadClass(Compiled Code)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass0(Compiled Code)
    at java.lang.ClassLoader.defineClass(Compiled Code)
    at java.security.SecureClassLoader.defineClass(Compiled Code)
    at java.net.URLClassLoader.defineClass(Compiled Code)
    at java.net.URLClassLoader.access$1(Compiled Code)
    at java.net.URLClassLoader$1.run(Compiled Code)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessController.doPrivileged(Compiled Code)
    at java.net.URLClassLoader.findClass(Compiled Code)
    at java.lang.ClassLoader.loadClass(Compiled Code)
    at sun.misc.Launcher$AppClassLoader.loadClass(Compiled Code)
    at java.lang.ClassLoader.loadClass(Compiled Code)
    at
    org.apache.crimson.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Document
    BuilderFactoryImpl.java:82)
    at
    com.evermind.xml.JavaxXMLUtils.getJavaxDocument(JavaxXMLUtils.java:27)
    at com.evermind.xml.XMLUtils.getDocument(XMLUtils.java:179)
    at com.evermind.xml.XMLConfig.init(XMLConfig.java:135)
    at com.evermind.xml.XMLConfig.init(XMLConfig.java:92)
    at
    com.evermind.server.XMLApplicationServerConfig.init(XMLApplicationServerConfig
    .java:1523)
    at
    com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.ja
    va:70)
    at java.lang.Thread.run(Thread.java:485)
    Any clues? Thanks in advance.

    Hi Yicheng,
    ClassNotFoundExceptionusually means that java cannot find a class -- which usually implies a CLASSPATH problem. For your information, the "oracle.dms.instrument.DMSConsole" class is located in the "dms.jar" file which is in the "lib" subdirectory of my OC4J 9.0.3 stand-alone installation.
    Good Luck,
    Avi.

Maybe you are looking for