StoreFront Demo failing

Hi,
I was trying to run the store front demo. After clicking StoreFrontUI and then clicking RUN, I received the error below. How do I correct this error?
Thanks,
rc
SEVERE: Server start failed processing configuration
java.lang.InstantiationException: OC4J administrator account is not configured correctly. Please make sure that at least one administration account is created and configured correctly.
     at com.evermind.server.XMLApplicationServerConfig.setPassword(XMLApplicationServerConfig.java:3163)
     at com.evermind.server.XMLApplicationServerConfig.<init>(XMLApplicationServerConfig.java:244)
     at com.evermind.server.ApplicationServer.createConfig(ApplicationServer.java:648)
     at oracle.oc4j.server.ServerFactory$Worker.prepareConfig(ApplicationServerFactory.java:201)
     at oracle.oc4j.server.ServerFactory$Worker.start(ApplicationServerFactory.java:220)
     at oracle.oc4j.server.ServerFactory$Worker.run(ApplicationServerFactory.java:235)
     at java.lang.Thread.run(Thread.java:595)
Dec 29, 2007 8:10:24 PM oracle.oc4j.util.SystemLog logNoStack
SEVERE: Server exiting: ApplicationServer entered state FAILED_IN_CONFIG
Process exited with exit code 1.

Hi,
I am getting the same error while running storefront demo. Were u able to resolve the issue?
Kindly post the solution to solve this.
Thanks,
Priya

Similar Messages

  • StoreFront demo issue

    Hi
    I am newbie to ADF. I downloaded StoreFrontDemo and I am trying to run it. I am getting following
    running wls server log:
    *** Using HTTP port 7101 ***
    *** Using SSL port 7102 ***
    C:\Users\bngajend.ORADEV\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\bin\startWebLogic.cmd
    [waiting for the server to complete its initialization...]
    JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m  -XX:MaxPermSize=512m
    WLS Start Mode=Development
    CLASSPATH=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jdbc_11.1.1\ojdbc6dms.jar;C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_jdev1112\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\JDK160~1\lib\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.5.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrf.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\common\derby\lib\derbyclient.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar
    PATH=C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\native;C:\Oracle\MIDDLE~1\patch_jdev1112\profiles\default\native;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1\bin;C:\Oracle\MIDDLE~1\JDK160~1\jre\bin;C:\Oracle\MIDDLE~1\JDK160~1\bin;C:\app\BNGAJEND\product\11.2.0\dbhome_2\bin;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk1.6.0_30\bin;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8
    *  To start WebLogic Server, use a username and   *
    *  password assigned to an admin-level user.  For *
    *  server administration, use the WebLogic Server *
    *  console at http:\\hostname:port\console        *
    starting weblogic with Java version:
    java version "1.6.0_24"
    Java(TM) SE Runtime Environment (build 1.6.0_24-b50)
    Starting WLS with line:
    C:\Oracle\MIDDLE~1\JDK160~1\bin\java -client   -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m  -XX:MaxPermSize=512m -Dweblogic.Name=DefaultServer -Djava.security.policy=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy -Djavax.net.ssl.trustStore=C:\Users\BNGAJE~1.ORA\AppData\Local\Temp\trustStore8761202059241633349.jks -Djbo.debugoutput=silent -Doracle.jdeveloper.adrs=true -Dweblogic.nodemanager.ServiceEnabled=true  -Xverify:none  -da -Dplatform.home=C:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server  -Djps.app.credential.overwrite.allowed=true -Dcommon.components.home=C:\Oracle\MIDDLE~1\ORACLE~1 -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Ddomain.home=C:\Users\BNGAJE~1.ST-\AppData\Roaming\JDEVEL~1\SYSTEM~1.81\DEFAUL~1 -Djrockit.optfile=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.server.config.dir=C:\Users\BNGAJE~1.ST-\AppData\Roaming\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\config\FMWCON~1\servers\DefaultServer -Doracle.domain.config.dir=C:\Users\BNGAJE~1.ST-\AppData\Roaming\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\config\FMWCON~1  -Digf.arisidbeans.carmlloc=C:\Users\BNGAJE~1.ST-\AppData\Roaming\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\config\FMWCON~1\carml  -Digf.arisidstack.home=C:\Users\BNGAJE~1.ST-\AppData\Roaming\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\config\FMWCON~1\arisidprovider -Doracle.security.jps.config=C:\Users\BNGAJE~1.ST-\AppData\Roaming\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\config\fmwconfig\jps-config.xml -Doracle.deployed.app.dir=C:\Users\BNGAJE~1.ST-\AppData\Roaming\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\servers\DefaultServer\tmp\_WL_user -Doracle.deployed.app.ext=\- -Dweblogic.alternateTypesDirectory=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.ossoiap_11.1.1,C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.oamprovider_11.1.1 -Djava.protocol.handler.pkgs=oracle.mds.net.protocol  -Dweblogic.jdbc.remoteEnabled=false -Dwsm.repository.path=C:\Users\BNGAJE~1.ST-\AppData\Roaming\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\oracle\store\gmds   -Dweblogic.management.discover=true  -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_jdev1112\profiles\default\sysext_manifest_classpath  weblogic.Server
    Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode)
    <May 28, 2013 4:41:13 PM IST> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
    <May 28, 2013 4:41:13 PM IST> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>
    <May 28, 2013 4:41:13 PM IST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 19.1-b02 from Sun Microsystems Inc.>
    <May 28, 2013 4:41:14 PM IST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.5.0  Fri Apr 1 20:20:06 PDT 2011 1398638 >
    <May 28, 2013 4:41:15 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <May 28, 2013 4:41:15 PM IST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
    <May 28, 2013 4:41:15 PM IST> <Notice> <LoggingService> <BEA-320400> <The log file C:\Users\bngajend.ST-IDC\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <May 28, 2013 4:41:15 PM IST> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Users\bngajend.ST-IDC\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log00073. Log messages will continue to be logged in C:\Users\bngajend.ST-IDC\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log.>
    <May 28, 2013 4:41:15 PM IST> <Notice> <Log Management> <BEA-170019> <The server log file C:\Users\bngajend.ST-IDC\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log is opened. All server side log events will be written to this file.>
    May 28, 2013 4:41:17 PM oracle.security.jps.internal.credstore.ssp.CsfWalletManager openWallet
    WARNING: Opening of wallet based credential store failed. Reason java.io.IOException: C:\Users\bngajend.ST-IDC\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\config\fmwconfig\bootstrap\cwallet.sso (Access is denied)
    May 28, 2013 4:41:17 PM oracle.security.jps.internal.keystore.file.FileKeyStoreManager openKeyStore
    WARNING: Opening of file based farm keystore failed.
    oracle.security.jps.service.keystore.KeyStoreServiceException: JPS-06514: Opening of file based farm keystore failed.
         at oracle.security.jps.internal.keystore.file.FileKeyStoreManager.openKeyStore(FileKeyStoreManager.java:351)
         at oracle.security.jps.internal.keystore.file.FileKeyStoreServiceImpl.doInit(FileKeyStoreServiceImpl.java:101)
         at oracle.security.jps.internal.keystore.file.FileKeyStoreServiceImpl.<init>(FileKeyStoreServiceImpl.java:73)
         at oracle.security.jps.internal.keystore.file.FileKeyStoreServiceImpl.<init>(FileKeyStoreServiceImpl.java:63)
         at oracle.security.jps.internal.keystore.KeyStoreProvider.getInstance(KeyStoreProvider.java:157)
         at oracle.security.jps.internal.keystore.KeyStoreProvider.getInstance(KeyStoreProvider.java:64)
         at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.findServiceInstance(ContextFactoryImpl.java:139)
         at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.getContext(ContextFactoryImpl.java:170)
         at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.getContext(ContextFactoryImpl.java:191)
         at oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.getContext(JpsContextFactoryImpl.java:132)
         at oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.getContext(JpsContextFactoryImpl.java:127)
         at oracle.security.jps.internal.policystore.PolicyUtil$1.run(PolicyUtil.java:850)
         at oracle.security.jps.internal.policystore.PolicyUtil$1.run(PolicyUtil.java:844)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.internal.policystore.PolicyUtil.getDefaultPolicyStore(PolicyUtil.java:844)
         at oracle.security.jps.internal.policystore.PolicyDelegationController.<init>(PolicyDelegationController.java:291)
         at oracle.security.jps.internal.policystore.PolicyDelegationController.<init>(PolicyDelegationController.java:284)
         at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(JavaPolicyProvider.java:270)
         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:513)
         at java.lang.Class.newInstance0(Class.java:355)
         at java.lang.Class.newInstance(Class.java:308)
         at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.loadOPSSPolicy(CommonSecurityServiceManagerDelegateImpl.java:1339)
         at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1018)
         at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:873)
         at weblogic.security.SecurityService.start(SecurityService.java:141)
         at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    <May 28, 2013 4:41:17 PM IST> <Error> <Security> <BEA-090892> <The loading of OPSS java security policy provider failed due to exception, see the exception stack trace or the server log file for root cause. If still see no obvious cause, enable the debug flag -Djava.security.debug=jpspolicy to get more information. Error message: oracle.security.jps.JpsException: [PolicyUtil] Exception while getting default policy Provider>
    <May 28, 2013 4:41:17 PM IST> <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: weblogic.security.SecurityInitializationException: The loading of OPSS java security policy provider failed due to exception, see the exception stack trace or the server log file for root cause. If still see no obvious cause, enable the debug flag -Djava.security.debug=jpspolicy to get more information. Error message: oracle.security.jps.JpsException: [PolicyUtil] Exception while getting default policy Provider
    weblogic.security.SecurityInitializationException: The loading of OPSS java security policy provider failed due to exception, see the exception stack trace or the server log file for root cause. If still see no obvious cause, enable the debug flag -Djava.security.debug=jpspolicy to get more information. Error message: oracle.security.jps.JpsException: [PolicyUtil] Exception while getting default policy Provider
         at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.loadOPSSPolicy(CommonSecurityServiceManagerDelegateImpl.java:1398)
         at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1018)
         at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:873)
         at weblogic.security.SecurityService.start(SecurityService.java:141)
         at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
         Truncated. see log file for complete stacktrace
    Caused By: oracle.security.jps.JpsRuntimeException: oracle.security.jps.JpsException: [PolicyUtil] Exception while getting default policy Provider
         at oracle.security.jps.internal.policystore.PolicyDelegationController.<init>(PolicyDelegationController.java:293)
         at oracle.security.jps.internal.policystore.PolicyDelegationController.<init>(PolicyDelegationController.java:284)
         at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(JavaPolicyProvider.java:270)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         Truncated. see log file for complete stacktrace
    Caused By: oracle.security.jps.JpsException: [PolicyUtil] Exception while getting default policy Provider
         at oracle.security.jps.internal.policystore.PolicyUtil.getDefaultPolicyStore(PolicyUtil.java:899)
         at oracle.security.jps.internal.policystore.PolicyDelegationController.<init>(PolicyDelegationController.java:291)
         at oracle.security.jps.internal.policystore.PolicyDelegationController.<init>(PolicyDelegationController.java:284)
         at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(JavaPolicyProvider.java:270)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         Truncated. see log file for complete stacktrace
    Caused By: java.security.PrivilegedActionException: oracle.security.jps.JpsException: [PolicyUtil] Unable to obtain default JPS Context!
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.internal.policystore.PolicyUtil.getDefaultPolicyStore(PolicyUtil.java:844)
         at oracle.security.jps.internal.policystore.PolicyDelegationController.<init>(PolicyDelegationController.java:291)
         at oracle.security.jps.internal.policystore.PolicyDelegationController.<init>(PolicyDelegationController.java:284)
         at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(JavaPolicyProvider.java:270)
         Truncated. see log file for complete stacktrace
    Caused By: oracle.security.jps.JpsException: [PolicyUtil] Unable to obtain default JPS Context!
         at oracle.security.jps.internal.policystore.PolicyUtil$1.run(PolicyUtil.java:860)
         at oracle.security.jps.internal.policystore.PolicyUtil$1.run(PolicyUtil.java:844)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.internal.policystore.PolicyUtil.getDefaultPolicyStore(PolicyUtil.java:844)
         at oracle.security.jps.internal.policystore.PolicyDelegationController.<init>(PolicyDelegationController.java:291)
         Truncated. see log file for complete stacktrace
    Caused By: oracle.security.jps.service.keystore.KeyStoreServiceException: JPS-06514: Opening of file based farm keystore failed.
         at oracle.security.jps.internal.keystore.file.FileKeyStoreManager.openKeyStore(FileKeyStoreManager.java:351)
         at oracle.security.jps.internal.keystore.file.FileKeyStoreServiceImpl.doInit(FileKeyStoreServiceImpl.java:101)
         at oracle.security.jps.internal.keystore.file.FileKeyStoreServiceImpl.<init>(FileKeyStoreServiceImpl.java:73)
         at oracle.security.jps.internal.keystore.file.FileKeyStoreServiceImpl.<init>(FileKeyStoreServiceImpl.java:63)
         at oracle.security.jps.internal.keystore.KeyStoreProvider.getInstance(KeyStoreProvider.java:157)
         Truncated. see log file for complete stacktrace
    >
    <May 28, 2013 4:41:17 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
    <May 28, 2013 4:41:17 PM IST> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
    <May 28, 2013 4:41:17 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
    Process exited. StoreFront module log :
    Target StoreFrontUI.jpr is not runnable, using default target adfc-config.xml.I am not sure but I think issue is in starting wls not with demo app. Can anyone assist in going forward with this. I am trying to run the storefront demo application.
    Thanks in advance!

    Hi,
    I am getting the same error while running storefront demo. Were u able to resolve the issue?
    Kindly post the solution to solve this.
    Thanks,
    Priya

  • StoreFront demo: oracle.adf.library.webapp.LibraryFilter?

    Heya gang
    I hope somebody can help me.
    In the 11gTP StoreFront demo, the web.xml file includes a <filter>ADFLibraryFilter</filter> with a <filter-class>oracle.adf.library.webapp.LibraryFilter</filter-class>. I'm curious to know what this filter does; I assume it's a customisation for the StoreFront demo.
    Does anybody know where the source code for this class exists? I've searched the source code and libraries with no success. It must be there somewhere?
    Any help appreciated.
    Regards,
    CM.

    Thanks Amjad. It worked for me as well!!
    I think the reasoning behind this is: If we deploy it from the Application tab, it deploys the EAR file whereas simply right clicking the project and deploy, deploys the WAR file.

  • Oracle FOD Storefront demo install problem

    I"m using Jdev Studio V 11.1.1.4.0 and I downloaded PS3 (build 5923) demo version. Firstly, do I have the right demo version for my Jdev?
    Second, I am not able to install this. My build.properties looks like this:
    # Master Ant properties file for Fusion Order Demo
    # All build files refer to this master list of properties
    # Continuous builds override these settings
    # $Id: build.properties 812 2007-02-20 07:14:33Z lmunsing $
    # Base Directory for library lookup
    jdeveloper.home=C:/JdevInstall
    src.home=..//..
    # JDBC info used to create Schema
    jdbc.driver=oracle.jdbc.OracleDriver
    jdbc.urlBase=jdbc:oracle:thin:@<dbserver_internal_ip>
    jdbc.port=1521
    jdbc.sid=orclDW
    # Information about the default setup for the demo user.
    db.adminUser=SYSTEM
    db.demoUser=FOD
    db.demoUser.password=<SYSPASS>
    db.demoUser.tablespace=USERS
    db.demoUser.tempTablespace=TEMP
    when I try to run build.xml, I get the the following errors
    Buildfile: C:\fusiondemox\PS3_tag2\Infrastructure\Ant\build.xml
    init:
    [javac] Compiling 1 source file to C:\fusiondemox\PS3_tag2\Infrastructure\Ant\classes
    setProperties:
    createDatabase:
    refreshSchema:
    BUILD FAILED
    C:\fusiondemox\PS3_tag2\Infrastructure\Ant\build.xml:51: The following error occurred while executing this line:
    C:\fusiondemox\PS3_tag2\Infrastructure\DBSchema\build.xml:91: The following error occurred while executing this line:
    C:\fusiondemox\PS3_tag2\Infrastructure\DBSchema\build.xml:56: The following error occurred while executing this line:
    C:\fusiondemox\PS3_tag2\Infrastructure\DBSchema\build.xml:28: C:\wlserver_10.3\server\lib not found.
    Total time: 8 seconds
    I searched the forum and I noticed a couple of similar issues where the build cannot find the server lib. I have tried some of the suggestions like changing the direction of the backslash '/', but thiese errors persist.
    Also the second error (91) refers to 'arg2="${db.demoUser.password}"/>' in the build.xml, which is the demo user PW specified in the build.properties. So I don't understand why this would create an error since this PW is already specified. Also these errors are still the same whether I enter the correct admin password or an incorrect admin password.
    Any advice is greatly appreciated. Thanks, J

    Try:
    jdeveloper.home=C:/JdevInstall/jdeveloper
    John

  • BPEL Demo fails on getCustomerSSN with "Not authorized"

    Hi there,
    I installed the BPEL LoanFlowPlus demo (using obant - everything installed without errors) and entered some data in the LoanFlowPlusUI. The BPEL process started, but fails on getCustomerSSN.
    [2006/11/06 16:01:38]
    Faulted while invoking operation "getCustomerSSN" on provider "customerService".
    <messages>
    <input>
    <getCustomerSSNRequest>
    <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="email">
    <email>[email protected]</email>
    </part>
    </getCustomerSSNRequest>
    </input>
    <fault>
    <bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
    <part name="summary">
    <summary>
    Failed to lookup EJB home using JNDI name 'ejb/session/CustomerService'; nested exception is: javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException: Not authorized; nested exception is:
    javax.naming.AuthenticationException: Not authorized [Root exception is javax.naming.AuthenticationException: Not authorized]
    </summary>
    </part>
    </bindingFault>
    </fault>
    </messages>
    What do I need to change to make it work?
    TIA
    Roel

    It's usually the file "<SOA_Suite_Home>\bpel\samples\demos\LoanDemoPlus\LoanFlowPlus\bpel\bpel.xml".
    Change the password value in
    <property name="java.naming.security.credentials">welcome1</property>
    Thanks,
    Peter Herran

  • Tomcat 6 - Deployment of the ADF Rich Client Demo Fails

    I have been able to deploy and run the ADF Rich Client Demo in the embedded Oracle Weblogic server and a standalone Weblogic server.
    However, when I deploy the application to an instance of Tomcat 6 (6.0.18) I get the following:
    Dec 1, 2008 2:06:06 PM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Dec 1, 2008 2:06:06 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 297 ms
    Dec 1, 2008 2:06:06 PM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Dec 1, 2008 2:06:06 PM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
    Dec 1, 2008 2:06:06 PM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    Dec 1, 2008 2:06:06 PM org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    Dec 1, 2008 2:06:06 PM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/15 config=null
    Dec 1, 2008 2:06:06 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 493 ms
    Dec 1, 2008 2:21:37 PM org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive adf-richclient-demo.war
    Dec 1, 2008 2:21:52 PM org.apache.catalina.core.StandardContext start
    ***SEVERE: Error filterStart***
    Dec 1, 2008 2:21:52 PM org.apache.catalina.core.StandardContext start
    SEVERE: Context [adf-richclient-demo] startup failed due to previous errors
    I have tried the deployment from within JDeveloper 11g and also by dropping the WAR file into the Tomcat container webapps directory.
    Any one know why this is happening?
    Thanks,
    Vince

    Jonn,
    Thanks for the pointer.
    I located the missing libraries by finding those that looked like the ones you recommended. The locations can be found by looking them up in the JDeveloper project Libraries and Classpath (click on an entry and select the view button):
    jsf-ri-12.war
    jsf-ri.jar
    jsf-api.jar
    glassfish.jstl_1.2.0.1.jar
    I copied these to the tomcat-6.0.18\lib level rather than putting them in the project lib.
    Works great.
    Thanks again for the help.
    Vince

  • Forms9i Demos: Fails to Start

    The demos look good! However, when I installed the demos in my machine (I'm running Windows XP), and tried to start it, I got this error:
    http://209.107.127.112:8888/forms90demo/demo90.html
    Any help?
    Thanks,
    [email protected]

    That's the version that I downloaded. Actually, it installed with no errors. But when I click on the icon to launch the demos, I get the error that it couldn't find the url (sorry, I missed in the original email to specify that the error was that it couldn't find the url address):
    http://209.107.127.112:8888/forms90demo/demo90.html
    209.107.127.112 is the IP address of my machine as assigned by my ISP. I tried replacing it with localhost, but that didn't work either. Perhaps I need to use a different port number? The directory /forms90demo/ and the file demo90.html are there.
    Thanks for the help.

  • Migration Workbenche: Online Demo FAILED!!!

    I'm not able to open the URL of the ONLINE DEMO for Migration Workbench. The message that the URL doesn't exist appears.
    Which is the correct URL?
    Barbara

    Thank you for pointing out this issue. We have notified the product team. This issue will be resolved in the next few days.

  • Oracle calendar SDK demo fails.

    Hi
    I downloaded oracle sdk. I can able to run the C program calendar.c successfully. But when I run java sample calendar.java I can able to connect to the server, I can't proceed after that. I am getting the error "fetchEventsByRange returned status'CAPI_STAT_LIBRARY_SERVER_SUPPORT'". Did anyone able to run the java demo successfully?
    Any help is really appreciated. Thanls in advance.
    Hari

    Hi Hari,
    The calendar.c demo program uses the older, deprecated event APIs, while the calendar.java program uses the new event APIs through the CSDK JNI layer. However, these new event APIs require a 9.0.4 Calendar server. Is your calendar server a 9.0.4 server? You can check by running the universion utility that's installed with the calendar server.
    Graham

  • GlassFish v2.1.1 and adf demo

    Hello,
    I'm trying to deploy the rich client component runtime demo(see this) on "Sun GlassFish Enterprise Server v2.1.1". This is a clean install, i havn't deployed anything else. When i drop rcf-dvt-demo.war and surf to http://localhost:8080/rcf-dvt-demo/ i get http status 503. I have tried to google but with no luck..
    My logs says:
    [#|2010-04-10T20:00:17.972+0200|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=17;_ThreadName=Timer-9;/C:/Sun/SDK/domains/domain1/autodeploy/rcf-dvt-demo.war;_RequestID=bacf3ad7-227b-4135-a059-145209b455fe;|"DPL8004: file open failure; file = /C:/Sun/SDK/domains/domain1/autodeploy/rcf-dvt-demo.war"|#]
    [#|2010-04-10T20:00:17.988+0200|INFO|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=17;_ThreadName=Timer-9;|[AutoDeploy] The copy operation for C:\Sun\SDK\domains\domain1\autodeploy\rcf-dvt-demo.war into the auto-deploy directory may still be in progress or the file may be corrupt; will retry periodically until at least Sat Apr 10 20:00:47 CEST 2010|#]
    [#|2010-04-10T20:00:19.972+0200|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=17;_ThreadName=Timer-9;/C:/Sun/SDK/domains/domain1/autodeploy/rcf-dvt-demo.war;_RequestID=bacf3ad7-227b-4135-a059-145209b455fe;|"DPL8004: file open failure; file = /C:/Sun/SDK/domains/domain1/autodeploy/rcf-dvt-demo.war"|#]
    [#|2010-04-10T20:00:21.972+0200|INFO|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=17;_ThreadName=Timer-9;|[AutoDeploy] Selecting file C:\Sun\SDK\domains\domain1\autodeploy\rcf-dvt-demo.war for autodeployment.|#]
    [#|2010-04-10T20:00:48.925+0200|SEVERE|sun-appserver2.1|org.apache.jasper.servlet.JspServlet|_ThreadID=18;_ThreadName=httpSSLWorkerThread-8080-1;_RequestID=88635a24-548b-47de-a8a6-c0b35438ee8e;|PWC6117: File "C:\Sun\SDK\domains\domain1\docroot\rcf-dvt-demo\faces\index.jspx" not found|#]
    [#|2010-04-10T20:00:52.706+0200|WARNING|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=17;_ThreadName=Timer-9;_RequestID=bacf3ad7-227b-4135-a059-145209b455fe;|Error in annotation processing: java.lang.NoClassDefFoundError: weblogic/servlet/http/AbstractAsyncServlet|#]
    [#|2010-04-10T20:00:53.253+0200|INFO|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=17;_ThreadName=Timer-9;|deployed with moduleid = rcf-dvt-demo|#]
    [#|2010-04-10T20:00:54.534+0200|INFO|sun-appserver2.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=17;_ThreadName=Timer-9;/rcf-dvt-demo;|Initializing Mojarra (1.2_13-b01-FCS) for context '/rcf-dvt-demo'|#]
    [#|2010-04-10T20:00:54.800+0200|SEVERE|sun-appserver2.1|javax.enterprise.system.container.web|_ThreadID=17;_ThreadName=Timer-9;_RequestID=bacf3ad7-227b-4135-a059-145209b455fe;|WebModule[/rcf-dvt-demo]PWC1275: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
    com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! This parser does not support specification "null" version "null"
    at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:215)
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:196)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4655)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:5364)
    at com.sun.enterprise.web.WebModule.start(WebModule.java:345)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:986)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:970)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:704)
    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1649)
    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1254)
    at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:182)
    at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:278)
    at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:1005)
    at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:992)
    at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:470)
    at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:182)
    at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)
    at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:231)
    at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298)
    at com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132)
    at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:280)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:298)
    at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsConfigMBean.java:584)
    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:597)
    at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:390)
    at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:373)
    at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:477)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
    at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
    at $Proxy1.invoke(Unknown Source)
    at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
    at com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:170)
    at com.sun.enterprise.deployment.autodeploy.AutoDeployer.invokeDeploymentService(AutoDeployer.java:583)
    at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployJavaEEArchive(AutoDeployer.java:564)
    at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:495)
    at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:270)
    at com.sun.enterprise.deployment.autodeploy.AutoDeployControllerImpl$AutoDeployTask.run(AutoDeployControllerImpl.java:374)
    at java.util.TimerThread.mainLoop(Timer.java:512)
    at java.util.TimerThread.run(Timer.java:462)
    Caused by: java.lang.UnsupportedOperationException: This parser does not support specification "null" version "null"
    at javax.xml.parsers.DocumentBuilderFactory.setSchema(DocumentBuilderFactory.java:561)
    at com.sun.faces.config.ConfigManager$ParseTask.getBuilderForSchema(ConfigManager.java:522)
    at com.sun.faces.config.ConfigManager$ParseTask.getDocument(ConfigManager.java:455)
    at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:416)
    at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:373)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)
    |#]
    [#|2010-04-10T20:00:54.925+0200|SEVERE|sun-appserver2.1|org.apache.catalina.core.StandardContext|_ThreadID=17;_ThreadName=Timer-9;_RequestID=bacf3ad7-227b-4135-a059-145209b455fe;|PWC1306: Startup of context /rcf-dvt-demo failed due to previous errors|#]
    [#|2010-04-10T20:00:55.675+0200|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|_ThreadID=19;_ThreadName=pool-7-thread-4;_RequestID=2bc4c823-f1c0-45e5-969b-f3f22885822d;|
    XML-22000: (Fatal Error) Error while parsing XSL file (null).
    |#]
    [#|2010-04-10T20:00:55.691+0200|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|_ThreadID=20;_ThreadName=pool-7-thread-1;_RequestID=cfc7e4d3-aeab-474f-8df9-2f1b6d83cc4a;|
    XML-22000: (Fatal Error) Error while parsing XSL file (null).
    |#]
    [#|2010-04-10T20:00:55.691+0200|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|_ThreadID=21;_ThreadName=pool-7-thread-2;_RequestID=496239eb-bb33-45c9-acc7-220f68657421;|
    XML-22000: (Fatal Error) Error while parsing XSL file (null).
    |#]
    [#|2010-04-10T20:00:55.691+0200|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|_ThreadID=22;_ThreadName=pool-7-thread-3;_RequestID=9e58c64e-e9ef-445f-b1b3-d51e7278b14f;|
    XML-22000: (Fatal Error) Error while parsing XSL file (null).
    |#]
    [#|2010-04-10T20:00:55.691+0200|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|_ThreadID=23;_ThreadName=pool-7-thread-5;_RequestID=be2009eb-605f-4137-9fe6-99a7142bcc67;|
    XML-22000: (Fatal Error) Error while parsing XSL file (null).
    |#]
    [#|2010-04-10T20:00:55.753+0200|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=17;_ThreadName=Timer-9;|
    classLoader = WebappClassLoader
    delegate: true
    repositories:
    /WEB-INF/classes/
    ----------> Parent Classloader:
    EJBClassLoader :
    urlSet = []
    doneCalled = false
    Parent -> java.net.URLClassLoader@1370b82
    |#]
    [#|2010-04-10T20:00:55.769+0200|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=17;_ThreadName=Timer-9;|
    SharedSecrets.getJavaNetAccess()=java.net.URLClassLoader$7@ac6572|#]
    [#|2010-04-10T20:00:55.800+0200|INFO|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=17;_ThreadName=Timer-9;|[AutoDeploy] Successfully autodeployed : C:\Sun\SDK\domains\domain1\autodeploy\rcf-dvt-demo.war.|#]

    The demo you loaded is for Weblogic server, not for glassfish. You can't just deploy the demo and run it.
    I'm not even sure it has been done jet, but may be someone has successfully done it.
    Have you searched (google) for a solution?
    Timo

  • Dmkmdemo: kmBuildTask_jdm failed

    I just want to run the dmkmdemo in Oracle10g2 but both pl/sql und java demo fails while the dmocdemo runs without problems. The output of the dmkmdemo.java is:
    --- Prepare Data ---
    kmPrepareBuildTask_jdm is started, please wait. kmPrepareBuildTask_jdm is successful.
    kmcPrepareApplyTask_jdm is started, please wait. kmcPrepareApplyTask_jdm is successful.
    kmBuildTask_jdm is started, please wait. kmBuildTask_jdm is failed.
    Failure Description: ORA-40101: Data Mining-Systemfailure ORA-40101: Data Mining-Systemfailure ORA-06502: PL/SQL: numerical or value failure: failure converting character to number
    ORA-06512: in "DMSYS.DBMS_DATA_MINING", line 305
    ORA-06512: in "DMSYS.DBMS_JDM_INTERNAL", line 157
    ORA-06512: in "SYS.DBMS_SYS_ERROR", Zeile 86
    ORA-06512: in "DMSYS.DBMS_JDM_INTERNAL", line 179
    ORA-06512: in line 1
    javax.datamining.ObjectNotFoundException: model kmModel_jdm was not found.
         at oracle.dmt.jdm.resource.OraExceptionHandler.createException(OraExceptionHandler.java:131)
         at oracle.dmt.jdm.resource.OraExceptionHandler.createException(OraExceptionHandler.java:91)
         at oracle.dmt.jdm.resource.OraConnection.createException(OraConnection.java:606)
         at oracle.dmt.jdm.resource.OraLookupManagerImpl.retrieveObject(OraLookupManagerImpl.java:155)
         at oracle.dmt.jdm.resource.OraConnection.retrieveObject(OraConnection.java:401)
         at dmkmdemo.buildModel(dmkmdemo.java:305)
         at dmkmdemo.main(dmkmdemo.java:160)
    What has to be changed to run the demo successfully?

    I mean what is the database charcater set. Such as utf-8, french locale etc., when you installed your database it must have asked you for the characterset. By default I believe UTF-8. As you are using the same demo programs and the associated data. It must be something related to your instllation specific issue.
    There is a known bug that cause this kind of error when your database locale (character set) that uses , instead of . for decimal representations. The fix will be avaialble in the next patch.
    Regards
    Sunil

  • Cannot connect to p6ws using demo application

    Hi everyone,
    I started a few days ago to take some interest in Primavera p6 as a was asked to connect to an existing Primavera P6 server. First of all I wanted to do a standalone installation and see what was this about...
    Well, I was provided with some information about the current primavera P6 version that was being used, (Release 7) so I started to download the Primavera P6 project management.
    So far so good, I installed it using SQL Server and (after a few tries) i succeeded in login into the program.
    After some reading I decided to use Primavera P6 web services as the way to connect my system to the current Primavera P6 system. So I willingly downloaded the P6 Webservices module and Weblogic 10g R3 (recommended version in the administrator guide pdf).
    After downloading both files I installed without much trouble Primavera P6 Web services and I linked it to the pmdb database in my system successfully (or at least it says so) and right after that I installed Weblogic 10g R3 in production mode in my system aswell. I created a new domain called test_primavera.
    I managed to start Weblogic using "startWeblogic.cmd" script existing in weblogichome/user_projects/domains/bin folder.
    The problems begin now...
    I follow up all the steps described in the administrator guide and I try to launch the p6ws.war existing in the previously installed p6webservices_1 folder in my system.
    The first problem I found is that Weblogic is not able to finde a class named CXFServlet as it jar is not located in the classpath. Well I've checked my %CXF_HOME% environment variable and it was ok (otherwise I would not be able to install P6 WebServices and I tried manually to add %CXF_HOME% folder to the classpath with no result. Checking the startWeblocig.cmd log I discover that Weblogic is always looking for classes in the already deployed war folder which in my case is "C:\weblogichome\user_projects\domains\test_primavera\servers\AdminServer\tmp\_WL_user\p6ws\nmdpik\war\WEB-INF\lib" and no matter what I did it always looked for those classes in that folder. In a desperate attempt I copied all the jars from the %CXF_HOME%/modules folder into that folder and found a new error, Outofmemoryerror PermGenSpace.
    I managed to fix this error playing with the memory variables and I finally managed to launch the p6ws war in my system (yay!!).
    I am now able to go open the browser (http://mycomputer:7001/p6ws) and I see what I think is the primavera p6 webservice activated. But I cannot use the p6wsdemo.jar to connect to the server it always says "Demo failed. Please check if the server is running and try again." I configured the authentication using Username token profile and I've tried the 3 users I know in the system (pubuser, privuser and admin).
    I have tried also to create a small program to login in the system but with no result aswel, here is the code
    private static boolean testLogin()
              URL wsdlURL = null;
              try {
                   wsdlURL = new URL("http://mycomputer:7001/p6ws/services/AuthenticationService?wsdl");
              } catch (MalformedURLException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              AuthenticationService service = new AuthenticationService(wsdlURL);
              AuthenticationServicePortType servicePort = service.getAuthenticationServiceSOAP12PortHttp();
              BindingProvider bp = (BindingProvider)servicePort;
              boolean success = false;
              try {
                   success = servicePort.login("admin", "admin", 1); // <- Line 119
              } catch (IntegrationFault e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              return success;
    When I try to run this program I always get the following error:
    Information: Creating Service {http://xmlns.oracle.com/Primavera/P6/V7/WS/Authentication}AuthenticationService from WSDL: http://mycomputer:7001/p6ws/services/AuthenticationService?wsdl
    com.primavera.ws.p6.authentication.IntegrationFault: Fatal error: Could not initialize class com.primavera.integration.server.ServerFacade
         at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:128)
         at $Proxy41.login(Unknown Source)
         at p6webservice.testLogin(p6webservice.java:119)
         at p6webservice.main(p6webservice.java:71)
    Now I am completely stuck.
    I am working in a Windows 8 - 64 bit system using Primavera P6 Release 7 and Weblogic 10g R3. I have thought about installing everything in a Win xp 32 bit emulated system but I would like to avoid it. Any ideas?
    Any help would be great
    Thanks in advance!
    Regards
    PS: Sorry if my english causes you any trouble :)
    Edited by: 991858 on 05-mar-2013 7:21

    Try switching to HTTP Cookies for authentication. This is a simpler method and usually works well with .Net.
    Also, you should be able to call the ReadDatabaseInstances without logging in to test if the web service is returning values.
    var dbinstances = AuthService.ReadDatabaseInstances(new object());
    I have a helper method that I use with HTTP Cookies for authentication.
    using System;
    using System.Linq;
    using System.Net;
    using Primavera.Ws.P6.Authentication;
    namespace Fortum.ServiceHelpers.P6Api
    public class P6AuthenticationService
    private const String TransportUrl = "http://<hostname>:<p6WsPort number>/p6ws/services/AuthenticationService";
    public AuthenticationService AuthService;
    private readonly Login _login;
    public CookieContainer CookieContainer { get; set; }
    private string _server;
    public String Server
    get { return _server; }
    set
    _server = value;
    AuthService.Url = UpdateP6HostUrl();
    private int _port;
    public Int32 Port
    get { return _port; }
    set
    _port = value;
    AuthService.Url = UpdateP6HostUrl();
    public Boolean IsLoggedOn { get; set; }
    private string _username;
    public String Username
    get { return _username; }
    set
    _username = value;
    login.UserName = username;
    private string _password;
    public String Password
    get { return _password; }
    set
    _password = value;
    login.Password = password;
    private int _databaseInstanceId;
    public Int32 DatabaseInstanceId
    get { return _databaseInstanceId; }
    set
    _databaseInstanceId = value;
    login.DatabaseInstanceId = databaseInstanceId;
    _login.DatabaseInstanceIdSpecified = true;
    public P6AuthenticationService()
    _login = new Login();
    AuthService = new AuthenticationService();
    IsLoggedOn = false;
    public P6AuthenticationService(String p6WsServer, Int32 p6WsPort)
    : this()
    Server = p6WsServer;
    Port = p6WsPort;
    AuthService.Url = UpdateP6HostUrl();
    AuthService.CookieContainer = new CookieContainer();
    public String UpdateP6HostUrl()
    return TransportUrl.Replace("<hostname>", Server).Replace("<p6WsPort number>", Port.ToString());
    public Boolean DatabaseExists(String databaseName)
    var retVal = false;
    if (databaseName == null) throw new ArgumentNullException("databaseName");
    if (GetDatabaseInstance(databaseName) != null) retVal = true;
    return retVal;
    public Boolean DatabaseExists(int databaseId)
    var retVal = false;
    if (databaseId < 1) throw new ArgumentOutOfRangeException("databaseId");
    if (GetDatabaseInstance(databaseId) != null) retVal = true;
    return retVal;
    public Int32? GetDatabaseInstanceID(String databaseName)
    if (databaseName == null) throw new ArgumentNullException("databaseName");
    var databaseInstances = ReadDatabaseInstances().ToList();
    var instance = databaseInstances.FirstOrDefault(x => x.DatabaseName.IsEqualTo(databaseName, true));
    if (instance != null) return instance.DatabaseInstanceId;
    return null;
    public ReadDatabaseInstancesResponseDatabaseInstance GetDatabaseInstance(String databaseName)
    if (databaseName == null) throw new ArgumentNullException("databaseName");
    var databaseInstances = ReadDatabaseInstances().ToList();
    return databaseInstances.FirstOrDefault(instance => instance.DatabaseName.IsEqualTo(databaseName, true));
    public ReadDatabaseInstancesResponseDatabaseInstance GetDatabaseInstance(int databaseId)
    if (databaseId < 1) throw new ArgumentOutOfRangeException("databaseId");
    var databaseInstances = ReadDatabaseInstances().ToList();
    return databaseInstances.FirstOrDefault(instance => databaseId == instance.DatabaseInstanceId);
    public ReadDatabaseInstancesResponseDatabaseInstance[] ReadDatabaseInstances()
    var dbinstances = AuthService.ReadDatabaseInstances(new object());
    return dbinstances;
    public Boolean Login(string username, string password)
    _login.UserName = username;
    _login.Password = password;
    if (AuthService == null) return false;
    AuthService.Login(_login);
    CookieContainer = AuthService.CookieContainer;
    IsLoggedOn = true;
    return true;
    public void Logout()
    AuthService.Logout(new object());
    IsLoggedOn = false;
    Gene

  • Where did the History Column checkbox go?

    I am using jdeveloper 11g release 11.1.2.2.0.
    I was working through some of the storefront demo and the the instructions said.
    Open the Entity Object, Click the Attributes Tab, Select the History Column check box.
    I am unable to find a History Column check box on this version. where did it go?

    I think it is called Track Change History now - a drop down list.
    You can also look for it in the property inspector window.

  • Show image in JDev

    Why the picture cannot be showed? Is there any wrong with the servlet code? What's wrong with my code?
    Thanks
    package javaclass;
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import fuego.lang.ConnectionPassport;
    import fuego.lang.DynamicObject;
    import fuego.papi.Activity;
    import fuego.papi.Arguments;
    import fuego.papi.CommunicationException;
    import fuego.papi.InstanceInfo;
    import fuego.papi.OperationException;
    import fuego.papi.Process;
    import fuego.papi.ProcessService;
    import fuego.papi.ProcessServiceSession;
    import java.util.Properties;
    import fuego.workspace.UrlActions;
    import com.sun.image.codec.jpeg.*;
    import javax.imageio.stream.*;
    import java.awt.*;
    import java.awt.image.BufferedImage;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.InputStream;
    import java.io.OutputStream;
    public class showWorkloadImgServlet extends HttpServlet {
    private static final String CONTENT_TYPE = "text/html; charset=UTF-8";
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    public void doGet(HttpServletRequest request,
    HttpServletResponse response) throws ServletException, IOException {response.setContentType(CONTENT_TYPE);
    PrintWriter out = response.getWriter();
    out.println("<html>");
    out.println("<head><title>showWorkloadImgServlet</title></head>");
    out.println("<body>");
    out.println("<p>The servlet has received a GET. This is the reply.</p>");
    out.println("</body><img src='http://192.168.125.125:8988/Application1-Project1-context-root/showworkloadimgservlet'></a></html>");
    out.close();
    Properties configuration = new Properties();
    System.out.println("25");
    configuration.setProperty(ProcessService.DIRECTORY_ID, "default");
    System.out.println("28");
    configuration.setProperty(ProcessService.DIRECTORY_PROPERTIES_FILE, "F:\\share\\192_168_1_16\\directory.xml");
    System.out.println("30");
    configuration.setProperty(ProcessService.WORKING_FOLDER, "/tmp");
    System.out.println("32");
    ProcessService processService=null;
    try {
    processService = ProcessService.create(configuration);
    } catch (CommunicationException e) {
    // TODO
    System.out.println("66===========");
    System.out.println("34");
    ConnectionPassport passport=null;
    passport = processService.createPassport("jcooper");
    passport.setPassword("welcome1");
    passport.fillPassport();
    System.out.println("38");
    ProcessServiceSession session=null;
    try {
    session = processService.createSession(passport, "192.168.1.16");
    } catch (OperationException e) {
    // TODO
    System.out.println("40");
    Arguments arguments = Arguments.create();
    DynamicObject argument = DynamicObject.create();
    argument.setField("condition", 600);
    argument.setField("orSplit", 400);
    arguments.putArgument("beginArg",argument);
    String processId2="/P1";
    try {
    session.processCreateInstance(processId2, arguments);
    } catch (OperationException e) {
    // TODO
    System.out.println("50");
    System.out.println("76");
    UrlActions ua=new UrlActions();
    String st="";
    String instanceId="/P1#Default-1.0/9863/0";
    String processId="/P1#Default-1.0";
    st=ua.showWorkloadImage(request, response, processId /*, instanceId*/);
    System.out.println("26="+st);
    OutputStream output = response.getOutputStream();
    String imagePath = getServletContext().getRealPath(st);
    InputStream imageIn = new FileInputStream(new File(imagePath));
    JPEGImageDecoder decoder = JPEGCodec.createJPEGDecoder(imageIn);
    BufferedImage image = decoder.decodeAsBufferedImage();
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(output);
    encoder.encode(image);
    imageIn.close();
    session.close();
    processService.close();
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    E:\Jdeveloper10131_20090318\jdev\system\oracle.j2ee.10.1.3.39.84\embedded-oc4j\config>
    D:\JDeveloper11g_20090318\jdk160_05\bin\javaw.exe -client -classpath E:\Jdeveloper10131_20090318\j2ee\home\oc4j.jar;E:\Jdeveloper10131_20090318\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config E:\Jdeveloper10131_20090318\jdev\system\oracle.j2ee.10.1.3.39.84\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    Oct 5, 2009 3:19:39 PM com.evermind.server.XMLDataSourcesConfig parseRootNode
    INFO: Legacy datasource detected...attempting to convert to new syntax.
    Oct 5, 2009 3:19:41 PM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
    Oct 5, 2009 3:19:41 PM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 13718 ms.
    Target URL -- http://192.168.1.16:8988/GDHZdemo-javaclass-context-root/showworkloadimgservlet
    09/10/05 15:19:47 Oracle Containers for J2EE 10g (10.1.3.1.0) initialized
    WARNING: Code-source D:\BPM_HOME_standalone\client\papi\lib\mail.jar (from manifest of /D:/BPM_HOME_standalone/client/papi/lib/fuegopapi-client.jar) has the same filename but is not identical to /E:/Jdeveloper10131_20090318/j2ee/home/lib/mail.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in E:\Jdeveloper10131_20090318\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.GDHZdemo-javaclass-webapp:0.0.0.
    WARNING: Code-source D:\BPM_HOME_standalone\client\papi\lib\jaxrpc-api.jar (from manifest of /D:/BPM_HOME_standalone/client/papi/lib/fuegopapi-client.jar) has the same filename but is not identical to /E:/Jdeveloper10131_20090318/webservices/lib/jaxrpc-api.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in E:\Jdeveloper10131_20090318\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.GDHZdemo-javaclass-webapp:0.0.0.
    WARNING: Code-source D:\BPM_HOME_standalone\client\papi\lib\saaj-api.jar (from manifest of /D:/BPM_HOME_standalone/client/papi/lib/fuegopapi-client.jar) has the same filename but is not identical to /E:/Jdeveloper10131_20090318/webservices/lib/saaj-api.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in E:\Jdeveloper10131_20090318\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.GDHZdemo-javaclass-webapp:0.0.0.
    Could not canonicalize 'D:\BPM_HOME_standalone\client\papi\lib\D:\fuego\trunk\local\thirdparty\tomcat-embed\dist\apache-tomcat-5.5.15-embed\lib\catalina-optional.jar' (????????????????). From manifest of /D:/BPM_HOME_standalone/client/papi/lib/catalina.jar.
    Could not canonicalize 'D:\BPM_HOME_standalone\client\papi\lib\D:\fuego\trunk\local\thirdparty\tomcat-embed\dist\apache-tomcat-5.5.15-embed\lib\catalina.jar' (????????????????). From manifest of /D:/BPM_HOME_standalone/client/papi/lib/catalina.jar.
    Could not canonicalize 'D:\BPM_HOME_standalone\client\papi\lib\D:\fuego\trunk\local\thirdparty\tomcat-embed\dist\apache-tomcat-5.5.15-embed\lib\commons-el.jar' (????????????????). From manifest of /D:/BPM_HOME_standalone/client/papi/lib/catalina.jar.
    Could not canonicalize 'D:\BPM_HOME_standalone\client\papi\lib\D:\fuego\trunk\local\thirdparty\tomcat-embed\dist\apache-tomcat-5.5.15-embed\lib\commons-logging.jar' (????????????????). From manifest of /D:/BPM_HOME_standalone/client/papi/lib/catalina.jar.
    Could not canonicalize 'D:\BPM_HOME_standalone\client\papi\lib\D:\fuego\trunk\local\thirdparty\tomcat-embed\dist\apache-tomcat-5.5.15-embed\lib\commons-modeler.jar' (????????????????). From manifest of /D:/BPM_HOME_standalone/client/papi/lib/catalina.jar.
    Could not canonicalize 'D:\BPM_HOME_standalone\client\papi\lib\D:\fuego\trunk\local\thirdparty\tomcat-embed\dist\apache-tomcat-5.5.15-embed\lib\jasper-compiler-jdt.jar' (????????????????). From manifest of /D:/BPM_HOME_standalone/client/papi/lib/catalina.jar.
    Could not canonicalize 'D:\BPM_HOME_standalone\client\papi\lib\D:\fuego\trunk\local\thirdparty\tomcat-embed\dist\apache-tomcat-5.5.15-embed\lib\jasper-compiler.jar' (????????????????). From manifest of /D:/BPM_HOME_standalone/client/papi/lib/catalina.jar.
    Could not canonicalize 'D:\BPM_HOME_standalone\client\papi\lib\D:\fuego\trunk\local\thirdparty\tomcat-embed\dist\apache-tomcat-5.5.15-embed\lib\jasper-runtime.jar' (????????????????). From manifest of /D:/BPM_HOME_standalone/client/papi/lib/catalina.jar.
    Could not canonicalize 'D:\BPM_HOME_standalone\client\papi\lib\D:\fuego\trunk\local\thirdparty\tomcat-embed\dist\apache-tomcat-5.5.15-embed\lib\jsp-api.jar' (????????????????). From manifest of /D:/BPM_HOME_standalone/client/papi/lib/catalina.jar.
    Could not canonicalize 'D:\BPM_HOME_standalone\client\papi\lib\D:\fuego\trunk\local\thirdparty\tomcat-embed\dist\apache-tomcat-5.5.15-embed\lib\naming-factory.jar' (????????????????). From manifest of /D:/BPM_HOME_standalone/client/papi/lib/catalina.jar.
    Could not canonicalize 'D:\BPM_HOME_standalone\client\papi\lib\D:\fuego\trunk\local\thirdparty\tomcat-embed\dist\apache-tomcat-5.5.15-embed\lib\naming-resources.jar' (????????????????). From manifest of /D:/BPM_HOME_standalone/client/papi/lib/catalina.jar.
    Could not canonicalize 'D:\BPM_HOME_standalone\client\papi\lib\D:\fuego\trunk\local\thirdparty\tomcat-embed\dist\apache-tomcat-5.5.15-embed\lib\servlet-api.jar' (????????????????). From manifest of /D:/BPM_HOME_standalone/client/papi/lib/catalina.jar.
    Could not canonicalize 'D:\BPM_HOME_standalone\client\papi\lib\D:\fuego\trunk\local\thirdparty\tomcat-embed\dist\apache-tomcat-5.5.15-embed\lib\servlets-default.jar' (????????????????). From manifest of /D:/BPM_HOME_standalone/client/papi/lib/catalina.jar.
    Could not canonicalize 'D:\BPM_HOME_standalone\client\papi\lib\D:\fuego\trunk\local\thirdparty\tomcat-embed\dist\apache-tomcat-5.5.15-embed\lib\tomcat-coyote.jar' (????????????????). From manifest of /D:/BPM_HOME_standalone/client/papi/lib/catalina.jar.
    Could not canonicalize 'D:\BPM_HOME_standalone\client\papi\lib\D:\fuego\trunk\local\thirdparty\tomcat-embed\dist\apache-tomcat-5.5.15-embed\lib\tomcat-http.jar' (????????????????). From manifest of /D:/BPM_HOME_standalone/client/papi/lib/catalina.jar.
    Could not canonicalize 'D:\BPM_HOME_standalone\client\papi\lib\D:\fuego\trunk\local\thirdparty\tomcat-embed\dist\apache-tomcat-5.5.15-embed\lib\tomcat-util.jar' (????????????????). From manifest of /D:/BPM_HOME_standalone/client/papi/lib/catalina.jar.
    09/10/05 15:19:50 25
    09/10/05 15:19:50 28
    09/10/05 15:19:50 30
    09/10/05 15:19:50 32
    09/10/05 15:19:51 java.io.IOException: ????????????????
    09/10/05 15:19:51      at java.io.WinNTFileSystem.canonicalize0(Native Method)
    09/10/05 15:19:51      at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:396)
    09/10/05 15:19:51      at java.io.File.getCanonicalPath(File.java:559)
    09/10/05 15:19:51      at java.io.File.getCanonicalFile(File.java:583)
    09/10/05 15:19:51      at fuego.boot.ClassPath.getBaseDir(ClassPath.java:402)
    09/10/05 15:19:51      at fuego.boot.ClassPath.getBaseDir(ClassPath.java:290)
    09/10/05 15:19:51      at fuego.boot.Loader.getInstallationDir(Loader.java:652)
    09/10/05 15:19:51      at fuego.util.FuegoDirectories.installationDir(FuegoDirectories.java:97)
    09/10/05 15:19:51      at fuego.util.FuegoDirectories.installationRelativeFile(FuegoDirectories.java:106)
    09/10/05 15:19:51      at fuego.util.FuegoDirectories.configDir(FuegoDirectories.java:167)
    09/10/05 15:19:51      at fuego.directory.DirectoryConfigurationManager.createDefaultRuntimeDirectoryConfigurationManager(DirectoryConfigurationManager.java:376)
    09/10/05 15:19:51      at fuego.directory.DirectoryConfigurationManager.<clinit>(DirectoryConfigurationManager.java:410)
    09/10/05 15:19:51      at fuego.papi.impl.ProcessServiceFactoryImpl.create(ProcessServiceFactoryImpl.java:55)
    09/10/05 15:19:51      at fuego.papi.ProcessService.create(ProcessService.java:335)
    09/10/05 15:19:51      at javaclass.showWorkloadImgServlet.doGet(showWorkloadImgServlet.java:70)
    09/10/05 15:19:51      at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    09/10/05 15:19:51      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    09/10/05 15:19:51      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
    09/10/05 15:19:51      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    09/10/05 15:19:51      at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    09/10/05 15:19:51      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    09/10/05 15:19:51      at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
    09/10/05 15:19:51      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    09/10/05 15:19:51      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    09/10/05 15:19:51      at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    09/10/05 15:19:51      at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
    09/10/05 15:19:51      at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
    09/10/05 15:19:51      at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
    09/10/05 15:19:51      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
    09/10/05 15:19:51      at java.lang.Thread.run(Thread.java:619)
    09/10/05 15:20:40 25
    09/10/05 15:20:40 28
    09/10/05 15:20:40 30
    09/10/05 15:20:40 32
    Process exited.

    I guess the ImageServlet class of the StoreFront demo of JDeveloper 11g is a good start for you. Below is the code snippet:
    package oracle.fodemo.storefront.servlet;
    import java.io.BufferedInputStream;
    import java.io.IOException;
    import java.io.OutputStream;
    import java.sql.Blob;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.servlet.ServletConfig;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.sql.DataSource;
    public class ImageServlet extends HttpServlet {
    private static final String CONTENT_TYPE =
    "image/jpg; charset=utf-8";
    * @param config
    * @throws ServletException
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    * @param request
    * @param response
    * @throws ServletException
    * @throws IOException
    public void doGet(HttpServletRequest request,
    HttpServletResponse response) throws ServletException,
    IOException {
    response.setContentType(CONTENT_TYPE);
    response.setContentType(CONTENT_TYPE);
    String detailProductId = request.getParameter("detail");
    String thumbnailProductId = request.getParameter("thumbnail");
    boolean thumbnail = true;
    String productId = null;
    OutputStream os = response.getOutputStream();
    Connection conn = null;
    try {
    Context ctx = new InitialContext();
    DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/FODDS");
    conn = ds.getConnection();
    PreparedStatement statement = conn.prepareStatement(
    "SELECT ProductImageEO.PRODUCT_IMAGE_ID, " +
    " ProductImageEO.PRODUCT_ID, " +
    " ProductImageEO.DEFAULT_VIEW_FLAG, " +
    " ProductImageEO.DETAIL_IMAGE_ID, " +
    " ProductImageEO.IMAGE " +
    "FROM PRODUCT_IMAGES ProductImageEO " +
    "WHERE ProductImageEO.DEFAULT_VIEW_FLAG = ?" +
    " AND ProductImageEO.PRODUCT_ID = ?");
    if (detailProductId != null) {
    productId = detailProductId;
    thumbnail = false;
    } else {
    productId = thumbnailProductId;
    statement.setString(1,(thumbnail ? "Y" : "N"));
    statement.setInt(2, new Integer(productId));
    ResultSet rs = statement.executeQuery();
    if (rs.next()) {
    Blob blob = rs.getBlob("IMAGE");
    BufferedInputStream in = new BufferedInputStream(blob.getBinaryStream());
    int b; byte[] buffer = new byte[10240];
    while ((b = in.read(buffer, 0, 10240)) != -1) { os.write(buffer, 0, b); }
    os.close();
    } catch (Exception e){
    System.out.println(e);
    } finally {
    try{
    if (conn != null){
    conn.close();
    } catch (SQLException sqle){
    System.out.println("SQLException error");
    regards,
    pino

  • Errors in xdbConfiguration.sql

    There are compile errors in the xdbConfiguration package. This is the new version from January 2003.
    The .02 Reset Demo fails and you can't do much from there. The SQL qutput follows after this.
    SQL> create or replace package body XDB_CONFIGURATION as
    2 --
    3 FTP_XPATH varchar2(256) := '/xdbconfig/sysconfig/protocolconfig/ftpconfig/ftp-port';
    4 HTTP_XPATH varchar2(256) := '/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port';
    5 --
    6 function getDatabaseSummary
    7 return XMLType
    8 as
    9 summary xmltype;
    10 dummy xmltype;
    11 begin
    12 select dbms_xdb.cfg_get()
    13 into dummy
    14 from dual;
    15
    16 select xmlElement
    17 (
    18 "Database",
    19 XMLAttributes
    20 (
    21 x.NAME as "Name",
    22 extractValue(config,'/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port') as "HTTP",
    23 extractValue(config,'/xdbconfig/sysconfig/protocolconfig/ftpconfig/ftp-port') as "FTP"
    24 ),
    25 xmlElement
    26 (
    27 "Services",
    28 (
    29 xmlForest(Value as "ServiceName")
    30 )
    31 ),
    32 xmlElement
    33 (
    34 "Hosts",
    35 (
    36 XMLForest(HOST_NAME as "HostName")
    37 )
    38 )
    39 )
    40 into summary
    41 from SYS.DATABASE_SUMMARY x, (select dbms_xdb.cfg_get() config from dual);
    42 return summary;
    43 end;
    44 --
    45 procedure folderDatabaseSummary
    46 as
    47 result boolean;
    48 targetResource varchar2(256) := '/sys/databaseSummary.xml';
    49
    50 xmlref ref xmltype;
    51
    52 begin
    53
    54 begin
    55 dbms_xdb.deleteResource(targetResource,dbms_xdb.DELETE_FORCE);
    56 exception
    57 when others then
    58 null;
    59 end;
    60
    61 select make_ref(DATABASE_SUMMARY,'DATABASE_SUMMARY')
    62 into xmlref
    63 from DATABASE_SUMMARY;
    64 result := dbms_xdb.createResource(targetResource,xmlref);
    65
    66 dbms_xdb.setAcl(targetResource,'/sys/acls/bootstrap_acl.xml');
    67 end;
    68 --
    69 procedure setXDBport(PORT_XPATH varchar2, PORT_NUMBER number)
    70 as
    71 config XMLType;
    72 begin
    73 config := dbms_xdb.cfg_get();
    74 select updateXML(config, PORT_XPATH, PORT_NUMBER)
    75 into config
    76 from dual;
    77 dbms_xdb.cfg_update(config);
    78 commit;
    79 dbms_xdb.cfg_refresh();
    80 end;
    81 --
    82 -- Create the setHTTPport and setFTPport procudures
    83 --
    84 procedure setHTTPport (PORT_NUMBER number)
    85 as
    86 begin
    87 setXDBport(HTTP_XPATH || '/text()', PORT_NUMBER);
    88 end;
    89 --
    90 procedure setFTPport(PORT_NUMBER number)
    91 as
    92 begin
    93 setXDBport(FTP_XPATH || '/text()', PORT_NUMBER);
    94 end;
    95 --
    96 end XDB_CONFIGURATION;
    97 /
    Warning: Package Body created with compilation errors.
    SQL> show errors
    Errors for PACKAGE BODY XDB_CONFIGURATION:
    LINE/COL ERROR
    55/6 PL/SQL: Statement ignored
    55/54 PLS-00302: component 'DELETE_FORCE' must be declared
    61/4 PL/SQL: SQL Statement ignored
    61/20 PL/SQL: ORA-22970: name does not correspond to an object view
    SQL> spool off
    .02 reset Demo Output
    SQL*Plus: Release 9.2.0.1.0 - Production on Thu Apr 15 02:39:11 2004
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    SQL> connect sys@&3 as sysdba
    Enter password: ******
    Connected.
    SQL> --
    SQL> -- Create home directory for target user...
    SQL> --
    SQL> call xdb_utilities.createHomeFolder('&1')
    2 /
    old 1: call xdb_utilities.createHomeFolder('&1')
    new 1: call xdb_utilities.createHomeFolder('SCOTT')
    call xdb_utilities.createHomeFolder('SCOTT')
    ERROR at line 1:
    ORA-04063: package body "XDB.XDB_UTILITIES" has errors
    SQL> begin
    2 if (xdb_utilities.resourceExists('/home/&1/purchaseOrders')) then
    3 xdb_utilities.deleteFolder('/home/&1/purchaseOrders');
    4 end if;
    5 if (xdb_utilities.resourceExists('/home/&1/poSource/xsd/purchaseOrder.xsd')) then
    6 xdb_utilities.deleteFolder('/home/&1/poSource/xsd/purchaseOrder.xsd');
    7 end if;
    8 if (xdb_utilities.resourceExists('/home/&1/poSource/xsl/purchaseOrder.xsl')) then
    9 xdb_utilities.deleteFolder('/home/&1/poSource/xsl/purchaseOrder.xsl');
    10 end if;
    11 if (xdb_utilities.resourceExists('/home/&1/poSource/xsl/empdept.xsl')) then
    12 xdb_utilities.deleteFolder('/home/&1/poSource/xsl/empdept.xsl');
    13 end if;
    14 if (xdb_utilities.resourceExists('/home/&1/poSource')) then
    15 xdb_utilities.deleteFolder('/home/&1/poSource');
    16 end if;
    17 end;
    18 /
    old 2: if (xdb_utilities.resourceExists('/home/&1/purchaseOrders')) then
    new 2: if (xdb_utilities.resourceExists('/home/SCOTT/purchaseOrders')) then
    old 3: xdb_utilities.deleteFolder('/home/&1/purchaseOrders');
    new 3: xdb_utilities.deleteFolder('/home/SCOTT/purchaseOrders');
    old 5: if (xdb_utilities.resourceExists('/home/&1/poSource/xsd/purchaseOrder.xsd')) then
    new 5: if (xdb_utilities.resourceExists('/home/SCOTT/poSource/xsd/purchaseOrder.xsd')) then
    old 6: xdb_utilities.deleteFolder('/home/&1/poSource/xsd/purchaseOrder.xsd');
    new 6: xdb_utilities.deleteFolder('/home/SCOTT/poSource/xsd/purchaseOrder.xsd');
    old 8: if (xdb_utilities.resourceExists('/home/&1/poSource/xsl/purchaseOrder.xsl')) then
    new 8: if (xdb_utilities.resourceExists('/home/SCOTT/poSource/xsl/purchaseOrder.xsl')) then
    old 9: xdb_utilities.deleteFolder('/home/&1/poSource/xsl/purchaseOrder.xsl');
    new 9: xdb_utilities.deleteFolder('/home/SCOTT/poSource/xsl/purchaseOrder.xsl');
    old 11: if (xdb_utilities.resourceExists('/home/&1/poSource/xsl/empdept.xsl')) then
    new 11: if (xdb_utilities.resourceExists('/home/SCOTT/poSource/xsl/empdept.xsl')) then
    old 12: xdb_utilities.deleteFolder('/home/&1/poSource/xsl/empdept.xsl');
    new 12: xdb_utilities.deleteFolder('/home/SCOTT/poSource/xsl/empdept.xsl');
    old 14: if (xdb_utilities.resourceExists('/home/&1/poSource')) then
    new 14: if (xdb_utilities.resourceExists('/home/SCOTT/poSource')) then
    old 15: xdb_utilities.deleteFolder('/home/&1/poSource');
    new 15: xdb_utilities.deleteFolder('/home/SCOTT/poSource');
    begin
    ERROR at line 1:
    ORA-04068: existing state of packages has been discarded
    ORA-04063: package body "XDB.XDB_UTILITIES" has errors
    ORA-06508: PL/SQL: could not find program unit being called
    ORA-06512: at line 2

    You need to be running the correct version of the database. You are running 9.2.0.1.0 or 9.2.0.2.0. The basicDemo requires 9.2.0.3.0 or later. The earlier versions are NOT supported for XML DB.

Maybe you are looking for

  • Possible to download emails more than once and still display new emails?

    Hi, I have to download emails to my powerbook when i travel, and I download my emails to my powerbook via POP3 server. My office desktop PC, is connected to the company's email server via exchange server. Evertime after i download my emails to my pow

  • What is the best way to connect a hard disk?

    Hi. I want to buy a hard disk (not a NAS device) and plug it into my Airport Extreme in order to share data between two Mac computers, and to stream iTunes content to my Apple TV. One option is to purchase a hard drive (say, a 2TB Hitachi G-Technolog

  • Problems to load nicaiu.dll in VB 6.0

    I would like to develope an aplication in VB 6.0 to acquire and load data from my USB-6210 card but I have a big problem. This card needs the nidaqmx software and i can't load the nicaiu.dll requested in this case. I must use the VB .Net o is another

  • Building Query in Pre-Query. How to make it more Memory Efficient

    Hello all, I have a form with 2 Data Blocks. First Block is used for giving query Parameters and second one returns the results based on a View. I build the Select Clause in the pre-query based on the Parameters. So every time I have a Different Quer

  • Time machine new backup

    I am getting this message now with my time machine backup to time capsule: http://support.apple.com/kb/HT4076 I verified the disk and it's verified with no issue. How do I get rid of that message and make my time machine backs up automatically to tim