Changing hostname for embeded OC4j

I have a web-application that computes a hash number based on the server name in which the app is running. Needless to say, running OC4J from JDeveloper in debug mode creates a url like: http://<host_ip>:<port>/app/index.jsp.
I need to make it launch with the host name of my machine instead of the ip address in order to debug properly.
Can I do this? If so, where/which configuration file should I modify and how.
Thank you in advance for any help/hint provided.

The <port> and the context root may be specified in the
%JDeveloper 10g%\jdev\system10.1.2.0.0.1811\oc4j-config\default-web-site.xml configuration file.
The default port is specified in the element
<web-site port="8988">The context root is specified in the root attribute of the web-app element.
<web-app application="current-workspace-app" name="" root="" load-on-startup="false"/>

Similar Messages

  • Jdeveloper 11g TP4: Connection refused error for Embedded Oc4j

    Hi,
    I am getting following error whenever trying to deploy any application in embedded oc4j or whenever try to connect with embedded server on Resource palette.
    Error while getting remote MBeanServer for url: ormi://127.0.0.1:23891/default:
    Error reading application-client descriptor: Error communicating with server: Connection refused: connect; nested exception is:
         javax.naming.CommunicationException: Connection refused: connect [Root exception is java.net.ConnectException
    I am using Jdeveloper 11g TP 4 on windows XP.
    I have checked other links too related to above error and have checked following:
    Proper host name entry in host file
    No spaces in Jdveleoper installed directory name
    Proxy setting in Jdeveloper: excluded localhost and ip address
    Will be very thankful if anyone can help me to resolve this issue.
    Thanks in advance                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Don't spend to much time on this. JDev 11g is production and there will be no OC4J 11g!
    --olaf                                                                                                                                                                                               

  • Urgent! Changing hostname for J2EE installation

    Hello,
    I'm getting confused! I'm trying to change the hostname for a j2ee engine installation (WebAS 6.40)!
    WebAS and DB are on the same server. I did everthing from the note 757692!!!
    But when I change in the registry the  key SAPLOCALHOST to the new servername and then start the j2ee engine the key is changed back to the old hostname!! and the engine is not starting!
    I'm using windows 2003 with WebAS 6.40 SP14 and MS Sql as database.
    Thanks for your help.
    Best regards
    Olaf

    Has this question ever been answered? I tried everything in the note as well, still can't get it to work.
    As a workaround i'm now installing the J2EE Engine on another server, then gonna do a java system copy via export/import. but i'd like to get the note to work as well.
    Regards,
    Bob Villangca

  • JDBC datasoure that works for embedded OC4J server of JDeveloper 10.1.3.4

    Hi all,
    I have this in the Application Module as JDBC datasource: java:comp/env/jdbc/DBCON
    That works fine if I deploy the application on Oracle application- or tomcat-server.
    On the connections tab in JDeveloper I have made a database connection with the name DBCON.
    But when I run the application from Jdeveloper with the embedded OC4J server I get this error:
    Unable to lookup Data Source at context java:comp/env/jdbc/DBCON
    What do I do wrong?
    Thanks in advance.

    Hi,
    Edit the <application_name>-data-sources.xml file under the root directory of your application, and setup a managed data source and connection pool with the data source having the correct jndi name, eg. jdbc/DBCON
    You can either do this manually (which I find easier), or use the tool within JDev
    Tools - > Embedded OC4J Preferences -> Current Workspace -> Data Sources -> New
    -chris

  • Location of the Deployment Directory for embedded OC4J

    Hi,
    Apologies first off if this is a tres thick question. I am developing an application in J2EE using JDeveloper 9.0.3 and the embedded 0C4J server as my app server. I am wanting to use JProbe to profile my code. It asks for the location of the deployment directory. I've had a look on the internet and can't for the life of me see where the compiled/packege files are deployed to.
    Does this directory exist and if so, whereabout's is it?
    Thanks for your help (sorry if I'm being stupid).

    The deployment directory in which the OC4J embedded server applications are deployed is
    <JDeveloper 10.1.3>\jdev\mywork\<Application>\<Project>\deploy

  • Change hostname for Grid Control

    Hi All,
    I have installed OEM grid control 10gr2(10.2.0) on solaris. The installation was successfull.
    the grid control login page appeared to be as
    http://localhost:4889/em
    I do not understand why grid control installation has picked up the localhost and local ip address 127.0.0.1 instead of using the server hostname and server ipaddress
    Lets say i have following entries in /etc/hosts
    127.0.0.1 localhost.localdomain localhost
    192.168.4.51 abc.xyz.com abc
    how to change the GRID url to http://abc.xyz.com:4889/em?
    thanks all in advance.

    Thanks for the reply
    The files are there,
    $OMS_HOME/sysman/config/emoms.properties
    And $AGENT_HOME/sysman/config/emd.properties
    bash-3.00$ emctl status agent
    Oracle Enterprise Manager 10g Release 10.2.0.1.0.
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    Agent Version : 10.2.0.1.0
    OMS Version : 10.2.0.1.0
    Protocol Version : 10.2.0.0.0
    Agent Home : /u01/app/OracleHomes/agent10g
    Agent binaries : /u01/app/OracleHomes/agent10g
    Agent Process ID : 9997
    Parent Process ID : 9988
    Agent URL : https://localhost:3872/emd/main/
    Repository URL : https://localhost:1159/em/upload
    Started at : 2010-04-09 10:24:50
    Started by user : oracle
    Last Reload : 2010-04-09 10:36:08
    Last successful upload : 2010-04-09 12:15:37
    Total Megabytes of XML files uploaded so far : 22.36
    Number of XML files pending upload : 0
    Size of XML files pending upload(MB) : 0.00
    Available disk space on upload filesystem : 35.24%
    Last successful heartbeat to OMS : 2010-04-09 12:17:07
    Agent is Running and Ready

  • Changing hostname for E-Business Suite

    Hi,
    Im just moving an instance from one server to another server,
    I did the following steps,
    1. De-register the current database server.
    perl $ORACLE_HOME/appsutil/bin/adgentns.pl appspass=apps contextfile=$CONTEXT_FILE -removeserver
    2. $ORACLE_HOME/appsutil/ydev_<oldhost>.xml
    Replaced all <oldhost> to <newhost>
    Replaced all <olddomain.com> to <newdomain.com>
    3. cd $ORACLE_HOME/appsutil/bin/./adconfig.sh contextfile=$ORACLE_HOME/appsutil/PROD_<newhost>.xml
    While doing this adconfig it completed with errors...
    my log file contents are as follows,
    [AutoConfig Error Report]
    The following report lists errors AutoConfig encountered during each
    phase of its execution. Errors are grouped by directory and phase.
    The report format is:
    <filename> <phase> <return code where appropriate>
    [PROFILE PHASE]
    AutoConfig could not successfully execute the following scripts:
    Directory: /ydev/u02/oracle/ydevdb/9.2.0/appsutil/install/ydev_ebs
    afdbprf.sh INSTE8_PRF 1
    [APPLY PHASE]
    AutoConfig could not successfully execute the following scripts:
    Directory: /ydev/u02/oracle/ydevdb/9.2.0/appsutil/install/ydev_ebs
    adcrobj.sh INSTE8_APPLY 1
    how to resolve this...??.
    im using ebs version 11.5.10.2
    database 9i
    OS linux redhat 4.0
    thanks,
    vasanth

    Hi
    I agree with Helios.
    In fact, the first time I moved my apps to a new server I asked Oracle support for advice and they said that cloning is the ONLY officially approved option for moving to another server.
    After the database clone you will need to fix the following entries in the web server XML file;
    s_dbhost --> new_server
    s_apps_jdbc_connect_descriptor --> new_server
    If you end up with any unwanted database server information in the autoconfig repository then you can just do the following;
    1) EXEC FND_CONC_CLONE.SETUP_CLEAN;
    2) rerun autoconfig
    Frank

  • Change hostname for wifi connection

    Ave forum!
    I need your help to find out how to change device name, so when I look at my WiFi DHCP Server I could recognize my device. I still can do this by MAC, but would like to know how to change system name in Windows Phone.
    I am using LUMIA 800
    Thanks

    Hi,
    Welcome to the forum!
    Connect your Lumia Phone via USB to your computer running the Zune PC software. Once the phone shows as connected in the Zune, do the following:
    Click on the Phone status icon.
    Select View Sync Options > Name Your Phone.
    Enter the required phone name.
    Click OK, and close Zune.
    Disconnect your phone from the PC.
    Hope this helps. 

  • Embedded OC4J Error : java.lang.OutOfMemoryError: PermGen space

    Hi all,
    When testing apps using embbed OC4J I experience the java.lang.OutOfMemoryError: PermGen space.
    If occur on OAS, I add :add -X:MaxPermSize=256m to the startup java options on opmn.xml, and problem solved.
    How can I set the startup jaav option for embedded OC4J ?
    Thank you,
    xtanto

    hi xtanto
    To set system properties for the embedded OC4J you could try "Project Properties" > "Run/Debug" > "Edit..." some "Run Configuration" and add your property to "Java Options" on the "Launch Settings" panel.
    success
    Jan Vervecken

  • How to find global JNDI listings from embeded OC4j

    I am having a hard time looking up the context of a local bean. Remote works fine for some reason.
    How do I get a listing of the global jndi namespace for embeded OC4J?

    Hi
    Though we never 'recommend' using olite for complex processes, as olite is only for simple testing/dev purpose.
    However, you can still apply the 10.1.3.4 patchset for this BPEL standalone installation, without installing SOA Suite. But, in future I would recommend Advanced SOA Suite with 10.2.0.3 DB.
    Hope that answers your questions!
    Cheers
    Anirudh Pucha

  • WAR file don't dpeloy to embedded OC4J for jdev 10.1.2

    Dears,
    I have fresh 10.1.2 installation on windows xp prof, I made web application, and it deploy successfully to tomcat and works fine ( it uses hibernate 3.0.5, struts 1.2.7 ), I try to debug the application into embbeded oc4j
    I receive the Exception ( cannot find ActionMappings or ActionFormBeans collection ), I checked the JEDEVELOPER_HOME\jdev\system10.1.2.0.0.1811 and I searched for my application deployment and I just find the orion-web.xml
    I don't think jdeveloper make the deployment on embedded OC4J, although it says Auto-deploying file ...... (new server version detected) !!!
    I need help in debugging the application on OC4J, or even how to configure remote debugging to work for tomvat 5.5.9
    I was using jdeveloper 9.5.2 and it was working great, I don't know what happened in this version, or it seems I'm missing something.
    Thanks in advance

    I reviewed the solutions, I check all code, and the problem seems that the application should be started before calling the page loaded a startup, which seems logical so struts framework should begin resolving everything.
    I tried to edit the file oc4j-config\default-web-site.xml to make the application load-on-startup="true" but everytime I debug, I find that this file is overwrited everytime I try to debug with load-on-startup="false"
    I even tried to change it manually and close then restart jdeveloper, but each time it is overwritten, do anyine know how to modify it inorder to solve my problem?

  • How to set up data source for JDeveloper's embedded OC4J Server?

    Help needed. I Created a BMP EJB and tried to test
    it with JDeveloper's( version 9.0.3) embedded
    OC4J server. For JDBC, I created a data source
    in data-source.xml lacated in JdeveloperHome\j2ee\home\config. However,
    when I run the test client. I got the error
    from JNDI lookup:
    java.rmi.RemoteException: jdbc/entdatasource not found
    Could anybody with similar experience help?
    Thank you in advance.
    -John Wang

    Try making your changes in the data-source.xml located @ JDev_root\jdev\system9.0.3.1035\oc4j-config.
    You can tell that this is the one to be modified by watching the log when you start the OC4J server. Look for the line that says C:\JDEV\JDK\bin\javaw.exe -ojvm -classpath . . .
    the -config option will point to where the server.xml is used from, the same dir should be where you get your data-source.xml

  • How to change password for a user in WLS 7.0 embedded ldap in code?

    I asked the similar question before but don't have an answer yet.
    I need to change password for a user in my Java code. Any help will be
    appreciated.
    Here is my stack trace:
    c:\Test>java -classpath . testEmbeddedLdap
    attribute: uid
    attribute: description
    attribute: objectclass
    attribute: wlsMemberOf
    attribute: sn
    attribute: cn
    javax.naming.NoPermissionException: [LDAP: error code 50 - Insufficient
    Access Rights]; remaining name
    'uid=myRegularUser,ou=people,ou=myrealm,dc=mydomain'
    at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:2872)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2810)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2616)
    at com.sun.jndi.ldap.LdapCtx.c_modifyAttributes(LdapCtx.java:1374)
    at
    com.sun.jndi.toolkit.ctx.ComponentDirContext.p_modifyAttributes(ComponentDir
    Context.java:255)
    at
    com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.modifyAttributes(Partial
    CompositeDirContext.java:172)
    at
    com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.modifyAttributes(Partial
    CompositeDirContext.java:161)
    at
    javax.naming.directory.InitialDirContext.modifyAttributes(InitialDirContext.
    java:146)
    at testEmbeddedLdap.main(testEmbeddedLdap.java:30)
    Here is my testing code:
    <PRE>
    import java.util.*;
    import javax.naming.*;
    import javax.naming.directory.*;
    public class testEmbeddedLdap {
    public static void main(String[] argv) {
    Hashtable env = new Hashtable(11);
    env.put(Context.INITIAL_CONTEXT_FACTORY,
    "com.sun.jndi.ldap.LdapCtxFactory");
    env.put(Context.PROVIDER_URL, "ldap://localhost:7001");
    env.put(Context.SECURITY_AUTHENTICATION, "simple");
    env.put(Context.SECURITY_PRINCIPAL, "uid=myAdministrator, ou=people,
    ou=myrealm, dc=mydomain");
    env.put(Context.SECURITY_CREDENTIALS, "myAdministrator");
    try {
    DirContext ctx = new InitialDirContext(env);
    String
    sUser="uid=myRegularUser,ou=people,ou=myrealm,dc=mydomain";
    String sOldPassword="myRegularUser";
    String sNewPassword="newpassword";
    for (NamingEnumeration ae = ctx.getAttributes(sUser).getAll();
    ae.hasMore(); ) {
    Attribute attr = (Attribute)ae.next();
    System.out.println("attribute: " + attr.getID());
    ModificationItem[] mods = new ModificationItem[2];
    Attribute mod0 = new BasicAttribute("userpassword",
    sOldPassword);
    mods[0] = new ModificationItem(DirContext.REMOVE_ATTRIBUTE,
    mod0);
    Attribute mod1 = new BasicAttribute("userpassword",
    sNewPassword);
    mods[1] = new ModificationItem(DirContext.ADD_ATTRIBUTE, mod1);
    ctx.modifyAttributes(sUser, mods);
    ctx.close();
    } catch (NamingException e) {
    e.printStackTrace();
    </PRE>
    "Neil Smithline" <[email protected]> wrote in message
    news:[email protected]...
    Two things. First, I'm not exactly sure what password you are trying to
    change. The LDAP server's password or a user's password in the LDAP
    server. Second, could you please post a stack trace.
    Thanks - Neil
    K Wong wrote:
    I am using (javax.naming.directory.DirContext.modifyAttributes) to
    change
    password to our development Weblogic 7.0 embedded LDAP.
    I login as the system administrator (a user in the administratorsgroup),
    but always gets the javax.naming.NoPermissionException - InsufficientAccess
    Rights.
    What user should I use? Any help will be appreciated.

    Hai,
    This condition based execution requires - javascript coding.
    In miscelleaneous tools bar, you have an option of SCRIPT_ITEM writer tool, drag the tool into your WAD layout, and select the properties , choose the editor option and paste your coding. that's it.
    Alternate option :
    in your web application design layout , you will fine XHTML coding editor , there you need to write coding and execute the same.
    Hope this will help to you.
    Assign Points if its really useful.
    Cheers !!!
    Bye
    Regards,
    Giri

  • Where do we set flag -D... for embedded and standalone oc4j?

    hi,
    I want to set flag -Doc4j.formauth.redirect=true in embedded and standalone oc4j. Where should I add this definition for both environments?

    Hi,
    stand-alone its
    java -jar -Doc4j.formauth.redirect=true oc4j.jar
    in embedded OC4J,
    double click the project node in JDeveloper and select the Run/Debug option. Then press edit on the "Default" configuration and add -Doc4j.formauth.redirect=true to the "Java Options" field
    Frank

  • Help, I can't get the Embedded OC4J Server to restart!

    I've run into the following problem (well, actually a collegue) in that I can not get the OC4J application to restart once I kill it. She has a JSP page which will run once upon the first time JDeveloper 9i is run. However, from that point on, changes are compiled, but the I.E. page never comes up. I traced the problem down to the OC4J internal server is not being restarted. It seems the underlying reason is that somehow the embedded server gets in a state where it can't be shutdown.
    I've tried directly killing it via the run manager tab, and I've even looked at task manager and in both cases, I don't see anything corresponding to the server. Even restarting JDeveloper proper doesn't seem to clear it.
    Any thoughts?
    Thanks.
    Please post here, and email me at [email protected]
    Dave Blake

    I assume you are asking about JDev 9.0.2. If it's another version, please let me know. I can offer some suggestions based on the most likely causes:
    1) Try disabling the proxy server in JDev. Go to Tools | Preferences - Proxy Server, and uncheck the "Use HTTP Proxy Server" checkbox. You will have to quit and relaunch JDev for the change to get picked up. Then try running your JSP again.
    2) Try telling JDev to use a specific hostname for your machine other than the default. Go to Tools | Preferences - Deployment, and click on the radio button that says "Specify host name:" Try putting localhost or 127.0.0.1 here. You may have to use this in combination with 1).
    The embedded OC4J proces will show up in the Windows task manager as a javaw.exe process. You shouldn't have any zombie OC4J processes, but if you do end up with them and have a reproducible case, please post the steps-to-reproduce here.

Maybe you are looking for

  • Actual power consumption on WS-C6509-E

    Hello everyone, I have a WS-C6509-E with two WS-CAC-6000W power supplies. I have to determine what is the real power consumption of the whole device but I noticed that there is a mismatch between measurements and show power output so I would very muc

  • PSE 13 organizer consumes all available RAM and crashes

    I have found that I am unable to use PSE13 Organizer for more than a couple of hours without my system becoming unstable. Organizer keeps requesting RAM until it has taken up all available RAM and my virtual memory file has expanded to fill the hard

  • Prioritize data on one SSID on an autonomous AP with multiple SSIDs

    Hello, I have a standalone AP(AP1261N) which is configured with 3 SSIDs.I would like to prioritize any data flow on SSID 1 for example so that users on SSID 1 are always functional independent on what is happening on the other SSIDS. Then have the SS

  • A500-02F - Locking up random

    A got a new Toshiba A500-02F and now it seems to be locking up now and again. seems to do it randomly with in and before login to Windows 7 64 home prem, I'm running a windows drive check right now, memory 86 later, anything else to check before cont

  • In photoshop 7

    When trying to email a photographic attachment,  how do I get rid of the "....photos that I want to share with you. I sent these photographs using Adobe R.. " etc etc.  Ludicrous and insulting after all these years. Message edited by Sean J Fielding.