Admin_client.jar - connect to a remote standalone oc4j instance

Hi
I have installed a standalone instance of OC4J on a remote linux box. I am trying to connect to that running instance on a windows box using the admin client jar supplied in the oc4j_admin_client_101310.zip file but get the following error -
Failed at "Could not get DeploymentManager".
I am able to connect to a remote OPMN managed instance and a local standalone instance but not to the remote standalone instance. I know the remote instance is ok as i have logged in and validated the URI using the admin_client.jar on that box. The URI format i am using is as follows -
deployer:oc4j:host:23791
Is it possible to connect to this instance remotely?
Thanks
George

Hey George -- admin_client.jar can connect to local/remote OC4J standalone instances -- it connects to all sorts of things in 10.1.3.
The "could not get deployment manager" message is very vague, I certainly appreciate that.
What it usually comes down to is the deployer URI being incorrect in either the format being used or the host:port being incorrect.
Sounds like you have validated the URL correctly.
Just as a sanity check -- you can ping the remote server from the windows box?
The oc4j standalone instance is up and running?
The ORMI port is 23791?
What you could do if you want to see if there is an underlying problem is to enable the client side logger for admin_client.jar.
The doc describes it here:
http://download.oracle.com/docs/cd/B31017_01/web.1013/b28950/adminclient.htm#CHDHIABJ
Set it progressively to the FINE, FINER, FINEST levels and see if anything suspicious is identified in the log outputs that might be helpful.
Let me know how it goes.
-steve-

Similar Messages

  • WLST : Error connecting to a remote Weblogic server instance from OEPE 3.7

    Attempting a to run a weblogic script connecting to a remote weblogic server instance (10.3.5), which is generating the following exception in OEPE 3.7.2 -
    username = 'weblogic'
    password = 'weblogic6'
    url='t3://xxx.xxx.com:7001'
    connect(username,password,url)
    Connecting to t3://xxx.xxx.com:7001 with userid weblogic ...
    This Exception occurred at Fri Feb 01 13:20:54 MST 2013.
    Error occured while performing connect : Error connecting to the server : Failed to generate class for weblogic.management.mbeanservers.compatibility.internal.MBeanHomeImpl_1035_WLStub
    Use dumpStack() to view the full stacktrace :
    java.lang.AssertionError: Failed to generate class for weblogic.management.mbeanservers.compatibility.internal.MBeanHomeImpl_1035_WLStubconnect
    Problem invoking WLST - Traceback (innermost last):
    File "C:\Users\hughese\workspace\12c_wlst\wlst\heapsize.py", line 13, in ?
    File "<iostream>", line 22, in connect
    File "<iostream>", line 648, in raiseWLSTException
    WLSTException: Error occured while performing connect : Error connecting to the server : Failed to generate class for weblogic.management.mbeanservers.compatibility.internal.MBeanHomeImpl_1035_WLStub
    Use dumpStack() to view the full stacktrace
    Connecting to the local weblogic server instance (t3://localhost:7001) works okay.
    From the command prompt (wlst.cmd) I'm able to connect to the remote weblogic server instance -
    wls:/offline> connect('weblogic','xxxxx','t3:xxx.xxx.com:7001') ;
    Connecting to t3://xxx.xxx.com:7001 with userid weblogic ...
    Successfully connected to Admin Server 'AdminServer' that belongs to domain 'IDMDomain'.
    I've compared the CLASSPATHs between OEPE and the command prompt.
    Any assistance would be greatly appreciated.
    Edited by: 950635 on Feb 1, 2013 7:47 PM

    Hi,
    1)To get mysql JDBC driver to work on my Linux system, i had to add the classpath for the driver to the .bashrc:
    CLASSPATH=./:home/<user>/java/mm.mysql-2.0.6/:home/<user>/java
    Note that I execute the java program as the user <user> (and .bashrc is the config. file of this <user>...). Perhaps you must do this as well for the Oracle driver on your client machine. I don't know if your client machine is UNIX/LINUX or WINDOWS. It should only be clear that the CLASSPATH is set in the config. file of the user under which the java program runs and that this user has the permission to access the files.
    There are no differences between accessing the database locally than accessing it by a network connection. The only thing that matters are that the connection parameters are right and that the network works properly.
    2) are you sure that the table tname (case sensitivity?) exits?
    Marc

  • Unable to deploy a simple WAR / EAR file on Standalone OC4J instance

    All,
    This issue is baffling me since yesterday and while I continue to look for options , would appreciate if anyone of you has run into something similar and give me some hints on how to proceed on this ..
    I downloaded the Standalone OC4J ( 10.1.3 ) from otn.oracle.com and also downloaded JDK 1.5 Update 12 from the Sun Website and installed it on my local
    Windows XP machine. Everything works well and the application gets deployed.
    I then copied the 10.1.3 Standalone OC4J to the Solaris 5.9 box which already
    has JDK 1.5 Update 12 installed. We extracted the OC4J to its own directory , set the Java_Home and the Oracle_Home environment variables and were able to
    startup the OC4J instance.
    However when trying to deploy even a simple HelloWorld.jsp file packaged as an EAR or WAR , we get these errors..
    [Aug 8, 2008 9:40:27 AM] Application Deployer for CISS STARTS.
    [Aug 8, 2008 9:40:27 AM] Copy the archive to /home/aplperdev1/ssp_java/oc4j/j2ee/home/applications/CISS.ear
    [Aug 8, 2008 9:40:28 AM] Initialize /home/aplperdev1/ssp_java/oc4j/j2ee/home/applications/CISS.ear begins...
    [Aug 8, 2008 9:40:28 AM] Unpacking CISS.ear
    [Aug 8, 2008 9:40:28 AM] Error while unpacking CISS.ear java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.(ZipFile.java:203) at java.util.jar.JarFile.(JarFile.java:132) at java.util.jar.JarFile.(JarFile.java:97) at oracle.oc4j.util.FileUtils.unjar(FileUtils.java:309) at oracle.oc4j.util.FileUtils.autoUnpack(FileUtils.java:488) at com.evermind.server.deployment.EnterpriseArchive.(EnterpriseArchive.java:234) at oracle.oc4j.admin.internal.ApplicationDeployer.initArchive(ApplicationDeployer.java:412) at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:187) at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93) at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52) at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298) at java.lang.Thread.run(Thread.java:595)
    [Aug 8, 2008 9:40:28 AM] Operation failed with error: Unable to find/read file META-INF/application.xml in /home/aplperdev1/ssp_java/oc4j/j2ee/home/applications/CISS (META-INF/application.xml)
    Using the above error messages , I certainly do not find the CISS.ear file getting copied to /home/aplperdev1/ssp_java/oc4j/j2ee/home/applications/CISS.ear
    which explains the rest of the messages.
    I have tried placing the EAR file both remote and local on the Application Server box but the results remain the same. Assuming it might be a permissions issue , we have opened up all the permissions on this OC4J home ( recursively )
    to everyone ..
    Is there a specific version of tar / unzip / jar required to deploy EARs / WARs on Solaris 5.9 running JDK 1.5 Update 12.
    We had some issues when extracting OC4J to its directory but there were no errors displayed on the screen ... Only when we tried starting up the OC4J instance , it started complaining about missing XML files .. This was resolved by manually extracting the XML's from the corresponding jars and placing them in the proper directories ..
    Also looked at Bug:6330834 but am not very sure if this applies to our case because all these drives are local to the Sun box.
    Other than attempting a reinstall and opening an Service Request with Oracle , I am running out of ideas at this time ..
    So any ideas / hints would be gladly accepted :)
    Vishwa

    When you say:
    I then copied the 10.1.3 Standalone OC4J to the Solaris 5.9 box which already has JDK 1.5 Update 12 installed. We extracted the OC4J to its own directory , set the Java_Home and the Oracle_Home environment variables and were able to
    startup the OC4J instance.
    We had some issues when extracting OC4J to its directory but there were no errors displayed on the screen ... Only when we tried starting up the OC4J instance , it started complaining about missing XML files .. This was resolved by manually extracting the XML's from the corresponding jars and placing them in the proper directories ..
    It sounds like you have some funky issues there with those missing XML files -- that is not expected or normal.
    Do you mean you copied the same oc4j_extended.zip to the server and unzipped it, or you zipped up the directories you were using on the Windows box, copied that over, and unzipped it?
    I don't know of any problems with Solaris, JDK5, U12.
    What about if you do this to remove any issues with the remote copy aspect of the deployment.
    1. Stop OC4J.
    2. Manually copy CISS.ear to /home/aplperdev1/ssp_java/oc4j/j2ee/home/applications/
    3. Edit the j2ee/home/config/server.xml file and add the entry to deploy the application
    4. Edit the j2ee/home/config/default-web-site.xml and bind any web-modules you need.
    5. Start the server and see what happens -- the application should be deployed.
    Also, what happens if you use the $JAVA_HOME/bin/jar to try and view the contents of the CISS.ear file?
    -steve-

  • Calling an EJB 3 SessionBean from a servlet in a Standalone oc4j instance.

    I think that this should be simple, but for some reason can't get it to work.
    Latest version of jDev and oc4j, running on Linux Fedora 5.
    In a jdev application I have ejb and web projects. **EJB 3.0**
    The ejb project is deployed first, then the web project -with the ejb project as its parent-.
    In the ejb project I have a FacadeBean (SLSB) that implements both remote and local as well as Serializable interfaces. (Do I need to implement Serializable?)
    Question:
    How do I get the handle on the FacadeBean from the servlet?
    I tried:
    ic = new InitialContext();
    facade = (Facade)ic.lookup("java:comp/env/ejb/Facade");
    as well as numerous other variations including remote/local stubs, long and short ejb names, facade.getClass().getName, but they all fail!
    This should be simple (if not genned automatically by jDev!) !
    Please advise.
    Thank you.
    nat

    One way of getting the code to do this is to right click on your session bean in JDeveloper and choose "New sample Java Client", then "Connect to a remote OC4J" etc...
    This will create a piece of code that you can then use in your servlet to locate the EJB and invoke it.
    Here is a sample Servlet code:
    public class Servlet1 extends HttpServlet {
        private static final String CONTENT_TYPE = "text/html; charset=windows-1252";
        public void init(ServletConfig config) throws ServletException {
            super.init(config);
        public void doGet(HttpServletRequest request,
                          HttpServletResponse response) throws ServletException, IOException {response.setContentType(CONTENT_TYPE);
            PrintWriter out = response.getWriter();
            out.println("<html>");
            out.println("<head><title>Servlet1</title></head>");
            out.println("<body>");
            out.println("<p>The servlet has received a GET. This is the reply.</p>");
            try {
                final Context context = getInitialContext();
                SessionEJB sessionEJB = (SessionEJB)context.lookup("java:comp/env/ejb/SessionEJB");
                // No Remote methods found
            String a = sessionEJB.sayHi("joe");
            out.println(a);
            } catch (Exception ex) {
                ex.printStackTrace();
            out.println("</body></html>");
            out.close();
        private static Context getInitialContext() throws NamingException {
            Hashtable env = new Hashtable();
            //  Standalone OC4J connection details
            env.put( Context.INITIAL_CONTEXT_FACTORY, "oracle.j2ee.naming.ApplicationClientInitialContextFactory" );
            env.put( Context.SECURITY_PRINCIPAL, "oc4jadmin" );
            env.put( Context.SECURITY_CREDENTIALS, "welcome" );
            env.put(Context.PROVIDER_URL, "ormi://localhost:23791/ejb1");
            return new InitialContext( env );
    }

  • JNDI lookup name in a standalone oc4j instance

    Hi,
    Could you please let me know how to create a JNDI lookup name for a database in a stanalone OC4j Instance?
    Both OC4J and oracle 9i database are in the same server.
    Thanks in advance,
    Sukonya

    Hi,
    I have the oracle 9i database as well as the oc4j instance in my local machine.I am trying to deploy a J2ee Application on the OC4j instance,using eclipse IDE.I have not created any connection pool or datasource in the oc4j instance but after i build the application I see that the connection pool and datasource instance have been created in the OC4j instance.
    following are the contents of the build.xml file(for the ant build tool)
    <?xml version="1.0" encoding="UTF-8" ?>
    - <project name="TicketLoggingSystem" default="bind-web-app" basedir="../">
    <property name="app.server" value="D:/oc4j/j2ee/home" />
    <property name="dest.dir" value="${basedir}/dest" />
    <property name="war.file" value="${dest.dir}/TicketLoggingSystem.war" />
    <property name="ear.file" value="${dest.dir}/TicketLoggingSystem.ear" />
    <property name="web.inf" value="${basedir}/WEB-INF" />
    <property name="web.classes" value="${dest.dir}/classes" />
    <property name="app.xml" value="${basedir}/application.xml" />
    <property name="src.dir" value="${basedir}/src" />
    <property name="oc4j.host" value="localhost" />
    <property name="oc4j.admin.port" value="23791" />
    <property name="oracle.home" value="D:/oc4j" />
    <property name="j2ee.home" value="${oracle.home}/j2ee/home" />
    <property name="oc4j.admin.username" value="oc4jadmin" />
    <property name="oc4j.admin.password" value="welcome" />
    <property name="oc4j.ormi" value="ormi://${oc4j.host}:${oc4j.admin.port}" />
    <property name="app.name" value="TicketLoggingSystem" />
    <property name="jdbc.url" value="jdbc:oracle:thin:@localhost:1521:80" />
    <property name="jdbc.username" value="scott" />
    <property name="jdbc.password" value="tiger" />
    <property name="connection.driver" value="oracle.jdbc.driver.OracleDriver" />
    <property name="connection.datasource" value="oracle.jdbc.pool.OracleDataSource" />
    <property name="xa.location" value="jdbc/xa/MpsiDS" />
    - <!-- Delete dest folder
    -->
    - <target name="init">
    <delete dir="${dest.dir}" includeemptydirs="true" />
    <mkdir dir="${dest.dir}" />
    <mkdir dir="${web.classes}" />
    </target>
    - <!-- Compile all Java files
    -->
    - <target name="wscompile">
    - <javac srcdir="${src.dir}" destdir="${web.classes}" deprecation="on" debug="on">
    <exclude name="**/*.properties,**/*.xml" />
    - <classpath>
    <fileset dir="${web.inf}/lib" includes="*.jar" />
    <fileset dir="${app.server}/lib" includes="servlet.jar" />
    </classpath>
    </javac>
    </target>
    - <!-- Build Web archive file
    -->
    - <target name="buildWar" depends="init,wscompile">
    - <war destfile="${war.file}" webxml="${web.inf}/web.xml">
    - <fileset dir="${basedir}">
    <include name="content*/**" />
    </fileset>
    <webinf dir="${web.inf}" includes="*.xml,*.tld" excludes="web.xml" />
    <classes dir="${web.inf}/classes" />
    <lib dir="${web.inf}/lib" includes="*.jar" />
    </war>
    </target>
    - <!-- Build Enterprsie Archive
    -->
    - <target name="buildEar" depends="buildWar">
    - <ear destfile="${ear.file}" appxml="${app.xml}">
    <fileset dir="${dest.dir}" includes="*.war" />
    </ear>
    </target>
    - <!-- Checking availability of oc4j
    -->
    - <target name="check-oc4j-available">
    <echo message="------> Checking to see if OC4J is started ." />
    <echo message="[checking oc4j on machine =${oc4j.host}]" />
    <echo message="[port=${oc4j.admin.port}]" />
    - <condition property="oc4j.started">
    <socket server="${oc4j.host}" port="${oc4j.admin.port}" />
    </condition>
    </target>
    - <!-- Remove data source
    -->
    - <target name="remove-data-source" depends="check-oc4j-available" if="oc4j.started">
    <echo message="Removing DataSource" />
    - <java jar="${j2ee.home}/admin.jar" fork="true">
    <arg value="${oc4j.ormi}" />
    <arg value="${oc4j.admin.username}" />
    <arg value="${oc4j.admin.password}" />
    <arg value="-application" />
    <arg value="${app.name}" />
    <arg value="-removeDataSource" />
    <arg value="-location" />
    <arg value="jdbc/TicketLoggingSystem" />
    </java>
    <echo message="Removed DataSource Successfully" />
    </target>
    - <!-- Undeploy
    -->
    - <target name="undeploy" depends="remove-data-source" description="Undeploying the application" if="oc4j.started">
    <echo message="Undeploying the Application ${app.name}" />
    - <java jar="${j2ee.home}/admin.jar" fork="true">
    <arg value="${oc4j.ormi}" />
    <arg value="${oc4j.admin.username}" />
    <arg value="${oc4j.admin.password}" />
    <arg value="-undeploy" />
    <arg value="${app.name}" />
    </java>
    <echo message="Undeploying the Application ${app.name} is Successful" />
    </target>
    - <!-- Deploy
    -->
    - <target name="deploy" depends="undeploy,buildEar" if="oc4j.started">
    <echo message="Deploying the Application ${app.name}" />
    - <java jar="${j2ee.home}/admin.jar" fork="true">
    <arg value="${oc4j.ormi}" />
    <arg value="${oc4j.admin.username}" />
    <arg value="${oc4j.admin.password}" />
    <arg value="-deploy" />
    <arg value="-file" />
    <arg value="${ear.file}" />
    <arg value="-deploymentName" />
    <arg value="${app.name}" />
    </java>
    <echo message="Deploying the Application ${app.name} is Successful" />
    </target>
    - <!-- Create data source
    -->
    - <target name="create-data-source" depends="check-oc4j-available" if="oc4j.started">
    <echo message="Creating DataSource for Application ${app.name}" />
    - <java jar="${j2ee.home}/admin.jar" fork="true">
    <arg value="${oc4j.ormi}" />
    <arg value="${oc4j.admin.username}" />
    <arg value="${oc4j.admin.password}" />
    <arg value="-application" />
    <arg value="${app.name}" />
    <arg value="-installDataSource" />
    <arg value="-jar" />
    <arg value="${oracle.home}/jdbc/lib/ojdbc14dms.jar" />
    <arg value="-url" />
    <arg value="${jdbc.url}" />
    <arg value="-connectionDriver" />
    <arg value="${connection.driver}" />
    <arg value="-location" />
    <arg value="jdbc/TicketLoggingSystem" />
    <arg value="-username" />
    <arg value="${jdbc.username}" />
    <arg value="-password" />
    <arg value="${jdbc.password}" />
    <arg value="-className" />
    <arg value="${connection.datasource}" />
    </java>
    <echo message="Created DataSource Successfully for Application ${app.name}" />
    </target>
    - <!-- Binding web-app
    -->
    - <target name="bind-web-app" depends="deploy,create-data-source" if="oc4j.started">
    <echo message="executing bind web app" />
    - <java jar="${j2ee.home}/admin.jar" fork="true">
    <arg value="${oc4j.ormi}" />
    <arg value="${oc4j.admin.username}" />
    <arg value="${oc4j.admin.password}" />
    <arg value="-bindWebApp" />
    <arg value="${app.name}" />
    - <!-- app deployname
    -->
    <arg value="${app.name}" />
    - <!-- web module name
    -->
    <arg value="default-web-site" />
    - <!-- web site name
    -->
    <arg value="/${app.name}" />
    - <!-- context root
    -->
    </java>
    <echo message="Access the application using: http://${oc4j.host}:8888/${app.name}" />
    </target>
    </project>
    Following are the contents of Oc4J home->services->jdbc resources:
    Datasource:
    Name jdbc/TicketLoggingSystem
    Application TicketLoggingSystem
    JNDI Location jdbc/TicketLoggingSystem
    Connection Pool
    Managed by OC4j
    Test
    when i click the datasource name,I see that its type is Native datasource with no related connection pool.
    Whereas for the default datasource oracleDS,
    Type     Managed Data Source
    Connection Pool     Example Connection Pool
    However on deployment a connection pool is also created along with the datasource
    Name jdbc/TicketLoggingSystem_connectionPool
    Application TicketLoggingSystem
    ConnectionFactory class : oracle.jdbc.pool.OracleDataSource
    Do we need to bind this connection pool to our datasource?If yes how is it done.And if that is not required,why is this connection pool created?Are the datasource and connection pool already bound to each other?
    Also when I test either the datasource or connection pool,it says
    Confirmation     
    Connection to "jdbc/TicketLoggingSystem_connectionPool" established successfully
    or
    Connection to "jdbc/TicketLoggingSystem" established successfully.
    and displays both the connection pool and datasource details together for both the tests.
    In my java code,while trying to establish connection to the database what should I mention in lookup i.e,
    InitialContext context = new InitialContext();
    DataSource dataSource = (DataSource) context.lookup("     jdbc/TicketLoggingSystem or      jdbc/TicketLoggingSystem_connectionPool");
    con = dataSource.getConnection();
    Sorry if I am sounding novice.Thanks a lot in advance,
    Sukanya

  • JDev10G:  Deployment to remote Standalone server

    Trying to deploy my application to a remote standalone OC4J instance. The app runs fine in my embedded environment and on a local standalone server.
    After deployment to the remote standalone server I found that I had to include a number of libraries that were not needed in my local standalone server. I have finally hit a dead end with the following error. Can you tell me how to fix the problem?:
    500 Internal Server Error
    java.lang.NullPointerException     at org.apache.commons.digester.Digester.getXMLReader(Digester.java:902)     at org.apache.commons.digester.Digester.parse(Digester.java:1567)     at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1433)     at org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)     at com.boeing.dags.etip.view.controller.ETIPActionServlet.init(ETIPActionServlet.java:24)     at javax.servlet.GenericServlet.init(GenericServlet.java:256)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.0.3.0.0) - Developer Preview].server.http.HttpApplication.loadServlet(HttpApplication.java:1939)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.0.3.0.0) - Developer Preview].server.http.HttpApplication.findServlet(HttpApplication.java:4178)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.0.3.0.0) - Developer Preview].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2526)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.0.3.0.0) - Developer Preview].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:638)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.0.3.0.0) - Developer Preview].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.0.3.0.0) - Developer Preview].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.0.3.0.0) - Developer Preview].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:205)     at java.lang.Thread.run(Thread.java:536)

    I'm getting this same error deploying to 10gAS -- anyone have any ideas?

  • Difference between admin.jar and admin_client.jar

    OC4J provide two commad-line utility: admin.jar and admin_client.jar for performing configuration tasks on OC4J. admin_client.jar can work in Oracle Application Server clustered environment as well as on a standalone OC4J server, but admin.jar only works in a standalone OC4J installation. Do they have any other difference?
    If used in a standalone OC4J installation, are they the same?

    The documentation on the OC4J management tools covers this to some degree:
    http://download-west.oracle.com/docs/cd/B32110_01/web.1013/b28950/admin.htm#CEGHHGGB
    In a nutshell
    1. admin.jar is the old command line utility we kept in the release for backwards compatibility. It uses a set of internal/proprietrary APIs to work against OC4J. It works only against OC4J standalone.
    2. admin_client.jar is a new command line utility that is based on JMX and its associated set of specifications to manage and deploy to a J2EE container. It can connect to and manage all variants of OC4J -- standalone, single AS instance, clustered AS instance. It has many more resource configuration options added to it. For simplicity, we maintained the "feel" of admin.jar so the command structure is very similar to what was provided in admin.jar, but the way it works is completely different under the covers.
    While admin.jar still works and is supported, you should use admin_client.jar whenever you want to do command line operations with 10.1.3.x. I was considering putting a note to that effect on stdout whenever admin.jar was used, but we didn't end up doing it.
    Another two nice aspects about admin_client.jar are
    1. The common library it uses to perform its operations is also used by the Oracle Ant tasks -- so in effect there are two faces to it -- admin_client.jar and Ant tasks. There's a near 100% compatibility between the two meaning what you can do with admin_client.jar you can most likely do with a set of Ant tasks from a development environment.
    2. We have isolated the dependencies for admin_client.jar and produced a separate, small distribution called oc4j_admin_client.zip (which is 6MB from memory) that can be unzipped onto any remote server and you have the full admin_client.jar utility -- meaning that to perform administration options against ant of the OC4J variants (standalone, single and clustered AS instance) you only need this one, very small distribution.
    cheers
    -steve-

  • Developer access for admin_client.jar in 10.1.3.1

    I would like our developers to be able to deploy their applications to OAS 10.1.3.1 on Solaris via command line. They already have an administrator login for OAS.
    It appears that the default permissions for admin_client.jar is 750 meaning that only those in the dba group have read/execute access to this jar by default.
    So my question is: What is the typical supported method for allowing developers to deploy their applications via command line?
    Do you simply open permissions on the jar and that's fine?
    Do you install the remote client administration tool and open permissions on that?
    I know that they can deploy very easily in JDeveloper, but many developers here are using eclipse instead, and we may also want to automate the deployment into our build scripts, so I'd like to know how to open the access up to do this via OAS CLI utilities.
    Let me know what you all are doing out there for your developers and how this is intended to be used by those that are not DBAs.
    Thanks!
    Tony

    OK, in case anyone else had the same issues, here is what I ended up doing to resolve the issue:
    Basically I created a new unix group for those I wished to have access to admin_client.jar util and layed down the oc4j remote administration zip with that user.
    In our env the steps looked like this:
    1. Create Group oc4jadm
    2. Create User oc4jinst (group oc4jadm)
    3. Add all users that will deploy apps to the oc4jadm group
    4. Unzip the remote client with oc4jinst user
    5. All files are now accessible by the oc4jadm group
    6. Test admin_client.jar with normal user in the oc4jadm group
    7. Everything works great.
    This way I could install OAS 10.1.3.1 with the oracle user and dba group like normal and not have to dig around and haphazardly grant access to the various dirs and files required by the admin_client.jar. Everything required is bundled up in the remote admin client zip and it may be installed with a user other than oracle without issue. Plus it has the added bonus of working remote servers in case you don't want your developers accessing the server on which the OAS itself resides.
    HTH,
    Tony

  • CommandButton action method invoked multiple times in standalone OC4J

    Hi,
    We've developed an application in JDeveloper 10.1.3.3.0 (ADF Business Components version 10.1.3.41.57). In one page we have a commandButton with an action method:
    <af:commandButton action="#{MyBean.myActionMethod}"
    blocking="false"
    textAndAccessKey="#{nls['MY_LABEL']}"
    id="myButtonId" >
    <f:actionListener type="oracle.jheadstart.controller.jsf.listener.ResetBreadcrumbStackActionListener"/>
    </af:commandButton>
    This method is defined in a managed bean:
    public String myActionMethod() {
    /* some code */
    return "indexPage";
    There is a navigation-rule for outcome "indexPage". When we run our application in the JDeveloper embedded OC4J instance and click on the commandButton, the action method is invoked once and then the .jspx in the navigation-rule is navigated to.
    We deployed our application to a standalone OC4J instance. Both embedded and standalone OC4J have version: Oracle Containers for J2EE 10g (10.1.3.3.0) (build 070610.1800.23513)
    When we run our application in the standalone OC4J and click on the commandButton, the action method is repeatedly invoked in a seemingly infinite loop.
    We'd appreciate it if someone could shed some light on the matter. Please note that we cannot use <redirect /> in our navigation-rule for "indexPage" because in production we have an Oracle webcache server upstream of our OC4J. Users can only submit HTTPS requests to the webcache, which in turn forwards these requests as HTTP requests.
    Kind regards,
    Ibrahim

    Dear All,
    We'd really appreciate it if somebody would suggest some possible causes even if these might seem fare-fetched. Perhaps compare certain .jar files or something to that effect.
    Anything ????
    Thanks and regards,
    Ibrahim

  • Use HTTPS to access webservice on standalone OC4J

    I have followed the instructions in the Oracle Containers for J2EE Security Guide for setting up SSL (Chapter 15) on standalone OC4J. I have also looked at Tugs blog about using HTTPS with web services. I believe I have everything setup right but have a problem.
    BTW, I am using a standalone OC4J instance that is also an ESB server. Prior to doing the SSL setup I already had 2 test web services running that could be accessed via http just fine.
    Here is my default-web-site.xml file contents:
    <web-site xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/web-site-10_0.xsd" port="8888" display-name="OC4J 10g (10.1.3) Default Web Site" schema-major-version="10" schema-minor-version="0" >
    <default-web-app application="default" name="defaultWebApp" />
    <web-app application="system" name="dms0" root="/dmsoc4j" />
    <web-app application="system" name="dms0" root="/dms0" />
    <web-app application="system" name="JMXSoapAdapter-web" root="/JMXSoapAdapter" />
    <web-app application="default" name="jmsrouter_web" load-on-startup="true" root="/jmsrouter" />
    <web-app application="javasso" name="javasso-web" root="/jsso" />
    <web-app application="ascontrol" name="ascontrol" load-on-startup="true" root="/em" ohs-routing="false" />
    <web-app application="esb-test" name="esb-test" load-on-startup="true" root="/esbtest" />
    <web-app application="esb-dt" name="esb_console" load-on-startup="true" root="/esb" />
    <web-app application="orainfra" name="orainfra" load-on-startup="true" root="/orainfra" />
    <web-app application="esb-rt" name="provider-war" load-on-startup="true" root="/event" />
    <web-app application="Test-elexnet_service-WS" name="WebServices" load-on-startup="true" root="/Test-elexnet_service-context-root" />
    <web-app application="Test-elexnet_service2-WS" name="WebServices" load-on-startup="true" root="/Test-elexnet_service2-context-root" />
    <access-log path="../log/default-web-access.log" split="day" />
    </web-site>
    Here is my secure-web-site.xml file contents:
    <web-site xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/web-site-10_0.xsd" secure="true" port="4443" display-name="OC4J 10g (10.1.3) Secure Web Site" schema-major-version="10" schema-minor-version="0" >
    <default-web-app application="default" name="defaultWebApp" />
    <web-app application="Test-elexnet_service-WS" name="WebServices" load-on-startup="true" root="/Test-elexnet_service-context-root" />
    <web-app application="Test-elexnet_service2-WS" name="WebServices" load-on-startup="true" root="/Test-elexnet_service2-context-root" />
    <access-log path="../log/secure-web-access.log" split="day" />
    <ssl-config keystore="C:\OracleESB\j2ee\home\oc4jkeystore.jks" keystore-password="xxx" />
    </web-site>
    I also have the following in my server.xml file:
    <application name="javasso" path="../../home/applications/javasso.ear" parent="default" start="false" />
    <application name="ascontrol" path="../../home/applications/ascontrol.ear" parent="system" start="true" />
    <application name="esb-dt" path="../applications/oraesb-dt.ear" parent="default" start="true" />
    <application name="orainfra" path="../applications/orainfra.ear" parent="default" start="true" />
    <application name="esb-rt" path="../applications/oraesb-rt.ear" parent="esb-dt" start="true" />
    <application name="esb-test" path="../applications/oraesb-test.ear" parent="default" start="true" />
    <application name="Test-elexnet_service-WS" path="../applications\Test-elexnet_service-WS.ear" parent="default" start="true" />
    <application name="webapp" path="../applications\webapp.ear" parent="default" start="true" />
    <application name="Test-elexnet_service2-WS" path="../applications\Test-elexnet_service2-WS.ear" parent="default" start="true" />
    <global-web-app-config path="global-web-application.xml" />
    <transaction-manager-config path="transaction-manager.xml" />
    <web-site default="true" path="./default-web-site.xml" />
    <web-site path="./secure-web-site.xml" />
    <cluster id="31671846181898" />
    All I really want is to access the 2 web services via HTTPS. I can access the default applciation via https just fine but when I try to use https to access the web services I get a 404 Not found error (after first getting a security alert popup). I can still access the services via http though. In the log of the server I have the following errors that occured on startup of OC4J. They pertain to the secure web site and there is an error for each web service. I don't understand what they mean/what the problem is:
    <MSG_TEXT>Internal error raised tyring to instantiate web-application: WebServices defined in web site OC4J 10g (10.1.3) Secure Web Site. Error compiling :C:\OracleESB\j2ee\home\applications\Test-elexnet_service2-WS\WebServices: Error instantiating compiler: IO error writing cache: C:\OracleESB\j2ee\home\application-deployments\Test-elexnet_service2-WS\WebServices\deployment-cache.jar</MSG_TEXT>
    <MSG_TEXT>Internal error raised tyring to instantiate web-application: WebServices defined in web site OC4J 10g (10.1.3) Secure Web Site. Error compiling :C:\OracleESB\j2ee\home\applications\Test-elexnet_service-WS\WebServices: Error instantiating compiler: IO error writing cache: C:\OracleESB\j2ee\home\application-deployments\Test-elexnet_service-WS\WebServices\deployment-cache.jar</MSG_TEXT>
    Anyone know what is going on? TIA!
    Nick

    I found that when I REMOVED the following from the default-web-site.xml
    <web-app application="Test-elexnet_service-WS" name="WebServices" load-on-startup="true" root="/Test-elexnet_service-context-root" />
    <web-app application="Test-elexnet_service2-WS" name="WebServices" load-on-startup="true" root="/Test-elexnet_service2-context-root" />
    and restarted OC4J, then everything is ok and I don't get any errors. However I can only access the web services via HTTPS and not HTTP.
    Anybody got any ideas?

  • Standalone OC4J fails

    I have deployed my app to the standalone OC4J instance installed in Jdeveloper 9.0.3. I have done java -jar oc4j.jar -install and set my password. The deployment went without fail.
    I can enter http://<name>:8888 and I get the OC4J instance welcome page.
    When I enter http://<name>:8888/<app_dir>/<app_name).jsp
    I get a "Page cannot be displayed" and this is my application.log:
    5/13/03 12:42 PM Started
    5/13/03 12:42 PM Started
    5/13/03 12:42 PM cydcorweb: jsp: init
    5/13/03 12:42 PM cydcorweb: 9.0.3.0.0 Started
    5/13/03 12:43 PM cydcorweb: JspServlet: unable to dispatch to requested page: Exception:oracle.jsp.parse.JspParseException: Line # 2, <%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="uix" %>
    Error: java.lang.ClassNotFoundException: oracle.cabo.ui.jsps.tags.RenderingContextTEI
    What does this mean?
    BTW, I have done this exact deployment procedure on my laptop and the app runs there.
    TIA,
    Ed.

    Never mind. I de-installed 9.0.3.1 and re-installed it and now the app runs fine. I must have messed up something in my preivous config.

  • Admin_client.jar credentials

    I have created script to deploy war & ear file to OAS 10.1.3.x using admin_client.jar. I can get it to work if I use the oc4jadmin credential. However, I can not get the script to work if I use different account.
    This account is member of ascontrol_admin role. I am able to deploy the application using this account through OAS Web UI but unable to do so from the command-line. We are interested in seperating oc4jadmin account from the account which will be used to deploy/undeploy application.
    I get the standard error message regarding authentication shown below:
    SEVERE: CoreRemoteMBeanServer.fetchMBeanServerEjbRemote Error reading application-client descriptor: Error communicating with server: Look
    up error: javax.naming.AuthenticationException: Not authorized; nested exception is:
    javax.naming.AuthenticationException: Not authorized; nested exception is:
    javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException: Not authorized; nested exception is:
    javax.naming.AuthenticationException: Not authorized [Root exception is javax.naming.AuthenticationException: Not authorized] for
    URL: ormi://orryesox.na.jmsmucker.com:12403/defaultjavax.naming.NamingException: Error reading application-client descriptor: Error commun
    icating with server: Lookup error: javax.naming.AuthenticationException: Not authorized; nested exception is:
    javax.naming.AuthenticationException: Not authorized; nested exception is:
    javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException: Not authorized; nested exception is:
    javax.naming.AuthenticationException: Not authorized [Root exception is javax.naming.AuthenticationException: Not authorized] [Roo
    t exception is java.lang.InstantiationException: Error communicating with server: Lookup error: javax.naming.AuthenticationException: Not
    authorized; nested exception is:
    Is there some thing special about oc4jadmin account? It seems like I should be able to create a new user wih ascontrol_admin role should be enught.... Anyone?
    thanks

    Okay, after reading the documentation, a thought come acrossed my mind... To use admin_client.jar, administrative account must belong to oc4j-administrator group? It looks like other out-of-box roles will not allow admin_client.jar to work..... Does any one know?
    thanks

  • JVM termination with standalone oc4j

    Hi,
    We have several (around 15) standalone oc4j instances running on a Sun machine, the details are as follows:
    Machine: SunFire V1280 with 8 processors (sun4u sparc) and 24 GB RAM
    OS: SunOS 5.9 Generic_117171-02
    oc4j version: 9.0.4.0.0
    There is also a 10g installation on this machine.
    We are finding that quite regularly one or more of the oc4j instances shuts down without warning. the only information in the log files (jms.log, rmi.log etc) is a "Stopped (JVM termination)" message. I cannot find any other logs on the machine which can help me with this error.
    I am after one of two things:
    1. Potential reasons for this happening (preferably with solutions!)
    2. A possible for a log file created by the JVM detailing why it is terminating.
    Can anyone help?
    Thanks

    http://blogs.oracle.com/shay/2005/10/24#a55

  • Connection Pool - unable to establish connection for one or more OC4J inst.

    Hi.
    I'm using Oracle JDeveloper 10.1.3.1 to develop some app. Database is Oracle XE 10.2.0. Application server is Oracle Aplication Server 10.1.3.1
    After create a needed code, I' v tried establish Connection Pool. When I' v tested connection, next errors was occurred:
    Unable to establish connection for one or more OC4J instances<<
    Home on admin.FRIEND-6843859F - Failed due to error: "Exception occurred testing connection. Exception: java.sql.SQLException: invalid arguments in call."<<"FRIEND-6843859F " is Computer name where Application server is installed.
    --Database is started.
    --App.server processes are started.
    How can I solve this problem?
    Thanx

    If you are using ADF "BC" Jdev will not support more than one connection
    I've tryied and always gives a errors.

  • Problems deploying PL/SQL Web Service example to standalone OC4J

    I have built the PL/SQL Web Service example EMP_FETCHER in the tutorials that come with JDeveloper. When run with the embedded OC4J container, the web service works ok using the autogenerated client. However, while I can then successfully deploy the web service to a standalone OC4j instance running on a separate database server, when I point the client at it, a NoSuchMethodError exception is thrown by oc4j with the following stacktrace;
    at tutorial_jdbc_connection.Emp_fetcher.get_emp(Emp_fetcher.sqlj:43)
    at tutorial_jdbc_connection.__Emp_fetcherSPWrapper.invokeMethod(__Emp_fetcherSPWrapper.java:73)
    at oracle.j2ee.ws.InvocationWrapper.invoke(InvocationWrapper.java:98)
    at oracle.j2ee.ws.RpcWebService.doPost(RpcWebService.java:359)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:652)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    Looks like I'm missing some support libraries but I'm unsure which ones they are, and why they wouldn't be part of a standard OC4J installation.
    I've tried including the SQLJ runtime and Oracle JDBC library support in the deployment and redeploying but the same error persists.
    Any assistance would be appreciated
    Regards
    Michael

    You have an old version of java installed. That is what "java.lang.UnsupportedClassVersionError" tells.

Maybe you are looking for

  • Implementing hierarchy in a dimension using OMBPLUS script

    Hi all, I am trying to create a dimension with two levels using TCL scripts. The first level is 'CHIP' which roll up to 'TOTAL'. I'd like to know how I can implement the hierarchy between the two levels. It would be great if any of you can help me wi

  • How can i restore mac back to factory

    I want to restore my mac back to factory settings.  How can I do it?  Thanks

  • Text/slideshows/menus--help please!

    Hello. I'm sorry if this turns out to be a little longwinded question, but I'm feeling a little overwhelmed and need to get a better understanding of some things before I can finish this project. I am editing a video and authoring a DVD for a non-pro

  • Guest user

    how can i log-in as a guest user in portal?

  • Wireless Root Bridge - Non Root Bridge

    I've been reading a lot about bridge configuration for wireless AP but i cannot make it work the following scenario: PC -- ethernet port --> Non-Root-Bridge -----------> Root Bridge ---------> Switch vlan111                     native 18 - vlan111