Jboss+toplink

hello
i MUST add the toplink lib files to the class path of weblogic(modify the "startWeblogic.cmd" file) to make the weblogic work with toplink,but i wonder how can i config the jboss3.0 to work with toplink?where i modify the class path of jboss?
thank you!

You just drop the toplink jars in the server/default/lib directory. JBoss builds it's classpath from hardcode files in JBOSS_HOME/lib (ie. no matter what you drop in there it will only use the original ones) and JBOSS_HOME/server/[chosen server]/lib directory. Please not that if you have Xerces Requirements and you want to use the latest then you will want to load the Toplink Xerces file via
DatabaseLogin.setXMLParserJARFileNames(..).

Similar Messages

  • JBoss 3.2.1 integration problem with Toplink 9.0.3

    hi, there
    it seems that the XML parser of Toplink 9.0.3 not happy with that of JBoss 3.2.1, when we try to build the toplink
    SessionManager.getManager().getSession(...)
    call
    1) if i did not let Xerces.jar (1.4.4) in, it complaints the missing class
    org/apache/xerces/framework/XMLParser
    2) if i put Xerces.jar in classpath, it throws
    java.lang.VerifyError: (class: oracle/toplink/tools/sessionconfiguration/XMLLoader, method: retreiveDOM signature: (Ljava/lang/ClassLoader;)Lorg/w3c/dom/Document;) Incompatible object argument for function call
    any ideas of the work-around???
    appreciated!!!
    zhuoer
    [email protected]

    see Tomcat?

  • JBoss JTS Integration with POJO TopLink

    I'm not sure the best way to post on this topic, as my previous posts have received little attention. I realize this is a tough issue to receive help on because it is dependent on JBoss.
    However, I'm now hoping that by linking to a support thread I started in the JBoss forum that I can get some more input from the TopLink team on this issue.
    The link is: http://www.jboss.org/index.html?module=bb&op=viewtopic&t=55930
    The basic description of the problem is that I am unable to integrate TopLink POJO with JBoss JTS (3.2.3-4.0.0 all have the same issue).
    The error occurs when UnitOfWork.afterTransaction(boolean, boolean) is called in afterTransaction(int) in the JTS SynchronizationListener hook.
    JBoss throws an error:
    rg.jboss.resource.JBossResourceException: Error in delist!; - nested throwable: (java.lang.IllegalStateException: Already committed. TransactionImpl:XidImpl[FormatId=257, GlobalId=kungfu/13, BranchQual=, localId=13])
    at org.jboss.resource.connectionmanager.BaseConnectionManager2.rethrowAsResourceException(BaseConnectionManager2.java:102)
    I've tried all kinds of things. A small change in the JBoss source (as suggested by their team), seemed to address it, but they aren't convinced it is an appropriate change according to the JTS spec.
    After this code change on the JBoss side, I was able to use TopLink in a JTS environment with 1 exception: Sequence number allocation caused a deadlock in several cases. I believe this is because the sequence numbers are allocated on a separate connection (or at least a diff txn).
    Is it possible for someone in the TopLink group to comment on this issue? Or, if anyone has been able to get TopLink support of JTS in a JBoss environment, please let me know.
    Nate

    I was able to get this to work with the following definition for my SQL Server XA Datasource.
    <datasources>
    <xa-datasource>
    <jndi-name>myDBXADS</jndi-name>
         <track-connection-by-tx>true</track-connection-by-tx>
    <isSameRM-override-value>false</isSameRM-override-value>
    <xa-datasource-class>com.microsoft.jdbcx.sqlserver.SQLServerDataSource</xa-datasource-class>
    <xa-datasource-property name="ServerName">localhost</xa-datasource-property>
    <xa-datasource-property name="DatabaseName">myDB</xa-datasource-property>
    <xa-datasource-property name="SelectMethod">cursor</xa-datasource-property>
    <user-name>sa</user-name>
    <password></password>
    <min-pool-size>20</min-pool-size>
    <max-pool-size>400</max-pool-size>
    <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
    <metadata>
    <type-mapping>MS SQLSERVER2000</type-mapping>
    </metadata>
    </xa-datasource>
    </datasources>
    The key attribute here is the: <track-connection-by-tx>true</track-connection-by-tx>
    Without this, it is impossible to get this to work in JBoss.
    Hope this helps.

  • TopLink and JBoss

    Hi everybody,
    I have a weird problem.
    I had recently completed SRDemo ADF tutorial, everything run fined, no problem.
    Out of curiosity to see how the things are running JBoss, I try to deploy JBoss.
    After long series of problem, I come this final one and I am hoping that somebody can give me a clue to which direction to proceed.
    I am receving this exception from the Jboss,
    JBO-29000: Exception [TOPLINK-6008] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptions.QueryException Exception-Beschreibung: Deskriptor für [oracle.srdemo.datamodel.Users] bei Abfrage namens [findUserByEMail] fehlt. (which basicly say it is not able to find the descriptor for the named query)
    I have a feeling session is not able to locate SRMap.xml file as TopLink mapping file, otherwise why it should log such a message, when everything is running without problem in OC4J.
    Any ideas?
    Thx in advance.
    Here is my sessions.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <toplink-sessions version="10g Release 3 (10.1.3.1.0)" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <session xsi:type="server-session">
    <name>SRDemoSession</name>
    <server-platform xsi:type="jboss-platform"/>
    <event-listener-classes/>
    <logging xsi:type="toplink-log">
    <log-level>all</log-level>
    <logging-options>
    <log-exception-stacktrace>true</log-exception-stacktrace>
    <print-thread>false</print-thread>
    <print-session>true</print-session>
    <print-connection>true</print-connection>
    <print-date>true</print-date>
    </logging-options>
    </logging>
    <primary-project xsi:type="xml">META-INF/SRMap.xml</primary-project>
    <login xsi:type="database-login">
    <platform-class>oracle.toplink.platform.database.SQLServerPlatform</platform-class>
    <password>5C4C6924B1B14E16</password>
    <external-connection-pooling>true</external-connection-pooling>
    <external-transaction-controller>true</external-transaction-controller>
    <sequencing>
    <default-sequence xsi:type="native-sequence">
    <name>Native</name>
    </default-sequence>
    </sequencing>
    <datasource lookup="string">java:jdbc/SRDemoDS</datasource>
    </login>
    <connection-pools>
    <read-connection-pool>
    <name>ReadConnectionPool</name>
    <exclusive>false</exclusive>
    </read-connection-pool>
    <write-connection-pool>
    <name>default</name>
    </write-connection-pool>
    </connection-pools>
    </session>
    </toplink-sessions>

    Hello,
    How are you getting/creating your session, and what is the code you use to execute the query? The problem is that it can't find a descriptor for the class passed in, which sometimes can be caused by classloader issues - if the class object passed in was loaded with a different classloader than TopLink used to load them in during startup, the descriptor wont be found. If you are using the SessionManager and this is the problem, you will need to use the getSession api that allows you to specify a specific classloader, such as
    getSession(sessionName, yourclass.class.getClassLoader())
    Best Regards,
    Chris

  • Predeploy for PersistenceUnit failed - JBOSS with toplink essentials

    I am trying to migrate my project from Tomcat 6 to Jboss-5.1.0-GA
    I am using JPA 1.0 with toplink-essentials 2.0 for database process.
    In tomcat it is working perfectly.
    But when i am trying in JBOSS, it showing the below error..
    19:38:27,983 ERROR [AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=#Entity state=Create
    javax.persistence.PersistenceException: Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.0 (Build b40-rc (03/21/2007))): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: predeploy for PersistenceUnit [Entity] failed.
    Internal Exception: java.lang.NullPointerException
    at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:615)
    at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createContainerEntityManagerFactory(EntityManagerFactoryProvider.java:178)
    at org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:301)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
    at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
    at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
    at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
    at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
    at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
    at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
    at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
    at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
    at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
    at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:121)
    at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)
    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
    at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
    at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
    at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
    at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
    at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
    at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
    at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
    at org.jboss.Main.boot(Main.java:221)
    at org.jboss.Main$1.run(Main.java:556)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.0 (Build b40-rc (03/21/2007))): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: predeploy for PersistenceUnit [Entity] failed.
    Internal Exception: java.lang.NullPointerException
    at oracle.toplink.essentials.exceptions.EntityManagerSetupException.predeployFailed(EntityManagerSetupException.java:212)
    ... 62 more
    Caused by: java.lang.NullPointerException
    at oracle.toplink.essentials.internal.ejb.cmp3.xml.XMLHelper.parseDocument(XMLHelper.java:623)
    at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProcessor.readStandardMappingFiles(MetadataProcessor.java:369)
    at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProcessor.readMappingFiles(MetadataProcessor.java:339)
    at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:344)
    at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:584)
    ... 61 more
    15:37:39,014 WARN [HDScanner] Failed to process changes
    org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
    DEPLOYMENTS IN ERROR:
    Deployment persistence.unit:unitName=#Entity is in error due to the following reason(s): java.lang.NullPointerException
    at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939)
    at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:873)
    at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
    at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:369)
    at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)and my persistence.xml file is here like below...
    <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="Entity" transaction-type="JTA">
    <provider>oracle.toplink.essentials.PersistenceProvider</provider>
    <jta-data-source>java:/iport</jta-data-source>
    <mapping-file>orm.xml</mapping-file>
    <class>env.model.authorization.IptUsersRoles</class>
    <class>env.model.defaults.IptConveyourMaster</class>
    <class>env.model.defaults.IptAccessroles</class>
    <class>env.model.defaults.IptAccesstype</class>
    <class>env.model.defaults.IptAccounttype</class>
    <class>env.model.defaults.IptCompanylicensejoin</class>
    <class>env.model.defaults.IptCompagentjoin</class>
    <class>env.model.defaults.IptState</class>
    <class>env.model.defaults.IptStockyardCargotype</class>
    <class>env.model.defaults.IptTaxcategory</class>
    <class>env.model.defaults.IptTaxparameter</class>
    <class>env.model.defaults.IptTaxtype</class>
    <class>env.model.defaults.IptTerminaltype</class>
    <class>env.model.defaults.IptTugtype</class>
    <class>env.model.defaults.IptGldetailsmaster</class>
    <class>env.model.defaults.IptBagmaster</class>
    <class>env.model.defaults.IptTax</class>
    <class>env.model.defaults.IptBranch</class>
    <class>env.model.defaults.IptTransactionType</class>
    <class>env.model.masters.IptAgentmaster</class>
    <class>env.model.operations.IptCommunicationTemplate</class>
    <class>env.model.operations.IptCommtemplateLines</class>
    <class>env.model.workflow.IptApprovedDocstatus</class>
    <class>env.model.masters.IptVesselPerformanceMaster</class>
    <class>env.model.defaults.IptEquipmentType</class>
    <class>env.model.defaults.IptCity</class>
    <class>env.model.transactions.IptLabreportFunction</class>
    <class>env.model.defaults.IptAttachmentConfiguration</class>
    <class>env.model.defaults.IptAttachmentConfigurationLines</class>
    <class>env.model.defaults.IptExchangeratelines</class>
    <class>env.model.masters.IptNotifications</class>
    <class>env.model.masters.IptNotificationslines</class>
    <class>env.model.defaults.IptLogSheet</class>
    <properties>
    <property name="toplink.jdbc.driver"
    value="com.microsoft.sqlserver.jdbc.SQLServerDriver" />
    <property name="toplink.jdbc.url"
    value="jdbc:sqlserver://x.x.x.x;databaseName=IPORTMAN_GPL" />
    <property name="toplink.jdbc.user" value="xx" />
    <property name="toplink.jdbc.password" value="xx" />
    </properties>
    </persistence-unit>
    </persistence>I also have the /META-INF/orm.xml file... where the code is like below...
    <?xml version="1.0" encoding="UTF-8"?>
    <entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_1_0.xsd"
    version="1.0">
    <persistence-unit-metadata>
    <persistence-unit-defaults>
    <schema>IPORTMAN</schema>
    <catalog>IPORTMAN_GPL</catalog>
    </persistence-unit-defaults>
    </persistence-unit-metadata>
    </entity-mappings>I can understand one thing, that there is some thing wrong in persistence.xml and it's data.
    After so much googled, i had found some solutions.... like....
    1) Remove the "private static final long serialVersionUID = 1L;" from all pojos.
    2) There should not be white space in persistence.xml inside <class> tag.
    3) Change the JTA datasource from NON-JTA datasoucre.
    I had changed all things as per the above mentioned points.
    But still i am getting the same error.
    Please verify the problem and suggest me a possible solution.
    Please help me.. Please..
    Edited by: sree4j on May 1, 2013 12:55 AM
    Edited by: sree4j on May 1, 2013 12:56 AM
    Edited by: sree4j on May 1, 2013 12:57 AM

    Hai jsutherl, Thank you for reply..
    Right now cannot upgrade my project from toplink to eclipselink.
    Because my project was an huge application. where i am using nearly 250 actionclasses and dao.
    I already tried to migrate, but the package structures are completely different. so, i am unable to figure out this packages path.
    So, as per your suggestion, i had renamed my orm.xml to mapping.xml file.
    But when i am running the application then the below error was throwing....
    19:03:30,149 INFO [STDOUT] [TopLink Warning]: 2013.05.01 07:03:30.119--java.lang.NullPointerException: null was thrown on attempt of PersistenceLoadProcessor to load class env.model.masters.IptNotifications. The class is ignored.[here IptNotifications is a database pojo refrence class where the db table name is IPT_NOTIFICATIONS]
    The above same kind of error was throwing to all my pojos [i.e. Database table refrence classes]
    Please help me.
    I have to migrate my project to jboss.
    All my work are getting stopped due to this issues.
    Please help me..

  • Can't deploy TopLink JPA on JBoss 5.1

    Greetings,
    I'm migrating from Hibernate to TopLink on JBoss 5.1. My new persistence.xml is the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <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="m2o-jar">
    <provider>oracle.toplink.essentials.PersistenceProvider</provider>
    <jta-data-source>java:/TestDS</jta-data-source>
    <properties>
    <property name="toplink.weaving" value="false" />
    <property name="toplink.target-database" value="MySQL" />
    <property name="toplink.jdbc.driver" value="com.mysql.jdbc.Driver" />
    <property name="toplink.external.transaction.controller.class.name" value="oracle.toplink.essentials.transaction.jboss.JbossTransactionController"/>
    <property name="toplink.ddl-generation" value="drop-and-create-tables" />
    <property name="toplink.logging.level" value="FINEST" />
    <property name="toplink.show_sql" value="true" />
    </properties>
    </persistence-unit>
    </persistence>
    While deploying on JBoss 5.1 I have the following:
    19:39:46,800 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@650761918{vfsfile:/home/nicolas/workspace/jds40/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_EAP_5.1_Runtime_Server1311339484761/deploy/m2o-ear.ear/m2o-ejb.jar/}
    19:39:46,800 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@650761918{vfsfile:/home/nicolas/workspace/jds40/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_EAP_5.1_Runtime_Server1311339484761/deploy/m2o-ear.ear/m2o-ejb.jar/}
    19:39:46,939 INFO [JBossASKernel] Created KernelDeployment for: m2o-ejb.jar
    19:39:46,939 INFO [JBossASKernel] installing bean: jboss.j2ee:ear=m2o-ear.ear,jar=m2o-ejb.jar,name=Facade,service=EJB3
    19:39:46,939 INFO [JBossASKernel] with dependencies:
    19:39:46,939 INFO [JBossASKernel] and demands:
    19:39:46,939 INFO [JBossASKernel]      jboss.ejb:service=EJBTimerService
    19:39:46,939 INFO [JBossASKernel]      persistence.unit:unitName=m2o-ear.ear/m2o-ejb.jar#m2o-jar
    19:39:46,939 INFO [JBossASKernel] and supplies:
    19:39:46,939 INFO [JBossASKernel]      jndi:m2o-ear/Facade/remote-de.dbag.jpa.m2o.FacadeRemote
    19:39:46,939 INFO [JBossASKernel]      jndi:m2o-ear/Facade/remote
    19:39:46,939 INFO [JBossASKernel]      jndi:/ejb/Facade/remote
    19:39:46,939 INFO [JBossASKernel]      Class:de.dbag.jpa.m2o.FacadeRemote
    19:39:46,939 INFO [JBossASKernel] Added bean(jboss.j2ee:ear=m2o-ear.ear,jar=m2o-ejb.jar,name=Facade,service=EJB3) to KernelDeployment of: m2o-ejb.jar
    19:39:46,956 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.unit:unitName=m2o-ear.ear/m2o-ejb.jar#m2o-jar
    19:39:47,120 INFO [STDOUT] [TopLink Finest]: 2011.07.25 07:39:47.107--ServerSession(109396896)--Thread(Thread[HDScanner,5,jboss])--property=toplink.weaving; value=false
    19:39:47,121 INFO [STDOUT] [TopLink Finest]: 2011.07.25 07:39:47.120--ServerSession(109396896)--Thread(Thread[HDScanner,5,jboss])--property=toplink.orm.throw.exceptions; default value=true
    19:39:47,149 INFO [STDOUT] [TopLink Finer]: 2011.07.25 07:39:47.148--ServerSession(109396896)--Thread(Thread[HDScanner,5,jboss])--Searching for default mapping file in file:/home/nicolas/workspace/jds40/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_EAP_5.1_Runtime_Server1311339484761/deploy/m2o-ear.ear/m2o-ejb.jar/
    19:39:47,157 INFO [STDOUT] [TopLink Warning]: 2011.07.25 07:39:47.157--Thread(Thread[HDScanner,5,jboss])--java.lang.NullPointerException: null was thrown on attempt of PersistenceLoadProcessor to load class de.dbag.jpa.m2o.Facade. The class is ignored.
    19:39:47,158 INFO [STDOUT] [TopLink Warning]: 2011.07.25 07:39:47.157--Thread(Thread[HDScanner,5,jboss])--java.lang.NullPointerException: null was thrown on attempt of PersistenceLoadProcessor to load class de.dbag.jpa.m2o.Product. The class is ignored.
    19:39:47,158 INFO [STDOUT] [TopLink Warning]: 2011.07.25 07:39:47.158--Thread(Thread[HDScanner,5,jboss])--java.lang.NullPointerException: null was thrown on attempt of PersistenceLoadProcessor to load class de.dbag.jpa.m2o.FacadeRemote. The class is ignored.
    19:39:47,158 INFO [STDOUT] [TopLink Warning]: 2011.07.25 07:39:47.158--Thread(Thread[HDScanner,5,jboss])--java.lang.NullPointerException: null was thrown on attempt of PersistenceLoadProcessor to load class de.dbag.jpa.m2o.Instrument. The class is ignored.
    19:39:47,162 INFO [STDOUT] [TopLink Finest]: 2011.07.25 07:39:47.162--ServerSession(109396896)--Thread(Thread[HDScanner,5,jboss])--end predeploying Persistence Unit m2o-jar; state Predeployed; factoryCount 1
    19:39:47,213 INFO [SessionSpecContainer] Starting jboss.j2ee:ear=m2o-ear.ear,jar=m2o-ejb.jar,name=Facade,service=EJB3
    19:39:47,215 INFO [EJBContainer] STARTED EJB: de.dbag.jpa.m2o.Facade ejbName: Facade
    19:39:47,246 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:
         /ejb/Facade/remote - EJB3.x Default Remote Business Interface
         m2o-ear/Facade/remote-de.dbag.jpa.m2o.FacadeRemote - EJB3.x Remote Business Interface
    I have toplink-essentials.jar and hibernate-entitymanager.jar on the classpath. Please help.
    Kind regards,
    Nicolas DUMINIL

    Hello,
    More information is required to help you, and as James suggested, the best option would be to move to EclipseLink instead of TopLink Essentials as EclipseLink is actively being developed and is the JPA 2 RI.
    Running it on the latest EclipseLink ensures that you are not hitting an issue that has already been fixed, and both are based off TopLink.
    Are you deploying an Ear or an exploded directory? If the later, can you try using an Ear?
    Best Regards,
    Chris

  • Does TopLink support JBoss App Server?

    My company is a software development company. So, we use many application servers for our customers.
    I found that TopLink supports OC4J, WebLogic and WebSphere, but I don't know, Does TopLink support JBoss? I just downloaded TopLink for test yesterday, so, I don't know much about TopLink, but my current project uses JBoss.
    Please give me some suggestion that might help me to refine my project.
    Thank you so much.

    Yes it does and there are customers using JBOSS. TopLink supports any app server and, in fact, doesn't even require an app server -- and compliant JVM will do just fine.

  • ADF in JDeveloper 10.1.3.0.4: Error deploying bc4j.ear in JBoss-4.0.4.CR2

    Hello,
    Using the ADF Runtime Installer for JBoss found in JDeveloper 10.1.3.0.4, i've received deployment error during startup of JBoss. The error message as displayed in the console window as follows:
    09:29:16,325 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
    --- Incompletely deployed packages ---
    org.jboss.deployment.DeploymentInfo@89f00429 { url=file:/C:/Java/JBossAppServers/jboss-4.0.4.CR2/server/default/deploy/bc4j.ear }
      deployer: org.jboss.deployment.EARDeployer@3a835d
      status: Deployment FAILED reason: Could not create deployment: file:/C:/Java/JBossAppServers/jboss-4.0.4.CR2/server/default/tmp/deploy/tmp65518bc4j.ear-contents/webapp.war; - nested throwable: (org.jboss.ws.WSException: java.lang.ClassNot
    FoundException: oracle.jbo.server.emd.EMDServlet)
      state: FAILED
      watch: file:/C:/Java/JBossAppServers/jboss-4.0.4.CR2/server/default/deploy/bc4j.ear
      altDD: null
      lastDeployed: 1146014956309
      lastModified: 1146014950147
      mbeans:Above it there is a lot more lines of stack trace, tell me if you need it to help me with this problem. The file structure deployed is as follows (Based on the log displayed in JDeveloper):
    In deploy directory
    bc4j.ear
    In jlib directory
    bc4jdomgnrc.jar
    In lib directory
    adf-connections.jar
    adfbinding.jar
    adfcm.jar
    adfm.jar
    adfmtl.jar
    adfmweb.jar
    adfshare.jar
    adfui.jar
    antlr.jar
    bc4jct.jar
    bc4jctejb.jar
    bc4jdomgnrc.jar
    bc4jdomorcl.jar
    bc4jhtml.jar
    bc4jimdomains.jar
    bc4jmt.jar
    bc4jmtejb.jar
    cache.jar
    collections.jar
    commons-cli-1.0.jar
    commons-el.jar
    concurrent.jar
    datatags.jar
    dc-adapters.jar
    dms.jar
    http_client.jar
    jazncore.jar
    jdev-cm.jar
    jsp-el-api.jar
    mdds.jar
    mdsrt.jar
    ojdbc14.jar
    ojdbc14dms.jar
    ojdl.jar
    ojpse.jar
    oracle-el.jar
    oraclepki.jar
    orajaxr.jar
    orasaaj.jar
    orawsdl.jar
    orawsrm.jar
    ordhttp.jar
    ordim.jar
    osdt_cert.jar
    osdt_core.jar
    osdt_saml.jar
    osdt_wss.jar
    osdt_xmlsec.jar
    regexp.jar
    runtime12.jar
    share.jar
    toplink.jar
    translator.jar
    wsclient.jar
    wsdl.jar
    wssecurity.jar
    xml.jar
    xmlef.jar
    xmlparserv2.jar
    xsdlib.jar
    xsqlserializers.jar
    xsu12.jar
    And another thing, is there any way to have the ADF Runtime Installer install the ADF Runtime into another JBoss config directory. As far as I noticed, it will only install into the JBoss default config directory.
    TQ in advance.

    Hi Cleber,
    Is it possible that you can send me a copy of your original 10.1.2 project which contains these diagrams so that I can take a look? The diagrams should open fine in 10.1.3.0.4.
    My email address is [email protected], if you could zip up your project and then change the .zip file extension to .zap to get it through the email server.
    Regards,
    Lisa
    JDev QA

  • EJB 3 CMP not working in JBoss

    hi,
    i created a simple CMP Entity Bean with mySQL and works fine with OC4J but when delpoy to JBoss 4.0.4RC1, it doesn't work.
    What I realised is that when a JDeveloper create a CMP Entity Bean from a Table it uses @Resource annotaion while I saw all the JBoss samples using @Persistance annotation.
    I changed my CMP to use @persistence annotation and created a persistence.xml file; for somereason it is not working neither in JBoss nor does it work in OC4J.
    Now, if i continue using @Resource annotation, where can I set the datasource so that the @Resource annotation uses my datasource when I deploy it to JBoss?
    or is there any other way to get it working?
    p/s: my datasource is working fine. i created a simple slsb and used
    DataSource ds =
    (DataSource)context.lookup(
    "java:jdbc/mysqlDS");
    and it works fine both in OC4J and JBoss
    any help is appreciated.
    thanks

    Ok, i got this working in JBoss.
    1) Replaced @Resource annotation with @Peristence annotation
    @PersistenceContext(unitName="mysql")
    2) Created persistence.xml in META-INF directory
    <persistence>
    <persistence-unit name="mysql">
    <jta-data-source>java:/jdbc/mysqlDS</jta-data-source>
    <!-- <properties>
    <property name="hibernate.hbm2ddl.auto"
    value="create-drop"/>
    </properties> -->
    </persistence-unit>
    </persistence>
    that is it.
    It means that whether we create EJB 3 on toplink EJB 3 or hibernate EJB 3, we should be able to run it on any of these as long as we stick with the standard annotations. JBoss Hibernate EJB has many additional annotations.
    Now, the only thing that is not working is my Firebird DataSource in JBoss. If anyone has done it please let me know .. thanks.

  • TopLink vs Hibernate... revisited... again :)

    Would it be possible to get a Toplink versus Hibernate (or other ORM frameworks) going here?
    It seems like the explosive adoption of Hibernate and the associated popularity contest in the industry has put some of us in a position where we're constantly trying to sell the-right-tool-for-the-right-job which, at least for me, seems to disqualify hibernate a lot of times, esp when scalable persistence is a requirement. It seems to be really difficult to convince folks that the popularity of hibernate doesnt mean it's by default the right option.
    I've seen at least two threads on theserverside.com about hibernate versus cayenne, and despite the amount of noise in the threads, there were a few folks making some decent points. The TopLink folks were very quiet on the threads, but I know they were reading :)
    So, anyone out there have any experience comparing TopLink and Hibernate? What do you all see as the shortcomings of each, esp from a technical architecture standpoint? Are GUI tools as overrated as Gavin claims? Where's annotation support for TopLink? Is TopLink overpriced? Is Hibernate's multi-tier non-integrated caching biting anyone on big projects where persistence needs to scale, or is integrated caching overrated? Is Hibernate3 really going to fix shortcomings that TopLink already addresses in current releases? What do you all think the Hibernate crew is doing right that the TopLink crew is doing wrong and vice versa? I'm not assuming any of these questions even merit answer but just interested in some objective discussion in a forum where TopLink guys might have a stronger voice.
    Take care!

    Well, I've only got a few minutes, but I could go on for hours.
    I'll start by saying that I've been doing ORM for longer than many people knew that you could. I had been a previous TOPLink user but went for about two years without having to do any ORM.
    Then, last year I started a new project for a client who insisted we use SqlServer and was hesitant to pay for any software unless it was absolutely necessary. (This is common these days, as the fact that there is so much free software out there encourages folks to try out the free stuff before paying for something that may or may not be better). Comparing the feature list of Hibernate to TOPLink and doing a little checking seemed to indicate that going with Hibernate would be a perfectly reasonable thing to do.
    I will state, uncategorically, that this was the worst technical decision I have ever made in my life... twenty-plus years of Software Application Developing, most of it with object-oriented languages (Smalltalk and Java).
    NOTE: I must couch that statement with the caveat that part of this was due to my naivete about the architectural assumptions I made about Hibernate before including it in my application. If I would have merely learned about Hibernate's architectural assumptions (though this was not easy due to their poor documentation) and allowed these assumptions to drive my development, it would not have been nearly as painful, just yucky. Also, if my objects were much simpler/flatter and I didn't need caching to speed things up, Hibernate could have worked just fine out of the box. Problem is, I had a complex system, needed caching, and Hibernate gave me nightmares as I tried to navigate through it.
    As a test-first developer, I don't care about the GUI tools, as I'm happy to write tests to verify I can store and retrieve objects, then write the mappings and find out if it passes. What I would like is the ability to allow two threads to read the same object and not have to bring two copies of the object into memory or read the database twice. Call me crazy, but it just seems like object identity is a useful thing... perhaps my twenty years of developing object-oriented software has skewed my reasoning and I need to think like folks who haven't been programming as long.
    Hibernate's poor documentation did make it clear that it did not want me to think this way, but it also suggested that, if I wanted to think this way, it could cache objects for me so it wouldn't hit the database twice. And, I'm sure it could have cached objects in some form, but not the form I wanted. Though I thought I followed the instructions on how to set up my cache, I found that reading the same object twice didn't always get the same (as in "==") object back.
    To try to figure out why not (or why other things that an experienced object-oriented software developer couldn't figure out by reading the documentation), I had to dive into the code. This felt like diving into a water source in hopes of finding some gems, but discovering that I was swimming in a sewer full of, well, stuff that you'd find in a sewer.
    Although Hibernate advertises itself as a framework, it is much more of a blackbox framework than a whitebox. Most of the methods and many of the classes are private or protected final. There are very few places to extend what's there. And there are virtually none that allow you to override their architectural assumptions.
    The biggest architectural assumption I found to be problematic was that application developers can't be trusted to know which objects they intended to read and which they intended to write. Therefore, Hibernate "protects" you from having two sessions refer to (that's right, refer to, not modify) a collection of objects.
    In the end, we ended up having to open up the source code and make some modifications in order to make our application run with reasonable performance. We had a lot of fairly deep objects (objects that contained objects that contained objects...) and the idea of not caching the ones that were not being modified across sessions just didn't cut it for us.
    Additionally, we've spent the last few months supporting the app that we finally got into production, and greater than 75% of our bug fixing time has been due to the fact that Hibernate actually reads in objects from several places and it is difficult to tap into THE place an object is read in... because there isn't one. It goes through all sorts of intermediate states and we found out that having one process that is reading objects while another is trying to write the same object can cause some unfortunate side effects, even if you put synchronization locks in the obvious places.
    We ended up with many person months of effort and a lot of special classes getting Hibernate to do what we wanted it to do, and had to open the source code (which will make it hard to ever upgrade to the next version).
    Just recently we started a new project (where Oracle was the corporate standard DB) and decided we'd try to use TOPLink. Having not used it for several years, I had hoped it was going to be much cleaner than Hibernate to hook into our persistence layer. It was a piece of cake. In a few days we were doing what took us months to do with Hibernate, and we didn't have to perform any unnatural acts to get there.
    I would recommend Hibernate to anyone who didn't know how to build a reasonably factored object-oriented system and didn't mind forcing their system architecture to fit Hibernate's architectural assumptions. But, if you think you might have reason to define your own architecture or modify Hibernate's default behavior, TOPLink is well worth the licensing fees. Not to mention the cost of your sanity.
    Is Hibernate really free? Only if you don't value your time. I also found that you can buy outrageously priced support from JBoss to make up for their poor documentation on their poorly architected ORM blackbox framework. The documentation for TOPLink is far superior, and the simplicity of doing simple customizations and tweaks is like night and day.

  • Connection pooling problem in TopLink with JBoss4.0.3

    Hi All
    I am using JBoss4.0.3SP1 with TopLink-10g(9.0.4.5) and Sybase as database. I am implementing connection pooling of JBoss with Sybase. I have done all the changes in JBoss mapping files.
    Now to enable connection pooling in TopLink I have set the <uses-external-connection-pooling> attribute in sessions.xml file to true and I have added <datasource> attribute corresponding to the datasource defined in JBoss. It is working fine but when I delete the username, password...etc attribute from the sessions.xml then I am not able to get the session from datasource.
    Can anyone tell me what to do or where I am making mistake? Any help on this will be appreciated

    I tried that code also but the project object that I am getting is null which is in this line
    DatabaseLogin login = (DatabaseLogin)mySession.getProject().getLogin();
    mySession is an object of oracle.toplink.sessions.Session interface but when I call this method then it returns me a null object of Project class, so I am getting NullPointerException error. I tried to do this stuff by many ways but I am always getting the NullPointereException in setLogin() method of Session. This is the stackTrace of the error.....
    java.lang.NullPointerException
    at oracle.toplink.publicinterface.Session.setLogin(Session.java:2871)
    at com.test.TestCon.executeQurey(TestCon.java:91)
    at org.apache.jsp.Test_jsp._jspService(org.apache.jsp.Test_jsp:55)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
    at java.lang.Thread.run(Unknown Source)
    Can you please tell me where I am wrong or any other way to do fix this problem.

  • Oracle Apps Adapter with jboss

    Hi,
    I'm using BPEL 10.1.2 with JBoss and I'm having trouble getting the Apps Adapter to work. I've tried configuring AppsAdapter-ds.xml in the deploy directory but I get the error message below when I invoke the process. Basically, the connection URL is invalid ? Looks ok to me, am I missing something. All the doco, even that with JBoss only talks about oracle BPEL engine. Not particularly helpful.
    matt.
    13:42:22,835 INFO [STDOUT] <2006-02-06 13:42:22,835> <INFO> <default.collaxa.cube.ws> <AdapterFramework::Outbound> file:/C:/development/orabpel_jboss1012/domains/default/tmp/.bpel_BPELProcess1_1.0.jar/OracleDev11.wsdl [ OracleDev11_ptt::OracleDev11Select(OracleDev11Select_inparameters,ArCustomersCollection) ] - Using JCA Connection Pool - max size = <unbounded>
    13:42:23,788 INFO [STDOUT] <2006-02-06 13:42:23,788> <ERROR> <default.collaxa.cube.ws> <Database Adapter::Outbound> <oracle.tip.adapter.db.DBManagedConnectionFactory acquireClientSession> unable to build the TopLink Session
    13:42:23,804 INFO [STDOUT] <2006-02-06 13:42:23,804> <ERROR> <default.collaxa.cube.ws> <Database Adapter::Outbound> <oracle.tip.adapter.db.DBInteraction executeOutboundRead> unable to execute the NamedQuery: BPELProcess1.ArCustomers.OracleDev11Select
    13:42:23,804 INFO [STDOUT] <2006-02-06 13:42:23,804> <ERROR> <default.collaxa.cube.ws> <AdapterFramework::Outbound> file:/C:/development/orabpel_jboss1012/domains/default/tmp/.bpel_BPELProcess1_1.0.jar/OracleDev11.wsdl [ OracleDev11_ptt::OracleDev11Select(OracleDev11Select_inparameters,ArCustomersCollection) ] - Could not invoke operation 'OracleDev11Select' against the 'Database Adapter' due to:
    ORABPEL-11622
    Could not create/access the TopLink Session.
    This session is used to connect to the datastore.
    See root exception for the specific exception. You may need to configure the connection settings in the deployment descriptor (i.e. orabpel/system/app
    server/jboss/server/default/deploy/DbAdapter-ds.xml) and restart the server. Caused by Exception [TOPLINK-4002] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle.toplink.exceptions.DatabaseException
    Exception Description: java.sql.SQLException: Invalid Oracle URL specified
    Internal Exception: java.sql.SQLException: Invalid Oracle URL specified
    Error Code: 17067.
    13:42:23,804 INFO [STDOUT] <2006-02-06 13:42:23,804> <INFO> <default.collaxa.cube.ws> <AdapterFramework::Outbound> Change logging level for Logger 'default.collaxa.cube.ws' to DEBUG to see full error stack
    13:42:23,804 INFO [STDOUT] <2006-02-06 13:42:23,804> <ERROR> <default.collaxa.cube.ws> <AdapterFramework::Outbound> file:/C:/development/orabpel_jboss1012/domains/default/tmp/.bpel_BPELProcess1_1.0.jar/OracleDev11.wsdl [ OracleDev11_ptt::OracleDev11Select(OracleDev11Select_inparameters,ArCustomersCollection) ] - Rolling back JCA LocalTransaction
    13:42:23,976 INFO [STDOUT] <2006-02-06 13:42:23,976> <ERROR> <default.collaxa.cube.sensor> <PCException::<init>> JMS connection factory lookup failed.
    13:42:23,976 INFO [STDOUT] <2006-02-06 13:42:23,976> <ERROR> <default.collaxa.cube.sensor> <PCException::<init>> Please verify the JMS configuration.
    13:42:23,976 INFO [STDOUT] <2006-02-06 13:42:23,976> <ERROR> <default.collaxa.cube.sensor> <DefaultDataRouter::send> JMS connection factory lookup failed.
    13:42:23,976 INFO [STDOUT] <2006-02-06 13:42:23,976> <ERROR> <default.collaxa.cube.sensor> <DefaultDataRouter::send> Please verify the JMS configuration.

    I don't know if this is the answer or not, but at least worth a try.
    A few years ago, JBoss was VERY unforgiving if installed on a windows machine with a space in the path. Most JBoss functionality would work fine, but in some situations, it would complain about the URL, just as it has in your case. It looks to me as if you do have a space in your path. I don't know if they ever got around to fixing it (I filed the original bug on the JBoss bug system). It's at least worth a try, or at least a search through the JBoss site to see if this issue still exists.
    Catherine

  • Application Jdevelopper 10.1.3.4.0 deployed to JBoss 4.0.5.GA

    Hello,
    We develop an application with Jdeveloper 10.1.3.4.0 and we want to deploy it to JBoss 4.0.5 GA but we have an error message like "EJB not bound".
    Our application is formed by 2 pojects (Model and View). We have chosen to use a EJB SessionBean (Stateless), and a Local Interface.
    For the mapping with te Database (Oracle 9i), we have a TopLink / Java Objects from tables ( SFMap).
    Can you help me please because the deployment to JBoss doesn't work whereas, all works fine with OC4J.
    I have heard that the deployment to JBoss4.0.5GA 's not possible with EJB3?
    Thank you very much,
    Diane

    LS,
    Seems that you have a perfect test case to submit to My Oracle Support (http://support.oracle.com) if it happens every time. That's what I would do.
    John

  • Migrating from older toplink to toplink 11.1.1.1.0

    Hi,
    Some details about versions i'm using:
    old toplink.jar: in manifest.mf it says: Implementation-Version: 10.1.3.0
    my mwp project says: <version>9.0.3.4</version>
    to the new toplink.jar who's manifest.mf says: Implementation-Version: 11.1.1.2.0.091016
    I'm following the documentation at: http://www.oracle.com/technology/products/ias/toplink/doc/11110/migration/toplink-migrate.html
    it is saying: "To continue using the deprecated toplink.jar classes, no migration is required."
    So I just replaced my old toplink.jar with the new toplink.jar
    and as I'm using jboss I replaces in my sessions.xml and update it to be:
    <external-transaction-controller-class>oracle.toplink.transaction.jboss.JBossTransactionController</external-transaction-controller-class>
    However then when my toplink code runs I get this kind of exception:
    Description: Several [1] SessionLoaderExceptions were thrown:
    Exception [TOPLINK-9005] (Oracle TopLink - 11g Release 1 (11.1.1.2.0) (Build 091016)): oracle.toplink.exceptions.SessionLoaderException
    Exception Description: An exception was thrown while loading the project-xml file [TopLink-MyProject.xml].
    Internal Exception: Exception [TOPLINK-98] (Oracle TopLink - 11g Release 1 (11.1.1.2.0) (Build 091016)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The underlying descriptor callback method [applyAmendmentMethod], with parameter (DescriptorEvent), triggered an exception.
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: Exception [TOPLINK-164] (Oracle TopLink - 11g Release 1 (11.1.1.2.0) (Build 091016)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The amendment method [ToplinkAddConstraintDependencyMyClass], in amendment class [class xxx.MyClass], is i
    nvalid, not public, or cannot be found.
    Descriptor amendment methods must be declared "public static void" with (ClassDescriptor) as the single parameter.
    Internal Exception: java.lang.NoSuchMethodException: xxx.MyClass.ToplinkAddConstraintDependencyMyClass(oracle.toplink.descriptors
    .ClassDescriptor)
    Descriptor: ClassDescriptor(xxx.MyClass --> [DatabaseTable(MY_TABLE)])
    Descriptor: XMLDescriptor(oracle.toplink.descriptors.ClassDescriptor --> [DatabaseTable(descriptor)])
    at oracle.toplink.exceptions.SessionLoaderException.finalException(SessionLoaderException.java:91)
    at oracle.toplink.tools.sessionconfiguration.XMLLoader.loadInternal(XMLLoader.java:172)
    but didn't the documentation just said that: "To continue using the deprecated toplink.jar classes, no migration is required."? Is it true? Did I do anything wrong? could anyone help me please?
    Thanks

    I managed to overcome this problem :) and now its working
    I just added this method to myClass
         public static void ToplinkAddConstraintDependencyMyClass(
                   oracle.toplink.descriptors.ClassDescriptor descriptor) {
              descriptor.addConstraintDependencies(MyClass.class);
         }

  • Querying the toplink cache under high-load

    We've had some interesting experiences with "querying" the TopLink Cache lately.
    It was recently discovered that our "read a single object" method was incorrectly
    setting query.checkCacheThenDB() for all ReadObjectQueries. This was brought to light
    when we upgraded our production servers from 4 cores to 8. We immediatly started
    experiencing very long response times under load.
    We traced this down to the following stack: (TopLink version 10.1.3.1.0)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x00002aab08fd26d8> (a oracle.toplink.internal.helper.ConcurrencyManager)
    at java.lang.Object.wait(Object.java:474)
    at oracle.toplink.internal.helper.ConcurrencyManager.acquireReadLock(ConcurrencyManager.java:179)
    - locked <0x00002aab08fd26d8> (a oracle.toplink.internal.helper.ConcurrencyManager)
    at oracle.toplink.internal.helper.ConcurrencyManager.checkReadLock(ConcurrencyManager.java:167)
    at oracle.toplink.internal.identitymaps.CacheKey.checkReadLock(CacheKey.java:122)
    at oracle.toplink.internal.identitymaps.IdentityMapKeyEnumeration.nextElement(IdentityMapKeyEnumeration.java:31)
    at oracle.toplink.internal.identitymaps.IdentityMapManager.getFromIdentityMap(IdentityMapManager.java:530)
    at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.checkCacheForObject(ExpressionQueryMechanism.java:412)
    at oracle.toplink.queryframework.ReadObjectQuery.checkEarlyReturnImpl(ReadObjectQuery.java:223)
    at oracle.toplink.queryframework.ObjectLevelReadQuery.checkEarlyReturn(ObjectLevelReadQuery.java:504)
    at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:564)
    at oracle.toplink.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:779)
    at oracle.toplink.queryframework.ReadObjectQuery.execute(ReadObjectQuery.java:388)
    We moved the query back to the default, query.checkByPrimaryKey() and this issue went away.
    The bottleneck seemed to stem from the read lock on the CacheKey from IdenityMapKeyEnumeration
    public Object nextElement() {
    if (this.nextKey == null) {
    throw new NoSuchElementException("IdentityMapKeyEnumeration nextElement");
    // CR#... Must check the read lock to avoid
    // returning half built objects.
    this.nextKey.checkReadLock();
    return this.nextKey;
    We had many threads that were having contention while searching the cache for a particular query.
    From the stack we know that the contention was limited to one class. We've since refactored that code
    not to use a query in that code path.
    Question:
    Armed with this better knowledge of how TopLink queries the cache, we do have a few objects that we
    frequently read by something other than the primary key. A natural key, but not the oid.
    We have some other caching mechanisms in place (JBoss TreeCache) to help eliminate queries to the DB
    for these objects. But the TreeCache also tries to acquire a read lock when accessing the cache.
    Presumably a read lock over the network to the cluster.
    Is there anything that can be done about the read lock on CacheKey when querying the cache in a high load
    situation?

    CheckCacheThenDatabase will check the entire cache for a match using a linear search. This can be efficient if the cache is very large. Typically it is more efficient to access the database if your cache is large and the field you are querying in the database is indexed in the table.
    The cache concurrency was greatly improved in TopLink 11g/EclipseLink, so you may wish to try it out.
    Supporting indexes in the TopLink/EclipseLink cache is something desirable (feel free to log the enhancement request on EclipseLink). You can simulate this to some degree using a named query and a query cache.
    -- James : http://www.eclipselink.org

Maybe you are looking for

  • Jabber 9.6 (Webex Connect) Photo Options

    We are using the Connect IM/P (SSO) for our Jabber clients and on prem CUCM 9.1.2 for voice. I'm looking to leverage our existing photos (used for lync) for Jabber. What options do we have and will it work with or without local connectivity (i.e no V

  • How to send a Notification in the Background????

    Hi Experts, I am working on a process consisting of 2 activities :-     - Creation of a Proposal by the Employee     - Evaluation & Approval of Proposal by the Manager I have these 2 doubts :-     - I need to send a notification to the manager on cre

  • How to Generate PDF file on the server

    Hello Everybody ! I Need to generate a PDF File on the server, and I'm usin the command : "OPEN DATASET p_path FOR OUTPUT IN BINARY MODE message l_verro .        LOOP AT t_lines.          TRANSFER t_lines-tdline TO p_path.        ENDLOOP.        CLOS

  • Brand New & I want to connect some guitars....

    Heya All, I'm brand new to Garageband. Well, brand new to the mac environment full stop. I must say I'm loving the switch. I'm pretty keen to start recording GarageBand - most likely limited to Acoustic Guitar, Electric Guitar, Percussion and Vocal M

  • 2 Versionen von Photoshop Lightroom auf dem PC

    3 Versuch: Im Zuge der Installation von Photoshop Lightroom 5 von einer CD habe ich nun 2 Versionen auf dem PC: 5.0.1 mit 958 MB und 5.3.1 mit 0,98 GB. Die erste Version stammt wohl von einer - zeitlich abgelaufenen - Testversion. Soll ich beide Vers