Deployment BIB app. to OC4J 9.0.2.0.1

Hello friends,
I have Sun Solaris' version of the Oracle9iAS 9.0.2.0.1 with OC4J and standalone OC4J v. 9.0.2 as well, both running on the same machine.
When deploying sample BIBeans JSP application to Oracle 9iAS with OC4J v.9.0.2.0.1 I received message : Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
The deployment of the same application to the standalone OC4J v. 9.0.2 goes well.
Could someone help me?

Did you use Oracle Enterprise Manager (OEM) to deploy the BIBeans JSP application? If so, OEM has a X11 server dependency on all UNIX platforms. You need to either configure your X11 server appropriately or you can try to deploy the application using dcmctl. There's also a chance that the deployment actually took place despite the eror you're getting. You can try dcmctl listApplications to check for all deployed applications. Hope this helps.
Cheers,
-lars

Similar Messages

  • Bc4j.xcfg, database connections and deploying ADF apps to oc4j

    I'm trying to understand how to enable custom database connections on a JDeveloper ADF application deployed to a stand-alone instance of OC4J.
    All entity objects were created as ADF Business Components.
    I looks like the db connection information used by the application is stored in a file named "bc4j.xcfg".
    How would I change the database connection information between different environments, changing the server, port and password information from an OC4J instance?
    I'd like to use an OC4J defined data-sources.xml file, but am looking for the simplest approach for now.

    Tomato tomaato, call it what you will, we now have to spend time (money) figuring out how to change from using the recommended use of a "connection" from Oracle tutorials and in Oracle Press books.
    Plus, neither I nor our client can get JDeveloper ADF 10.1.3 to work on OAS 10.1.2.
    Oracle has been of little help, other than stating to follow documentation. We followed the documentation at least a dozen times and on three different install of OAS 10.1.2.
    Why doesn't JDeveloper have a check-box or button that reconfigures the application to run on 10.1.2 (J2EE 1.3), there is a check-box to change JDK versions (1.4)? This is suspect to me.
    We are going to be speaking with the client this week, and have to state the ADF application works, but NOT on OAS 10.1.2.
    Does ADF work on OAS 10.1.3, absolutely, but the client is in 10.1.2 and can not upgrade at this time.
    I've read in blogs where lots of developers have the same issues without resolution and Oracle should just come out and state that 10.1.3 does not work on 10.1.2.
    So my experience has been a mixed bag with ADF, both in terms of the software and customer support from Oracle.

  • Deploying multiple apps on OC4J

    I am wondering what are "best practices" for deploying multiple applications using the standalone OC4J server. I was thinking of using one OC4J instance to deploy J2EE applications, but was recently informed that if any of the applications raise an unhandled exception or has memory leaks, then all applications will fail or slow down. Can I get some documentation or suggestions on how to approach this? Thanks in advance. Dan

    Yes, it is possible (and common) to run multiple WLS instances on the same physical hardware.
              It is also possible to run multiple applications within WLS.
              There are trade-offs both ways. WLS does offer some features to better allow isolation within the server. Specifically WLS 6.x and later allow configuring separate thread pools (and sizing them based on application priority). WLS 9.x supports this and a variety of further extensions based on WorkManager. I'd suggest searching for those topics in our docs.
              -- Rob
              WLS Blog http://dev2dev.bea.com/blog/rwoollen/

  • Fail deploying firt app with OC4J

    Hi friends i am new with OC4J, I try to deploy my first J2EE application with OC4J 10g as described in oc4j manuel but i get this error :
    Error instantiating application 'publipostage' at file:/C:/javatools/oc4j10g/j2ee/home/applications/publipostage.ear: Error initializing ejb-module; Exception null
    Can any one help me solving problem? Thanks a lot.

    Hello,
    Could you give a little more information about your deployment:
    - which version of OracleAS are you using? (java -jar oc4j.jar -version in the $ORACLE_HOME/j2ee/home directory)
    - do you have a complete stack trace ?
    - whichkind of EJB are you deploying?
    Regards
    Tugdual

  • Deploying web app in oc4j

    I'm trying to deploy an web application and alot of time but not always i get this error:
    Oracle9iAS (9.0.2.0.0) Containers for J2EE initialized
    Auto-deploying file:/x:/oc4j/j2ee/home/applications/testapp/testapp/ (As
    sembly had been updated)...
    java.lang.NullPointerException
    void com.evermind.server.http.HttpSite.doCheckForUpdates()
    void com.evermind.server.http.HttpSite.checkForUpdates()
    void com.evermind.server.http.SessionTimeoutTask.run()
    void com.evermind.util.TaskManager.run()
    void com.evermind.util.ThreadPoolThread.run()
    the commands i'm using to deploy is:
    java -jar admin.jar ormi://xxx:23791 admin ***** -deploy -file x:/temp/testapp.ear -deploymentName testapp
    java -jar admin.jar ormi://xxx:23791 admin ***** -bindWebApp testapp testapp http-web-site testapp
    any ideas??
    thanks in advance.

    Hi,
    If you are ussing Windows 2000 or nt systems you can use a console ir order to manage aplications.
    The command line you must use is :
    java -Dorg.omg.CORBA.ORBClass=com.inprise.vbroker.orb.ORB -Dorg.omg.CORBA.ORBSingletonClass=com.inprise.vbroker.orb.ORB -jar oc4j.jar -console
    its a service console in beta version4.
    regards.

  • Deploying small JSF app to OC4J 10.13.10

    Hi all,
    I'm having a small problem deploying my JSF application on oas 10.13.10. Deploying actually works fine but when I try to surf to my app it gives me a HTTP 500 - Internal server error.
    When I check the logs in the entreprise manager I see the following error:
    07/10/25 08:46:32.203 10.1.3.1.0 Started
    07/10/25 08:46:32.296 localvalidation: Error preloading servlet
    javax.servlet.ServletException: Error instantiating servlet 'Faces Servlet'. Servlet class javax.faces.webapp.FacesServlet not found
    in web-application localvalidation
    at com.evermind.server.http.HttpApplication.servletClassNotFound(HttpApplication.java:4866)
    at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4832)
    at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4734)
    at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4922)
    at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1134)
    at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:738)
    at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:414)
    at com.evermind.server.Application.getHttpApplication(Application.java:545)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1990)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:1909)
    at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:1606)
    at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:238)
    at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:99)
    at oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(ApplicationDeployer.java:547)
    at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:202)
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
    at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52)
    at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    my web.xml looks like this:
    <servlet>
              <servlet-name>Faces Servlet</servlet-name>
              <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
              <load-on-startup>1</load-on-startup>
         </servlet>
         <servlet-mapping>
              <servlet-name>Faces Servlet</servlet-name>
              <url-pattern>/faces/*</url-pattern>
         </servlet-mapping>
         <servlet-mapping>
              <servlet-name>Faces Servlet</servlet-name>
              <url-pattern>*.faces</url-pattern>
         </servlet-mapping>
         <session-config>
    <session-timeout>35</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
         <welcome-file-list>
              <welcome-file>Index.html</welcome-file>
         </welcome-file-list>
         <error-page>
              <error-code>500</error-code>
              <location>/ErrorPage.jsp</location>
         </error-page>
    The Index.html, which is the welcome page, I can see fine. That page redirects to a page called Validation.jsp (but i redirect to Validation.faces ofcourse) and then the error comes in. Could this have anything to do with my shared libraries? I added the jsf 1.2 libraries to the shared libraries and then I got a different error saying I still miss something else, a javax.faces.FacesFactory (don't know the exact name of the missing class).
    Could someone please help me on this? I've been trying several stuff now for 3 days and haven't found any solutions on the net so far.
    Thank You!

    Hi Frank,
    I don't use /faces/ I use the .faces extension but I don't think that it matters wich servlet mapping you use, does it?
    About the jsf-impl.jar, as soon as I put any libraries in my .war file (in the WEB-INF/lib directory) my application won't even deploy .. I even tried freshly installing a newer version (10.1.3.3.0) oc4j j2ee containers and tried to deploy both with libraries and without them but still got the same errors.
    Isn't there some guide to follow for deploying jsf applications to oc4j j2ee containers? One which describes all the steps? Or maybe some people here that have already deployed such an application (even if it's as small as hello world) could describe how they got it working step by step?
    Thanks for your help!
    Tom.

  • Building and deploying J2EE apps ?  Now there is a solution for production root cause analysis.

    Is your organization building and deploying J2EE apps? If so, Halo
    can help solve one of the toughest issues facing enterprises today:
    Finding the root cause of software faults.
    "Halo monitors, pinpoints, reports on and provides a source-code level
    root cause of software faults in deployed J2EE apps. Halo is unique
    because it's the only technology that can give you a root cause
    diagnosis in a fully deployed, live production application. Halo has
    such low performance overhead that customers deploy their final,
    production versions of their applications with Halo enabled.
    Used with Web Application Servers like WebLogic, Halo helps ensure
    that deployed code is reliable and able to be quickly fixed if
    problems turn up. Most important, because Halo is an "always on"
    technology, you get all the information you need to rapidly solve a
    problem on the first fault. Problem replication and bug reports are
    obsolete with Halo
    "Halo has a unique ability to provide a root cause diagonosis and
    understanding
    of software problems in production systems, without needing to
    replicate the
    issue.
    Test on WebLogic proved that Halo runs with extremely low overhead and
    is suitable for use in deployed production systems"
    Andrew Sliwkowski, Software Engineer
    BEA Systems, Inc.
    The key is Halo's high performance, low overhead TraceBack
    instrumentation technology. Based on technology out of MIT and proven
    in the field, TraceBack enables you to instrument JARs, EARs and WARs
    within minutes, without touching source code.
    Halo is useful throughout the entire application life cycle, from
    development through test, beta and deployment.
    If you have interest in learning more visit our website at
    www.incer.com or email me directly at [email protected] (Rick Martin)

    I have two questions. We have just started developing apps using jdev9i, 9iAS v2 and are new to the j2ee environment so my questions may be very easy ones.
    Question 1: We have set up Oracle pooling connection to our databases. We have a development, test and production database. When I deploy my application, it includes the connections. This is preventing me from moving the EAR files from dev to test to prod without modification and re deploying to my EAR file. Is there a way or a place that I can put my database connections that will not be included in my EAR files and the application still find them?datasources.xml is where the info regradings connection to databases is licated. If you're using 9iAS
    you can use EM to create datasource entry at the global level. In OC4J standalone you could use admin.jar
    or edit the file. Check out the standalone user's guide at http://otn.oracle.com/tech/java/oc4j/pdf/oc4j_so_usersguide_r2.pdf.
    Also, you will othe OC4J docs on OTN.
    Question 2: I have a stand alone oc4j set up for our developers to use while testing their applications. The applications include libraries supplied in jdev such as xml parser v2. I do not want to deploy those lib files with the app because I will have to redeploy all my apps if I upgrade jdev. I just want to be able to upgrade the libraries, test the apps and not have to redeploy everything. I can do this by coping the jdev lib to 9iAS but I can't seem to find the right place to put the lib for the stand alone oc4j instance. You can use the library tag within application.xml for server wide availability. Check out the article
    http://otn.oracle.com/oramag/oracle/02-sep/o52oc4j_2.html specifically class loading in OC4J section
    Any help would be greatly appreciated. Thanks in advance.

  • Problem of deployment Spring applicaiton to OC4J

    A application with Struts+Spring+Hibernate can be successfully runned in Tomcat. But when I deploy this application to OC4J 10.1.3.3, there are some errors. I have included xerces+xalan shared-library, taken off oracle.xml and choosen use self-library firstly.
    There are some warnings during deployment about can't parse tld files correctly:
    2007-11-26 01:47:00.265 NOTIFICATION 将档案复制到 D:\soft\oc4j_extended_101330\j
    2ee\home\applications\gxs.ear
    2007-11-26 01:47:01.203 NOTIFICATION 初始化 D:\soft\oc4j_extended_101330\j2ee\ho
    me\applications\gxs.ear 开始...
    2007-11-26 01:47:01.203 NOTIFICATION Auto-unpacking D:\soft\oc4j_extended_101330
    \j2ee\home\applications\gxs.ear...
    2007-11-26 01:47:01.203 NOTIFICATION 解压缩 gxs.ear
    2007-11-26 01:47:01.203 NOTIFICATION Unjar D:\soft\oc4j_extended_101330\j2ee\hom
    e\applications\gxs.ear in D:\soft\oc4j_extended_101330\j2ee\home\applications\gx
    s
    2007-11-26 01:47:02.500 NOTIFICATION 解压缩 gxs.ear 完成
    2007-11-26 01:47:02.515 NOTIFICATION Finished auto-unpacking D:\soft\oc4j_extend
    ed_101330\j2ee\home\applications\gxs.ear
    2007-11-26 01:47:02.515 NOTIFICATION Auto-unpacking D:\soft\oc4j_extended_101330
    \j2ee\home\applications\gxs\gxs.war...
    2007-11-26 01:47:02.515 NOTIFICATION 解压缩 gxs.war
    2007-11-26 01:47:02.515 NOTIFICATION Unjar D:\soft\oc4j_extended_101330\j2ee\hom
    e\applications\gxs\gxs.war in D:\soft\oc4j_extended_101330\j2ee\home\application
    s\gxs\gxs
    2007-11-26 01:47:21.265 NOTIFICATION 解压缩 gxs.war 完成
    2007-11-26 01:47:21.265 NOTIFICATION Finished auto-unpacking D:\soft\oc4j_extend
    ed_101330\j2ee\home\applications\gxs\gxs.war
    2007-11-26 01:47:21.296 NOTIFICATION 初始化 D:\soft\oc4j_extended_101330\j2ee\ho
    me\applications\gxs.ear 结束...
    2007-11-26 01:47:21.296 NOTIFICATION 启动应用程序: gxs
    2007-11-26 01:47:21.296 NOTIFICATION 初始化类加载程序
    2007-11-26 01:47:21.296 NOTIFICATION 初始化 EJB 容器
    2007-11-26 01:47:21.296 NOTIFICATION 加载连接器
    2007-11-26 01:47:21.515 NOTIFICATION 启动资源适配器
    2007-11-26 01:47:21.515 NOTIFICATION 初始化 EJB 会话
    2007-11-26 01:47:21.515 NOTIFICATION 提交类加载程序
    2007-11-26 01:47:21.515 NOTIFICATION 初始化 gxs 开始...
    2007-11-26 01:47:21.531 NOTIFICATION 初始化 gxs 结束...
    2007-11-26 01:47:21.531 NOTIFICATION 已启动的应用程序: gxs
    2007-11-26 01:47:21.531 NOTIFICATION 将 Web 应用程序绑定到站点 default-web-site
    开始...
    2007-11-26 01:47:21.546 NOTIFICATION 将应用程序 gxs 的 gxs Web 模块绑定到上下文
    根 gxs 下的站点 default-web-site
    警告: 代码源 D:\soft\oc4j_extended_101330\j2ee\home\applications\gxs\gxs\WEB-INF
    \lib\activation.jar (来自 WEB-INF/lib/ directory in D:\soft\oc4j_extended_101330
    \j2ee\home\applications\gxs\gxs\WEB-INF\lib) 与 /D:/soft/oc4j_extended_101330/j2
    ee/home/lib/activation.jar (from <code-source> (ignore manifest Class-Path) in M
    ETA-INF/boot.xml in D:\soft\oc4j_extended_101330\j2ee\home\oc4j.jar) 具有相同的
    文件名, 但与其不完全相同。如果前者包含相同类的不同版本, 则会被屏蔽掉, 因为后者在
    加载程序 gxs.web.gxs:0.0.0 的搜索路径中已是可见的。
    警告: 代码源 D:\soft\oc4j_extended_101330\j2ee\home\applications\gxs\gxs\WEB-INF
    \lib\jta.jar (来自 WEB-INF/lib/ directory in D:\soft\oc4j_extended_101330\j2ee\h
    ome\applications\gxs\gxs\WEB-INF\lib) 与 /D:/soft/oc4j_extended_101330/j2ee/home
    /lib/jta.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.x
    ml in D:\soft\oc4j_extended_101330\j2ee\home\oc4j.jar) 具有相同的文件名, 但与其
    不完全相同。如果前者包含相同类的不同版本, 则会被屏蔽掉, 因为后者在加载程序 gxs.w
    eb.gxs:0.0.0 的搜索路径中已是可见的。
    警告: 代码源 D:\soft\oc4j_extended_101330\j2ee\home\applications\gxs\gxs\WEB-INF
    \lib\mail.jar (来自 WEB-INF/lib/ directory in D:\soft\oc4j_extended_101330\j2ee\
    home\applications\gxs\gxs\WEB-INF\lib) 与 /D:/soft/oc4j_extended_101330/j2ee/hom
    e/lib/mail.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot
    .xml in D:\soft\oc4j_extended_101330\j2ee\home\oc4j.jar) 具有相同的文件名, 但与
    其不完全相同。如果前者包含相同类的不同版本, 则会被屏蔽掉, 因为后者在加载程序 gxs
    .web.gxs:0.0.0 的搜索路径中已是可见的。
    2007-11-26 01:47:22.125 WARNING J2EE JSP-0003 JSP Tld 高速缓存事件记录:
    2007-11-26 01:47:22.140 WARNING J2EE JSP-0027 对 jar:file:/D:/soft/oc4j_extended
    _101330/j2ee/home/applications/gxs/gxs/WEB-INF/lib/spring-modules-validation-0.5
    .jar!/META-INF/valang.tld 进行语法分析时出错
    2007-11-26 01:47:22.640 WARNING J2EE JSP-0003 JSP Tld 高速缓存事件记录:
    2007-11-26 01:47:22.640 WARNING J2EE JSP-0027 对 file:/D:/soft/oc4j_extended_101
    330/j2ee/home/applications/gxs/gxs/WEB-INF/tlds/c.tld 进行语法分析时出错
    2007-11-26 01:47:22.687 WARNING J2EE JSP-0003 JSP Tld 高速缓存事件记录:
    2007-11-26 01:47:22.687 WARNING J2EE JSP-0027 对 file:/D:/soft/oc4j_extended_101
    330/j2ee/home/applications/gxs/gxs/WEB-INF/tlds/displaytag.tld 进行语法分析时出

    2007-11-26 01:47:23.125 NOTIFICATION 初始化 Web 应用程序 gxs 的 Servlet org.apac
    he.struts.action.ActionServlet
    2007-11-26 01:47:23.843 NOTIFICATION 初始化 Web 应用程序 gxs 的 Servlet uk.ltd.g
    etahead.dwr.DWRServlet
    2007-11-26 01:47:24,015 WARN [uk.ltd.getahead.dwr.impl.DefaultConfiguration] - F
    ailed to load converter 'dom', classname=uk.ltd.getahead.dwr.convert.DOMConverte
    r: java.lang.ClassCastException: org.apache.xalan.processor.TransformerFactoryIm
    pl
    2007-11-26 01:47:25.078 NOTIFICATION 将 Web 应用程序绑定到站点 default-web-site
    结束...
    2007-11-26 01:47:25.078 NOTIFICATION gxs 的 Application Deployer 完成。操作时间:
    24828 msecs
    When I login into this application, 500 error happen on the browser:
    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.
    The information in the application.log is:
    07/11/26 01:47:21.296 10.1.3.3.0 Started
    07/11/26 01:47:23.0 gxs: Loading Spring root WebApplicationContext
    07/11/26 01:47:25.78 gxs: 10.1.3.3.0 Started
    07/11/26 01:48:11.31 gxs: Servlet error
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named '/loginAction' is defined
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:355)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:800)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:237)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
         at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:646)
         at org.springframework.web.struts.DelegatingActionProxy.getDelegateAction(DelegatingActionProxy.java:122)
         at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:105)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at gxs.web.filter.InitializeFilter.doFilter(InitializeFilter.java:36)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    The definition of the login bean in web.xml is:
    <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>
         classpath:applicationContext-action*.xml
    </param-value>
    </context-param>
    applicationContext-action*.xml are the definition of the beans.
    1. How to configure Spring in OC4J?
    2. How to solve these problems?
    Thanks,
    Melody

    Now, I alter the web.xml to the follow:
    <context-param>
         <param-name>contextConfigLocation</param-name>
         <param-value>/WEB-INF/classes/applicationContext-action-baseinfo.xml,/WEB-INF/classes/applicationContext-action-quartz.xml,/WEB-INF/classes/applicationContext-action-statistics.xml,/WEB-INF/classes/applicationContext-action-sys.xml,/WEB-INF/classes/applicationContext-action-trading.xml</param-value>
    </context-param>
    <!--
    <listener>
         <listener-class>
                   org.springframework.web.context.ContextLoaderListener
         </listener-class>
    </listener>
    -->
    <servlet>
         <servlet-name>context</servlet-name>
         <servlet-class>org.springframework.web.context.ContextLoaderServlet</servlet-class>
         <load-on-startup>1</load-on-startup>
    </servlet>
    Then, the application is deployed to OC4J. But I still can't login in. There are some errors in application.log:
    07/11/26 03:34:53.703 10.1.3.3.0 Started
    07/11/26 03:34:55.31 gxs: Loading Spring root WebApplicationContext
    07/11/26 03:35:41.890 gxs: Error initializing servlet
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scheduleMarketSale' defined in ServletContext resource [WEB-INF/classes/applicationContext-action-quartz.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [gxs.web.trading.action.ProcedureQuartzAction]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tradingService' defined in class path resource [app-service.xml]: Cannot create inner bean 'gxs.service.impl.TradingServiceImpl#1987b05' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gxs.service.impl.TradingServiceImpl#1987b05' defined in class path resource [app-service.xml]: Cannot resolve reference to bean 'tradingInput' while setting bean property 'tradingInput'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'tradingInput' is defined
    Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [gxs.web.trading.action.ProcedureQuartzAction]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tradingService' defined in class path resource [app-service.xml]: Cannot create inner bean 'gxs.service.impl.TradingServiceImpl#1987b05' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gxs.service.impl.TradingServiceImpl#1987b05' defined in class path resource [app-service.xml]: Cannot resolve reference to bean 'tradingInput' while setting bean property 'tradingInput'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'tradingInput' is defined
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tradingService' defined in class path resource [app-service.xml]: Cannot create inner bean 'gxs.service.impl.TradingServiceImpl#1987b05' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gxs.service.impl.TradingServiceImpl#1987b05' defined in class path resource [app-service.xml]: Cannot resolve reference to bean 'tradingInput' while setting bean property 'tradingInput'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'tradingInput' is defined
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gxs.service.impl.TradingServiceImpl#1987b05' defined in class path resource [app-service.xml]: Cannot resolve reference to bean 'tradingInput' while setting bean property 'tradingInput'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'tradingInput' is defined
    Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'tradingInput' is defined
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:355)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:800)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:237)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
         at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:246)
         at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:128)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:955)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:729)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:416)
         at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBeanDefinition(BeanDefinitionValueResolver.java:198)
         at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:111)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:955)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:729)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:416)
         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
         at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:642)
         at gxs.service.ServiceFactory.getTradingService(ServiceFactory.java:93)
         at gxs.web.trading.action.ProcedureQuartzAction.<init>(ProcedureQuartzAction.java:8)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:82)
         at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:59)
         at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:52)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:639)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:625)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:290)
         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348)
         at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
         at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
         at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
         at org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderServlet.java:83)
         at javax.servlet.GenericServlet.init(GenericServlet.java:256)
         at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2371)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4824)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4748)
         at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4936)
         at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1145)
         at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:741)
         at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:414)
         at com.evermind.server.Application.getHttpApplication(Application.java:570)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1987)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:1906)
         at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:1603)
         at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:238)
         at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:99)
         at oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(ApplicationDeployer.java:547)
         at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:202)
         at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
         at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52)
         at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    07/11/26 03:35:41.890 gxs: Error preloading servlet
    javax.servlet.ServletException: Error initializing servlet
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4851)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4748)
         at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4936)
         at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1145)
         at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:741)
         at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:414)
         at com.evermind.server.Application.getHttpApplication(Application.java:570)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1987)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:1906)
         at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:1603)
         at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:238)
         at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:99)
         at oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(ApplicationDeployer.java:547)
         at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:202)
         at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
         at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52)
         at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    07/11/26 03:35:42.921 gxs: Closing Spring root WebApplicationContext
    07/11/26 03:35:43.281 gxs: 10.1.3.3.0 Started
    null

  • Deploying an app kills all sessions on server.

    We have a problem using OC4J Standalone, where whenever you deploy an app from JDeveloper, all sessions on the server are killed, even for other apps.
    We use 9.0.3, but I have tested this in 9.0.4 with the same results. Is there a setting somewhere that effects this?
    Any help whatsoever would be appreciated.

    Hi,
    You can set persistence-path to store sessions during application deployments. This works in 9.0.4.
    http://download-west.oracle.com/docs/cd/B10464_01/web.904/b10321/confdesc.htm#1019473
    persistence-path: Indicates where to store servlet HttpSession objects for persistence across server restarts or application redeployments. Specify a relative path, which will be relative to an OC4J temporary storage area under the application-deployments directory. There is no default value. If no value is defined, then there is no persistence of session objects across restarts or redeployments.
    thanks
    Debu

  • Deploying War File in OC4J

    Hi,
    I am a new bee to OC4J. I tried to deploy a war file OC4J server, which comes along with Jdeveloper release 10.1.3.
    Steps which I followed.
    1. Copied the war file to <10g-Jdev>\j2ee\home\applications\
    2. added <web-app application="testapp" name="testapp" root="/testapp" access-log="false"/> in <10g-Jdev>\j2ee\home\config\default-web-site.xml
    3. added <application name="testapp" path="../../home/applications/tesapp.war" parent="system" start="true" /> in <10g-Jdev>\j2ee\home\config\server.xml
    4. started the 0c4j using <10g-Jdev>\jdk\start_oc4j.bat
    I got following log
    Starting OC4J with command: "..\..\jdk\bin\java.exe" -jar oc4j.jar
    06/02/15 14:53:13 [SEVERE]: Error instantiating application at file:/X:/10g/j2ee/home/applications/webapp1.war: Unable to get ApplicationConfig for testapp : Unable to find/read file META-INF/application.xml in X:\10g\j2ee\home\applications\webapp1.war archive (META-INF/application.xml)
    2006-02-15 14:53:32.609 NOTIFICATION JMS Router is initiating ...
    2006-02-15 14:53:35.906 ERROR J2EE HTTP0004 Internal error raised tyring to instantiate web-application: testapp defined in web site OC4J 10g (10.1.3) Default Web Site. Application: testapp does not exist. Error creating Web application: testapp
    06/02/15 14:53:35 Oracle Containers for J2EE 10g (10.1.3.0.0) initialized
    06/02/15 14:58:03 Shutting down...
    Can anyone explain me wat should i do for deploying successfully.
    Thanks,
    Siva

    Hello,
    As a word of caution I would strongly recommend that you use proper deploy techniques when deploying WAR/EARs to OC4J (or any J2EE container). You should not be copying files into the applications directory and modifying xml files (even though it might be neccessary at times).
    Please try to follow good J2EE techiniques and write ANT scripts or batch files to do your deployment, its easy to do and reusable. Please also review the deployment guide to familiarise yourself with OC4J deployment tools.
    Thanks,
    Deepak

  • Getting the BEA-101163 error while deploying the app on the server.

    I am getting the deployment error <Could not load user defined listener: java.lang.ClassNotFoundException: > while deploying the app on the weblogic 10.3.3 server.
    Please find the stack trace below :
    ####<Aug 18, 2010 2:56:43 PM UTC> <Error> <HTTP> <ss> <AdminServer> <[STANDBY] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS
    Kernel>> <> <> <1282143403578> <BEA-101163> <Could not load user defined listener:
    java.lang.ClassNotFoundException:
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:280)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:253)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:56)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:37)
         at weblogic.servlet.internal.EventsManager.registerEventListeners(EventsManager.java:123)
         at weblogic.servlet.internal.EventsManager.registerPreparePhaseListeners(EventsManager.java:71)
         at weblogic.servlet.internal.WebAppServletContext.initContextListeners(WebAppServletContext.java:1843)
         at weblogic.servlet.internal.WebAppServletContext.prepare(WebAppServletContext.java:1193)
         at weblogic.servlet.internal.HttpServer.doPostContextInit(HttpServer.java:453)
         at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:428)
         at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:976)
         at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:381)
         at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:507)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:149)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:45)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:1221)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:367)
         at weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:43)
         at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:207)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:98)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
         at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    >
    ####<Aug 18, 2010 2:56:43 PM UTC> <Error> <Deployer> <ss> <AdminServer> <[STANDBY] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'>
    <<WLS Kernel>> <> <> <1282143403640> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1282143360031' for task '2'. Error is:
    'weblogic.application.ModuleException: '
    weblogic.application.ModuleException:
         at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:404)
         at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:507)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:149)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:45)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:1221)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:367)
         at weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:43)
         at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:207)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:98)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
         at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused By: java.lang.ClassNotFoundException:
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:280)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:253)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:56)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:37)
         at weblogic.servlet.internal.EventsManager.registerEventListeners(EventsManager.java:123)
         at weblogic.servlet.internal.EventsManager.registerPreparePhaseListeners(EventsManager.java:71)
         at weblogic.servlet.internal.WebAppServletContext.initContextListeners(WebAppServletContext.java:1843)
         at weblogic.servlet.internal.WebAppServletContext.prepare(WebAppServletContext.java:1193)
         at weblogic.servlet.internal.HttpServer.doPostContextInit(HttpServer.java:453)
         at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:428)
         at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:976)
         at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:381)
         at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:507)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:149)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:45)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:1221)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:367)
         at weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:43)
         at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:207)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:98)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
         at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    >
    ####<Aug 18, 2010 2:56:43 PM UTC> <Warning> <Deployer> <ss> <AdminServer> <[STANDBY] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'>
    <<WLS Kernel>> <> <> <1282143403734> <BEA-149004> <Failures were detected while initiating deploy task for application 'AOS'.>
    ####<Aug 18, 2010 2:56:43 PM UTC> <Warning> <Deployer> <ss> <AdminServer> <[STANDBY] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'>
    <<WLS Kernel>> <> <> <1282143403734> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException:
         at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:404)
         at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:507)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:149)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:45)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:1221)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:367)
         at weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:43)
         at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:207)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:98)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
         at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused By: java.lang.ClassNotFoundException:
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:280)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:253)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:56)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:37)
         at weblogic.servlet.internal.EventsManager.registerEventListeners(EventsManager.java:123)
         at weblogic.servlet.internal.EventsManager.registerPreparePhaseListeners(EventsManager.java:71)
         at weblogic.servlet.internal.WebAppServletContext.initContextListeners(WebAppServletContext.java:1843)
         at weblogic.servlet.internal.WebAppServletContext.prepare(WebAppServletContext.java:1193)
         at weblogic.servlet.internal.HttpServer.doPostContextInit(HttpServer.java:453)
         at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:428)
         at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:976)
         at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:381)
         at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:507)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:149)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:45)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:1221)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:367)
         at weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:43)
         at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:207)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:98)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
         at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    >
    ####<Aug 18, 2010 2:56:43 PM UTC> <Error> <Console> <ss> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'>
    <weblogic> <> <> <1282143403781> <BEA-240003> <Console encountered the following error weblogic.application.ModuleException:
         at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:404)
         at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:507)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:149)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:45)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:1221)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:367)
         at weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:43)
         at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:207)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:98)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
         at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.ClassNotFoundException:
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:280)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:253)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:56)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:37)
         at weblogic.servlet.internal.EventsManager.registerEventListeners(EventsManager.java:123)
         at weblogic.servlet.internal.EventsManager.registerPreparePhaseListeners(EventsManager.java:71)
         at weblogic.servlet.internal.WebAppServletContext.initContextListeners(WebAppServletContext.java:1843)
         at weblogic.servlet.internal.WebAppServletContext.prepare(WebAppServletContext.java:1193)
         at weblogic.servlet.internal.HttpServer.doPostContextInit(HttpServer.java:453)
         at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:428)
         at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:976)
         at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:381)
    >

    Did you fix this issue ? If yes .Can you please share the steps

  • Unable to deploy ADF app from Jdev 10.1.3.3 to OAS 10.1.3.1

    Dear colleagues,
    I'm deploying my app from JDev 10.1.3.3 to OAS 10.1.3.1. And it is driving me crazy, my application is a J2EE ADF application. When I try to deploy I'm getting the following errors: I've tried everything during days, but still I'm not able to run it :(. The application is working fine in Jdeveloper
    This first error, I could solved adding the jhsadfrt-10.1.3.jar in the OracleAS_1\j2ee\home\applib directory. See the error solved:
    Operation failed with error:
    ******************** FIRST ERROR (SOLVED)********************************************
         Missing class: oracle.jheadstart.model.adfbc.v2.JhsApplicationModule
         Dependent class: amaos.model.common.AmaosModule
         Loader: amaos.root:0.0.1
         Code-Source: /D:/product/10.1.3.1/OracleAS_1/j2ee/home/applications/amaos/ejb2.jar
         Configuration: <ejb> in D:\product\10.1.3.1\OracleAS_1\j2ee\home\applications\amaos
    (Failure analysis caught java.lang.IllegalStateException: ClassLoader "amaos.root:0.0.1" (from <application> in /D:/product/10.1.3.1/OracleAS_1/j2ee/home/applications/amaos/): This loader has been closed and should not be in use.)
    ******************* CURRENT ERROR AFTER SOLVING THE FIRST ****************
    The missing class is available from the following locations:
    1. Code-Source: /E:/product/10.1.3.1/OracleAS_2/BC4J/lib/bc4jct.jar (from <code-source> in /E:/product/10.1.3.1/OracleAS_2/j2ee/home/config/server.xml)
    This code-source is available in loader adf.generic.domain:10.1.3.1.
    This code-source is available in loader adf.oracle.domain:10.1.3.1
    2. Code-Source: /E:/product/10.1.3.1/OracleAS_2/BC4J/lib/bc4jmt.jar (from <code-source> in /E:/product/10.1.3.1/OracleAS_2/j2ee/home/config/server.xml)
    This code-source is available in loader adf.generic.domain:10.1.3.1.
    This code-source is available in loader adf.oracle.domain:10.1.3.1
    3. Code-Source: /E:/product/10.1.3.1/OracleAS_2/BC4J/lib/adfm.jar (from <code-source> in /E:/product/10.1.3.1/OracleAS_2/j2ee/home/config/server.xml)
    This code-source is available in loader adf.generic.domain:10.1.3.1.
    This code-source is available in loader adf.oracle.domain:10.1.3.1
    Any ideas?
    Thanks
    Message was edited by:
    Benalúa

    Benalua,
    (sorry, I don't know how to type the "u" with the diacritic mark above it in your name)
    Did you deploy the ADF 10.1.3.3 libraries to the 10.1.3.1 app server? An alternative might be to apply the 10.1.3.3 patch to the 10.1.3.3 app server.
    John

  • Can't deploy my app on  Sun Java System Application Server Platform Edition

    Hi,
    I am trying to deploy me app on the Sun's app server but I get the following error:
    I am using Sun Java System Application Server Platform Edition 8.2
    Invalid Deployment Descriptors in archive jag-ejb.jar in deployment descriptor file META-INF/ejb-jar.xml
    Line 29 Column 15 -- The content of element type "session" must match
    "(description?,display-name?,small-icon?,large-icon?,ejb-name,home?,remote?,local-home?,local?,ejb-class,session-type,transaction-type,env-entry*,ejb-ref*,ejb-local-ref*,security-role-ref*,security-identity?,resource-ref*,resource-env-ref*)". "It deploys on Orion 2.02
    The ejb.xml file is as follows:
      <enterprise-beans>
        <session>
          <display-name>Facade stateless session bean</display-name>
          <ejb-name>ejb/PetardsFacade</ejb-name>
          <home>com.jag.petardscmsbeans.interfaces.PetardsFacadeHome</home>
          <remote>com.jag.petardscmsbeans.interfaces.PetardsFacade</remote>
          <local-home>com.jag.businesslogic.interfaces.FacadeLocalHome</local-home
          ><local>com.jag.businesslogic.interfaces.FacadeLocal</local>
          <ejb-class>com.jag.petardscmsbeans.ejb.PetardsFacadeEJB</ejb-class>
          <session-type>Stateless</session-type>
          <transaction-type>Container</transaction-type>
          <resource-ref>
            <res-ref-name>jdbc/OracleDSRES</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <res-auth>Container</res-auth>
          </resource-ref>
          <env-entry>
            <env-entry-name>DSName</env-entry-name>
            <env-entry-type>java.lang.String</env-entry-type>
            <env-entry-value>jdbc/OracleDSRES</env-entry-value>
          </env-entry>
        </session>
      </enterprise-beans>also, in the error message what does ? and * signify?
    Thanks

    This is an element ordering issue. env-entry is before resource-ref in the schema so it must be declared in the same order.
    --ken                                                                                                                                                                                                                                                                               

  • How coud i do to deploy a app to the website that shiped by j2ee sdk

    i want deploy a app to the website that shiped by j2ee sdk.
    i found the "conf" folder under the J2EE_HOME.but the website is have nothing with the file "server.xml" in this folder.
    how could i do?
    thx

    The J2EE 1.4 Tutorial describes how to deploy applications:
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html

  • Deploying an app from export script stored in the database.

    I am in the situation where I want to deploy a copy of an application programatically into the current workspace, but each against a separate schema. The end game would be to have many copies of the same App in the same workspace (obviously with different application numbers assigned) but each app pointing to a different schema.
    The workflow would be something like this:
    <ol>
    <li>Create a new tablespace for the new schema</li>
    <li>Create the new Schema</li>
    <li>create the required objects in the new schema (we're going to use DataPump for that)
    </li>
    <li>Assign the schema to the current workspace (make it available to use for a new APP)</li>
    <li>Read the app.sql from a BLOB in the database and deploy it into the current workspace pointed to the new schema.</li>
    </ol>
    I was wondering if there are already API's in place that would help me do these things (especially steps 4 and 5).
    I started poking around in the ApEx internals, looking specifically at the deployment of the SAMPLE apps to see if there was anything I could use, but it looks like the WWV_FLOW_SAMPLE_APP package is wrapped so I can't see what it's doing.
    I also looked at the code behind the "COPY APPLICATION" function and it looks like I might be able to use wwv_flow_imp_parser.parse to install the application in the current schema, but would probably need some clarification on whether there are any "gotchas" there.
    If that works, then it seems the hard part is assigning the new schema to the workspace as normally that is done from within the INTERNAL user's workspace.
    Thanks in advance for the help.
    Doug

    Ok... For others who may be interested in this, I have figured out part of the answer...
    To complete steps 2 and 4 mentioned in my original messages (Creating the user and makeing it available to a workspace) here is what I've come up with.
    DECLARE
    l_username varchar2(256);
    l_password varchar2(256);
    l_df_ts    varchar2(256);
    l_tmp_ts   varchar2(256);
    l_PCID     number;
    l_workspace_name varchar2(255);
    BEGIN
    l_username := 'DOUG';
    l_password := 'DOUG';
    l_df_ts    := 'USERS';
    l_tmp_ts   := 'TEMP';
    l_workspace_name := 'HAAS';
    -- CREATE THE USER AND THEN ADD THAT USER TO THE CORRECT WORKSPACE.
    -- First make sure that
    --  1. The name you're trying to create is not a "reserved" name like INTERNAL
    --  2. We're not working in an installation that is "RUNTIME ONLY"
    --  3. We're not working with a schema that is already in place or restricted.
    IF  flows_030100.wwv_flow_provisioning.reserved_schema(p_schema => l_username) = false
    and not (flows_030100.wwv_flow_provisioning.site_admin_is_restricted
              and
             flows_030100.wwv_flow_provisioning.restricted_schema(p_schema => l_username, p_workspace_name => l_worlkspace_name)
    THEN
        -- CREATE THE USER
        flows_030100.wwv_flow_provision.create_user(
        p_username    => l_username,
        p_password    => l_password);
        -- ASSIGN THE TABLESPACEs
        flows_030100.wwv_flow_provision.set_user_tablespace(
        p_username    => l_username,
        p_default_ts  => l_df_ts,
        p_temp_ts     => l_tmp_ts);
        -- Grant the appropriate roles and privs to the user
        flows_030100.wwv_flow_provision.grant_initial_privs(l_username);
        -- Create the link between the workspace and the schema name.
         BEGIN
        -- FIRST get the Workspace ID (known as the PROVISIONING_COMPANY_ID) from the APEX Dictionary.
        -- This assumes that the workspace we're working in is HAAS
            select provisioning_company_id
              into l_PCID
              from flows_030100.wwv_flow_companies
             where short_name = l_workspace_name;
        -- Now insert a row into the company_schema table to line the schema to a workspace.   
            insert into flows_030100.wwv_flow_company_schemas (security_group_id, schema)
            values (l_pcid, upper(l_username));
            commit;
        EXCEPTION
           WHEN NO_DATA_FOUND then
                --IF things fail then we need to kill to drop the user that we created.
                flows_030100.wwv_flow_provision.drop_user(p_username => l_username);
                --Then rais the application error or do whatever...
                raise_application_error(-20100,'Trying to use an invalid worksapce - '|| l_workspace_name);
        END;
    end if;
    end;I'm still trying to work on deploying the APP stored in a BLOB to the workspace and so far have the following code, but get the message :
    ORA-20001: You do not have privs on the DAVID schema.
    ORA-06512: at "FLOWS_030100.WWV_FLOW_IMP_PARSER", line 1599
    ORA-06512: at line 29
    declare
      l_file_id   number := 2113831202674379;
      l_parse_as_schema varchar2(4000) := 'DAVID';
      l_new_ap_ID number;
      l_orig_ap_id number;
      l_workspace_name varchar2(255) := 'HAAS';
      l_PCID     number;
    begin
        execute immediate 'alter session set current_schema = FLOWS_030100';
        flows_030100.wwv_flow_security.g_security_group_id := 10;
        flows_030100.wwv_flow_security.g_user := 'ADMIN';
      -- Import copy from application with new application ID and name
      -- First get the new Application ID
      l_new_ap_id := flows_030100.wwv_flow_utilities.minimum_free_flow;
      BEGIN
        select flow_id
          into l_orig_ap_id
          from flows_FILES.wwv_flow_file_objects$
         where id = l_file_id;
      end;
      flows_030100.wwv_flow_imp_parser.parse (
         p_file_id          => l_file_id,
         p_parse_as_schema  => l_parse_as_schema,   
         p_install_as_flow  => l_new_ap_id,
         p_original_flow_id => l_orig_ap_id,
         p_adjust_offset    => TRUE
      -- Get the Security group ID
          select provisioning_company_id
              into l_PCID
              from flows_030100.wwv_flow_companies
             where short_name = l_workspace_name;
      -- reset name with new application name
      update flows_030100.wwv_flows
      set name = 'TEST_NAME'
      where id = l_new_ap_id
      and security_group_id = l_PCID;
    end;

Maybe you are looking for

  • Itunes 11.1 not recognizing iphone 5

    I have iphone 5 with version 6.0.x installed. After upgrading to iTunes 11.1 my device does not get recognized even I restarted my iphone etc.

  • How to force Work Item Query Policy to refresh its cached query results?

    I have enabled the Work Item Query Policy on my TFS project.  It works as expected, except when using Visual Studio 2013 with the following sequence of steps: User selects Check in Pending Changes from the Source Control Explorer User enters in the I

  • Can I copy a download from the App Store?

    I have an iMac and a MacBook, so obviously I need to install any app on both computers.  I know that I only have to pay once, but is there a way to transfer the new download (or updated app) from one computer to the other?  The problem is bandwidth: 

  • Text not showing up on various phones

    On the mobile site im working on the phone and fax in the footer is not showing up on iphones but its showing up on the androids. How do I fix this issue so it works for the iphones?

  • Problems launching Repository Assistant from Oracle Warehouse Builder

    I have installed the Oracle Warehouse Builder 10g Release 2 although, when i execute the file launch.exe installed at OWB_ORACLE_HOME/bin/, it not work Somebody know something about this problem? Postdata: I have Kaspersky antivirus installed as well