J2EE Home question

Hello Community,
my question is the following:
where is located on the file system the J2EE home page, that is the file index.html which you can access pointing the web browser on the url:
http://<server>:<port>/index.html
Bestr Regards,
Valerio

Hi Valerio,
Check out this thread
/thread/152696 [original link is broken]
Hope it hleps.
Dao

Similar Messages

  • Updated JAR files in j2ee/home/lib

    We are developing and deploying j2ee applications to a 9.0.2.3 9iAS server. We have a framework.jar file that we have a number of applications in two OC4J instances (home and portal) that need to use this jar file. As a result, we place the jar file in the j2ee/home/lib directory since this could be seen by all applications. My question comes in when we try and update this jar file. We seem to experience problems when moving a new framework.jar file into the directory. We mainly notice this issue in our EM Website. We begin to get the following error in the EM Website after we move an updated jar file into the directory:
    Servlet error: Renderer failed: java.lang.InternalError: jzentry == 0
    I've seen this error before and it seems to link back to a problem with jar files. If I remove the new jar file the error disappears. We are eventually able to get the jar file in, but only after restarting the whole mid-tier. Is this normal? Should we have to restart the server everytime we update the jar file? If so, what would be the best way to implement the new jar files? Stop mid-tier, move new file in and restart??
    Would you recommend a different location for this jar file?? Our biggest concern is that we only want to deploy this jar file one time and have all applications that need it find it. Thanks in advance for any input you might have.
    Beth

    Libraries loaded from the j2ee/home/lib directory are opened and loaded at the J2EE container level. So they are accessed from the very start of the server, to the point where it is stopped.
    Therefore if you modify a class library which has already been loaded, you may run into file locking related issues (which will be OS dependent, Windows for example probably won't even let you overwrite the file) so that is what you are likely to be seeing.
    JAR files loaded at the J2EE container level aren't really suitable for dynamic updating -- the classes can be referenced in a multitude of other classloaders.
    As you have seen, replacing a J2EE container level class file, then a restart will be required along the lines of what you have written.
    Stop mid-tier, move new file in and restart?? cheers
    -steve-

  • OC4J: Class not found for class in jar file placed in \j2ee\home\applib\

    I have an ADF application which uses external libraries (jars), which works fine when running the application from within JDeveloper (TP4).
    However if I deploy the application to the embedded OC4J server it won't find any classes imported in those external libraries at runtime (deploy does work). E.g. one library class imports oracle.jbo.server.DBTransaction. If a method of this class is called I get the following exception:
    Unexpected exception caught: java.lang.NoClassDefFoundError, msg=oracle/classloader/util/AnnotatedNoClassDefFoundError
    oracle/classloader/util/AnnotatedNoClassDefFoundErrorThe same exception, when using a german locale, explicitely states that it cannot find oracle.jbo.server.DBTransaction.
    The jar files are placed in the \j2ee\home\applib\ directory and a <library> element to this path is present in application.xml.
    Any further hints what could be wrong?

    Hi Edwin,
    tried your suggestions but without success.
    when I add this library to server.xml then following error occures when starting OC4J
    17.09.2008 17:10:33 oracle.oc4j.util.SystemLog log
    SCHWERWIEGEND: Server start failed processing configuration
    java.lang.InstantiationException: Illegal tag, 'library': The library tag has moved from config/server.xml to config/application.xml, please update your configuration manually or reinstall.
            at com.evermind.server.XMLApplicationServerConfig.parseDeploymentMainNode(XMLApplicationServerConfig.java:1227)
            at com.evermind.xml.XMLConfig.parseRootNode(XMLConfig.java:342)
            at com.evermind.xml.XMLConfig.init(XMLConfig.java:222)
            at com.evermind.xml.XMLConfig.init(XMLConfig.java:154)
            at com.evermind.server.XMLApplicationServerConfig.<init>(XMLApplicationServerConfig.java:237)
            at com.evermind.server.ApplicationServer.createConfig(ApplicationServer.java:661)
            at oracle.oc4j.server.ServerFactory$Worker.prepareConfig(ApplicationServerFactory.java:225)
            at oracle.oc4j.server.ServerFactory$Worker.start(ApplicationServerFactory.java:244)
            at oracle.oc4j.server.ServerFactory$Worker.run(ApplicationServerFactory.java:259)
            at java.lang.Thread.run(Thread.java:619)
    17.09.2008 17:10:33 oracle.oc4j.util.SystemLog logNoStack
    SCHWERWIEGEND: Server exiting: ApplicationServer entered state EXITING--> I added this to application.xml
    Than I enabled more logging of classloader "-Duser.country=US -Dclass.load.log.level=finest"
    Here a snippet of the output at starttime of OC4J:
    ================================
    08/09/18 10:17:07 Initial class loaders created. Uptime: 3156ms.
    08/09/18 10:17:07 Loading main class com.evermind.server.OC4JServer...
    08/09/18 10:17:07 com.evermind.server.OC4JServerMain class loaded. Uptime: 3344ms.
    08/09/18 10:17:07 Transferring to com.evermind.server.OC4JServer.main()...
    08/09/18 10:17:15 Ignoring non-existent code source: D:\oracle\jdevstudio1111_preview4_standalone\j2ee\home\config\..\..\..\BC4J\lib\jmxdc.jar(from <code-source> (ignore manifest Class-Path) in /D:/oracle/jdevstudio1111_preview4_standalone/j2ee/home/config/server.xml)
    08/09/18 10:17:15 Ignoring <code-source> (ignore manifest Class-Path) in /D:/oracle/jdevstudio1111_preview4_standalone/j2ee/home/config/server.xml entry: code-source /D:/oracle/jdevstudio1111_preview4_standalone/j2ee/home/lib/api-ext/adflogginghandler.jar (from system property api.ext.dirs) is already visible in the search path of adf.oracle.domain:11.1.4949.
    08/09/18 10:17:15 Ignoring non-existent code source: D:\oracle\jdevstudio1111_preview4_standalone\j2ee\home\config\..\..\..\BC4J\lib\jmxdc.jar(from <code-source> (ignore manifest Class-Path) in /D:/oracle/jdevstudio1111_preview4_standalone/j2ee/home/config/server.xml)
    08/09/18 10:17:15 Import was not resolved for adf.oracle.domain:11.1.4949: shared library "oracle.fabric.runtime" could not be found.
    08/09/18 10:17:15 Import was not resolved for adf.generic.domain:11.1.4949: shared library "oracle.fabric.runtime" could not be found.Seems that oracle.fabric.runtime couldn't be found but the jar's are located in D:\oracle\jdevstudio1111_preview4_standalone\lib\java\shared\oracle.fabric.runtime\11.1.1.0.0
    It's the same as with my jdeveloper installation where I don't have this problems.
    regards
    Peter

  • FILE not found error: j2ee/home/applib/applications-mapping.xml (No such fi

    Hi EveryBody
    i have my applications-mapping.xml file already in the applib directory, but when i try to conect to a remote ejb i had this error[b]
    FILE not found error: j2ee/home/applib/applications-mapping.xml (No such file or directory)
    can anyone help??

    gday
    Is the error on the client or server?
    What role in the application does applications-mapping.xml fulfill?
    How are you loading the file in?
    -steve-

  • Error in build.properties, how to set j2ee.home?

    Hi,
    I'm newbie for J2EE platform. I downloaded J2EE tutorial from sun site. I try to compile a app which ConvertApp using the asant build comannd.
    I get this error.
    build
    Buildfile: build.xml
    j2ee-home-test:
    BUILD FAILED
    D:\Projects\j2ee-1_4-doc-tutorial_7\j2eetutorial14\examples\common\targets.xml:1
    0: The j2ee.home property is not properly set in <INSTALL>/j2eetutorial14/exampl
    es/common/build.properties.
    Set the j2ee.home property to the location of your Application Server installati
    on.
    On Windows, you must escape any backslashes in the j2ee.home property with anoth
    er backslash or use forward slashes as a path separator. So, if your Application
    Server installation is C:\Sun\AppServer, you must set j2ee.home as follows:
        j2ee.home = C:\\Sun\\AppServer
        or
        j2ee.home=C:/Sun/AppServer
    j2ee.home is currently set to:
    Total time: 0 secondsIn which line i should add the j2ee.home value?
    my build.properties look like this :
    # general
    build=build
    sql.script=create.sql
    delete.sql.script=delete.sql
    # database
    conpool.name=DerbyPool
    jdbc.resource.name=jdbc/ejbTutorialDB
    # mail
    mailhost=mail_server_ip
    mailuser=user_id
    fromaddress=email_address
    mailjndi=mail/MySession
    # cmp
    pm.resource.name=jdo/cmp-roster
    pm.factory.class=com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerFactoryImpl
    db.schema=APPPlease enlighten me on this.
    Thanks in advance

    Hi,
    Updated "j2ee.home" and "j2ee.tutorial.home" properties in "build.properties" file which is stored in
    \j2eetutorial14\examples\common
    use forward slash as path seprator.
    e.g
    j2ee.home=D:/ProgramFiles/Sun/AppServ8.1UR2
    j2ee.tutorial.home=E:/Ishtiaque/eBooks/Sun/2EE/j2eetutorial14
    Regards,
    Ishtiaque

  • OC4J spitting out ejb's in j2ee/home

    Hi all,
    we recently noticed that during deployment of our application (ear file) when oc4j wants to compile the ejb's he spits them out in j2ee/home and compiles them there, then deletes the files.
    We probably wouldn't notice, but a couple of colleagues' deployment got stuck. The files are not deleted and oc4j's java proccess won't close, they have to restart the machine.
    Any idea what could be wrong? Maybe a misconfigured ejb-jar.xml or something?

    If your used the older deploytool then use the bottom two 'remote' boxes and leave the top two 'local' boxes empty.
    Basically Local means within the container
    and
    remote means outside the container.
    If you want to change yours to be local I think you need to subclass differently. I have not done it yet!
    EricLemle

  • Empty JDEV\j2ee\home\admin.jar

    I tried to add a connection to a remote OC4J. When I tried to install DCM, I got this error:
    C:\JDeveloper\j2ee\home>java -jar admin.jar ormi://DOMAIN:1810 ias_admin PASSWORD -deploy -file C:\JDeveloper\dcm\lib\Oc4jDcmServlet.ear -deploymentName Oc4jDcmServlet
    Error: javax.naming.NamingException: Lookup error: java.io.EOFException: Disconn
    ected; nested exception is:
    java.io.EOFException: Disconnected
    I found the reason of the error. My admin.jar file is empty! Only a manifest file in the jar. Do you guys know why? Where can I get the admin.jar file.
    Thanks!

    Yes.
    The first step is to:
    C:\JDeveloper\j2ee\home>java -jar admin.jar ormi://DOMAIN:1810 ias_admin PASSWORD -deploy -file C:\JDeveloper\dcm\lib\Oc4jDcmServlet.ear -deploymentName Oc4jDcmServlet
    I got this error:
    Error: javax.naming.NamingException: Lookup error: java.io.EOFException: Disconn
    ected; nested exception is:
    java.io.EOFException: Disconnected
    Search through the discussion board and the internet and found several people have exactly same problem, but no answers!
    Any clue?

  • HTTP Post WSDL in J2EE/HOME ?

    A customer created a BPEL process which has a partner-link defined for a WSDL located in the same directory as the project's bpel.xml file. The partner-link is to perform a http post using http binding. (basically the WSDL points to a deployed Servlet)
    When the process is initiated via the BPEL Console an error in the domain.log occurs stating that the WSDL cannot be found in j2ee/home.
    The customer can use "wsdlLocation" and "wsdlRuntimeLocation" in bpel.xml, to work past the error but why are we searching for the WSDL in j2ee/home ?
    The error:
    <summary>Failed to read wsdl. Error happened when reading wsdl at
    "HTTPPostService.wsdl", because "WSDLException: faultCode=PARSER_ERROR: Error
    reading file at: file:/D:/AS/ORA10122MID/j2ee/home/HTTPPostService.wsdl:
    D:\AS\ORA10122MID\j2ee\home\HTTPPostService.wsdl (The system cannot find the
    file specified)". Make sure wsdl exists at that URL and is valid. </summary>
    Thanks
    Michael.

    this sounds strange, and I never heard of it ..
    can you get us a step by step tutorial to see if our support can reproduce this ..
    which version are you using?
    thank you,

  • J2EE Home

    I have Oracle 9iAS and Sun AppServer on one windows system. How do I set J2EE_HOME so that I can use any one of the two servers. I will use one server at a time. Is there a restriction to number of J2EE appservers you can have on one system?

    Hi Ryan,
    Here're the options to include addtional jar files in OC4J:
    1. copy them to j2ee/home/lib
    2. modify j2ee/home/config/application.xml, add <library path="location_of_your_jar_file" /> for each jar file, the jar file will be available to the entire OC4J instance.
    3. modify j2ee/home/application-deployments/your_app_name/orion-application.xml, add <library path="location_of_your_jar_file" /> for each jar file, the jar file will be only available to the deployed application.
    Hope this helps.
    Chen.

  • Fundamental j2ee classpath question

    hi folks --
    I have a j2ee project with
    - a WAR (which has among other things a servlet in it)
    - a ejb project (which has a stateless session bean in it)
    I need to call the session bean from the servlet and my servlet code gets a reference to the bean via jndi as follows
    ...skipping jndi stuff ...
    LoadTimerTaskHome loadTimerTaskHome = (LoadTimerTaskHome)PortableRemoteObject.narrow( timerHomeObject, LoadTimerTaskHome.class);
    However, at compile time, LoadTimerTaskHome (the home interface of the bean) can't be resolved in the servlet class. Which makes sense cuz how would the servlet class know about the bean class?
    And that's the question: At compile time, how can i make classes in my WAR aware of classes in my EJB proj, which are deployed to the same EAR? There must be a very simple J2EE way of doing this...
    I'm not an EJB person, so i'm just confused about what is probably extremely basic....
    thx VERY much for any insights...

    A brute force approach is to also package the ejb interface classes (and any classes needed by those interfaces etc.) in the .war. However, a cleaner solution is to put the shared classes within a utility .jar and package it within the .ear such they are visible by both .war and ejb-jar modules.
    In Java EE 5, this is easily done by putting the shared .jar in "lib" directory at the top-level of the .ear. Java EE 5 guarantees that any .jars within that directory are visible to all component modules within the .ear.
    Prior to Java EE 5, this was only possible by using the MANIFEST-CLASSPATH attribute within each module to refer to the utility .jar. That's very cumbersome and error-prone so I recommend the automatic "lib" directory approach.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • J2EE installtion Question

    Hi,
    I install J2EE1.2.1 reference implementation(j2sdkee1.2.1). My Question is -
    (1) Do I need to install EJB ver1.1, JSP ver1.1 and serverlet ver 2.2. because under bin folder of j2sdkee, in the j2ee.bat file,
    "rem set J2EE_HOME to the path where you have installed this package (EJB server)." I currently set environment variables - JAVA_HOME to c:\jdk1.3.1 and J2EE_HOME to c:\j2sdkee. Can I do like this?
    (2) In my program, I will use JSP and servelet, so do I need to install Apache tomecat for this purpose after installing above J2EE platform??
    Thank you very much.

    Hi Emily,
    The solutions to your queries :
    Q. I don't know how to to set the CLASSPATHS for the EJB, JSP ver1.1 and serverlet ver 2.2 JARs ?
    Can you Pls tell me how to do ?
    A. Ya. I assume that u have installed the software on C:
    Find where the ejb.jar file is installed on ur system. Then Type the following at the command prompt :
    SET CLASSPATH=C:\path\to\your\ejb.jar
    For Servlets:
    Find where the ejb.jar file is installed on ur system. Then Type the following at the command prompt :
    SET CLASSPATH=C:\path\to\your\servlets.jar
    The JSP does not require a CLASSPATH setting. The servlets CLASSPATH handles it for JSP also.
    Q. In the program , it imports " import org.w3c.dom.* " because of using getXML method. when I
    compile the program, it shows error. How can I solve with it ??
    A. What is the error ? If u could specify it, I could help u more.
    Cheers !!
    Sherbir.

  • J2EE server0 question.....

    Hello everybody,
    In every J2EE instance there is a dispatcher and server0. This server0 could be up to server<n>, depending upon the load on the instance. When you add this server to J2EE then it basically adds more resources to instance.
    My question is how and where I can monitor the need to add another server<n> to a J2EE instance.
    Like I can monitor the SM50 to monitor the load in ABAP system.
    What is the optimized way to analyze and monitor the need to another another server<n> to a existing J2Ee instance.
    Your help will be greately appreciated.
    Thank you very much for the help.
    Thank you.
    Sume

    hi Sume
    > I really wanted a quick starting tip about how to
    > monitor that server is busy because of J2EE
    > application.
    You can monitor the J2ee Server using <b>Visual Administrator.</b>
    You should have <b>SLD</b> (System Landscape Directory) support to your Server to add Dialog instances (ie. create server<n>)
    This SLD can be made available to you during your installation of WebAS. It can be added later also to your system.
    You log in into the Visual Administrator. you will find all the instances of all the servers available in your SLD.
    The dispatcher will take care of load balancing ( i guess you gotta configure the dispatcher for this purpose)
    hope this was useful
    Regards,
    ak.
    Message was edited by: Arun Kumar Ravi

  • J2EE Design Questions

    Please forgive me, I am just getting into J2EE and, despite having a mountain of manuals on my desk, I'm having a little trouble figuring out how everything fits together...
    Question 1.
    Is there any standard application entry point for an EJB container... kind of like main() in a plain old java application, or the contextInitialized() method for a ServletContextListener in a web container?
    Question 2.
    Is there any kind of an analog to web.xml for EJB containers? If not, is there some kind of standard way to set initialization parameters for EJBs?
    Question 3.
    Is there any kind of JNDI service provider created for me by my EJB container? For example, the (rather old) article here:
    http://java.sun.com/products/jndi/tutorial/getStarted/examples/naming.html
    suggests the following code:
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY,
        "com.sun.jndi.fscontext.RefFSContextFactory");
    Context ctx = new InitialContext(env);specifically 'Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.fscontext.RefFSContextFactory"' looks like a bunch of voodoo to me, and also mentions something about the file system... I don't want my JNDI to have anything to do with my filesystem. Do I need to install some kind of JNDI server or LDAP server or something? Sorry... I'm really confused.
    Question 4.
    In my test application, I'm trying to centralize logging. I have a stateless EJB that implements logging capability. When instantiated, (in theory) it should register it's logging element to JNDI, so that further instantiations of the logging EJB should all direct their calls to the same element.
    I fully realize that this would imply (at best), in a distributed environment, the rather strange behavior of logging calls bouncing around to the first machine that happend to instantiate a logging bean...
    regardless, I have the following broken code:
    import javax.ejb.Stateless;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    @Stateless
    public class LogEJB implements VCMarkWeb.log.LogEJBRemote {
        private transient Context context;
        private transient Log     log;
        private transient boolean logMaster = false;
        private int logLevel;
        public
        LogEJB() {               
            try {
                context = new InitialContext();
                Log     globLog = (Log) context.lookup("log");           
                if (log != null){
                    this.log = globLog;
                    return;
                log = new LogWindow(800, 600, "LogBean", 5);
                log.out("Logging born.");
                context.bind("log", log);
                this.logMaster = true;           
            catch (Exception exception) {
                System.out.println("LogEJB: Exception while instantiating.");
                System.out.println(exception.getMessage());
        public void
        finalize() {
            if (!logMaster)
                return;
            try {
                context.unbind("log");
            catch (Exception exception) {
                System.out.println("LogEJB.finalize(): Exception unbinding log.");
                System.out.println(exception.getMessage());
    } Obviously, this code is broken, because my EJB has overridden finalize(), which is apparently not allowed. In this case (since I'm going to have to delete that finalize() method), how could I assure that my reference to a logging element will be unbound once the owner of that logging element is garbage-collected?
    ..or.. if I'm asking Question #5 in too convoluted of a way...
    Question 5'. Say, when my EJB container is kicked off, I want to create a single class containing a swing window, which will exist for the lifetime of the container, to which I can pass a handle to, such that any EJB's can invoke its methods? How would I do that, and how would I pass to my EJBs a handle to said class the 'right way'(tm)?
    Thanks so much for your assistance, J2EE design gurus :)

    singletons are counter to the very concept of distributed computing, which EJB is of course liable to do.
    So while you may have a class that behaves like a singleton inside its own enterprise application context, there is no guarantee it will behave like a singleton when seen from the perspective of a client.
    In fact, when the enterprise application is run in a distributed environment it's guaranteed to not be a singleton anymore as each JVM instance will have its own instance of the class loaded.
    It can get even worse depending on application server architecture, and you may end up having several instances of your "singleton" running inside the same server (possibly the same application) though that is more rare.
    So the best thing to do with singletons is forget all about them.

  • Some J2EE Design Questions

    Hello All,
    1. How can a daemon process/service implemented in J2EE world? Any design pattern?
    2. Is there any way to trap J2EE client disconnect events - we want to timeout
    user sessions if they fail to logout properly from our J2EE app and disconnect
    from App Server
    Thanks in advance for your time in helping me with these design issues.
    MS

    I have the same problem.
    Does anyone know the solution?
    Thanks
    Davide

  • J2EE architecture question

    Suppose you have a distributed application consisting of a number (max 100) of webservers (Servlets/JSPs technology) which send information (e.g. a random number) to one central system (using EJBs). The central system receives the random numbers through a session facade and adds the contributions from the various webservers. When the total reaches a certain level, the central system needs to inform all contributing webservers of the new total.
    My question:
    - What is the best (simple, low-cost, easy to implement) way for the central system to inform the webservers?
    Options I've thought of:
    1. messaging (probably too complicated?)
    2. polling from the webservers (too much traffic?)
    3. central system invoking a Servlet on each webserver (is this practical?)
    Any comments will be greatly appreciated!

    1. messaging (probably too complicated?)Actually quite easy, especially since your app server probably already has a JMS provider. And, if all of your Servlet servers are basically running the same application (e.g. same deployments), you'll only have to write one MessageListener to be placed in the application.
    2. polling from the webservers (too much traffic?)Too much traffic, threading issues, wasteful of processing power - a whole host of problems with that approach.
    3. central system invoking a Servlet on each webserver
    (is this practical?)Then your main EJB application would have to "know" the address of each and every webserver - which gets you into a maintenance nightmare. Not practical at all...

Maybe you are looking for