Clock2.class in OC4J 9.0.2A

1) Bug in the OC4J 9.0.2A. In the jsp examples:
/j2ee/home/examples/jsp/plugin/applet/Clock2.class is abscent.
2) Feature in OC4J: it does not work with latest SUN JDK 1.4.0. Probably, it is due to JDK is SE and not EE.

Thank you for bring to our attention. We will fix this in the next release.

Similar Messages

  • How to implement Startup class for OC4J

    I'm in the process of converting my current J2EE application from weblogic 5.1 to OC4J.
    I have startup class that would set application specific properties by reading property file. In addition, this class would also check for certain resource availability (like database) during weblogic startup. I could not find similar option in OC4J.
    Any help to convert this startup class for OC4J would be highly appreciated.
    Thanks
    Sankaran.

    Hi Sankaran,
    Your eMail address suggests you work for Oracle. Do you? Can't someone
    at Oracle help you?
    I imagine that Oracle would have some kind of agreement with Ironflare
    as well. Can't someone at Ironflare help you?
    But remember, with application servers (as with RDBMSs), no two are the
    same. Each one offers the same functionality, but using different methods
    to achieve that functionality. I don't know how to do it, but I'm sure
    you can check database availability when starting up OC4J -- just not
    the same way you do it in Weblogic.
    Good Luck,
    Avi.

  • Hot-(re)deploy classes on OC4J / JDeveloper

    Using JDeveloper 11
    When I change a .jsp the file is automatically redeployed.
    When I change a .java file (for example a managed Bean) and compile it into a .class, the old version is used.
    To see the result of my change I restart the OC4J (takes lot of time).
    --> Is there an easy way to hot-(re)deploy classes on OC4J / JDeveloper? (for example: something in my memory tells me Tomcat can run in a special mode, in which classes are also checked for updated versions and loaded when needed)
    Thanks,
    regards
    Stephan

    Hi,
    this question is better asked on the OC4J forum because JDeveloper consumes what is provided from them. I know there were plans for hot deployment, but I am not sure this is in 11 yet. So you better ask on this forum. In preview JDeveloper 11 doesn't have hot deployment for managed beans.
    Please send questions regarding JDeveloper 11 to JDeveloper and OC4J 11g Technology Preview
    thanks
    Frank

  • Please Help!, I can't update my classes in OC4J 9.0.2

    I succesfully deployed my application in OC4J,
    We 're in the development stage, and we need to make a lot of changes in all the JSP pages, beans, and common classes.
    When I make a change in a JSP, I can see the effect inmediately, but if I try to change a class, I never see the changes unless I restart the OC4J instance.
    I verified the main-mode parameter, and it is in recompile mode, What can I do?
    regards
    Sergio Castro

    Hello Sergio,
    This behaviour has been seen if you deploying your application in default-web-app. Please create an ear file and deploy the application.
    If you are creating an ear file, then the recommended way after making changes if to recreate the ear and overwrite your old ear with this file. OC4J will now pick this file automatically and re-deploy the new ear. You would not have to restart OC4J.
    Hope this helps.

  • Startup and Shutdown classes in OC4J (Oracle 9i App Server)

    Hi,
    We are in the process of porting our application from Weblogic 6 to Oracle 9i app server. We have a requirement for developing startup and shutdown classes. These need to be instantiated from Java code (and not through console).
    If anyone knows how this can be achieved or have any documentation on the same, please reply back to .
    Thanks in advance.
    Regards,
    Moin

    The oc4j commands in the documentation for shutting down the server are:
    STARTUP
    java -jar orion.jar -install
    SHUTDOWN
    java -jar admin.jar ormi://localhost/ <admin> <admin-password>
    Can you just access these classes directly?

  • OC4J에서 DEFAULT로 제공하는 JDBC CLASSES를 원하는 JDBC CLASSES FILE로 변경하는 방법

    제품 : JDBC
    작성날짜 :
    OC4J에서 DEFAULT로 제공하는 JDBC CLASSES를 원하는 JDBC CLASSES FILE로 변경하는 방법
    =================================================================
    PURPOSE
    9iAS에서 JDBC thin driver인 classes file을 새로운 version으로 변경하기 위한
    여러가지 방법을 정리한다.
    Explanation
    9iAS R2에 포함된 JDBC THIN driver는 기본적으로 <J2EE_HOME>/jdbc/lib directory에
    포함된 classes12dms.jar 화일이다. 이 classes12dml.jar는 경우에 따라서 새로운
    version의 classes12.jar file로 변경되어져야 할 필요가 있는데 그러한 경우
    먼저 현재 화일 backup을 받아두고 지우거나 옮긴 후 아래 정리된 방법 중
    한가지를 이용하여 조치한다.
    단 아래와 같이 아래의 certify된 jdbc driver version에 한하여
    필요한 경우 같은 version을 대치, 혹은 upgrade하도록 한다.
    Application Server release Certified Oracle JDBC Supported Database
    release releases
    ================================================================================
    ===
    Oracle9iAS Release 1 (1.0.2.2) 8.1.7 8.1.7
    Oracle9iAS Release 2 (9.0.2 and 9.0.3) 9.0.1.4 9.2.0*, 9.0.1, 8.1.7
    Oracle9iAS Release 2 (9.0.3.1) 9.0.1.4, 10.1.0 (thin), 10.1.0, 9.2.0, 9.0.1, 8
    .1.7
    + one off patch 9.2.0 (thin)
    Oracle Application Server 10g (9.0.4) 9.0.1.4 9.2.0*, 9.0.1, 8.1.7
    Oracle Application Server 10g (9.0.4.1) 9.0.1.5, 10.1.0 (thin), 10.1.0*, 9.2.0*,
    9.0.1, 8.1.7
    - patched core 9.2.0 (thin)
    ================================================================================
    ===
    현재 화일이 인식되지 못하도록 하기 위한 가장 간단한 방법은 다음과 같이
    화일이 .jar나 .zip으로 인식되지 않도록 rename하는 것이다.
    os>cd $ORACLE_HOME (or top level directory where oc4j was unpacked)
    os>cd jdbc/lib
    os>mv classes12dms.jar classes12dms.raj
    (1) 방법1
    OC4J가 실행되는 JSDK환경에서 global하게 access되도록 하려면 다음 directory에
    classes12.jar 와 nls_charset12.jar를 copy한다.
    <JDK_HOME>/jre/lib/ext
    [주의] 이 위치에 .jar file을 위치시키게 되면, 이것은 OC4J뿐 아니라
    command line에서 실행되는 java application 등 이 JDK환경의 어떤
    java class에서도 인식이 된다.
    이 extention directory는 jdk boot classpath보다는 이후 인식되지만,
    사용자가 지정하는 CLASSPATH환경 변수 등보다는 더 상위에서 인식되기
    때문이다.
    그러므로 이 extention directory에 .jar를 위치시키는 것이 경우에 따라
    원하지 않는 결과를 발생시킬 수 있음을 유의하여야 한다.
    (2) 방법2
    새로 사용하고자 하는 library file을 OC4J가 기본적으로 인식하는
    <J2EE_HOME>/jdbc/lib directory로 다음과 같이 위치시킨다.
    단 이때 새로운 version의 jdbc에 classes12dms.jar가 없다면 classes12.jar를 classe
    s12dms.jar로 이름을 변경시켜 두도록 한다.
    그 이유는 9iAS의 경우 default로 dms가 붙은 jdbc를 이용하기 때문이다.
    os>cp classes12.jar <J2EE_HOME>/jdbc/lib/classes12dms.jar
    os>cp nls_charset12.jar <J2EE_HOME>/jdbc/lib/nls_charset12.jar
    (3) 방법3
    $OC4J_HOME/j2ee/home/config/application.xml 에 아래와 같이 library path로
    새로운 jdbc driver를 지정한다.
    이때 다른 library path tag보다 앞 부분에 지정하도록 한다.
    <library path="jdbc_classfile이_위치한_상대경로\classes12.jar"/>
    <library path="jdbc_classfile이_위치한_상대경로\nls_charset12.jar"/>
    NOTE: OPTIONS 1 through 3 update the JDBC classes used by all
    applications running in the OC4J container.
    (4) 방법4
    위의 세가지 방법이 해당 OC4J의 모든 application에 영향을 미친게 된다.
    원하는 application에서만 변경된 jdbc driver를 사용하고자 한다면
    해당 application의 META-INF/application.xml화일에 다음 내용을 다른 libarary
    path tag보다 앞 부분에 지정하도록 한다.
    <library path="jdbc_classfile이_위치한_상대경로\classes12.jar"/>
    <library path="jdbc_classfile이_위치한_상대경로\nls_charset12.jar"/>
    Reference Documents
    <Note:236947.1> How to override the default JDBC DRIVER classes with the
    selected JDBC classes in OC4J

  • Failed to load Main-Class manifest attribute from oc4j.jar

    Hi All
    I am trying to start OC4J in the SOA suite from the command line but every time i issue the command i.e.
    java -jar ORACLE_AS_HOME/j2ee/home/oc4j.jar
    I get the fololwing error
    "Failed to load Main-Class manifest attribute from oc4j.jar"
    I have checked the oc4j jar and the class oracle.oc4j.loader.boot.BootStrap does exits and it does have a main class
    Is the Manifest file broken?
    Does anyone know why this is happens?

    Hi,
    did you try the SOA Suite forum ?
    SOA Suite and OC4J 11g Technology Preview
    Frank
    Edited by: Frank Nimphius on Jan 30, 2009 1:41 PM

  • How to change the defaut xmlparser on OC4J Standalone 10.1.3.4 for Spring 3

    Hi All
    I am trying to use OC4J 10.1.3.4 standalone with Spring 3.0 but I keep getting the error
    nested exception is oracle.xml.parser.schema.XSDException: Duplicated definition for: 'identifiedType'It worked fine when I was using Spring 2.5.6
    I have tried to change the parser as described here (http://www.oracle.com/technology/tech/java/oc4j/1013/how_to/how-to-swapxmlparser/doc/readme.html). This is not quite ideal as I want to change the parser for the whole server and not just one application and besides, If I cant start the server, I will not be able to change the parser for an application anyway. I say this because the default xml parser (xmlparserV2.jar) throws an exeception if you try to use it with Spring 3.0 i.e.
    nested exception is oracle.xml.parser.schema.XSDException: Duplicated definition for: 'identifiedType'I have had a look on them Oracle Forums(How can I use a 3rd party XML parser such as xerces with OC4J ? and Spring forums and appararently you have to change the XML parser (because the oracle xml parser is buggy!!) by puting the Xerces parser(or any other parser for that matter) on the classpath and then using the following switch
    java -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl -Xbootclasspath/a:C:\Miscellaneous\xercesImpl.jar -jar oc4j.jarHowever, when I try and start OC4J, I get the following error and I have no idea how to solve this. I have been at this for a couple of weeks but I still not getting any joy.
    [Fatal Error] :-1:-1: Premature end of file.
    2010-01-07 10:29:06.881 ERROR J2EE JCA-01006 Error initializing an ApplicationConnectionManager - ConnectorArchive and Application cannot be null
    2010-01-07 10:29:06.881 ERROR J2EE JCA-01004 {0}
    2010-01-07 10:29:06.881 WARNING J2EE JCA-01013 Error (Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException) while setting up RA for MCF (oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl) for standalone resource adapter 'Oracle JDBC Resource Adapter'
    2010-01-07 10:29:06.881 ERROR J2EE OJR-00105 Exception creating Managed DataSource ConnectorPropertySet.  Exception: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
    10/01/07 10:29:06 SEVERE: ApplicationStateRunning.initConnector Error occurred initializing connectors.  Exception is: Exception creating Managed DataSource ConnectorPropertySet.  Exception: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
    10/01/07 10:29:06 SEVERE: ApplicationStateRunning.initConnector Stack trace: oracle.oc4j.sql.DataSourceException: Exception creating Managed DataSource ConnectorPropertySet.  Exception: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
         at com.evermind.server.ApplicationStateRunning.addConnectionFactory(ApplicationStateRunning.java:1623)
         at com.evermind.server.ApplicationStateRunning.initManagedDataSource(ApplicationStateRunning.java:1573)
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnector(ApplicationStateRunning.java:2042)
         at com.evermind.server.ApplicationStateRunning.initConnector(ApplicationStateRunning.java:1287)
         at com.evermind.server.ApplicationStateRunning.initConnectors(ApplicationStateRunning.java:362)
         at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:220)
         at com.evermind.server.Application.setConfig(Application.java:454)
         at com.evermind.server.Application.setConfig(Application.java:355)
         at com.evermind.server.ApplicationServer.initializeDefaultApplication(ApplicationServer.java:1603)
         at com.evermind.server.ApplicationServer.initializeAutoDeployedApplications(ApplicationServer.java:1586)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1018)
         at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.InstantiationException: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
         at com.evermind.server.connector.ApplicationConnectionManager.initOutbound(ApplicationConnectionManager.java:909)
         at com.evermind.server.connector.ApplicationConnectionManager.init(ApplicationConnectionManager.java:314)
         at com.evermind.server.connector.deployment.ConnectorArchive.createConnectionManager(ConnectorArchive.java:1178)
         at com.evermind.server.connector.deployment.ConnectorArchive.addConnectionFactory(ConnectorArchive.java:662)
         at com.evermind.server.ApplicationStateRunning.addConnectionFactory(ApplicationStateRunning.java:1616)
         ... 12 more
    10/01/07 10:29:06 WARNING: Application.setConfig Application: default is in failed state as initialization failed.
    java.lang.InstantiationException: Error occurred initializing connectors.  Exception is: Exception creating Managed DataSource ConnectorPropertySet.  Exception: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
    10/01/07 10:29:06 Error initializing server: Application: default is in failed state as initialization failed
    10/01/07 10:29:07 Fatal error: server exitingCan anyone help or show me how to change the xml parser please ?
    Thanks in advance!!

    Hi All,
    I have found a way to change the xml parser for my application and NOT the xml parser for the server. I followed the instructions here http://www.oracle.com/technology/tech/java/oc4j/1013/how_to/how-to-swapxmlparser/doc/readme.html. In the end, I had to settle for changing the xml parser of my application(i.e. It uses its a custom parser e.g. xerces not the default OC4J parser i.e. xmlparserV2) and not the xml parser for OC4J because it was near impossible to change the xml parser for OC4J and besides, as the OC4J default parser(xmlparserV2) works well with the server and not my application, it made more sense to change the parser for my application (changed to Xerces) and not OC4J. Hope this helps someone else who may come across a similar problem.

  • Error while creating  connectionpool in oc4j for

    sqlserver2000
    I am trying to create a connection pool for sqlserver2000
    database using <b>oc4j enterprise manager 8888</b> I got the
    following error
    <i>Please suggest me a way to create a connection pool for
    sqlserver2000<i>
    <b>
    An error has occurred.
    Unable to create :
    com.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory
    Missing class:
    com.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory
    Dependent class: oracle.oc4j.sql.config.DataSourceConfigUtils
    Loader: oc4j:10.1.3 Code-Source:
    /D:/JDeveloper/j2ee/home/lib/oc4j-internal.jar Configuration: in
    META-INF/boot.xml in D:\JDeveloper\j2ee\home\oc4j.jar This load
    was initiated at ascontrol.web.ascontrol:0.0.0 using the
    Class.forName() method. The missing class is available from the
    following locations: 1. Code-Source:
    /D:/JDeveloper/j2ee/home/shared-lib/SQLServer2000Libraries/1/mss
    qlserver.jar (from in
    /D:/JDeveloper/j2ee/home/config/server.xml) This code-source is
    available in loader SQLServer2000Libraries:1. This
    shared-library can be imported by the "ascontrol" application.
    </b>

    What has this to do with forms?
    Ah, I see you have posted this in every forum possible.

  • Error while creating  connectionpool in oc4j for sqlserver2000

    I am trying to create a connection pool for sqlserver2000 database using ,<b>oc4j enterprise manager 8888</b> I got the following error
    <i>Please suggest me a way to create a connection pool for sqlserver2000<i>
    <b><i>
    An error has occurred.
    Unable to create : com.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory
    Missing class: com.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory Dependent class: oracle.oc4j.sql.config.DataSourceConfigUtils Loader: oc4j:10.1.3 Code-Source: /D:/JDeveloper/j2ee/home/lib/oc4j-internal.jar Configuration: in META-INF/boot.xml in D:\JDeveloper\j2ee\home\oc4j.jar This load was initiated at ascontrol.web.ascontrol:0.0.0 using the Class.forName() method. The missing class is available from the following locations: 1. Code-Source: /D:/JDeveloper/j2ee/home/shared-lib/SQLServer2000Libraries/1/mssqlserver.jar (from in /D:/JDeveloper/j2ee/home/config/server.xml) This code-source is available in loader SQLServer2000Libraries:1. This shared-library can be imported by the "ascontrol" application.
    </i></b>

    What has this to do with forms?
    Ah, I see you have posted this in every forum possible.

  • Error while installing the OC4J version oc4j_extended_101310

    Hi All,
    I am getting the following stacktrace when i run java -jar oc4j.jar
    I have set the foll env variables
    CLASSPATH :-C:\j2sdk1.4.2_04\jre\lib\rt.jar;C:\j2sdk1.4.2_04\lib\tools.jar
    JAVA_HOME :-C:\j2sdk1.4.2_04
    PATH:-%JAVA_HOME%\bin;D:\Oracle\product\10.1.0\Client_1\bin;D:\ant\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\cvsnt
    2006-09-11 17:38:53.910 NOTIFICATION Auto-unpacking D:\oc4j\j2ee\home\applications\dms.war...
    2006-09-11 17:38:53.910 NOTIFICATION Unjar D:\oc4j\j2ee\home\applications\dms.war in D:\oc4j\j2ee\home\applications\dms
    2006-09-11 17:38:53.910 NOTIFICATION Finished auto-unpacking D:\oc4j\j2ee\home\applications\dms.war
    2006-09-11 17:38:53.910 NOTIFICATION Auto-unpacking D:\oc4j\j2ee\home\applications\JMXSoapAdapter-web.war...
    2006-09-11 17:38:53.926 NOTIFICATION Unjar D:\oc4j\j2ee\home\applications\JMXSoapAdapter-web.war in D:\oc4j\j2ee\home\applications\JMXSoapAdapter-web
    2006-09-11 17:38:53.960 NOTIFICATION Finished auto-unpacking D:\oc4j\j2ee\home\applications\JMXSoapAdapter-web.war
    2006-09-11 17:38:54.076 NOTIFICATION Auto-unpacking D:\oc4j\j2ee\home\applications\jmsrouter.war...
    2006-09-11 17:38:54.076 NOTIFICATION Unjar D:\oc4j\j2ee\home\applications\jmsrouter.war in D:\oc4j\j2ee\home\applications\jmsrouter
    2006-09-11 17:38:54.110 NOTIFICATION Finished auto-unpacking D:\oc4j\j2ee\home\applications\jmsrouter.war
    2006-09-11 17:38:54.143 NOTIFICATION Auto-unpacking D:\oc4j\j2ee\home\connectors\datasources\datasources.rar...
    2006-09-11 17:38:54.143 NOTIFICATION Unjar D:\oc4j\j2ee\home\connectors\datasources\datasources.rar in D:\oc4j\j2ee\home\connectors\datasources\datasources
    2006-09-11 17:38:54.143 NOTIFICATION Finished auto-unpacking D:\oc4j\j2ee\home\connectors\datasources\datasources.rar
    2006-09-11 17:38:54.143 NOTIFICATION Auto-unpacking D:\oc4j\j2ee\home\connectors\OracleASjms\OracleASjms.rar...
    2006-09-11 17:38:54.143 NOTIFICATION Unjar D:\oc4j\j2ee\home\connectors\OracleASjms\OracleASjms.rar in D:\oc4j\j2ee\home\connectors\OracleASjms\OracleASjms
    2006-09-11 17:38:54.160 NOTIFICATION Finished auto-unpacking D:\oc4j\j2ee\home\connectors\OracleASjms\OracleASjms.rar
    2006-09-11 17:38:54.193 NOTIFICATION Auto-unpacking D:\oc4j\j2ee\home\applications\ascontrol.ear...
    2006-09-11 17:38:54.193 NOTIFICATION Unjar D:\oc4j\j2ee\home\applications\ascontrol.ear in D:\oc4j\j2ee\home\applications\ascontrol
    2006-09-11 17:38:54.593 NOTIFICATION Finished auto-unpacking D:\oc4j\j2ee\home\applications\ascontrol.ear
    2006-09-11 17:38:54.610 NOTIFICATION Auto-unpacking D:\oc4j\j2ee\home\applications\ascontrol\ascontrol.war...
    2006-09-11 17:38:54.693 NOTIFICATION Unjar D:\oc4j\j2ee\home\applications\ascontrol\ascontrol.war in D:\oc4j\j2ee\home\applications\ascontrol\ascontrol
    2006-09-11 17:39:01.542 NOTIFICATION Finished auto-unpacking D:\oc4j\j2ee\home\applications\ascontrol\ascontrol.war
    06/09/11 17:39:01 Set OC4J administrator's password (password text will not be displayed as it is entered)
    Enter password:
    Confirm password:
    The password for OC4J administrator "oc4jadmin" has been set.
    06/09/11 17:39:12 The OC4J administrator "oc4jadmin" account is activated.
    [Fatal Error] :-1:-1: Premature end of file.
    2006-09-11 17:39:20.341 ERROR J2EE JCAC0006 Error initializing an ApplicationConnectionManager - ConnectorArchive and Application cannot be null
    2006-09-11 17:39:20.341 ERROR J2EE JCAC0004 {0}
    2006-09-11 17:39:20.341 WARNING J2EE JCAC0013 Error (Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException) while setting up RA for MCF (oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl) for standalone resource adapter 'Oracle JDBC Resource Adapter'
    2006-09-11 17:39:20.341 ERROR J2EE OJR0105 Exception creating Managed DataSource ConnectorPropertySet. Exception: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
    06/09/11 17:39:20 SEVERE: ApplicationStateRunning.initConnector Error occurred initializing connectors. Exception is: Exception creating Managed DataSource ConnectorPropertySet. Exception: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
    Sep 11, 2006 5:39:20 PM com.evermind.server.ApplicationStateRunning initConnector
    SEVERE: Error occurred initializing connectors. Exception is: Exception creating Managed DataSource ConnectorPropertySet. Exception: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
    06/09/11 17:39:20 SEVERE: ApplicationStateRunning.initConnector Stack trace: oracle.oc4j.sql.DataSourceException: Exception creating Managed DataSource ConnectorPropertySet. Exception: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
    at com.evermind.server.ApplicationStateRunning.addConnectionFactory(ApplicationStateRunning.java:1551)
    at com.evermind.server.ApplicationStateRunning.initManagedDataSource(ApplicationStateRunning.java:1504)
    at com.evermind.server.ApplicationStateRunning.initDataSourceConnector(ApplicationStateRunning.java:1968)
    at com.evermind.server.ApplicationStateRunning.initConnector(ApplicationStateRunning.java:1220)
    at com.evermind.server.ApplicationStateRunning.initConnectors(ApplicationStateRunning.java:356)
    at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:208)
    at com.evermind.server.Application.setConfig(Application.java:391)
    at com.evermind.server.Application.setConfig(Application.java:308)
    at com.evermind.server.ApplicationServer.initializeDefaultApplication(ApplicationServer.java:1489)
    at com.evermind.server.ApplicationServer.initializeAutoDeployedApplications(ApplicationServer.java:1470)
    at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:922)
    at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:113)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.InstantiationException: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
    at com.evermind.server.connector.ApplicationConnectionManager.initOutbound(ApplicationConnectionManager.java:864)
    at com.evermind.server.connector.ApplicationConnectionManager.init(ApplicationConnectionManager.java:665)
    at com.evermind.server.connector.deployment.ConnectorArchive.createConnectionManager(ConnectorArchive.java:1193)
    at com.evermind.server.connector.deployment.ConnectorArchive.addConnectionFactory(ConnectorArchive.java:607)
    at com.evermind.server.ApplicationStateRunning.addConnectionFactory(ApplicationStateRunning.java:1546)
    ... 12 more
    Sep 11, 2006 5:39:20 PM com.evermind.server.ApplicationStateRunning initConnector
    SEVERE: Stack trace: oracle.oc4j.sql.DataSourceException: Exception creating Managed DataSource ConnectorPropertySet. Exception: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
    at com.evermind.server.ApplicationStateRunning.addConnectionFactory(ApplicationStateRunning.java:1551)
    at com.evermind.server.ApplicationStateRunning.initManagedDataSource(ApplicationStateRunning.java:1504)
    at com.evermind.server.ApplicationStateRunning.initDataSourceConnector(ApplicationStateRunning.java:1968)
    at com.evermind.server.ApplicationStateRunning.initConnector(ApplicationStateRunning.java:1220)
    at com.evermind.server.ApplicationStateRunning.initConnectors(ApplicationStateRunning.java:356)
    at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:208)
    at com.evermind.server.Application.setConfig(Application.java:391)
    at com.evermind.server.Application.setConfig(Application.java:308)
    at com.evermind.server.ApplicationServer.initializeDefaultApplication(ApplicationServer.java:1489)
    at com.evermind.server.ApplicationServer.initializeAutoDeployedApplications(ApplicationServer.java:1470)
    at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:922)
    at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:113)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.InstantiationException: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
    at com.evermind.server.connector.ApplicationConnectionManager.initOutbound(ApplicationConnectionManager.java:864)
    at com.evermind.server.connector.ApplicationConnectionManager.init(ApplicationConnectionManager.java:665)
    at com.evermind.server.connector.deployment.ConnectorArchive.createConnectionManager(ConnectorArchive.java:1193)
    at com.evermind.server.connector.deployment.ConnectorArchive.addConnectionFactory(ConnectorArchive.java:607)
    at com.evermind.server.ApplicationStateRunning.addConnectionFactory(ApplicationStateRunning.java:1546)
    ... 12 more
    06/09/11 17:39:20 WARNING: Application.setConfig Application: default is in failed state as initialization failedjava.lang.InstantiationException: Error occurred initializing connectors. Exception is: Exception creating Managed DataSource ConnectorPropertySet. Exception: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
    Sep 11, 2006 5:39:20 PM com.evermind.server.Application setConfig
    WARNING: Application: default is in failed state as initialization failedjava.lang.InstantiationException: Error occurred initializing connectors. Exception is: Exception creating Managed DataSource ConnectorPropertySet. Exception: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
    06/09/11 17:39:20 Error initializing server: Error occurred initializing connectors. Exception is: Exception creating Managed DataSource ConnectorPropertySet. Exception: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
    06/09/11 17:39:21 Fatal error: server exiting
    Any suggestions are welcome.
    Regards,
    Ashaya

    FYI: I got this error in the process of trying the install xerces. (just placed it in the j2ee/lib folder) I'll just the default jvm installed with SOA suite 10.1.3.1.0
    [Fatal Error] :-1:-1: Premature end of file.
    06/11/30 20:21:30 SEVERE: ApplicationStateRunning.initConnector Error occurred initializing connectors. Exception is: Exception creating Managed DataSource ConnectorPropertySet. Exception: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
    06/11/30 20:21:30 SEVERE: ApplicationStateRunning.initConnector Stack trace: oracle.oc4j.sql.DataSourceException: Exception creating Managed DataSource ConnectorPropertySet. Exception: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
         at com.evermind.server.ApplicationStateRunning.addConnectionFactory(ApplicationStateRunning.java:1605)
         at com.evermind.server.ApplicationStateRunning.initManagedDataSource(ApplicationStateRunning.java:1558)
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnector(ApplicationStateRunning.java:2024)
         at com.evermind.server.ApplicationStateRunning.initConnector(ApplicationStateRunning.java:1272)
         at com.evermind.server.ApplicationStateRunning.initConnectors(ApplicationStateRunning.java:345)
         at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:206)
         at com.evermind.server.Application.setConfig(Application.java:413)
         at com.evermind.server.Application.setConfig(Application.java:314)
         at com.evermind.server.ApplicationServer.initializeDefaultApplication(ApplicationServer.java:1565)
         at com.evermind.server.ApplicationServer.initializeAutoDeployedApplications(ApplicationServer.java:1547)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:974)
         at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.InstantiationException: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
         at com.evermind.server.connector.ApplicationConnectionManager.initOutbound(ApplicationConnectionManager.java:890)
         at com.evermind.server.connector.ApplicationConnectionManager.init(ApplicationConnectionManager.java:297)
         at com.evermind.server.connector.deployment.ConnectorArchive.createConnectionManager(ConnectorArchive.java:1140)
         at com.evermind.server.connector.deployment.ConnectorArchive.addConnectionFactory(ConnectorArchive.java:630)
         at com.evermind.server.ApplicationStateRunning.addConnectionFactory(ApplicationStateRunning.java:1600)
         ... 12 more
    06/11/30 20:21:30 WARNING: Application.setConfig Application: default is in failed state as initialization failed.
    java.lang.InstantiationException: Error occurred initializing connectors. Exception is: Exception creating Managed DataSource ConnectorPropertySet. Exception: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
    06/11/30 20:21:30 Error initializing server: Application: default is in failed state as initialization failed
    06/11/30 20:21:32 Fatal error: server exiting

  • Swapping XML Parser and XSLT to Xalan 2.7.0 - Not Working (OC4J 10.1.3)

    Hi-
    I'm trying to use the latest Xercies/Xalan classes in OC4J 10.1.3 as described in the How-To swap XML Parsers document:
    http://www.oracle.com/technology/tech/java/oc4j/1013/how_to/how-to-swapxmlparser/doc/readme.html
    What I can see happening is that the oracle.xml shared library is successfully 'turned off', but the xalan libraries are not added. Instead, the default xml classes that are distributed with the JDK become visible. For instance, using a slightly modified version of the index.jsp page from the how-to, I get this result:
    ------ Output from JSP page ----------------
    TransformerFactory Instance: org.apache.xalan.processor.TransformerFactoryImpl
    Transformer Instance: org.apache.xalan.transformer.TransformerIdentityImpl
    Transformer Version: Xalan Java 2.4.1 (!!)
    What I expect is for that last line to say version 2.7.0, which is the version of the xalan.jar included in my shared library (code to add that line to the how-to shown below).
    I suspect what is happening is that the class loader is simply not letting a shared library override a system library - to do that you probably need to place the jar files in system endorsed directory.
    Has anyone gotten this how-to to work - actually replacing the XML parser/transform classes with the latest Xalan classes? Are you sure it is seeing the current version you placed in the shared library?
    Thanks,
    Eric Everman
    ---- My modified getXSLTDetails() method in the index.jsp page of the how-to -------
    <!-- Additional Import -->
    <%@ page import="org.apache.xalan.Version" %>
    public static String getXSLTDetails()
    Transformer transformer=null;
    TransformerFactory transformerfactory = TransformerFactory.newInstance();
         Version ver = null;
         String br = "<" + "br" + ">"; //otherwise the otn forum chocks on the break.
    try
    transformer = transformerfactory.newTransformer();
              ver = (Version) transformer.getClass().forName("org.apache.xalan.Version").newInstance();
              String ret_val =
                   "TransformerFactory Instance: "+transformerfactory.getClass().getName() + br +
                   "Transformer Instance: "+transformer.getClass().getName() + br;
              if (ver != null) {
                   ret_val = ret_val + "Transformer Version: " + ver.getVersion() + br;
              } else {
                   ret_val = ret_val + "Transformer Version not Available" + br;
              return ret_val;
    catch (Exception e)
    e.printStackTrace();
    return e.getMessage();
    }--------------------------------------------------------------------

    Steve - Thanks for responding on this.
    The Xalan SQL extension is built into Xalan. The most painless way to try it out is to run it via JEdit: www.jedit.org
    JEdit a OS Java application with a fairly painless install process (I'm assuming you already have a current JRE installed). Once its installed, you'll need to install the XSLT plugin - in JEdit goto Plugins | Plugin Manager | Install and pick the XSLT plugin. You'll need the Oracle JDBC classes on your classpath - this can be done by copying the oracle_jdbc4.jar into the [JEdit install directory]/jars directory.
    Restart to load that jar and you should be all set.
    I included a sample XSLT page at the bottom of this post that is somewhat of a template transform for the SQL extension - its more complicated then it needs to be, but it does some nice things with the results of the query. Save it as a file and make the appropriate changes to the 'datasource' parameter near the top of the file.
    Then in JEdit, open the file and make sure the XSLT plugin is visible (Plugins | XSLT | XSLT Processor Toggle - or alternately dock it in the window via global prefs). In the XSLT plugin: Allow the current buffer to be used as the source, Add that same file as a stylesheet via the '+' button, and pick a result file at the bottom. Then click the 'Transform XML' button.
    Troubleshooting: I seem to remember having some classpath errors when I tried this on windows, but others have had it work w/o issues. I do remeber that the XSLT plugin had a popup window that gave a pretty good explaintion of the problem, if it occurs. Also, for some reason the XSLT plugin will not create a new file for the output, so its often best to create a file first, then choose it as the output. Of course, you can always run a transformation from the command line or w/in an applicatoin. Full docs on the Xalan SQL extension can be found at: http://xml.apache.org/xalan-j/extensionslib.html#sql
    Here is my sample XSLT transform using the SQL extension:
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
              xmlns:sql="http://xml.apache.org/xalan/sql"
              xmlns:str="http://exslt.org/strings"
              xmlns:xalan="http://xml.apache.org/xalan"
              extension-element-prefixes="sql str xalan">
         <xsl:output indent="yes"/>
         <xsl:param name="driver">oracle.jdbc.OracleDriver</xsl:param>
         <xsl:param name="datasource">jdbc:oracle:thin:jqpublic/jqpublic@server_name:1521:dbname</xsl:param>
         <xsl:param name="jndiDatasource"><!-- jndi source for production use w/in enterprise environment --></xsl:param>
         <xsl:param name="debug">true</xsl:param>
         <xsl:variable name="connection" select="sql:new()"/>
         <xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
         <xsl:variable name="lowercase" select="'abcdefghijklmnopqrstuvwxyz'"/>
         <!--
              The query:  You could pass parameters in to this query to build a where clause, but here is a simple example.
              Also, its nice to wrap the query with a max row number to prevent huge results.
         -->
         <xsl:param name="query">
         select * from (
      SELECT
              'One' FIELD_1,
              'Two' FIELD_2
         FROM DUAL
         ) where rownum < 100
         </xsl:param>
         <!-- Essentially, create a XConnection object -->
         <xsl:variable name="connection" select="sql:new()"/>
         <xsl:template match="/">
        <xsl:choose><!-- Connect using JNDI -->
          <xsl:when test="$jndiDatasource != ''">
            <xsl:if test="not(sql:connect($connection, $jndiDatasource))">
              <xsl:message>Failed to connect to db via jndi connection</xsl:message>
              <xsl:comment>Failed to connect to db via jndi connection</xsl:comment>
              <xsl:if test="$debug = 'true'">
                <xsl:copy-of select="sql:getError($connection)/ext-error"/>
              </xsl:if>
            </xsl:if>
          </xsl:when>
          <xsl:otherwise><!-- Connect using connection string -->
            <xsl:if test="not(sql:connect($connection, $driver, $datasource))">
              <xsl:message>Failed to connect to db via driver/url connection</xsl:message>
              <xsl:comment>Failed to connect to db via driver/url connection</xsl:comment>
              <xsl:if test="$debug = 'true'">
                <xsl:copy-of select="sql:getError($connection)/ext-error"/>
              </xsl:if>
            </xsl:if>
          </xsl:otherwise>
        </xsl:choose>
              <!--
              The results of the query.  The rowset is brought back in 'streaming' mode,
              so its not possible to ask it for the number of rows, or to check for zero
              rows.  There is a switch to disable streaming mode, but this requires all
              rows to be brought into memory.
              -->
              <xsl:variable name="table" select="sql:query($connection, $query)"/>
              <xsl:if test="not($table)">
                   <xsl:message>Error in Query</xsl:message>
                   <xsl:copy-of select="sql:getError($connection)/ext-error"/>
              </xsl:if>
              <page>
                   <!-- Your xalan environment -->
                   <xsl:copy-of select="xalan:checkEnvironment()"/>
                   <!-- Build a bunch of metadata about the rows -->
                   <meta>
                        <cols>
                             <xsl:apply-templates select="$table/sql/metadata/column-header"/>
                        </cols>
                   </meta>
                   <rowset>
                        <!--
                             With streaming results, you must use the apply-temmplates contruct,
                             not for-each, since for-each seems to attempt to count the rows, which
                             returns zero.
                        -->
                        <xsl:apply-templates select="$table/sql/row-set"/>
                   </rowset>
              </page>
              <xsl:value-of select="sql:close($connection)"/><!-- Always close -->
         </xsl:template>
         <xsl:template match="row">
              <row>
                   <xsl:apply-templates select="col"/>
              </row>
         </xsl:template>
         <xsl:template match="column-header">
              <col>
                   <xsl:attribute name="type">
                        <xsl:value-of select="@column-typename"/>
                   </xsl:attribute>
                   <xsl:attribute name="display-name">
                        <xsl:call-template name="create-display-name"/>
                   </xsl:attribute>
                   <xsl:value-of select="@column-name"/>
              </col>
         </xsl:template>
         <!-- Convert column names to proper caps: MY_FIELD becomes My Field -->
         <xsl:template name="create-display-name">
              <xsl:variable name="col-name">
                   <xsl:for-each select="str:tokenize(@column-name, '_')">
                        <xsl:value-of
                             select="concat(translate(substring(., 1, 1), $lowercase, $uppercase), translate(substring(.,2), $uppercase, $lowercase), ' ')"/>
                   </xsl:for-each>
              </xsl:variable>
              <xsl:value-of select="substring($col-name, 1, string-length($col-name) - 1)"/>
         </xsl:template>
         <!-- Creates data columns named 'col' with a column-name attribute -->
         <xsl:template match="col">
              <col>
                   <xsl:attribute name="column-name"><xsl:value-of select="@column-name"/></xsl:attribute>
                   <xsl:value-of select="."/>
              </col>
         </xsl:template>
    </xsl:stylesheet>

  • Error while creating  connectionpool in oc4j forsqlserver2000

    I am trying to create a connection pool for sqlserver2000
    database using <b>oc4j enterprise manager 8888</b> I got the
    following error
    <i>Please suggest me a way to create a connection pool for
    sqlserver2000<i>
    <b>
    An error has occurred.
    Unable to create :
    com.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory
    Missing class:
    com.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory
    Dependent class: oracle.oc4j.sql.config.DataSourceConfigUtils
    Loader: oc4j:10.1.3 Code-Source:
    /D:/JDeveloper/j2ee/home/lib/oc4j-internal.jar Configuration: in
    META-INF/boot.xml in D:\JDeveloper\j2ee\home\oc4j.jar This load
    was initiated at ascontrol.web.ascontrol:0.0.0 using the
    Class.forName() method. The missing class is available from the
    following locations: 1. Code-Source:
    /D:/JDeveloper/j2ee/home/shared-lib/SQLServer2000Libraries/1/mss
    qlserver.jar (from in
    /D:/JDeveloper/j2ee/home/config/server.xml) This code-source is
    available in loader SQLServer2000Libraries:1. This
    shared-library can be imported by the "ascontrol" application.
    </b>

    Based on you info it is hard to know if you are using TopLink or not. If you are, then can you get me more information. How are you creating the pool, when are you getting the exception, etc...
    As this does not appear to be TopLink related, you may get a better answer from this forum: OC4J

  • OC4J not running after creating workspace and projects.

    Created one workspace and added six projects. Added PostGes jar to library manager. Before doing this, the OC4J would run a test application successfully. After creating the workspace and project, I created another simple workspace with two JSP, on linked to the other. When trying to run this project get the following:
    Apr 17, 2008 10:51:53 AM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
    Apr 17, 2008 10:51:53 AM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
    Apr 17, 2008 10:51:55 AM oracle.j2ee.util.LoggingUtils logAndReturnMessage
    WARNING: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : org.postgresql.Driver
    08/04/17 10:51:55 SEVERE: ApplicationStateRunning.initConnector Error occurred initializing connectors. Exception is: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : org.postgresql.Driver
    08/04/17 10:51:55 SEVERE: ApplicationStateRunning.initConnector Stack trace: oracle.oc4j.sql.DataSourceException: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : org.postgresql.Driver
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:2072)
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnector(ApplicationStateRunning.java:2017)
         at com.evermind.server.ApplicationStateRunning.initConnector(ApplicationStateRunning.java:1272)
         at com.evermind.server.ApplicationStateRunning.initConnectors(ApplicationStateRunning.java:345)
         at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:206)
         at com.evermind.server.Application.setConfig(Application.java:438)
         at com.evermind.server.Application.setConfig(Application.java:339)
         at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1895)
         at com.evermind.server.ApplicationServer.initializeDeployedApplications(ApplicationServer.java:1651)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1034)
         at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.resource.ResourceException: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : org.postgresql.Driver
         at oracle.oc4j.sql.spi.ResourceAdapterImpl.createDataSourceConnectionPool(ResourceAdapterImpl.java:106)
         at oracle.oc4j.sql.DataSourceUtils.getDataSourceConnectionPool(DataSourceUtils.java:330)
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:2053)
         ... 11 more
    Caused by: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : org.postgresql.Driver
         at oracle.oc4j.sql.config.DataSourceConfigUtils.createConnectionFactory(DataSourceConfigUtils.java:283)
         at oracle.oc4j.sql.DataSourceConnectionPoolImpl.<init>(DataSourceConnectionPoolImpl.java:108)
         at oracle.oc4j.sql.spi.ResourceAdapterImpl.createDataSourceConnectionPool(ResourceAdapterImpl.java:99)
         ... 13 more
    Caused by: oracle.classloader.util.AnnotatedClassNotFoundException:
         Missing class: org.postgresql.Driver
         Dependent class: oracle.oc4j.sql.config.DataSourceConfigUtils
         Loader: oc4j:10.1.3
         Code-Source: /C:/Jdeveloper10/j2ee/home/lib/oc4j-internal.jar
         Configuration: <code-source> in META-INF/boot.xml in C:\Jdeveloper10\j2ee\home\oc4j.jar
    Remove the posgres jar from the library manager and still not able to run simple two page applications.
    All the projects in the other workspace compile fine. The prolblem is that now I am not able to use the internal OC4J. I remove the workspace with the five projects, and the JARs and the two page app will not run.
    The OC4J is running when launched from the IDE, ti just can find the pages.
    New install of JDEV and the two page app will run fine. Add two user two user libraries and the app will not run.
    Thank you,
    Ben Carter

    Do you have a database connection to postgress defined in JDeveloper?
    JDev might be picking this up and trying to add a datasource for it to the embedded OC4J - so try removing it, or alternatively add the postgress JDBC driver jar files to the libraries node under tools->embedded OC4J preferences.

  • OC4J startup failed on AMD64 Fedora Core 5

    The installation guide for JDeveloper10131 says:
    "Note: <jdev_home>/j2ee/home/application-deployments is not available until you run java -jar oc4j.jar -install"
    Running
    "java -jar <jdev_home>/j2ee/home/oc4j.jar -install"
    results in
    "WARNING: System property "java.util.logging.manager" should be the name of a subclass of java.util.logging.LogManager
    WARNING: Cannot cleanup application URLStreamHandlers.
    OC4J startup failed
    oracle.classloader.util.AnnotatedClassFormatError: oracle.j2ee.ws.client.ClientMessageBundle_fi (erroneous identifier)
    Invalid class: oracle.j2ee.ws.client.ClientMessageBundle_fi
    Loader: oracle.ws.client:10.1.3
    Code-Source: /home/dan/lib/jdev10131/webservices/lib/wsclient.jar
    Configuration: <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in /home/dan/lib/jdev10131/j2ee/home/oc4j.jar
    Dependent class: oracle.classloader.util.XMLConfiguration
    Loader: gnu.gcj.runtime.SystemClassLoader@1694307706
    Code-Source: /home/dan/lib/jdev10131/j2ee/home/lib/pcl.jar
    Configuration: /home/dan/lib/jdev10131/j2ee/home/lib/pcl.jar
    at oracle.classloader.PolicyClassLoader.bulkLoadClasses (PolicyClassLoader.java:1538) [home/dan/lib/jdev10131/j2ee/home/lib/pcl.jar, by gnu.gcj.runtime.SystemClassLoader@1694307706]
    at oracle.classloader.util.XMLConfiguration.bulkLoadClasses (XMLConfiguration.java:888) [home/dan/lib/jdev10131/j2ee/home/lib/pcl.jar, by gnu.gcj.runtime.SystemClassLoader@1694307706]
    at oracle.classloader.util.XMLConfiguration.access$100 (XMLConfiguration.java:41) [home/dan/lib/jdev10131/j2ee/home/lib/pcl.jar, by gnu.gcj.runtime.SystemClassLoader@1694307706]
    at oracle.classloader.util.XMLConfiguration$Externals.load (XMLConfiguration.java:872) [home/dan/lib/jdev10131/j2ee/home/lib/pcl.jar, by gnu.gcj.runtime.SystemClassLoader@1694307706]
    at oracle.classloader.util.XMLConfiguration.endElement (XMLConfiguration.java:686) [home/dan/lib/jdev10131/j2ee/home/lib/pcl.jar, by gnu.gcj.runtime.SystemClassLoader@1694307706]
    at gnu.xml.aelfred2.SAXDriver.endElement (libgcj.so.7) [jre bootstrap, by jre.bootstrap:1.4.2]
    at gnu.xml.aelfred2.XmlParser.parseETag (libgcj.so.7) [jre bootstrap, by jre.bootstrap:1.4.2]
    at gnu.xml.aelfred2.XmlParser.parseContent (libgcj.so.7) [jre bootstrap, by jre.bootstrap:1.4.2]
    at gnu.xml.aelfred2.XmlParser.parseElement (libgcj.so.7) [jre bootstrap, by jre.bootstrap:1.4.2]
    at gnu.xml.aelfred2.XmlParser.parseContent (libgcj.so.7) [jre bootstrap, by jre.bootstrap:1.4.2]
    at gnu.xml.aelfred2.XmlParser.parseElement (libgcj.so.7) [jre bootstrap, by jre.bootstrap:1.4.2]
    at gnu.xml.aelfred2.XmlParser.parseDocument (libgcj.so.7) [jre bootstrap, by jre.bootstrap:1.4.2]
    at gnu.xml.aelfred2.XmlParser.doParse (libgcj.so.7) [jre bootstrap, by jre.bootstrap:1.4.2]
    at gnu.xml.aelfred2.SAXDriver.parse (libgcj.so.7) [jre bootstrap, by jre.bootstrap:1.4.2]
    at gnu.xml.aelfred2.XmlReader.parse (libgcj.so.7) [jre bootstrap, by jre.bootstrap:1.4.2]
    at oracle.classloader.util.XMLConfiguration.configureLoaders (XMLConfiguration.java:279) [home/dan/lib/jdev10131/j2ee/home/lib/pcl.jar, by gnu.gcj.runtime.SystemClassLoader@1694307706]
    at oracle.classloader.util.InitialLoadersFactory.populateLoaders (InitialLoadersFactory.java:389) [home/dan/lib/jdev10131/j2ee/home/lib/pcl.jar, by gnu.gcj.runtime.SystemClassLoader@1694307706]
    at oracle.classloader.util.InitialLoadersFactory.initLoaders (InitialLoadersFactory.java:230) [home/dan/lib/jdev10131/j2ee/home/lib/pcl.jar, by gnu.gcj.runtime.SystemClassLoader@1694307706]
    at oracle.classloader.util.InitialLoadersFactory.create (InitialLoadersFactory.java:167) [home/dan/lib/jdev10131/j2ee/home/lib/pcl.jar, by gnu.gcj.runtime.SystemClassLoader@1694307706]
    at oracle.oc4j.loader.boot.BootStrap.main (BootStrap.java:26) [home/dan/lib/jdev10131/j2ee/home/oc4j.jar, by gnu.gcj.runtime.SystemClassLoader@1694307706]
    at oracle.oc4j.loader.boot.BootStrap (method and line unknown).
    at gnu.java.lang.MainThread (method and line unknown)."

    When I run the example file Start.jsp (with OC4J startup failed, i.e. there is no folder <jdev_home>/j2ee/home/application-deployments) I get the following (and a web page saying:"Error instantiating web-application
    Application: login-LOGIN-webapp has been stopped"):
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    /home/dan/lib/jdev10131/jdev/bin/$/home/dan/jdevhome/system/oracle.j2ee.10.1.3.39.84/embedded-oc4j/config>
    /usr/local/jdk1.5.0_10/bin/java -server -classpath /home/dan/lib/jdev10131/j2ee/home/oc4j.jar:/home/dan/lib/jdev10131/jdev/lib/jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Xrs -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 /home/dan/lib/jdev10131/jdev/bin/$/home/dan/jdevhome/system/oracle.j2ee.10.1.3.39.84/embedded-oc4j/config/server.xml
    [waiting for the server to complete its initialization...]
    Jan 18, 2007 12:09:37 PM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
    Jan 18, 2007 12:09:37 PM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
    07/01/18 12:09:41 SEVERE: ApplicationStateRunning.initConnector Error occurred initializing connectors. Exception is: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
    07/01/18 12:09:41 SEVERE: ApplicationStateRunning.initConnector Stack trace: oracle.oc4j.sql.DataSourceException: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:2072)
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnector(ApplicationStateRunning.java:2017)
         at com.evermind.server.ApplicationStateRunning.initConnector(ApplicationStateRunning.java:1272)
         at com.evermind.server.ApplicationStateRunning.initConnectors(ApplicationStateRunning.java:345)
         at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:206)
         at com.evermind.server.Application.setConfig(Application.java:413)
         at com.evermind.server.Application.setConfig(Application.java:314)
         at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1853)
         at com.evermind.server.ApplicationServer.initializeDeployedApplications(ApplicationServer.java:1608)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:990)
         at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.resource.ResourceException: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
         at oracle.oc4j.sql.spi.ResourceAdapterImpl.createDataSourceConnectionPool(ResourceAdapterImpl.java:106)
         at oracle.oc4j.sql.DataSourceUtils.getDataSourceConnectionPool(DataSourceUtils.java:326)
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:2053)
         ... 11 more
    Caused by: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
         at oracle.oc4j.sql.config.DataSourceConfigUtils.createConnectionFactory(DataSourceConfigUtils.java:284)
         at oracle.oc4j.sql.DataSourceConnectionPoolImpl.<init>(DataSourceConnectionPoolImpl.java:108)
         at oracle.oc4j.sql.spi.ResourceAdapterImpl.createDataSourceConnectionPool(ResourceAdapterImpl.java:99)
         ... 13 more
    Caused by: oracle.classloader.util.AnnotatedClassNotFoundException:
         Missing class: com.mysql.jdbc.Driver
         Dependent class: oracle.oc4j.sql.config.DataSourceConfigUtils
         Loader: oc4j:10.1.3
         Code-Source: /home/dan/lib/jdev10131/j2ee/home/lib/oc4j-internal.jar
         Configuration: <code-source> in META-INF/boot.xml in /home/dan/lib/jdev10131/j2ee/home/oc4j.jar
    This load was initiated at current-workspace-app.root:0.0.0 using the Class.forName() method.
    The missing class is not available from any code-source or loader in the system.
         at oracle.classloader.PolicyClassLoader.handleClassNotFound(PolicyClassLoader.java:2078)
         at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1679)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1635)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1620)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:242)
         at oracle.oc4j.sql.config.DataSourceConfigUtils.createConnectionFactory(DataSourceConfigUtils.java:281)
         ... 15 more
    Jan 18, 2007 12:09:41 PM oracle.j2ee.util.LoggingUtils logAndReturnMessage
    WARNING: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
    07/01/18 12:09:41 WARNING: Application.setConfig Application: current-workspace-app is in failed state as initialization failed.
    java.lang.InstantiationException: Error occurred initializing connectors. Exception is: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
    Jan 18, 2007 12:09:41 PM com.evermind.server.ServerMessages warningApplicationInitializationFailed
    WARNING: Exception initializing deployed application: current-workspace-app. Application: current-workspace-app is in failed state as initialization failed
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 18153 ms.
    07/01/18 12:09:45 Oracle Containers for J2EE 10g (10.1.3.1.0) initialized
    Target URL -- http://127.0.0.1:8988/login-LOGIN-context-root/faces/Start.jsp

Maybe you are looking for

  • How do I patch CarbonCore framework in Snow Leopard 10.6 to end freezes?

    Hello community,      Ever since I updated my early core duo (1,1) MacBookPro to 10.6 (the highest software it can use) It has frozen crashed and rebuilds the directory on restarts. My Mac Mini which can run Lion did the exact same thing when I did a

  • Pixelated images when exporting to a PDF

    I am having difficulty every time I export to a PDF. Many of the pictures in side the .indd file are extremely pixelated. They have all been linked properly and are high resolution to begin with. Not sure what is going on. Any suggestions and/or help

  • Perspective Selection Tool not working

    I can't figure out why the selection tool won't work.  When active, I can't grab an object to move it and the icon next to the selection arrow is a line with an arrow pointing to the left, like this <–| Any suggestions?

  • Assignment field in FB03 is updated with a TM PO, and not the material PO

    Hi Experts, I am facing an issue. Issue: The assignment field in accounting document generated during GR is updated with the TM PO number(Trade PO) and not the Material PO . this happens while Posting goods receipt in VL32N tcode. Please let me know

  • Boot camp (vista 64-bit home premium) not seeing both my CPUs

    so i just received my mac pro =) base config with 8800GT. i just installed windows vista 64-bit home premium via boot camp. everything is going fine, it's just when i open task manager, it only sees four cores instead of all eight. is it because i ha