Deployement problem in oc4j with hibernate + JPA and Spring

Dear All,
From last 2 days I am facing a problem in deployment of our application in oc4j client of oracle app server.
I am getting the following exception
Operation failed with error: [mkclsets:mkclsets] - Exception creating EntityManagerFactory using PersistenceProvider class oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider for persistence unit mkclsetsPersistenceUnit.When I am deploying the same application in tomcat app server its working fine. But I am unable to deploy the same in oc4j.
I am using the following technologies
Spring 2.0
Struts 2.0
Hibernate 3.3
JPA 1.0
OC4J 10.1.3.3.0
IDE : my eclipse 6.0
My persistence.xml
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
    version="1.0">
     <persistence-unit name="mkclsetsPersistenceUnit" transaction-type="RESOURCE_LOCAL">
          <!-- jta-data-source>mkclDS</jta-data-source-->
          <provider>org.hibernate.ejb.HibernatePersistence</provider>
          <!-- properties>
               <property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect"/>
               <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.OC4JTransactionManager"/>
          </properties-->
     </persistence-unit>
</persistence>Datasource-context.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:aop="http://www.springframework.org/schema/aop"
    xmlns:tx="http://www.springframework.org/schema/tx"
    xsi:schemaLocation="
    http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
    http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
    http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">
     <bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor" lazy-init="true"/>
     <!--  following code is for using oracle -->
        <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource" lazy-init="true">
          <property name="driverClassName">
               <value>oracle.jdbc.driver.OracleDriver</value>
          </property>
          <property name="url">
               <value>jdbc:oracle:thin:@//xxxx.xxxx.xxxx.xxxx:1521/mydb</value>
          </property>
          <property name="username">
               <value>tpsadmin</value>
          </property>
          <property name="password">
               <value>tpsadmin</value>
          </property>
     </bean>
     <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean" lazy-init="true">
          <property name="persistenceUnitName" value="mkclsetsPersistenceUnit"/>
          <property name="dataSource" ref="dataSource"/>
          <property name="jpaVendorAdapter">
               <bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter" lazy-init="true">
                    <property name="database" value="ORACLE"/>               
                    <property name="showSql" value="true"/>
               </bean>
          </property>
     </bean>
     <bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager" lazy-init="true">
          <property name="entityManagerFactory" ref="entityManagerFactory"></property>
     </bean>
     <tx:annotation-driven transaction-manager="transactionManager"/>     
</beans>Server.xml (oc4j/j2ee/home/config)
<?xml version="1.0"?>
<application-server  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/application-server-10_1.xsd"  application-directory="../applications"
check-for-updates="adminClientOnly"
deployment-directory="../application-deployments"
connector-directory="../connectors"
schema-major-version="10" schema-minor-version="0" >
     <shared-library name="global.libraries" version="1.0" library-compatible="true">
          <code-source path="../applib"/>
     </shared-library>
     <shared-library name="global.tag.libraries" version="1.0" library-compatible="true">
          <code-source path="../../home/jsp/lib/taglib/"/>
          <code-source path="../../../j2ee/home/jsp/lib/taglib/"/>
          <code-source path="../../../lib/dsv2.jar"/>
          <import-shared-library name="oracle.xml"/>
          <import-shared-library name="oracle.jdbc"/>
          <import-shared-library name="oracle.cache"/>
          <import-shared-library name="soap"/>
     </shared-library>
     <shared-library name="oracle.persistence" version="1.0" library-compatible="true">
          <code-source path="../../../toplink/jlib/toplink-essentials.jar"/>
          <import-shared-library name="oracle.jdbc"/>
     </shared-library>
     <shared-library name="hibernatejpa" version="1.0">
          <code-source path="ejb3-persistence.jar"/>
          <code-source path="hibernate3.jar"/>
          <code-source path="hibernate-annotations.jar"/>
          <code-source path="hibernate-commons-annotations.jar"/>
          <code-source path="hibernate-entitymanager.jar"/>
          <code-source path="jboss-archive-browsing.jar"/>
          <code-source path="jta.jar"/>
     </shared-library>
     <shared-library name="db" version="1.0">
          <code-source path="ojdbc14.jar"/>
     </shared-library>
     <shared-library name="displaytab" version="1.0">
          <code-source path="commons-beanutils-1.7.0.jar"/>
          <code-source path="commons-lang-2.3.jar"/>
          <code-source path="displaytag-1.1.1.jar"/>
     </shared-library>
     <shared-library name="ehCache" version="1.0">
          <code-source path="backport-util-concurrent.jar"/>
          <code-source path="ehcache-1.4.0-beta2.jar"/>
          <code-source path="jsr107cache-1.0.jar"/>
     </shared-library>
     <shared-library name="json" version="1.0">
          <code-source path="ezmorph-1.0.4.jar"/>
          <code-source path="json.jar"/>
     </shared-library>
     <shared-library name="other_sets" version="1.0">
          <code-source path="commons-fileupload-1.1.jar"/>
          <code-source path="dom4j-1.6.1.jar"/>
          <code-source path="dwr.jar"/>
          <code-source path="javassist.jar"/>
          <code-source path="log4j-1.2.13.jar"/>
     </shared-library>
     <shared-library name="spring2" version="1.0">
          <code-source path="aspectjrt.jar"/>
          <code-source path="aspectjweaver.jar"/>
          <code-source path="cglib-nodep-2.1_3.jar"/>
          <code-source path="spring.jar"/>
     </shared-library>
     <shared-library name="struts2" version="1.0">
          <code-source path="antlr-2.7.2.jar"/>
          <code-source path="commons-collections.jar"/>
          <code-source path="commons-io-1.1.jar"/>
          <code-source path="commons-logging-1.0.4.jar"/>
          <code-source path="freemarker-2.3.8.jar"/>
          <code-source path="ognl-2.6.11.jar"/>
          <code-source path="struts2-core-2.0.9.jar"/>
          <code-source path="struts2-spring-plugin-2.0.9.jar"/>
          <code-source path="xwork-2.0.4.jar"/>
     </shared-library>
     <rmi-config path="./rmi.xml" />
     <jms-config path="./jms.xml" />
     <javacache-config path="../../../javacache/admin/javacache.xml" />
     <j2ee-logging-config path="./j2ee-logging.xml" />
     <log>
          <file path="../log/server.log" />
     </log>
     <java-compiler name="javac" in-process="false" options="-J-Xmx1024m -encoding UTF8" extdirs="C:\Program Files\Java\jdk1.5.0_07\jre\lib\ext" />
     <global-application name="default" path="application.xml" parent="system" start="true" />
     <application name="javasso" path="../../home/applications/javasso.ear" parent="default" start="false" />
     <application name="ascontrol" path="../../home/applications/ascontrol.ear" parent="system" start="true" />
     <application name="Test" path="../applications\Test.ear" parent="default" start="true" />
     <application name="OraTest" path="../applications\OraTest.ear" parent="default" start="true" />
     <global-web-app-config path="global-web-application.xml" />
     <transaction-manager-config path="transaction-manager.xml" />
     <web-site default="true" path="./default-web-site.xml" />
     <cluster  id="6745699755968" />
</application-server>Orion-application.xml (oc4j/j2ee/home/config)
<?xml version="1.0"?>
<orion-application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/orion-application-10_0.xsd" deployment-version="10.1.3.1.0" default-data-source="jdbc/OracleDS" component-classification="external"
schema-major-version="10" schema-minor-version="0" >
<imported-shared-libraries>
     <import-shared-library name="hibernatejpa"/>
     <import-shared-library name="db"/>
     <import-shared-library name="displaytab"/>
     <import-shared-library name="ehCache"/>
     <import-shared-library name="json"/>
     <import-shared-library name="other_sets"/>
     <import-shared-library name="spring2"/>
     <import-shared-library name="struts2"/>
</imported-shared-libraries>
</orion-application>Please help to deploy my application, I created one application with struts2 and spring2 and that is working fine, but when I try to add JPA with hibernate 3.3 I am unable to deploy it.
Thanks a lot in advance.
With best regards,
Ishaan

Hi,
Thank you very much for your reply. the previous Exception has gone but now I get the following one.
Exception: NoClassDefFoundError: Missing class: org.dom4j.DocumentException Dependent class: org.hibernate.ejb.HibernatePersistence Loader: hibernatejpa:1.0 Code-Source: /C:/oracle123/j2ee/home/shared-lib/hibernatejpa/1.0/hibernate-entitymanager.jar Configuration: in /C:/oracle123/j2ee/home/config/server.xml The missing class is available from the following locations: 1. Code-Source: /C:/oracle123/j2ee/home/shared-lib/other_sets/1.0/dom4j-1.6.1.jar (from in /C:/oracle123/j2ee/home/config/server.xml) This code-source is available in loader other_sets:1.0.
[Jun 2, 2008 10:57:17 AM] Operation failed with error: Missing class: org.dom4j.DocumentException Dependent class: org.hibernate.ejb.HibernatePersistence Loader: hibernatejpa:1.0 Code-Source: /C:/oracle123/j2ee/home/shared-lib/hibernatejpa/1.0/hibernate-entitymanager.jar Configuration: in /C:/oracle123/j2ee/home/config/server.xml The missing class is available from the following locations: 1. Code-Source: /C:/oracle123/j2ee/home/shared-lib/other_sets/1.0/dom4j-1.6.1.jar (from in /C:/oracle123/j2ee/home/config/server.xml) This code-source is available in loader other_sets:1.0. with bset regards,
ishaan

Similar Messages

  • Deployement problem in Oracle App Serv with hibernate + JPA and Spring

    Dear All,
         I am facing a problem in deployment of a web application in oracle application server 10g. but the same is working fine with Tomcat. The following Exception. Is being thrown.
         Failed to deploy web application "OraTest". Failed to deploy web application OraTest". . Nested exception Resolution:
    Base Exception:
    java.rmi.RemoteException
    deploy failed!: ; nested exception is:
    oracle.oc4j.admin.internal.DeployerException: Unknown assembly root-tag attribute: version. deploy failed!: ; nested exception is:
    oracle.oc4j.admin.internal.DeployerException: Unknown assembly root-tag attribute: version     I am using the following technologies
    1.     Spring 2.0.7
    2.     Struts 2.0.9
    3.     Hibernate 3.3
    4.     JPA 1.0
    5.     Oracle App Server 10.1.2.0.2
    Web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
         <display-name>My Application</display-name>
         <filter>
              <filter-name>struts2</filter-name>
              <filter-class>
                   org.apache.struts2.dispatcher.FilterDispatcher
              </filter-class>
         </filter>
         <filter-mapping>
              <filter-name>struts2</filter-name>
              <url-pattern>/*</url-pattern>
         </filter-mapping>
         <welcome-file-list>
              <welcome-file>/index.jsp</welcome-file>
         </welcome-file-list>
         <servlet>
              <servlet-name>dwr-invoker</servlet-name>
              <servlet-class>
                   org.directwebremoting.servlet.DwrServlet
              </servlet-class>
              <init-param>
                   <param-name>debug</param-name>
                   <param-value>true</param-value>
              </init-param>
         </servlet>
         <servlet-mapping>
              <servlet-name>dwr-invoker</servlet-name>
              <url-pattern>/dwr/*</url-pattern>
         </servlet-mapping>
         <listener>
              <listener-class>
                   org.springframework.web.context.ContextLoaderListener
              </listener-class>
         </listener>
         <context-param>
              <param-name>contextConfigLocation</param-name>
              <param-value>
                   /WEB-INF/conf/spring/datasource-context.xml,
                   /WEB-INF/conf/spring/aop-context.xml          
              </param-value>
         </context-param>
    </web-app>
    /Datasource-context.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:aop="http://www.springframework.org/schema/aop"
        xmlns:tx="http://www.springframework.org/schema/tx"
        xsi:schemaLocation="
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
        http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
        http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">
         <bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor" lazy-init="true"/>
         <!--  following code is for using oracle -->
            <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource" lazy-init="true">
              <property name="driverClassName">
                   <value>oracle.jdbc.driver.OracleDriver</value>
              </property>
              <property name="url">
                   <value>jdbc:oracle:thin:@//xxx.xxx.xxx.xxx/mydb</value>
              </property>
              <property name="username">
                   <value>admin</value>
              </property>
              <property name="password">
                   <value>admin</value>
              </property>
         </bean>
         <!--  following code is for using mysql -->
         <!--
         <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource" lazy-init="true">
              <property name="driverClassName">
                   <value>org.gjt.mm.mysql.Driver</value>
              </property>
              <property name="url">
                   <value>jdbc:mysql://192.168.10.157:3306/tpsadmin</value>
              </property>
              <property name="username">
                   <value>tpsadmin</value>
              </property>
              <property name="password">
                   <value>tpsadmin</value>+
              </property>
         </bean>
         -->
         <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean" lazy-init="true">
              <property name="persistenceUnitName" value="mkclsetsPersistenceUnit"/>
              <property name="dataSource" ref="dataSource"/>
              <property name="jpaVendorAdapter">
                   <bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter" lazy-init="true">
                        <property name="database" value="ORACLE"/>               
                        <property name="showSql" value="true"/>
                   </bean>
              </property>
         </bean>
         <bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager" lazy-init="true">
              <property name="entityManagerFactory" ref="entityManagerFactory"></property>
         </bean>
         <tx:annotation-driven transaction-manager="transactionManager"/>     
    </beans>Aop-context.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:aop="http://www.springframework.org/schema/aop"
        xmlns:tx="http://www.springframework.org/schema/tx"
        xsi:schemaLocation="
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
        http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
        http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">
    <!--  Bean Definition of all the required Interceptors -->
         <bean id="methodLoggingAdvice" class="com.mkcl.sets.common.interceptor.MehodLogInterceptor"/>
         <!--
         <bean id="appCacheManager" class="net.sf.ehcache.CacheManager">
              <constructor-arg index="0" type="java.net.URL" value="classpath:country-ehcache.xml"/>
         </bean>     
         -->
          <!--bean id="methodCacheInterceptor" -->
         <bean id="methodCachingAdvice"
              class="com.mkcl.sets.common.interceptor.MethodCacheInterceptor">
              <property name="cache">
                   <ref local="methodCache" />
              </property>
         </bean>
         <bean id="cacheManager"
              class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
              <property name="configLocation">
                   <value>WEB-INF/conf/other/ehcache.xml</value>
              </property>
         </bean>     
         <bean id="methodCache"
              class="org.springframework.cache.ehcache.EhCacheFactoryBean">
              <property name="cacheManager">
                   <ref local="cacheManager" />
              </property>
              <property name="cacheName">
                   <value>mkclSetsCache</value>
              </property>
         </bean>      
         <!--
         <bean id="methodCachingAdvice" class="interceptor.MethodCachingInterceptor"/>
          -->
         <aop:config>
              <aop:pointcut id="getCountriesPointCut" expression="execution(* com.mkcl.sets.dao.master.impl.LocationDAOImpl.getCountries())"/>          
              <!-- <aop:pointcut id="methodLogPointCut" expression="execution(* com.mkcl.sets.service.master.impl.CategoryServiceImpl.getAllCategories(..))"/> -->
              <aop:pointcut id="methodLogPointCutDao" expression="execution(* com.mkcl.sets.dao..*.*(..))"/>
              <aop:pointcut id="methodLogPointCutService" expression="execution(* com.mkcl.sets.service..*.*(..))"/>
              <aop:advisor id="methodCachingAdvisor" advice-ref="methodCachingAdvice" pointcut-ref="getCountriesPointCut"/>          
              <aop:advisor id="methodLoggingAdvisorDao" advice-ref="methodLoggingAdvice" pointcut-ref="methodLogPointCutDao"/>
              <aop:advisor id="methodLoggingAdvisorService" advice-ref="methodLoggingAdvice" pointcut-ref="methodLogPointCutService"/>
         </aop:config>
    </beans>Persistence.xml
    <persistence xmlns="http://java.sun.com/xml/ns/persistence"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
        version="1.0">
         <persistence-unit name="mkclsetsPersistenceUnit" transaction-type="RESOURCE_LOCAL">
              <!-- jta-data-source>mkclDS</jta-data-source-->
              <provider>org.hibernate.ejb.HibernatePersistence</provider>
              <!-- properties>
                   <property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect"/>
                   <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.OC4JTransactionManager"/>
              </properties-->
         </persistence-unit>
    </persistence>Do I need to add some other configuration in the existing files or do I need to add some other configuration files ? Please help to deploy my application.
    Thanks a lot in advance.
    With Best Regards,
    Ishaan
    null

    Did you ever find a solution to this Ishaan?
    I imagine you ended up having to upgrade 10gR2 to 10gR3 at least. Correct?

  • Problem in Multisim with transient analysis and initial conditions

    Hello everyone,
    I have a problem in multisim with transient analysis and initial conditions.
    If I do transient analysis with automatically determined initial conditions the circuits works.
    If I do transient analysis with user-defined initial conditions the circuits works in cases.
    --Working with user-defined---
    *## Multisim Component V2 ##*
    vV2 3 0 pwl(0 0 0.001 0 {0.001+1e-008} 3 {0.001+1e-008+1} 3)
    *## Multisim Component R1 ##*
    rR1 3 0 10000 vresR1
    .model vresR1 r( )
    --Working with user-defined----------
    *## Multisim Component V2 ##*
    vV2 1 0 pwl(0 0 0.001 0 {0.001+1e-008} 3 {0.001+1e-008+1} 3)
    *## Multisim Component U1 ##*
    xU1 1 0 MEMRISTOR__MEMS__1__1
    --Not Working with user-defined-------
    *## Multisim Component V2 ##*
    vV2 3 0 pwl(0 0 0.001 0 {0.001+1e-008} 3 {0.001+1e-008+1} -3)
    *## Multisim Component R1 ##*
    rR1 3 1 10000 vresR1
    .model vresR1 r( )
    *## Multisim Component U1 ##*
    xU1 1 0 MEMRISTOR__MEMS__1__1
    The costum component includes something like that:
    .subckt MEMRISTOR__MEMS__1__1 plus minus PARAMS:
    *Parameters values
    +rmin=100 rmax=390 rinit=390 alpha=1E3 beta=0 gamma=0.1 VtR=1.5 VtL=-1.5 yo=0.0001
    +m=82 fo=310 Lo=5
    blah blah ...
    .ends Memristor
    Namely, if I combine the resistor and my custom component in one circuit, transient analysis with user defined initial conditions gives an error (timestep too small).

    Hi  Nik,
    If possible, please post the Multisim file. This way, I can get access to all your settings.
    Tien P.
    National Instruments

  • What are the relation between JPA and Hibernate, JPA and TopLink?

    What are the relation between JPA and Hibernate, JPA and TopLink?
    Can JPA instead of Hibernate and TopLink?

    The Java Persistence API (JPA) is the object relational mapping persistence
    standard for Java. Hibernate and TopLink provide an Open source Object-relational mapping framework for Java.
    They provide an implementation for the Java Persistence API. In my opinion, both Hibernate and TopLink provide support to JPA
    and they can also be regarded as the complementary to JPA.
    Let's wait to see other person's opinions.

  • Set role with Java JPA and NativeSQL

    Hi,
    using 10g setting roles with Java JPA and NativeSQL works fine. After the upgrade to 11g the same commands will not work.
    Ars ther any significant changes to set roles in 11g?
    Regards
    Siegwin

    siegwin.port wrote:
    using 10g setting roles with Java JPA and NativeSQL works fine. After the upgrade to 11g the same commands will not work.
    Ars ther any significant changes to set roles in 11g?When I eval'd 11g, I did not notice any changes in setting my roles. I did notice a significant difference in Java. I cannot remember the JDK version change from 10g to 11g. We ended up settling back to 10g for other reasons.

  • Problems configuring FDS with Hibernate

    I'm trying to configure Flex Data Services with Hibernate on
    the back end and I'm running into
    these problems as shown below. Any pointers to solve these
    would be highly appreciated.
    Thanks in anticipation!
    Aubrey M.
    Config: Windows XP
    FDS 2
    Integrated JRun4
    Entries in data-management-config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <service id="data-service"
    class="flex.data.DataService"
    messageTypes="flex.data.messages.DataMessage">
    <adapters>
    <adapter-definition id="actionscript"
    class="flex.data.adapters.ASObjectAdapter" default="true"/>
    <adapter-definition id="java-adapter"
    class="flex.data.adapters.JavaAdapter"/>
    </adapters>
    <default-channels>
    <channel ref="my-rtmp"/>
    </default-channels>
    <destination id="BohaUser" channels="my-rtmp">
    <adapter ref="java-adapter" />
    <properties>
    <!-- <use-transactions>true</use-transactions>
    -->
    <source>flex.data.assemblers.HibernateAssembler</source>
    <scope>application</scope>
    <metadata>
    <identity property="id"/>
    <many-to-one property="establishment"
    destination="Establishment" lazy="true" />
    <many-to-one property="userRole"
    destination="UserRole" lazy="true" />
    </metadata>
    <network>
    <!-- <session-timeout>20</session-timeout>
    -->
    <paging enabled="true" pageSize="10" />
    <throttle-inbound policy="ERROR" max-frequency="500"/>
    <throttle-outbound policy="REPLACE"
    max-frequency="500"/>
    </network>
    <server>
    <hibernate-entity>boha.db.BohaUser />
    <update-conflict-mode>PROPERTY/>
    <delete-conflict-mode>OBJECT/>
    <fill-configuration>
    <use-query-cache>false/>
    <allow-hql-queries>true/>
    </fill-configuration>
    </server>
    </properties>
    </destination>
    <!-- End of Hibernate destination -->
    <destination id="Establishment" channels="my-rtmp">
    <adapter ref="java-adapter" />
    <properties>
    <source>flex.data.assemblers.HibernateAssembler</source>
    <scope>application</scope>
    <metadata>
    <identity property="id"/>
    <many-to-one property="owner"
    destination="Owner" lazy="true" />
    <many-to-one property="province"
    destination="Province" lazy="true" />
    </metadata>
    <network>
    <paging enabled="true" pageSize="10" />
    <throttle-inbound policy="ERROR" max-frequency="500"/>
    <throttle-outbound policy="REPLACE"
    max-frequency="500"/>
    </network>
    <server>
    <hibernate-entity>boha.db.Establishment</hibernate-entity>
    <update-conflict-mode>PROPERTY</update-conflict-mode>
    <delete-conflict-mode>OBJECT</delete-conflict-mode>
    <fill-configuration>
    <use-query-cache>false</use-query-cache>
    <allow-hql-queries>true</allow-hql-queries>
    </fill-configuration>
    </server>
    </properties>
    </destination>
    <!-- End of Hibernate destination -->
    <destination id="UserRole" channels="my-rtmp">
    <adapter ref="java-adapter" />
    <properties>
    <source>flex.data.assemblers.HibernateAssembler</source>
    <scope>application</scope>
    <metadata>
    <identity property="id"/>
    </metadata>
    <network>
    <paging enabled="true" pageSize="10" />
    <throttle-inbound policy="ERROR" max-frequency="500"/>
    <throttle-outbound policy="REPLACE"
    max-frequency="500"/>
    </network>
    <server>
    <hibernate-entity>boha.db.UserRole</hibernate-entity>
    <update-conflict-mode>PROPERTY</update-conflict-mode>
    <delete-conflict-mode>OBJECT</delete-conflict-mode>
    <fill-configuration>
    <use-query-cache>false</use-query-cache>
    <allow-hql-queries>true</allow-hql-queries>
    </fill-configuration>
    </server>
    </properties>
    </destination>
    <!-- End of Hibernate destination -->
    Output of integrated JRun4 startup
    9/18 12:52:26 info No JDBC data sources have been configured
    for this server (see jrun-resources.xml)
    09/18 12:52:26 info JRun Web Server listening on *:8700
    09/18 12:52:26 info Deploying web application "Flex Default
    Web Application" from:
    file:/C:/aaa-fds/jrun4/servers/default/default-war/
    09/18 12:52:26 user JSPServlet: init
    09/18 12:52:27 info Deploying web application "Boha Online
    Reservations" from: file:/C:/aaa-fds/jrun4/servers/default/flex/
    09/18 12:52:28 user JSPServlet: init
    09/18 12:52:29 user FlexMxmlServlet: init
    09/18 12:52:30 user FlexMxmlServlet: Starting Adobe Flex Web
    Tier Compiler
    09/18 12:52:30 user FlexMxmlServlet: Adobe Flex Web Tier
    Compiler Build: 143451
    09/18 12:52:30 user MessageBrokerServlet: init
    09/18 12:52:38 error Could not pre-load servlet:
    MessageBrokerServlet
    flex.messaging.config.ConfigurationException: Unused tags in
    <properties> found. Please fix them before continuing:
    '/server/delete-conflict-mode' in destination with id:
    'UserRole' from file: data-management-config.xml
    '/server/update-conflict-mode' in destination with id:
    'UserRole' from file: data-management-config.xml
    '/server/fill-configuration' in destination with id:
    'UserRole' from file: data-management-config.xml
    '/server/hibernate-entity' in destination with id:
    'UserRole' from file: data-management-config.xml
    '/server/delete-conflict-mode' in destination with id:
    'Establishment' from file: data-management-config.xml
    '/server/update-conflict-mode' in destination with id:
    'Establishment' from file: data-management-config.xml
    '/server/fill-configuration' in destination with id:
    'Establishment' from file: data-management-config.xml
    '/server/hibernate-entity' in destination with id:
    'Establishment' from file: data-management-config.xml
    '/server/delete-conflict-mode' in destination with id:
    'BohaUser' from file: data-management-config.xml
    '/server/update-conflict-mode' in destination with id:
    'BohaUser' from file: data-management-config.xml
    '/server/fill-configuration' in destination with id:
    'BohaUser' from file: data-management-config.xml
    '/server/hibernate-entity' in destination with id:
    'BohaUser' from file: data-management-config.xml
    at
    flex.messaging.config.MessagingConfiguration.reportUnusedProperties(MessagingConfiguratio n.java:432)
    at
    flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:110)
    at
    jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1200)
    at
    jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:791)
    at
    jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:293)
    at
    jrun.deployment.DeployerService.initModules(DeployerService.java:711)
    at
    jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
    at
    jrun.deployment.DeployerService.deploy(DeployerService.java:430)
    at
    jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
    at
    jrun.deployment.DeployerService.run(DeployerService.java:891)
    at
    jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:230)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    09/18 12:52:39 user FlexInternalServlet: init
    09/18 12:52:39 info Deploying web application "Flex Admin Web
    Application" from:
    file:/C:/aaa-fds/jrun4/servers/default/flex-admin/
    09/18 12:52:39 user JSPServlet: init
    09/18 12:52:40 user MessageBrokerServlet: init
    09/18 12:52:40 info Deploying web application "Flex Data
    Services Samples" from:
    file:/C:/aaa-fds/jrun4/servers/default/samples/
    09/18 12:52:41 user JSPServlet: init
    09/18 12:52:43 user FlexMxmlServlet: init
    09/18 12:52:44 user FlexMxmlServlet: Starting Adobe Flex Web
    Tier Compiler
    09/18 12:52:44 user FlexMxmlServlet: Adobe Flex Web Tier
    Compiler Build: 143451
    09/18 12:52:44 user MessageBrokerServlet: init
    09/18 12:52:46 user FlexSwfServlet: init
    09/18 12:52:46 user FlexInternalServlet: init
    09/18 12:52:46 info Deploying enterprise application "JRun
    4.0 Internal J2EE Components" from:
    file:/C:/aaa-fds/jrun4/lib/jrun-comp.ear
    09/18 12:52:46 info Deploying EJB "JRunSQLInvoker" from:
    file:/C:/aaa-fds/jrun4/lib/jrun-comp.ear

    Hi,
    Has this issue been resolved?
    Thanks
    Kumaran Nallore
    FDS QA

  • Why does my iPhone 4 not charge correctly?  Problem is definitely with the phone and not charges or chords.  Phone will charge but very slowly and no icon comes on.  Computer and iTunes doesn't recognize it a being connected.

    My iPhone 4 quit charging correctly.  It does charge but very slowly and icon doesn't indicate it as charging.  I've checked cables and charges and the problem is definetily with the phone.  My car stereo no longer recognizes it as a device.  Neither does the computer.  The real strange thing to me is that when I plug it into my old klispch speaker dock it will play songs.  My battery life is good when it is charged so I don't think its the battery. I've tried resetting the phone and cleaning the charging port.  I'm out of warranty.
    Would disconnecting the battery possibly reset it from some glitch or is the charging port got some bad contacts?

    I checked with the Genius Bar.  It was a new dilema to the lady that was helping me.  She took it to a back room and worked on it but it came out the same.  She gave me some options for repair or credit for replacement.
    I just kept the phone and put up with slowly charging it by plugging it in and then turning it off.
    I couldn't transfer anything from itunes.
    I finally got fed up and bought a new charging port for $10. and a toolkit for $3.  I looked up a video on youTube for the replacement and did it.
    That solved all the problems, it was the charging port, must have been some bad pins or something because it patially worked.

  • Problems sending emails with iPhone 3G and outlook exchange

    I have a problem sending email with exchange. Receiving and answering mail works fine and calender updates work fine. However when I initiate an email from the phone it syncs and ends up in the sent folder in the computer but never reaches the recipient. I have tried this many times with different recipients and phones. It only happens from my iphone and ipad. Any suggestions?
    Any help much appreciated

    The iPhone you returned is still syncing against your server and locking out your account. Someone possibly has access to your mail data. I'd recommend having your Exchange Administrator install the Microsoft Exchange Server ActiveSync Web Administration Tool (http://www.microsoft.com/downloads/details.aspx?FamilyID=E6851D23-D145-4DBF-A2CC -E0B4C6301453&displaylang=en) and attempt to wipe/delete/block that other iPhone.
    Message was edited by: ethanm

  • Problem syncing photos with Apple TV and iPod

    Ever since I connected my Apple TV I have had problems syncing photos with both my iPod and my Apple TV.
    The Apple TV gives me an error (no desciption) when I try to sync photos. The iPod gives me an error 39.
    iPhotos is working fine. I rebuilt the library using the rebuild library feature and this has not fixed the problem.
    I also rebuilt my iTunes library without success in fixing the problem.
    How does it sync? Is there some kind of syncing file I need to delete that may be corrupt?
    Does anyone have any ideas about what I could try?

    Just a suggestion,
    for a speedier and better informed reply, post your question in the AppleTV forums.

  • Problem with Hibernate Connection and MySQL

    I have the following setup:
    J2EE web-application, Java Servlets, Jsp, Hibernate for DB persistence, MySQL 4 (InnoDB tables)
    I have not specified any connection pool parameters (c3p0) in my hibernate.cfg.xml, as the default settings should suffice for my purposes.
    I use the SessionFactory object as follows.
    In my database access class, I have a static declaration that initialises the new SessionFactory.
    Then, I use Session session = sessionFactory.getSession(); and session.close(); to do my DB access.
    Likewise, when storing data into the DB, I use a Transaction object, and use transaction.commit(); at the end of database access.
    The problem is:
    When I store data into the database, the changes do not occur on the website. In other words, the data gets stored into the tables (I check that via phpMyAdmin) but when accessing it, it only gets the old data. This is a serious problem as I am developing a website with attached CMS that will be used to update the pages.
    The OTHER problem is:
    Instead of having a static initialisation of the SessionFactory object, I created a new one every time I needed to access the database. Although I had a sessionFactory.close(); statement at the end of the database acccess, I got an exception:
    "java.sql.SQLException: User db_user already has more than 'max_user_connections' active connections"
    At the very moment I don't have access to my code.
    If somebody has a suggestion or a solution to the problem, please reply.
    Also, I will supply any code that is necessary to identify the problem.
    Anders

    Thanks for the tip, but how do you mean to update the object?
    Here is the code that stores the data into the database:
    'sessionFactory' is a static SessionFactory object.
         public static int saveOrUpdate ( Object object ) {
              int flag = 0; // 0 is true
              LOG.info("CMSLogic >>> saveOrUpdate() - object: " + object );
              Session session = null;
              Transaction transaction = null;
              try {
                   session = sessionFactory.openSession();
                   transaction = session.beginTransaction();
                   LOG.info("CMSLogic >>> saveOrUpdate() - object to save or update: " + object );
                   session.saveOrUpdate(object);
                   // Flush the session
                   if ( session!= null )
                        session.flush();
                   transaction.commit();
              } catch ( Exception e ) {
                   e.printStackTrace ();
                   transaction.rollback();
                   flag = 1;
              } finally {
                   try{
                        if (session != null) {
                             session.close();
                   } catch (Exception e) {
                        LOG.error("CMSLogic >>> saveOrUpdate() - threw exception: " + e);
              return flag;
         }Further, here is the code that fetches the data from the DB:
         public static Item getItemByURL ( String url ) {
              // Verify the URL
              if ( url.charAt(0) == '/' ) url = url.substring (1);
              String [] urlArr = url.split( "/" );
              LOG.info("BusinessLogic >>> getItemByURL() - split url: urlArr.length: " + urlArr.length );
              for ( int i = 0; i < urlArr.length; i++ )
                   System.out.println ( urlArr[i] + ", " );
              if ( urlArr == null ) return null;
              if ( urlArr.length == 0 ) return null;
              if ( urlArr.length > 4 ) return null; // If the path depth is more than 3 levels, abort
              // Fetch data from DB
              List<Item> items = null;
              Session session = null;
              Query query = null;
              try {
                   session = sessionFactory.openSession();
                   if ( urlArr.length == 1 ) {
                        query = session.createQuery(
                             "FROM Item WHERE section.sectionKey LIKE 'root' " +
                             "AND filename LIKE '" + urlArr[0] + "'" );
                   else if ( urlArr.length == 2 ) {
                        query = session.createQuery(
                             "FROM Item WHERE section.sectionKey LIKE '" + urlArr[0] + "' " +
                             "AND filename LIKE '" + urlArr[1] + "'" );
                   else if ( urlArr.length == 3 ) {
                        query = session.createQuery(
                             "FROM Item WHERE section.sectionKey LIKE '" + urlArr[1] + "' " +
                             "AND section.parentSection.sectionKey LIKE '" + urlArr[0] + "' " +
                             "AND filename LIKE '" + urlArr[2] + "'" );
                   else { // if ( urlArr.length == 4 ) {
                        query = session.createQuery(
                             "FROM Item WHERE section.sectionKey LIKE '" + urlArr[2] + "' " +
                             "AND section.parentSection.sectionKey LIKE '" + urlArr[1] + "' " +
                             "AND section.parentSection.parentSection.sectionKey LIKE '" + urlArr[0] + "' " +
                             "AND filename LIKE '" + urlArr[3] + "'" );
                   items = query.list();
                   LOG.info("BusinessLogic >>> getItemByURL() - items = query.list(): " + items );
                   // Load the related revisions, too
                   if ( !items.isEmpty() ) {
                        Hibernate.initialize ( items.get(0).getRevisions() );
                        LOG.info("BusinessLogic >>> getItemByURL() - initialised revisions for item." );
                        Hibernate.initialize ( items.get(0).getRevisions().get(0).getTemplate() );
                        LOG.info("BusinessLogic >>> getItemByURL() - initialised template for first revision." );
                   // Flush the session
                   if ( session!= null )
                        session.flush();
              } catch ( Exception e ) {
                   e.printStackTrace ();
                   LOG.error("BusinessLogic >>> getItemByURL() - threw exception: " + e );
              } finally {
                   session.close();
                   //sessionFactory.close(); // !!!???
              // Return query results
              if ( items == null ) return null;
              else if ( items.isEmpty() == true ) return null;
              else {
                   LOG.info("BusinessLogic >>> getItemByURL() - items.get(0).getRevisions().size(): " + items.get(0).getRevisions().size() );
                   LOG.info("BusinessLogic >>> getItemByURL() - items.get(0).getRevisions().get(0): " + items.get(0).getRevisions().get(0) );
                   return items.get(0);
         }Any constructive suggestions and helpful comments are more than welcome.
    I have been struggling with this problem for a while now.
    Anders

  • Problems with Hibernate/JPA in our current Netweaver project

    Hi together,
    currently we are trying to migrate our Glassfish project to run under Netweaver. Til now, we have used Hibernate as the JPA Implementation.
    If we are trying to deploy our EAR, we get the failure that the EntityManager (Persistance Unit) can not be created.
    Here is our persistence-context.xml
         <persistence-unit name="soiPersistenceUnit" transaction-type="JTA">
              <provider>org.hibernate.ejb.HibernatePersistence</provider>
              <jta-data-source>SOI_DB</jta-data-source>
              <class>de.hr.ec.hai.ejb.entity.Project</class>
              <properties>
                   <property name="hibernate.dialect" value="org.hibernate.dialect.SAPDBDialect" />
                   <property name="hibernate.hbm2ddl.auto" value="update" />
                   <property name="hibernate.show_sql" value="true" />
                   <property name="hibernate.query.substitutions" value="true '1', false '0'" />
                   <property name="hibernate.current_session_context_class" value="jta" />
                   <property name="hibernate.transaction.manager_lookup_class" value="de.hr.ec.hai.ejb.service.SAPWebASTransactionManagerLookup" />
                   <property name="hibernate.jdbc.batch.size" value="1" />
              </properties>
         </persistence-unit>
    Has anyone an good hint to solve the problem?

    Hi,
    In SAP NetWeaver, you should use the persistence.xml file to configure the persistence unit.
    More information: http://help.sap.com/saphelp_nwce711/helpdata/en/46/96ec3c33621e5ce10000000a1553f6/frameset.htm
    Moreover, the properties you have are Hibernate-specific, which is perhaps one of the basic reasons for the problems you experience.
    The SAP JPA platform supports all standard JPA properties (as per the EJB 3.0 specification) + the SAP-specific properties.
    More information: http://help.sap.com/saphelp_nwce711/helpdata/en/77/fe0955fde340b3ab5220182d62b203/frameset.htm
    Not least, you may need to consider the overall Java persistence infrastructure @ SAP.
    More information: http://help.sap.com/saphelp_nwce711/helpdata/en/2d/23b32e8c0152469edf07909703fe03/frameset.htm
    I hope that helps.
    Best,
    Yordan
    P.S. I assume you want to migrate your application to SAP enhancement package 1 for SAP NetWeaver CE 7.1.

  • Ojdbc6 driver does not work with hibernate 3 and c3p0

    Hi,
    I am trying to connect to the 11g database through hibernate and c3p0. When I use ojdbc14 as my driver, it is connecting properly. But when I try using ojdbc6, it is failing saying Invalid username password, even though I specify the correct credentials. Can you please help me with this?
    12:04:05,411 DEBUG [com.mchange.v2.resourcepool.BasicResourcePool] awaitAvailable(): [unknown]
    12:04:05,411 DEBUG [com.mchange.v2.resourcepool.BasicResourcePool] trace com.mchange.v2.resourcepool.BasicResourcePool@23000bcf [managed: 0, unused: 0, excluded: 0]
    com.mchange.v2.resourcepool.BasicResourcePool An exception occurred while acquiring a resource.java.sql.SQLException: ORA-01017: invalid username/password; logon denied
    Thanks in advance!

    I don't know what your problem actually was. I do know that I have had problems with putting jars into the extensions directory. And those problems were because the extensions directory isn't precisely "part of the classpath". (Regardless of careless people who say "Put X into the extensions directory because it's part of your classpath.")
    Classes in the extensions directory are loaded by a classloader which doesn't have access to anything which is in the real classpath. Normally that isn't a problem for things like JDBC drivers, but for things which you expect to work with classes you put in the classpath, they fail because they can't load classes from the classpath.
    So I don't see why a JDBC driver should have that kind of problem, especially with getting authentication parameters. I would think that Hibernate (which is in your classpath, right?) could talk to the JDBC driver in the extensions directory with no problem. One possibility is that you put it in the extensions directory for some other JRE than the one you were using to run your application, but that's just speculation. I don't really have any idea.

  • Display Problem - Video noise with 15" Powerbook and 23" Studio Display

    I just bought a used 23" Studio Display to act as a second monitor for my 1.0 GHz 15" Powerbook. In my set up, the display is rather noisy -- there are consistant flickering lines of white pixels throughout the display. The lines are worst in dark areas, though they may just be showing up under contrast. The Powerbook it is connected to still looks normal.
    The first strange thing is that the display works perfectly with another 1.25 GHz 15" Powerbook I have to test it on. In both cases, I have connected the monitor to the Powerbooks with a new Apple brand powered DVI to ADV Adapter.
    The second strange thing is that the display seemed to act fine until I reinstalled my Wacom tablet driver so that it would work with dual displays. I've uninstalled the driver, but it the problem is still there.
    The third strange thing is that the display is fine while booting up. The blue boot up screen is very crisp looking and noiseless. It only starts showing noise when the login screen shows up.
    Any thoughts about what may be causing the problem or how to fix it would be appreciated.
    Thanks.
    angus.
    Powerbook 15" G5 dual 2.0   Mac OS X (10.4.7)   23" studio display

    Well I called AppleCare yesterday and, believe it or not, we actually got the USB ports acting normally - well at least I can boot up with the keyboard plugged into the back of the monitor.
    They had me reset the Open Firmware and that seemed to do the trick. Of course, the night before I updated to 10.4.10 so that may have had something to do with it, too. No idea.
    As for the power sensor button thing, they wanted me to plug the monitor into a different system, either at a Genius Bar or a friend or whatnot to see if it would behave in the same manner - not wanting to activate. I took it to school with me and hooked it up to one of my teacher's G5 and it behaved the same way. It took like 15 times touching the sensor to bring the system up.
    So I'll be calling them back and see where they want to go with this. Maybe I'll get lucky and get a new shiny monitor - or not...

  • Problem may be with saaj.jar and AXIS,WAS,WSAD

    Hi,
    I have successfully developed and deployed an EJB using WSAD 5.1.2's WebSphere 5.0 Test Environment. I have even able to access the EJB using UTC(Universal Test Client) in WSAD and by launching the j2ee client module using
    WebSphere lauchClient program.
    Basically I have below directory structure:
    a.ear
    --|-----axis.war
    -----------|------ lib
    --------------------|--- all axis related jars are here
    --|-----demoEjb.jar (has java jar dependencies set to axis.war\lib jars
    I have now exposed this ejb as web service using AXIS 1.2 RC2 deployed as web module inside WSAD. This web service is properly exposed as web service as I can see it and access its wsdl when I access axis web services.
    Now I have written a standalone-outside-wsad web service client that uses AXIS stubs and when I try to consume to this ejb web service I am getting below error.
    AxisFault
    faultCode: {http://xml.apache.org/axis/}HTTP
    faultSubcode:
    faultString: (500)Internal Server Error
    faultActor:
    faultNode:
    faultDetail:
    {}:return code: 500
    Error 500: class org.apache.axis.SOAPPart does not implement interface org.w3c.dom.Document
    {http://xml.apache.org/axis/}HttpErrorCode:500
    (500)Internal Server Error
    at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:663)
    at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:94)
    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:147)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2719)
    at org.apache.axis.client.Call.invoke(Call.java:2702)
    at org.apache.axis.client.Call.invoke(Call.java:2378)
    at org.apache.axis.client.Call.invoke(Call.java:2301)
    at org.apache.axis.client.Call.invoke(Call.java:1758)
    at com.sosnoski.test.DemoBindingStub.getAccountHistory(DemoBindingStub.java:194)
    at com.sosnoski.test.Client.query(Client.java:63)
    at com.sosnoski.test.Client.main(Client.java:100)
    I read somewhere with axis mailing lists that it is problem related to axis's saaj.jar and wsad's websphere 5.0
    test environment's webservices.jar so I even replaced my wsad installation's D:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v5\lib\webservices.jar with
    saaj.jar but this did not help and even I have added an references to saaj.jar usign wsad's websphere 5.0 test environment
    environment tab->ws.ext.dirs property and even this did not help.
    Can anyone please tell me why is error occurring and how to solve it ?
    Thanks & Regards,
    Kumar.

    Yes :-)
    At the ear level, set the Classloader mode to PARENT_FIRST and WAR classloader policy to APPLICATION. At the axis web module level, set the Classloader mode to PARENT_LAST
    We can colloborate to our future efforts if you can please give your active personal id from which you can respond faster for queries ....

  • Problem launching OC4J with HSQL db settings

    jdeveloper auto-creates this xml when launching OC4J, but I get "Invalid Oracle URL specified" even though I know the connection string works elsewhere (e.g. in jdevs connection navigator). Any ides please.
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <data-sources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/oracleas/schema http://xmlns.oracle.com/oracleas/schema/data-sources-10_1.xsd" version="10.1" xmlns="http://xmlns.oracle.com/oracleas/schema">
    <connection-pool name="jdev-connection-pool-hsqldb">
    <connection-factory factory-class="oracle.jdbc.pool.OracleDataSource" user="sa" url="jdbc:hsqldb:hsql://localhost/xdb" password="password"/>
    </connection-pool>
    <managed-data-source name="jdev-connection-hsqldb" jndi-name="jdbc/hsqldbDS" connection-pool-name="jdev-connection-pool-hsqldb"/>
    <native-data-source name="jdev-connection-hsqldb" jndi-name="jdbc/hsqldbCoreDS" url="jdbc:hsqldb:hsql://localhost/xdb" user="sa" data-source-class="oracle.jdbc.pool.OracleDataSource" password="password"/>
    </data-sources>

    Hi,
    Thank you very much for your reply. the previous Exception has gone but now I get the following one.
    Exception: NoClassDefFoundError: Missing class: org.dom4j.DocumentException Dependent class: org.hibernate.ejb.HibernatePersistence Loader: hibernatejpa:1.0 Code-Source: /C:/oracle123/j2ee/home/shared-lib/hibernatejpa/1.0/hibernate-entitymanager.jar Configuration: in /C:/oracle123/j2ee/home/config/server.xml The missing class is available from the following locations: 1. Code-Source: /C:/oracle123/j2ee/home/shared-lib/other_sets/1.0/dom4j-1.6.1.jar (from in /C:/oracle123/j2ee/home/config/server.xml) This code-source is available in loader other_sets:1.0.
    [Jun 2, 2008 10:57:17 AM] Operation failed with error: Missing class: org.dom4j.DocumentException Dependent class: org.hibernate.ejb.HibernatePersistence Loader: hibernatejpa:1.0 Code-Source: /C:/oracle123/j2ee/home/shared-lib/hibernatejpa/1.0/hibernate-entitymanager.jar Configuration: in /C:/oracle123/j2ee/home/config/server.xml The missing class is available from the following locations: 1. Code-Source: /C:/oracle123/j2ee/home/shared-lib/other_sets/1.0/dom4j-1.6.1.jar (from in /C:/oracle123/j2ee/home/config/server.xml) This code-source is available in loader other_sets:1.0. with bset regards,
    ishaan

Maybe you are looking for

  • R3trans error with code 0012 and its Solution

    After system refresh i got following error from Quality system while running R3trans -d This is R3trans version 6.14 (release 700 - 18.09.06 - 09:35:00). unicode enabled version 2EETW169 no connect possible: "DBMS = ORACLE --- dbs_ora_tnsname = 'QUA'

  • SVG Objects

    Is there an SVG library that we can download on the internet from either SAP or any that are on a free site?

  • What is difference between 4.7c BW and R/3 s/w

    what is difference between 4.7c BW and R/3 s/w

  • Windows 8.1 sleep/hibernate issues

    I have some issues with sleep and hibernation on my freshly installed Windows 8.1 Hibernation gets triggered properly after the set number of minutes, however, instead of going back to the previous state, a hard boot takes place. hilberfile.sys has t

  • Material PO text on the requisition

    Hi All, I need help ....the material PO text  field on the requisition is greyout so i want to be able to add more information on the field. I want to know if is possible to edit the material PO text for both non stock and stock item..if is possible