This discussion is archived
3 Replies Latest reply: Feb 27, 2013 1:44 PM by JuliánIsaza RSS

Cohost JavaEE apps with OSB?

739930 Newbie
Currently Being Moderated
For testing purposes im trying to cohost my javaee apps on a OSB 11gr1 server. However when I install the apps using ant wldeploy task the apps are never made available. No errors in the logs. I find references to the apps in the servers config.xml. I tried creating a new managed server on the same OSB server and install the apps to that instance rather than AdminServer but still the apps are not running after installation.

The same apps works fine if I deploy to a normal weblogic server with no OSB installed. I there any reason why it shouldnt be possible to install more apps in OSB?
  • 1. Re: Cohost JavaEE apps with OSB?
    739930 Newbie
    Currently Being Moderated
    Update: It appears the servlet context of my apps wont start because theres a conflict between my own myfaces shared library and another version of myfaces installed by OSB?

    Caused By: \Oracle\Middleware\Oracle_OSB1\soa\connectors\FileAdapter.rar!fileAdapter.jar (The system cannot find the file specifi
    at Method)
    at java.util.jar.JarFile.<init>(
    at java.util.jar.JarFile.<init>(
    at org.apache.myfaces.view.facelets.util.Classpath._getAlternativeJarFile(
    at org.apache.myfaces.view.facelets.util.Classpath._searchResource(
    at org.apache.myfaces.config.annotation.DefaultAnnotationProvider.getBaseUrls(
    at org.apache.myfaces.config.annotation.DefaultAnnotationProvider.getAnnotatedClasses(
    at org.apache.myfaces.config.annotation.AnnotationConfigurator.createFacesConfig(
    at org.apache.myfaces.config.DefaultFacesConfigurationProvider.getAnnotationsFacesConfig(
    at org.apache.myfaces.config.DefaultFacesConfigurationMerger.getFacesConfigData(
    at org.apache.myfaces.config.FacesConfigurator.configure(
    at org.apache.myfaces.webapp.AbstractFacesInitializer.buildConfiguration(
    at org.apache.myfaces.webapp.Jsp21FacesInitializer.initContainerIntegration(
    at org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(
    at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(
    at weblogic.servlet.internal.EventsManager$
    at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(
    at weblogic.servlet.internal.WebAppServletContext.start(
    at weblogic.servlet.internal.WebAppModule.startContexts(
    at weblogic.servlet.internal.WebAppModule.start(

    I tried adding this to weblogic.xml to load my own library but it appears to have no effect:


    The myfaces shared library is referenced from my web app using:

  • 2. Re: Cohost JavaEE apps with OSB?
    786763 Newbie
    Currently Being Moderated
    Although this thread is rather old, the issue still persists.

    Today, I found the following workaround:

    You can deploy a JSF 2.0 application only to managed servers on which the OSB is not deployed on as the issue is caused by the adapters (see below) installed by the OSB. Furthermore, you have to remove these managed servers from the targets of those adapters:

    - AqAdapter
    - DbAdapter
    - FileAdapter
    - FtpAdapter
    - JmsAdapter
    - MqSeriesAdapter
    - OracleAppsAdapter
    - OracleBamAdapter
    - SocketAdapter

    In my case, that's all.

    After that, my application works fine.

    Remark: The issue seems to be caused by this:

    Let's hope, Oracle will provide a fix for that soon.

    Best regards
  • 3. Re: Cohost JavaEE apps with OSB?
    JuliánIsaza Newbie
    Currently Being Moderated
    Hi, i have the same problem, deployment applicatoi JSF 2.0 in domain soa, i remove the adapter and work fine.

    Other solution for this bug....



  • Correct Answers - 10 points
  • Helpful Answers - 5 points