Application Deployment on OC4J - J2EE and WebCache w/o infrastructure

Can someone please tell me if I can deploy my Servlet on Oralce 9iAS Version 2, without making .war or .ear files. What I have is just servlet classes and jar files. Also what are the file I need to update if I want to deploy my application outside the Oracle_Home.
Any help would be appreciated.

Did the application to deploy without problems?
Have you checked the logs?

Similar Messages

  • How to create different log files for each of web applications deployed in OC4J

    Hi All,
    I am using OC4J(from Oracle) v1.0.2.2 and Windows2000. Now I want to know
    1. how to create different log files for each of my deployed web applications ?
    2. what are the advantages in running multiple instances of oc4j and in what case we should run
    multiple instances of OC4J ?
    3. how to run OC4J as Windows2000 Service rather than Windows2000 Application ?
    Thanks and Regards,
    Kumar.

    Hi Avi,
    First of all I have given a first reading to log4j and I think there will some more easy way of logging debugging messages than log4j (If you could provide me a detailed explanation of a servlet,jsp,java bean that uses log4j and how to use log4j then it will be very helpful for me). The other easy ways (if I am not using log4j) to my problem i.e creating different log files for each of web applications deployed in oc4j are
    I have created multiple instances of OC4J that are configured to run on different ports and so on each instance I have deployed a single web application . And I started the 2 oc4j instances by transferring thier error/log messages to a file. And the other way is ..
    I have download from jakarta site a package called servhelper . This servhelper is a thread that is started in a startup servlet and stopped in the destroy method of that startup servlet. So this thread will automatically capture all the system.out.println's and will print those to a file. I believe that this thread program is synchronized. So in this method I need not run multiple instances of OC4J instead each deployed web application on single instance of oc4j uses the same thread program (ofcourse a copy of thread program is put in each of the deployed web applications directories) to log messages on to different log files.
    Can you comment on my above 2 approached to logging debugging messages and a compartive explanation to LOG4J and how to use LOG4J using a simple servlet, simple jsp is appreciated ...
    Thanks and Regards,
    Ravi.

  • Are there applications deployed on OC4J ?

    Are there applications deployed on OC4J and running live with 100+ users on Production. I know WebLogic and WebSphere does..but not sure of OC4J.

    Yes there are!

  • 9iAS J2EE and WebCache Installation stop to response...

    Installation of 9iAS Infrastructure is succeeded.
    Then I start to install 9iAS J2EE and WebCache on the same machine...
    When I finished entering
    Instance Name: cn=orcladmin
    ias_admin Password: xxxxxxxx
    then the oracle installer stops to response, just displaying a 'clock-cursor'.
    I tried several times and this happens again and again.
    Anyone can give me some suggestion?

    Run the setup which is under wsf-fullinstall/disk1 folder of the installation kit. This will install ORacle windows system files. Reboot the system and then restart 9i AS setup, this should solve the problem.
    cheers,
    Jana.

  • I unable to run ejb with application client using oc4j j2ee container

    Hi,
    I have installe oracle9i (1.0.2.2) oc4j j2ee container.
    I unable to run the ejbs . please help me how to run ejbs with application client and which files are shall configure.
    See the client application is :
    public static void main (String []args)
    try {
    //Hashtable env = new Hashtable();
    //env.put("java.naming.provider.url", "ormi://localhost/Demo");
    //env.put("java.naming.factory.initial", "com.evermind.server.ApplicationClientInitialContextFactory");
    //env.put(Context.SECURITY_PRINCIPAL, "guest");
    //env.put(Context.SECURITY_CREDENTIALS, "welcome");
    //Context ic = new InitialContext (env);
    System.out.println("\nBegin statelesssession DemoClient.\n");
    Context context = new InitialContext();
    Object homeObject = context.lookup("java:comp/env/DemoApplication");
    DemoHome home= (DemoHome)PortableRemoteObject.narrow(homeObject, DemoHome.class);
    System.out.println("Creating Demo\n");
    Demo demo = home.create();
    System.out.println("The result of demoSelect() is.. " +demo.sayHello());
    }catch ( Exception e )
    System.out.println("::::::Error:::::: ");
    e.printStackTrace();
    System.out.println("End DemoClient....\n");
    When I am running client application I got this type of Exception
    java.lang.SecurityException : No such domain/application: sampledemo
    at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java : 2040)
    at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java : 1884)
    at com.evermind.server.rmi.RMIConnection.lookup(RMIConnection.java : 1491)
    at com.evermind.server.rmi.RMIServer.lookup(RMIServer.java : 323)
    at com.evermind.server.rmi.RMIContext.lookup(RMIConext.java : 106)
    at com.evermind.server.administration.LazyResourceFinder.lookup(LazyResourceFinder.java : 59)
    at com.evermind.server.administration.LazyResourceFinder.getEJBHome(LazyResourceFinder.java : 26)
    at com.evermind.server.Application.createContext(Application.java: 653)
    at com.evermind.server.ApplicationClientInitialContext.getInitialContext(ApplicationClientInitialContextFactory.java :179 )
    at javax.naming.spi.NamingManager.getInitialContext(NamingManger.java : 246)
    at javax.naming.InitialContext.getDefaultInitialCtx(InitialContext.java : 246)
    at javax.naming.InitialContext.init(InitialContext.java : 222)
    at javax.naming.InitialContext.<init>(InitialContext.java : 178)
    at DemoClient.main(DemoClient.java : 23)
    .ear file is copied into applications directory.
    I have configured server.xml file like this
    <application name="sampledemo" path="../applications/demos.ear" />
    demos.ear file Contains following files
    application.xml
    demobean.jar
    Manifest.mf
    demobean.jar file contains following files
    application-client.xml
    Demo.class
    DemoBean.class
    DemoHome.class
    ejb-jar.xml
    jndi.properties
    Mainifest.mf
    Please give me your valuable suggestions. Which are shall i configure .
    Thanks & Regards,
    Badri

    Hi Badri,
    ApplicationClientInitialContextFactory is for clients which got deployed inside OC4J container..
    For looking up EJB from a stand alone java client please use RMIInitialContextFactory..So please change ur code....
    Also please check ur server.xml
    Since you have specified your ejb domain as "sampledemo"
    you have to use that domian only for look up..But it seems that you are looking up for "Demo" domain instead of "sampledemo" domain...So change your code to reflect that..
    Code snippet for the same is :
    Hashtable env = new Hashtable();
    env.put("java.naming.provider.url", "ormi://localhost/sampledemo");
    env.put("java.naming.factory.initial", "om.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.SECURITY_PRINCIPAL, "guest");
    env.put(Context.SECURITY_CREDENTIALS, "welcome");
    Context ic = new InitialContext (env);
    Hope this helps
    --Venky                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Global authentication for applications deployed in OC4J server

    Hi,
    I have a couple of JSP pages deployed in OC4J server. I
    would like to use authentication provided by OC4J, it
    means to use JAZN UserManager (encrypted principals, LDAP
    or SSO).
    My question is, if it's possible to set default
    authentication method for whole server or whole
    http-web-site on OC4J, or I have to make change in web.xml
    in each and every program, which I am going to deploy into
    my OC4J. If I have 100 programs and somebody will make
    decision, there will be no authentocation on this particular
    server, do I have to change all my programs and remove
    entries from web.xml files?
    Is there a way how to specify the login page globally for
    the server, not by application?
    Thanks,
    Marek

    lograste resolver tu problema????... si es asi me puedes enviar la solucisn.....
    gracias..

  • How to view logs of web application deployed in oc4j

    Hi,
    I have my oc4j server running, I have deployed a web application under instance DCG.
    Please let us know, where can I find the logs of my application.
    Thanks,
    Nagesh.

    Usually while deploying a application through "Oracle Enterprise Manager 10g Application Server Control" we specify the log and configuration path needed for developed application provided developer has developed the application to store the logs. by default all logs will be there in opmn logs.
    you can have a look on following locations
    +$ORACLE_HOME/opmn/logs/DCG~OC4J* <OC4J name>+
    or
    +$ORACLE_HOME/j2ee/<OC4J>/log/<OC4J>/oc4j/log.xml+
    Hv a good day!
    Edited by: KuldeepSingh on 16-Jan-2012 19:40

  • ADF Application Deployment in OC4J of Oracle Applicaiton Server 10g

    Hi,
    We have developed big ADF application with 10 different modules. We are deploying the application by creating .ear file into OC4J.
    for each small fix done, we are taking entire code from CVS to Jdev and rebuilding the entire code and creating .ear file.
    My question is if we copy only modified files into OC4J applicaiton directory and bounce application, will this work.
    Is there any way to only deploy the modified files in to OC4J?
    Thanks

    Hi,
    Thanks for the update.
    I have few more clarifications.
    After we complete the development and deploy the ADF application in prodcution server by creating EAR file with all the files, If we have to do modifications to only to few files for enhancements.
    1) Can we copy only modified files(Ex.. Jspx,.Class files) to repective directories in the production server with out creating EAR file again? If we do so and bounce the OC4J, will this work?
    2)Or do we have to create EAR file with all the files and deploy again into production server even we have changed only one file?
    Just want to know process for deployment model for production support of ADF application.
    Thanks

  • Unable to access application deployed in OC4J server.

    All,
    I have hosted one small application in my local oc4j.
    I am able to access the application by giving the following.
    http://localhost:8888/<application>
    http://<hostname>:8888/<application>
    http://<IP address>:8888/<application>
    But others( from the same domain) are not able to access this application. They are getting "Connection Timeout" error.
    Please let me know is there any setup I am missing ?
    TIA.
    -- prabaa !

    There shouldn't be problems for others to access the application. Maybe check the proxy setting?
    -Frances

  • Deploy differences between 904 standalone and 903 J2EE and Web cache versio

    I am trying to port an application from jboss (3.0.3) to OAS 9iAS rel2. Since the application uses local interfaces in the EJBs, I am using the pre-release versions of OAS. My development environment also include ant and xdoclet. I am not using JDeveloper or TopLink and would prefer not to due to the different targets we are using.
    I have successfully portet to the 9.0.4 OC4J (standalone) version. In doing so I have collected all my EJB-class files in one jar, appName-ejb.jar, which along with the war-file and META-INF files go in the ear-file. Attempting to deploy this ear-file directly in 9.0.3 "J2EE and Webcache" version gives me the following error message in the Oracle Enterprise Manager Console: "Deployment failed: Nested exception Root Cause: Syntax error in source. Syntax error in source"
    The how-to:Implement Local Interface (cmplocal) also use a single jar-file, cmplocal-ejb.jar. The description is targeted toward OC4J standalone. I have not attempted to deploy this ear-file in the "j2ee and webcache" version.
    The Petstore demo ear-file (ref: "O9iAS Containers for J2EE User's Guide (9.0.3)") has all its beans in separate jar-files and deploys without any problems. The documentation also indicate that all beans has to be in separate jar-files in the root of the ear-file i.e this is a requirement. Do I understand the documentation correctly?
    Why the difference between the standalone version and the next version? Does not the possibility having to maintain a a large number of bean-jar-files in the root of the ear-file make development/deployment much more difficult than necessary?
    Does there exist any batch-workarounds?
    Dag

    I am trying to port an application from jboss (3.0.3) to OAS 9iAS rel2. Since the application uses local interfaces in the EJBs, I am using the pre-release versions of OAS. My development environment also include ant and xdoclet. I am not using JDeveloper or TopLink and would prefer not to due to the different targets we are using.
    I have successfully portet to the 9.0.4 OC4J (standalone) version. In doing so I have collected all my EJB-class files in one jar, appName-ejb.jar, which along with the war-file and META-INF files go in the ear-file. Attempting to deploy this ear-file directly in 9.0.3 "J2EE and Webcache" version gives me the following error message in the Oracle Enterprise Manager Console: "Deployment failed: Nested exception Root Cause: Syntax error in source. Syntax error in source"
    The how-to:Implement Local Interface (cmplocal) also use a single jar-file, cmplocal-ejb.jar. The description is targeted toward OC4J standalone. I have not attempted to deploy this ear-file in the "j2ee and webcache" version.
    The Petstore demo ear-file (ref: "O9iAS Containers for J2EE User's Guide (9.0.3)") has all its beans in separate jar-files and deploys without any problems. The documentation also indicate that all beans has to be in separate jar-files in the root of the ear-file i.e this is a requirement. Do I understand the documentation correctly?
    Why the difference between the standalone version and the next version? Does not the possibility having to maintain a a large number of bean-jar-files in the root of the ear-file make development/deployment much more difficult than necessary?
    Does there exist any batch-workarounds?
    Dag

  • Error while deploying application using enterprise manager website and dcmctl

    Hi,
    I am trying to deploy a huge ear file using enterprise manager website of Oracle 9iAs Rel 2.
    The deployment fails with the following error.
    Deployment failed: Nested exception Root Cause: null; nested exception is: java.lang.OutOfMemoryError. null; nested exception is: java.lang.OutOfMemoryError
    We are able to deploy the same ear file using stand-alone container. We are planning for deployment in few days to go it live. Pls suggest what could be the problem.
    Hardware Used:-
    DellServer Intel P3 dual processor 1.2GHz
    1GB RAM
    2GB virtual memory,
    40GB free hard-drive.
    Apart from 9ias enterprise edition, this system has Oracle database also on it. But the database is not being used at all by anyone.
    No other software is installed on the system
    Software:-
    Windows 2000 Server sp2
    Oracle 9ias Release 2 Enterprise Edition (Installed J2EE and Webcache)
    Oracle 8i Database 8.1.6.0.0
    Size of application:-
    130 EJBs (107 CMP + remaining Session Beans)
    1700 JSPs
    3 servlets
    Packaged properly into jar,war,ear structure.
    the size of ear file is about 13MB.
    I tried using dcmctl but still got the following error.
    Oracle 8i database is running but noone is using it except that this application uses it.
    Pls help
    D:\oraJ2EE\dcm\bin>dcmctl deployapplication -f d:\oraJ2ee\j2ee\elink\applications\advecto.ear -
    a myapp
    ADMN-300075
    D:\oraJ2EE\dcm\bin>dcmctl getError -v -d
    ADMN-300075
    Nested exception
    Base Exception:
    java.rmi.RemoteException:null; nested exception is:
    java.lang.OutOfMemoryError
    Nested exception
    Root Cause: null; nested exception is:
    java.lang.OutOfMemoryError
    java.rmi.RemoteException: null; nested exception is:
    java.lang.OutOfMemoryError
    java.lang.OutOfMemoryError
    <<no stack trace available>>
    Are there any mandatory patches to be applied after installing 9ias Rel2?
    Thanks
    Srinath

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

  • J2ee application deployment error

    Hi All,
             I have created a J2ee application. I have created a EJB module project in which i have created a session bean. Also I have created a Web module project, i am referring the above created EJB in this web module. Both these projects are added to one enterprise application.While deploying this ear file to j2ee engine I am getting following error.
    Aborted: development component 'TestEAR'/'sap.com'/'localhost'/'2007.06.28.10.34.29'/'0':
    Caught exception during application deployment from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Cannot deploy application sap.com/TestEAR.. Reason: Exception during generation of components of application sap.com/TestEAR in container EJBContainer.; nested exception is:      com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Exception during generation of components of application sap.com/TestEAR in container EJBContainer.
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment exception : The deployment of at least one item aborted
    Please can anybody tell me what is going wrong?
    I am using NW 2004s.
    Cheers
    jayant

    I have the same problem. I retart the SDM.and del the app in VA,It is OK now.

  • Application deployment wizard- General Information-.Publisher and Software version fields - HOWTO build installation to support?

    Hi all,
    I have built an installer (using WIX) that gets deployed by SCCM Application Deployment.
    The Publisher and Software version fields on the "General Information" page of "Create Application Wizard" do not get populated for the specified msi.
    I looked in Orca at the Property table for the msi and the Manufactuer and ProductVersion values are filled in correctly.
    Where is the SCCM "Create Application Wizard" looking for the "Publisher" and "Software version" values within the msi?  It would be very useful to the SCCM Administrator if these values get filled in automatically by using
    the values within the msi.
    Thanks in advance! 
    Anthony LaMark

    Hi,
    If you could get the Manufactuer and ProductVersion values from Orca.
    Use the following command creates a new application with the Manufactuer and ProductVersion.
    PS C:\> New-CMApplication -Name "Contoso-test" -AutoInstall $True -Description "Contoso-test1" -Keyword "Contoso" -LinkText "Contoso-App" -LocalizedApplicationDescription "Contoso-test" -LocalizedApplicationName
    "Contoso-test" -Manufacturer "Contoso-Mfg" -OptionalReference "Contoso-test4" -Owner "Contoso-testOwner" -ReleaseDate 2013/5/24
    -SoftwareVersion "v3" -SupportContact "Contoso-supp" -UserDocumentation "Contoso-Help:"
    For more information, please refer to the link below:
    New-CMApplication
    http://technet.microsoft.com/en-us/library/jj821860.aspx
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Cannot display BIG5 characters for web applications deployed to 9iAS

    I have just installed the J2EE and Webcache module of Oracle9iAS Release 2 to
    my Windows NT Server 4.0 and deployed a simple web application to it. However,
    I found that the JSP cannot display chinese (Big5) characters correctly. My JSP
    is something like:
    <%@ page contentType="text/html; charset=BIG5" %>
    <HTML><BODY>
    <% String s = SOME_BIG5_CHARACTERS; %>
    <%= s %>
    </BODY></HTML>
    On the other hand, I tried to re-direct the standard output to a log file and
    do the following in my servlet.
    System.out.println(SOME_BIG5_CHARACTERS);
    Now, the Big5 characters CAN be displayed correctly in the log file. So, I am
    confused with where the problem is.
    Here are my settings to my 9iAS:
    1) Using regedit, I have set the NLS_LANG variable of the corresponding
    ORACLE_HOME to TRADITIONAL CHINESE_TAIWAN.ZHT16BIG5
    2) In the file %ORACLE_HOME%\Apache\Jserv\conf\jserv.properties, I have
    inserted the following line:
    wrapper.env=NLS_LANG=TRADITIONAL CHINESE_TAIWAN.ZHT16BIG5
    3) In the file %ORACLE_HOME%\Apache\Apache\conf\httpd.conf, I have added the
    following line:
    PassEnv NLS_LANG
    4) In the file %ORACLE_HOME%\opmn\conf\opmn.xml, I have added the following
    line to the corresponding OC4J instance:
    <environment>
    <prop name="NLS_LANG" value="TRADITIONAL CHINESE_TAIWAN.ZHT16BIG5"/>
    </environment>
    5) For my application server, I set the java option with -Dfile.encoding=Big5
    6) I have replaced the file font.properties with font.properties.zh_TW under
    %ORACLE_HOME%\jdk\jre\lib.
    7) I have set the following in the file orion-web.xml of my web application:
    <orion-web-app
    deployment-version="9.0.2.0.0"
    default-charset="Big5"
    jsp-cache-directory="./persistence"
    temporary-directory="./temp"
    internationalize-resources="false"
    default-mime-type="application/octet-stream"
    servlet-webdir="/servlet/">
    </orion-web-app>
    Anyone have idea on fixing my problem? Thanks in advance.
    Regards,
    Kae

    I met a similar problem before but not exactly your case. When I compile the JSP by Jdeveloper, it will convert the chinese characters to strange characters. It makes me crazy to handle the chinese characters ...
    Anyway, by my experience, you better isolate the chinese characters from your JSP or Java programs. Instead, put all language dependent text in a properties file and then use native2ascii to covert your properties file into Unicode. Of course, u need to change your page charset to UTF-8.
    U can get more idea from the following site.
    Brief Description of Internationalization:
    http://java.sun.com/products/jdk/1.2/docs/guide/internat/faq.html
    Detail Tutorial:
    http://java.sun.com/docs/books/tutorial/i18n/
    Native-to-ASCII converter:
    http://java.sun.com/products/jdk/1.2/docs/tooldocs/win32/native2ascii.html

  • Problem with application deploy

    Hi all,
    I have a problem. I'm migrating a local project to NWDI and after i migrate all my stuff when i try to deploy the following error appears and the deployment is aborted.
    Result
    => deployment aborted : file:/C:/DOCUME~1/MCASTI~1/CONFIG~1/Temp/temp46205ve.com.movistar~CreacionUsuarioPortalEAR.ear
    Aborted: development component 'CreacionUsuarioPortalEAR'/'ve.com.movistar'/'PD1_SRVP_D'/'20110505203941'/'0':Caught exception during application deployment from SAP J2EE Engine's deploy service:java.rmi.RemoteException: Cannot deploy application ve.com.movistar/CreacionUsuarioPortalEAR.. Reason: Application alias [WSCreateUserPortal/Config1] for application [ve.com.movistar/CreacionUsuarioPortalEAR] already exists in the HTTP Provider Service. The application that holds this alias is [sap.com/CreacionUsuarioPortalEAR].; nested exception is:      com.sap.engine.services.deploy.container.DeploymentException: <--Localization failed:
    Deployment exception : The deployment of at least one item aborted
    Do my basis team have to do an undeploy of the application on the server or this is another problem.
    Regards,
    MC

    yes, you have to undeploy the old ones.

Maybe you are looking for

  • Can't connect to shared printer

    I have a Brother DCP 7020 laser printer. I've recently changed my ISP, which changed the IP address my TimeCapsule router is using. It use to be 192.168.1.1. Now it is 10.0.1.2. Since the IP change, my Macbook Pro can no longer print to the printer.

  • How to display all items titles from custom list with checkbox to select for each user

    Hi All, I have a requirement in a sharepoint 2013 development project. A custom list items will be created by admin with the following columns: Title Hyperlink User business unit (This column which is a metadata will be a userprofile property) In a p

  • Implement Oracle Aplication Server Portal - Starting work

    Hi everyone I work with java and Oracle database, manager oracle application server, but i need to learn Oracle Aplication Server Portal, i just to know some tips to start. How can i do that? Thanks José Vieira

  • Chart Coordinates

    Hello, I am trying to get the x and y-coordinates of a mouse click on a chart. I know how to get the absolute coordinates of the mouse in relation of the chart using the event.currentTarget.mouseX and Y properties, but I'd like to get them in terms o

  • MIGO OMJX field delivery note

    Hello, Do you know how to influence "delivery note" field in migo during GR by "GR-based IV" field in purchase order. Actually I would like to have delivery note field as a mandatory field when GR if GR-based IV is flaged in purchase order. GR-based