Deploying from OC4J to Tomcat 6

When I run the application in OC4j it works as it is expected. When I deploy it to Tomcat 6 I am getting this error message. Does anyone have suggestions to troubleshooting this error?
Error Message:
JBO-26031: Assocation end RequestTypes of assoc FkAcrqRqtpAssoc invalid for entity base RequestTypes in view object AccessRequestsView.
oracle.jbo.PersistenceException: JBO-26031: Assocation end RequestTypes of assoc FkAcrqRqtpAssoc invalid for entity base RequestTypes in view object AccessRequestsView.
     at oracle.jbo.server.ViewDefImpl.processEntityAssociations(ViewDefImpl.java:3627)
     at oracle.jbo.server.ViewRowStorage.create(ViewRowStorage.java:797)
     at oracle.jbo.server.ViewRowImpl.create(ViewRowImpl.java:340)
     at oracle.jbo.server.ViewRowImpl.callCreate(ViewRowImpl.java:357)
     at oracle.jbo.server.ViewObjectImpl.createInstance(ViewObjectImpl.java:2862)
     at oracle.jbo.server.QueryCollection.createRowWithEntities(QueryCollection.java:1307)
     at oracle.jbo.server.ViewRowSetImpl.createRowWithEntities(ViewRowSetImpl.java:1870)
     at oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(ViewRowSetImpl.java:1911)
     at oracle.jbo.server.ViewRowSetImpl.createRow(ViewRowSetImpl.java:1892)
     at oracle.jbo.server.ViewObjectImpl.createRow(ViewObjectImpl.java:6676)
     at gov.mt.dphhs.safari.model.services.SAFARIServiceImpl.createNewAccessRequest(SAFARIServiceImpl.java:1619)
     at gov.mt.dphhs.safari.view.strutsactions.AccessRequestHandlerAction.findForward(AccessRequestHandlerAction.java:110)
     at oracle.adf.controller.struts.actions.DataAction.findForward(DataAction.java:565)
     at oracle.adf.controller.lifecycle.PageLifecycle.handleLifecycle(PageLifecycle.java:165)
     at oracle.adf.controller.struts.actions.DataAction.handleLifecycle(DataAction.java:222)
     at gov.mt.dphhs.safari.view.strutsactions.AccessRequestHandlerAction.handleLifecycle(AccessRequestHandlerAction.java:237)
     at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:153)
     at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
     at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
     at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
     at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
     at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
     at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
     at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
     at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
     at gov.mt.dphhs.safari.view.controller.DynamicJDBCBindingFilter.doFilter(DynamicJDBCBindingFilter.java:375)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
     at java.lang.Thread.run(Unknown Source)

I reinstalled the ADF libraries on Tomcat with ADF installer. I am getting the same error.

Similar Messages

  • Deploying BIBeansOBE (from oc4j) to tomcat

    i use the example that otn publishes in http://otn.oracle.com/obe/obe9051jdev/BIBeansOBE/BIBeansOBE.htm
    I tried to deploying my application to tomcat, when i run my application , it generates the following error :
    javax.servlet.jsp.JspException: data attribute evaluates to null
         oracle.jbo.html.jsp.graph.GraphTag.doStartTag(GraphTag.java:212)
         org.apache.jsp.ResTituMen_jsp._jspService(ResTituMen_jsp.java:193)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
         org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
         org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:228)
    please, do you tell me , what is the solution?
    Thanks

    Did you copy all your persentations, calculations and saved selections to the remote BI Beans catalog? If not, from JDeveloper you need to take all the objects you created within the BIDesigner and copy them to the BI Beans remote catalog that should have been installed in your database instance. There is documentation on the BI Beans OTN home page that explains how to install the BI Beans catalog and how to copy objects to the catalog.
    Keith
    Oracle Business Intelligence Product Management
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Beans http://www.oracle.com/technology/products/bib/index.html
    Discoverer: http://www.oracle.com/technology/products/discoverer/
    BI Software: http://www.oracle.com/technology/software/products/ias/devuse.html
    Documentation: http://www.oracle.com/technology/documentation/appserver1012.html
    BI Samples: http://www.oracle.com/technology/products/bi/samples/
    Blog: http://oraclebi.blogspot.com/

  • Deploying BIBeansOBE (from oc4j) to tomcat 5

    i tried to deploying my application to tomcat 5
    i use the example that otn publishes in http://otn.oracle.com/obe/obe9051jdev/BIBeansOBE/BIBeansOBE.htm - and when i tried to run my application , it generates the following error :
    javax.servlet.jsp.JspException: data attribute evaluates to null
         oracle.jbo.html.jsp.graph.GraphTag.doStartTag(GraphTag.java:212)
         org.apache.jsp.ResTituMen_jsp._jspService(ResTituMen_jsp.java:193)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
         org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
         org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:228)
    please, Do you tell me wath is the solution?
    thanks

    Did you copy all your persentations, calculations and saved selections to the remote BI Beans catalog? If not, from JDeveloper you need to take all the objects you created within the BIDesigner and copy them to the BI Beans remote catalog that should have been installed in your database instance. There is documentation on the BI Beans OTN home page that explains how to install the BI Beans catalog and how to copy objects to the catalog.
    Keith
    Oracle Business Intelligence Product Management
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Beans http://www.oracle.com/technology/products/bib/index.html
    Discoverer: http://www.oracle.com/technology/products/discoverer/
    BI Software: http://www.oracle.com/technology/software/products/ias/devuse.html
    Documentation: http://www.oracle.com/technology/documentation/appserver1012.html
    BI Samples: http://www.oracle.com/technology/products/bi/samples/
    Blog: http://oraclebi.blogspot.com/

  • Deploying ear application - migrating from OC4j to Weblogic

    I am trying to migrate application from OC4J to weblogic server. Apart from usual differences in descriptors, structure of EAR etc. I came across unusual error:
    "both the remote home and remote component interface must be specified. Currently, only one of them is specified"
    It is about deploying session bean. Usual EJB3 stateless session bean with local and remote interface, deployed without any problem on OC4J and JBoss. Of course, I know home interfaces are something to do with EJB 2.1, but this is EJB3 application and, I guess, Weblogic has full support for it. Does it? :)
    Anyway, is there workaround? Or am I missing something? I don't have to tell you what problems we will be facing if I have to restructure whole application with dozens and hundreds of session beans.
    Thanks a lot!

    OK. I just want to make sure that there are no problems with the deployment descriptors.
    To pin point the problem do the following in JDeveloper:
    1. Create a simple EJB 3.0 session bean
    2. On that session bean create a Sample Java Client.
    3. Run the Session Bean
    4. Run the Client
    5. If both are running fine, compare the deployment descriptors from the sample and your real application.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

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

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

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

  • Error in deploying from jdeveloper 10.1.3.2 to oc4j 10.1.3.3 and 10.1.3.2

    Hi all
    I have developed an application using jheadstart 10.1.3.1 and jdeveloper 10.1.3.2 and I want to deploy it in oc4j 10.1.3.3. I have installed Adf Runtime libiraties in oc4j home. during deploying my Application I get the following error:
    Operation failed with error:
    org/apache/log4j/Category
    Deployment failed
    I tried to copy log4j-1.2.15.jar,commons-logging.jar and commons-digester.jar to
    oc4j\BC$J\lib directory ; this time my application was deployed in oc4j but i get the following Error :
    07/09/25 14:43:44 log4j:WARN No appenders could be found for logger (com.sun.fac
    es.config.ConfigureListener).
    07/09/25 14:43:44 log4j:WARN Please initialize the log4j system properly.
    Ps:
    The Actual Error in ocgj is:
    07/09/25 16:52:21 WARNING: DeployerRunnable.run java.lang.ExceptionInInitializer
    Errororacle.oc4j.admin.internal.DeployerException: java.lang.ExceptionInInitiali
    zerError
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:139
    at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun
    (OC4JDeployerRunnable.java:52)
    at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(Deplo
    yerRunnable.java:81)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:298)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.ExceptionInInitializerError
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureLi
    stener.java:252)
    at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.
    java:1141)
    at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:
    741)
    at com.evermind.server.ApplicationStateRunning.getHttpApplication(Applic
    ationStateRunning.java:414)
    at com.evermind.server.Application.getHttpApplication(Application.java:5
    70)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.cre
    ateHttpApplicationFromReference(HttpSite.java:1987)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<in
    it>(HttpSite.java:1906)
    at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:16
    03)
    at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplica
    tionBinder.java:238)
    at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplica
    tionBinder.java:99)
    at oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(Application
    Deployer.java:547)
    at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDe
    ployer.java:202)
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
    ... 4 more
    Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.comm
    ons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.C
    lass;@900079 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lan
    g.NoClassDefFoundError: org/apache/log4j/Category) (Caused by org.apache.commons
    .logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Clas
    s;@900079 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.N
    oClassDefFoundError: org/apache/log4j/Category))
    at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory
    Impl.java:543)
    at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
    Impl.java:235)
    at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
    Impl.java:209)
    at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
    at com.sun.faces.config.beans.FacesConfigBean.<clinit>(FacesConfigBean.j
    ava:48)
    ... 17 more
    Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log
    constructor [Ljava.lang.Class;@900079 for org.apache.commons.logging.impl.Log4J
    Logger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category)
    at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogF
    actoryImpl.java:413)
    at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory
    Impl.java:529)
    ... 21 more
    Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
    at java.lang.Class.getConstructor0(Class.java:2640)
    at java.lang.Class.getConstructor(Class.java:1629)
    at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogF
    actoryImpl.java:410)
    ... 22 more
    Could any body tell me where the problem is or how can I resolve the problem?
    Any help would highly be appreciated.
    thank you in advance.
    Alireza                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    It is an old post, but I want to add and ask something anyway:
    I had the same problem and solved it through similar steps (didn't get the same errors and added the log4j to my project also) but don't you have the navigation problem?
    Now that I have deployed the application the first page that appears after launching the application is my Home.jspx which is not the same page that comes up when I use embedded OC4J to run the application. The Home.jspx is blank and when I enter a link manually:
    http://farbod:8888/TestApp/faces/pages/Employees.jspx
    instead of http://farbod:8888/TestApp/faces/pages/Home.jspx
    I get this error:
    500 Internal Server Error
    Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
    I also tried changing the initial address throughout the application:
    <% response.sendRedirect("faces/pages/Home.jspx"); %>
    but I still get the above error.
    Thanks,
    Farbod

  • Error in deploying from jdeveloper 10.1.3.3 to oc4j 10.1.3.3

    Hi all
    I have developed an application using jheadstart 10.1.3.1 and jdeveloper 10.1.3 and I want to deploy it in oc4j 10.1.3.3. I have installed Adf Runtime libiraties in oc4j home. during deploying my Application I get the following error:
    Operation failed with error:
    org/apache/log4j/Category
    Deployment failed
    I tried to copy log4j-1.2.15.jar,commons-logging.jar and commons-digester.jar to
    oc4j\BC$J\lib directory ; this time my application was deployed in oc4j but i get the following Error :
    07/09/25 14:43:44 log4j:WARN No appenders could be found for logger (com.sun.fac
    es.config.ConfigureListener).
    07/09/25 14:43:44 log4j:WARN Please initialize the log4j system properly.
    Could any body tell me where the problem is or how can I resolve the problem?
    Any help would highly be appreciated.
    thank you in advance.

    Ps:
    The Actual Error in ocgj is:
    07/09/25 16:52:21 WARNING: DeployerRunnable.run java.lang.ExceptionInInitializer
    Errororacle.oc4j.admin.internal.DeployerException: java.lang.ExceptionInInitiali
    zerError
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:139
    at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun
    (OC4JDeployerRunnable.java:52)
    at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(Deplo
    yerRunnable.java:81)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:298)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.ExceptionInInitializerError
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureLi
    stener.java:252)
    at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.
    java:1141)
    at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:
    741)
    at com.evermind.server.ApplicationStateRunning.getHttpApplication(Applic
    ationStateRunning.java:414)
    at com.evermind.server.Application.getHttpApplication(Application.java:5
    70)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.cre
    ateHttpApplicationFromReference(HttpSite.java:1987)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<in
    it>(HttpSite.java:1906)
    at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:16
    03)
    at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplica
    tionBinder.java:238)
    at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplica
    tionBinder.java:99)
    at oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(Application
    Deployer.java:547)
    at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDe
    ployer.java:202)
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
    ... 4 more
    Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.comm
    ons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.C
    lass;@900079 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lan
    g.NoClassDefFoundError: org/apache/log4j/Category) (Caused by org.apache.commons
    .logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Clas
    s;@900079 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.N
    oClassDefFoundError: org/apache/log4j/Category))
    at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory
    Impl.java:543)
    at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
    Impl.java:235)
    at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
    Impl.java:209)
    at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
    at com.sun.faces.config.beans.FacesConfigBean.<clinit>(FacesConfigBean.j
    ava:48)
    ... 17 more
    Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log
    constructor [Ljava.lang.Class;@900079 for org.apache.commons.logging.impl.Log4J
    Logger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category)
            at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogF
    actoryImpl.java:413)
            at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory
    Impl.java:529)
            ... 21 more
    Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category
            at java.lang.Class.getDeclaredConstructors0(Native Method)
            at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
            at java.lang.Class.getConstructor0(Class.java:2640)
            at java.lang.Class.getConstructor(Class.java:1629)
            at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogF
    actoryImpl.java:410)
            ... 22 more                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Deploy to OC4J standaone problem

    Dears,
    I developed an application in jdev 10.2 and it works successfully with embedded OC4J, but when deploy to OC4J standalone or Tomcat it doesn't work.
    I use JSON in my application.
    The log (for OC4J standalone and Tomcat) is empty from errors and exceptions, Only
    JSONRPCBridge.analyzeClass analyzing package1name.package2name.package3name.DAO.classNmaeDAO
    is written and my code didn't work and JSP is empty.
    Any ideas, what may be the problem there???

    When I deploy to oc4j from jdev... I get an error.
    Unknown site: http-web-site
    How do I figure out what my http site is via my oc4j configuration?
    I know in my Connection properties for oc4j in jdev, there is a target web site property where I entered "http-web-site", thinking this was the correct target.
    Thanks. Look in <oracle_home>\j2ee\home\config\server.xml
    Web sites are defined by the web-site entry. E.g
    <web-site path="./http-web-site.xml" />
    <web-site default="true" path="./default-web-site.xml" />
    Dhiraj

  • Oc4j and tomcat problem ....very urgent..pl respond

    Hi.Avi and all
    here we r working with oc4j as ejb container and tomcat as webcontainer.as of now we r in oc4j as both webserver and appsrver.in this case my application is running successfully.but just week days we have decide to use tomcat as webserver and 0c4j as appserver.this is my client requirement.when we r working with thses two iam keeping my web files in tomcat and iamtrying to acess ejb's deployed on oc4j.in this scenarion iam struggling with ejb handle of stateful session bean.
    here is the exact prob iam facing:
    We have got the EJBHandle for EjboBJECT. We have placed the Handle in session and while retrieving EJBObject from it the container is throwing OrionRemoteException.
    -----THIS IS STACK TRACE OF MY ERROR----$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    $$$$$$$$$$$$$$$$$$$$$$$$$ BEFORE ezc.client.EzcPurchaseUtilManager$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    FW >>>>> In the prepareParams.....[Session handle EzUserHome: 1]
    09/05/2002 - 22:12:15 :: ******************** session test in the utilmanager ***********
    09/05/2002 - 22:12:15 :: EzSession: ezc.session.EzSession@2942da handle is: [Session handle EzUserHome: 1]
    ****************** Exception com.evermind.server.rmi.OrionRemoteException: The EJBHome could not be found at location 'EzUserHome'class com.evermind.server.rmi.OrionRemoteException
    Exception com.evermind.server.rmi.OrionRemoteException: The EJBHome could not be found at location 'EzUserHome'class com.evermind.server.rmi.OrionRemoteException
    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    $$$$$$$$$$$$$$$$$$$$$$$$$ BEFORE ezc.client.EzcPurchaseUtilManager$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    FW >>>>> In the prepareParams.....[Session handle EzUserHome: 1]
    09/05/2002 - 22:12:15 :: ******************** session test in the utilmanager ***********
    09/05/2002 - 22:12:15 :: EzSession: ezc.session.EzSession@2942da handle is: [Session handle EzUserHome: 1]
    ****************** Exception com.evermind.server.rmi.OrionRemoteException: The EJBHome could not be found at location 'EzUserHome'class com.evermind.server.rmi.OrionRemoteException
    Exception com.evermind.server.rmi.OrionRemoteException: The EJBHome could not be found at location 'EzUserHome'class com.evermind.server.rmi.OrionRemoteException
    Can anyone write to me on this.
    thx..
    Vasu

    Hi,
    I tried this on OC4J 9.0.3 production ( http://otn.oracle.com ) and Tomcat 4.0.1 (Catalina). I have a SF session bean deployed on OC4J, a web app deployed on tomcat. web.xml has ejb references added.
    The code in first JSP is like this..
    java.util.Properties prop = System.getProperties();
    prop.put(Context.INITIAL_CONTEXT_FACTORY,
    "com.evermind.server.rmi.RMIInitialContextFactory");
    prop.put(Context.PROVIDER_URL, "ormi://localhost:23891/current-workspace-app");
    prop.put(Context.SECURITY_PRINCIPAL, "admin");
    prop.put(Context.SECURITY_CREDENTIALS, "welcome");
    Context ctx = new InitialContext(prop);
    HealthCareServiceHome h = HealthCareServiceHome)PortableRemoteObject.narrow(ctx.lookup("HealthCareService"),HealthCareServiceHome.class);;
    HealthCareService js = h.create();
    Handle eh = js.getHandle();
    session.setAttribute("Eh",eh);
    and in a second JSP, I access this stateful session bean like this...
    Handle eh= (Handle)session.getAttribute("Eh");
    HealthCareService s = (HealthCareService)eh.getEJBObject();
    // do something on this instance. Everything works fine
    I dont know what versions of tomcat/oc4j you are using, may be an upgrade will help?
    Thanks,
    Neelesh
    OTN Team @ IDC

  • 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.

  • Error deploying from Jdeveloper 10.1.3.4 to OAS 10.1.2

    I've upgraded my Jdeveloper to 10.1.3.4 and imported an old project written in Jdev 10.1.2.0 (build 1811).
    My application uses Struts, JSP, Log4j and EJB's
    I can deploy to my local o4cj in the new Jdev and the applciation runs fine but when I try to deploy to my 10.1.2 app server I get the following error within the DCM log file:
    TM] Remote evaluate failed.
    Current StackTrace:
    java.lang.Throwable
    at oracle.ias.sysmgmt.task.TaskMaster.remote_evaluate(Unknown Source)
    at oracle.ias.sysmgmt.task.TaskMaster.evaluate(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.console.ApplicationDeployment.deployCommon(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.console.ApplicationDeployment.redeploy(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.console.EarDeployerImpl.redeploy(Unknown Source)
    at oracle.j2ee.tools.remote_deploy.Oc4jDcmCommandThread.executeCommand(Unknown Source)
    at oracle.j2ee.tools.remote_deploy.Oc4jDcmCommandThread.run(Unknown Source)
    remote exception: oracle.ias.sysmgmt.deployment.j2ee.exception.J2eeDeploymentException: Nested exception
    Resolution:
    Base Exception:
    java.rmi.RemoteException
    deploy failed!: ; nested exception is:
    oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-module; Exception Error in application careers-test: Error
    loading package at file:/opt/oraias/OraHome_1/j2ee/oc4j_dev/applications/careers-test/careers.jar,
    Error compiling /opt/oraias/OraHome_1/j2ee/oc4j_dev/applications/careers-test/careers.jar: Error finding a suitable DataSource: SQL
    Error opening DataSource: invalid arguments in call; nested exception is: java.sql.SQLException: invalid arguments in call; nested exception
    is:
    java.sql.SQLException: invalid arguments in call
    remote exception StackTrace:
    java.rmi.RemoteException: deploy failed!: ; nested exception is:
    oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-module; Exception Error in application careers-test: Error
    loading package at file:/opt/oraias/OraHome_1/j2ee/oc4j_dev/applications/careers-test/careers.jar,
    Error compiling /opt/oraias/OraHome_1/j2ee/oc4j_dev/applications/careers-test/careers.jar: Error finding a suitable DataSource: SQL
    Error opening DataSource: invalid arguments in call; nested exception is: java.sql.SQLException: invalid arguments in call; nested exception
    is:
    java.sql.SQLException: invalid arguments in call
    at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMIConnection.java:1621)
    at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java:1572)
    at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:55)
    at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:22)
    at __Proxy0.deploy(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.runtime.LocalDeploy.deployOnSingleInstance(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.runtime.LocalDeploy.doExecute(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.runtime.RuntimeIf.execute(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.adapter.DeploymentAdapter.doEvaluateDeploy(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.adapter.DeploymentAdapter.evaluate(Unknown Source)
    at oracle.ias.sysmgmt.task.TaskMaster.sync_evaluate(Unknown Source)
    at oracle.ias.sysmgmt.task.TaskMaster.internal_evaluate(Unknown Source)
    at oracle.ias.sysmgmt.task.RemoteEvaluate.execCommand(Unknown Source)
    at oracle.ias.sysmgmt.task.DaemonWorker.run(Unknown Source)
    Caused by: oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-module; Exception Error in application careers-test:
    Error loading package at file:/opt/oraias/OraHome_1/j2ee/oc4j_dev/applications/careers-test/careers.jar,
    Error compiling /opt/oraias/OraHome_1/j2ee/oc4j_dev/applications/careers-test/careers.jar: Error finding a suitable DataSource: SQL
    Error opening DataSource: invalid arguments in call; nested exception is: java.sql.SQLException: invalid arguments in call; nested exception
    is:
    java.sql.SQLException: invalid arguments in call
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:91)
    at com.evermind.server.administration.DefaultApplicationServerAdministrator.internalDeploy(DefaultApplicationServerAdministrator.java:429)
    at com.evermind.server.administration.DefaultApplicationServerAdministrator.deploy(DefaultApplicationServerAdministrator.java:348)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.InstantiationException: Error initializing ejb-module; Exception Error in application careers-test: Error loading
    package at file:/opt/oraias/OraHome_1/j2ee/oc4j_dev/applications/careers-test/careers.jar,
    Error compiling /opt/oraias/OraHome_1/j2ee/oc4j_dev/applications/careers-test/careers.jar: Error finding a suitable DataSource: SQL
    Error opening DataSource: invalid arguments in call; nested exception is: java.sql.SQLException: invalid arguments in call; nested exception
    is:
    java.sql.SQLException: invalid arguments in call
    at com.evermind.server.ejb.EJBContainer.throwInstantiationException(EJBContainer.java:2461)
    at com.evermind.server.ejb.EJBContainer.postInitBatch(EJBContainer.java:2445)
    at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.java:2225)
    at com.evermind.server.Application.postInit(Application.java:557)
    at com.evermind.server.Application.setConfig(Application.java:171)
    at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1996)
    at oracle.oc4j.admin.internal.ApplicationDeployer.addApplication(ApplicationDeployer.java:430)
    at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:138)
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:73)
    ... 10 more
    It looks like it's not picking up the datasource yet it works fine via the local oc4j. From my understanding the datasource is picked up from the connections in Jdeveloper but i've tried adding a datasource.xml to my "Model" tier within the "META-INF" folder but the error is still being generated.
    I've amended the J2SE version to 1.4.2_02 on both the ViewController and Model project properties as recommended within the Jdev 10.1.3.4 documentation. I've also just read the following but i'm not sure how relevant it is as the error seems to be that it can't find a datasource not that the password is not being read.
    "Data-Sources Password Handling and Application Server 10.1.2
    It is important to note that deploying an application that uses connections defined in data-sources.xml developed using JDeveloper 10.1.3 that is deployed to Application Server 10.1.2 will result in a deployment failure. One example would be an application that uses an EJB to connect to a database. This is due to differences in the way Application Server 10.1.3 and Application Server 10.1.2 interpret password indirection. We are expecting a patch for Application Server 10.1.2 to be made available that will allow deployment of these types of applications to Application Server 10.1.2."
    I imported the project datasource files from my old project that were developed in Jdev 10.2.3 rather then creating the connection via Jdev 10.1.3.4 but this still hasn't cleared the error.
    I've spent a few days on this so far so any help would be most appreciated.
    Thanks.

    "Not really. You can exclude the data-sources.xml from the EAR file and rely on the setup of the Global Datasource, created before deployment.
    --olaf"
    Thanks. Yes I did try this but when I setup the datasource via the datasources tab within the console I still received the error. This may have been due to an error on my part but I can't be sure as i've tried all sorts of different approaches over the last few days. I initially didn't have a datasource.xml so there wasn't one to exclude (via the deploy properties in Jdev) I had relied on Jdeveloper to setup the datasource via my connections. I read somewhere that Jdev does this fduring deploy and indeed it works fine for my embedded oc4j and when deplolying from Jdeveloper 10.1.2 so it would seem odd that the same approach doesn't work for Jdeveloper 10.1.3.
    Surely the release notes regarding the password issue is the reason why I can't deploy from Jdev 10.1.3.4 to app server 10.1.2?
    The release notes say that a patch is due to fix the issue with password indirection, Olaf do you know where I can get this?
    Also how do I setup Jdev not to write the datasources during deployment? If I don't have a datasources.xml then there is nothiing to exclude. Is there a setting somewhere in Jdev 10.1.3.4?
    Edited by: [email protected] on 05-Mar-2009 08:08
    Edited by: [email protected] on 05-Mar-2009 08:12

  • How to deploy EAR file in Tomcat?

    Is we can deploy ear file in tomcat?
    Normally we can deploy WAR file in tomcat webapps folder. When we run the tomat it will automatically extract the war file.
    But samethink I have tried EAR file. But it is not working.
    Is we can deploy EAR file or not?
    If not plz give reason.

    Hi
    Normally we can deploy the war file thats routene stuff ofcourse ..........but when u deploy ear file it will give problmes as ear structure and war structure are differeant
    The Tomcat Servlet/JSP Container      
    The Apache Tomcat 5.5 Servlet/JSP Container
         Apache Logo
    Links
    * Docs Home
    Contents
    * Contents
    * Introduction
    * Installation
    * Deployment
    * Source Code
    * Processes
    * Example App
    Application Developer's Guide
    Deployment
         Printer Friendly Version
    print-friendly
    version
    Background
    Before describing how to organize your source code directories, it is useful to examine the runtime organization of a web application. Prior to the Servlet API Specification, version 2.2, there was little consistency between server platforms. However, servers that conform to the 2.2 (or later) specification are required to accept a Web Application Archive in a standard format, which is discussed further below.
    A web application is defined as a hierarchy of directories and files in a standard layout. Such a hierarchy can be accessed in its "unpacked" form, where each directory and file exists in the filesystem separately, or in a "packed" form known as a Web ARchive, or WAR file. The former format is more useful during development, while the latter is used when you distribute your application to be installed.
    The top-level directory of your web application hierarchy is also the document root of your application. Here, you will place the HTML files and JSP pages that comprise your application's user interface. When the system administrator deploys your application into a particular server, he or she assigns a context path to your application (a later section of this manual describes deployment on Tomcat). Thus, if the system administrator assigns your application to the context path /catalog, then a request URI referring to /catalog/index.html will retrieve the index.html file from your document root.
    Standard Directory Layout
    To facilitate creation of a Web Application Archive file in the required format, it is convenient to arrange the "executable" files of your web application (that is, the files that Tomcat actually uses when executing your app) in the same organization as required by the WAR format itself. To do this, you will end up with the following contents in your application's "document root" directory:
    * *.html, *.jsp, etc. - The HTML and JSP pages, along with other files that must be visible to the client browser (such as JavaScript, stylesheet files, and images) for your application. In larger applications you may choose to divide these files into a subdirectory hierarchy, but for smaller apps, it is generally much simpler to maintain only a single directory for these files.
    * /WEB-INF/web.xml - The Web Application Deployment Descriptor for your application. This is an XML file describing the servlets and other components that make up your application, along with any initialization parameters and container-managed security constraints that you want the server to enforce for you. This file is discussed in more detail in the following subsection.
    * /WEB-INF/classes/ - This directory contains any Java class files (and associated resources) required for your application, including both servlet and non-servlet classes, that are not combined into JAR files. If your classes are organized into Java packages, you must reflect this in the directory hierarchy under /WEB-INF/classes/. For example, a Java class named com.mycompany.mypackage.MyServlet would need to be stored in a file named /WEB-INF/classes/com/mycompany/mypackage/MyServlet.class.
    * /WEB-INF/lib/ - This directory contains JAR files that contain Java class files (and associated resources) required for your application, such as third party class libraries or JDBC drivers.
    When you install an application into Tomcat (or any other 2.2/2.3-compatible server), the classes in the WEB-INF/classes/ directory, as well as all classes in JAR files found in the WEB-INF/lib/ directory, are made visible to other classes within your particular web application. Thus, if you include all of the required library classes in one of these places (be sure to check licenses for redistribution rights for any third party libraries you utilize), you will simplify the installation of your web application -- no adjustment to the system class path (or installation of global library files in your server) will be necessary.
    Much of this information was extracted from Chapter 9 of the Servlet API Specification, version 2.3, which you should consult for more details.
    Shared Library Files
    Like most servlet containers, Tomcat 5 also supports mechanisms to install library JAR files (or unpacked classes) once, and make them visible to all installed web applications (without having to be included inside the web application itself. The details of how Tomcat locates and shares such classes are described in the Class Loader HOW-TO documentation. For the purposes of our discussion, there are two locations that are commonly used within a Tomcat 5 installation for shared code:
    * $CATALINA_HOME/common/lib - JAR files placed here are visible both to web applications and internal Tomcat code. This is a good place to put JDBC drivers that are required for both your application and internal Tomcat use (such as for a JDBCRealm).
    * $CATALINA_BASE/shared/lib - JAR files placed here are visible to all web applications, but not to internal Tomcat code. This is the right place for shared libraries that are specific to your application.
    Out of the box, a standard Tomcat 5 installation includes a variety of pre-installed shared library files, including:
    * The Servlet 2.4 and JSP 2.0 APIs that are fundamental to writing servlets and JavaServer Pages.
    * An XML Parser compliant with the JAXP (version 1.2) APIs, so your application can perform DOM-based or SAX-based processing of XML documents.
    Web Application Deployment Descriptor
    The description below uses the variable name $CATALINA_HOME to refer to the directory into which you have installed Tomcat 5, and is the base directory against which most relative paths are resolved. However, if you have configured Tomcat 5 for multiple instances by setting a CATALINA_BASE directory, you should use $CATALINA_BASE instead of $CATALINA_HOME for each of these references.
    As mentioned above, the /WEB-INF/web.xml file contains the Web Application Deployment Descriptor for your application. As the filename extension implies, this file is an XML document, and defines everything about your application that a server needs to know (except the context path, which is assigned by the system administrator when the application is deployed).
    The complete syntax and semantics for the deployment descriptor is defined in Chapter 13 of the Servlet API Specification, version 2.3. Over time, it is expected that development tools will be provided that create and edit the deployment descriptor for you. In the meantime, to provide a starting point, a basic web.xml file is provided. This file includes comments that describe the purpose of each included element.
    NOTE - The Servlet Specification includes a Document Type Descriptor (DTD) for the web application deployment descriptor, and Tomcat 5 enforces the rules defined here when processing your application's /WEB-INF/web.xml file. In particular, you must enter your descriptor elements (such as <filter>, <servlet>, and <servlet-mapping> in the order defined by the DTD (see Section 13.3).
    Tomcat Context Descriptor
    The description below uses the variable name $CATALINA_HOME to refer to the directory into which you have installed Tomcat 5, and is the base directory against which most relative paths are resolved. However, if you have configured Tomcat 5 for multiple instances by setting a CATALINA_BASE directory, you should use $CATALINA_BASE instead of $CATALINA_HOME for each of these references.
    A /META-INF/context.xml file can be used to define Tomcat specific configuration options, such as loggers, data sources, session manager configuration and more. This XML file must contain one Context element, which will be considered as if it was the child of the Host element corresponding to the Host to which the The Tomcat configuration documentation contains information on the Context element.
    Deployment With Tomcat 5
    In order to be executed, a web application must be deployed on a servlet container. This is true even during development. We will describe using Tomcat 5 to provide the execution environment. A web application can be deployed in Tomcat by one of the following approaches:
    * Copy unpacked directory hierarchy into a subdirectory in directory $CATALINA_HOME/webapps/. Tomcat will assign a context path to your application based on the subdirectory name you choose. We will use this technique in the build.xml file that we construct, because it is the quickest and easiest approach during development. Be sure to restart Tomcat after installing or updating your application.
    * Copy the web application archive file into directory $CATALINA_HOME/webapps/. When Tomcat is started, it will automatically expand the web application archive file into its unpacked form, and execute the application that way. This approach would typically be used to install an additional application, provided by a third party vendor or by your internal development staff, into an existing Tomcat installation. NOTE - If you use this approach, and wish to update your application later, you must both replace the web application archive file AND delete the expanded directory that Tomcat created, and then restart Tomcat, in order to reflect your changes.
    * Use the Tomcat 5 "Manager" web application to deploy and undeploy web applications. Tomcat 5 includes a web application, deployed by default on context path /manager, that allows you to deploy and undeploy applications on a running Tomcat server without restarting it. See the administrator documentation (TODO: hyperlink) for more information on using the Manager web application.
    * Use "Manager" Ant Tasks In Your Build Script. Tomcat 5 includes a set of custom task definitions for the Ant build tool that allow you to automate the execution of commands to the "Manager" web application. These tasks are used in the Tomcat deployer.
    * Use the Tomcat Deployer. Tomcat 5 includes a packaged tool bundling the Ant tasks, and can be used to automatically precompile JSPs which are part of the web application before deployment to the server.
    Deploying your app on other servlet containers will be specific to each container, but all containers compatible with the Servlet API Specification (version 2.2 or later) are required to accept a web application archive file. Note that other containers are NOT required to accept an unpacked directory structure (as Tomcat does), or to provide mechanisms for shared library files, but these features are commonly available.
    Copyright © 1999-2006, Apache Software Foundation

  • 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..

  • Upgrading Local Development From OC4J 10.1.2 to 10.1.3

    We are in the middle of upgrading our local development environments to 10.1.3.
    Previously, to deploy an application to my 10.1.2 environment, I would use Maven (and a war:webapp target) to deploy to a setup as specified by application.xml:
    <web-module id="acap" path="file://C:/svn/acap 1.3.3/target/acap" />
    and http-web-site.xml:
    <web-app application="default" name="acap" root="/acap" />
    Unfortunately, I need to 10.1.3 upgrade to support Java 5.0 development. I don't know how to configure 10.1.3 manually, and don't want to compile a WAR each time and deploy via 10.1.3's enterprise manager, which is much more time-consuming.
    Can anyone give me any pointers on handling the upgrade? Otherwise, I'm going to have to switch servlet containers from OC4J, which would be bad since the app is ultimately going to be deployed to Oracle Application Server...
    Jason

    Hello,
    You should be able to use the same mechanism to deploy in 10.1.3.x, except that you will use the default-web-site.xml file (instead of http-web-site.xml)
    In the same time it is probably better to use the command line (admin_client.jar) or ant task to deploy your war.
    Regards
    Tugdual Grall

  • Is it possible to deploy Web Services to Tomcat?

    Good day,
    Can anybody tell me or it is possible to deploy Web Services to Tomcat 5.5.x ? It is possble for ADF, so I was wondering or it is possble for Web Services.
    I tried to deploy it with the following libraries:
    J2EE (excluding the servlet.jar using the filter, while this package is already present in Tomcat)
    Oracle SOAP
    Struts Runtime
    JSP Runtime
    and manually added as library:
    wsserver.jar
    wsdl.jar
    WebServicesHtmlXmlWizard.jar
    The situation at this moment is that after deployment, and execution by the a http browser the http request screens shows up as expected (I have been used Embedded stubs), but after sending I get a:
    28-Sep-2005 11:03:36 org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet MyWebService1 threw exception
    java.lang.NoClassDefFoundError: oracle/aurora/ncomp/java/ClassNotFound
         at oracle.j2ee.ws.StatelessJavaRpcWebService.getGenerator(StatelessJavaRpcWebService.java:28)
         at oracle.j2ee.ws.RpcWebService.generateWrapperClass(RpcWebService.java:461)
         at oracle.j2ee.ws.RpcWebService.generate(RpcWebService.java:414)
         at oracle.j2ee.ws.RpcWebService.getWrapper(RpcWebService.java:532)
         at oracle.j2ee.ws.RpcWebService.doGetRequest(RpcWebService.java:631)
         at oracle.j2ee.ws.BaseWebService.doGet(BaseWebService.java:1173)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Any sugestions? Or is there a different behaviour between Oracle en Tomcat version caused by modifications from the apache source.
    I should appreciate it to get some more details about this issue.

    JDeveloper will only directly support deployment of web services to an Apache 2.2 Web Server.

Maybe you are looking for