NoSuchMethodError: javax.persistence.OneToMany

Hi all,
I have an application that run with mvn jetty:run and run fine, but when i deployed in weblogic 10.3.4 send next error,
I guess it takes one of the weblogic jars, but as I make the application take the jar of war instead of the weblogic
[28/06/2011 08:52:21 ERROR ContextLoader:initWebApplicationContext:220] - Context initialization failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'abstractPersistenceDaoGenericHibernate' defined in URL [zip:C:/oracle/JDEV11/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/fisa-service/t8lrkf/war/WEB-INF/lib/fisa-model-0.0.1-SNAPSHOT.jar!/mx/grupocp/fisa/model/dao/impl/AbstractPersistenceDaoGenericHibernate.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.springframework.orm.hibernate3.HibernateTemplate]: : Error creating bean with name 'hibernateTemplate' defined in class path resource [META-INF/PersistenceAppCtx.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [META-INF/PersistenceAppCtx.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateTemplate' defined in class path resource [META-INF/PersistenceAppCtx.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [META-INF/PersistenceAppCtx.xml]: Invocation of init method failed; nested exception is java.lang*.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z*
     at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:730)
     at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:196)
     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)
     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907)
     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
     at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
     at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
     at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
     at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
     at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
     at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1872)
     at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
     at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)
     at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
     at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
     at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
     at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
     at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
     at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
     at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
     at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
     at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
     at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
     at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)
     at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
     at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
     at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:43)
     at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
     at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
     at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
     at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
     at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
     at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
     at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
     at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
     at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
     at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
     at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
     at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
     at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
     at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
this is ma pom file
<parent>
          <artifactId>fisa</artifactId>
          <groupId>mx.grupocp</groupId>
          <version>0.0.1-SNAPSHOT</version>
     </parent>
     <groupId>mx.grupocp</groupId>
     <artifactId>fisa-service</artifactId>
     <version>0.0.1-SNAPSHOT</version>
     <packaging>war</packaging>
     <dependencies>
          <dependency>
               <groupId>org.springframework</groupId>
               <artifactId>spring-orm</artifactId>
               <version>${org.springframework.version}</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>org.hibernate</groupId>
               <artifactId>hibernate-core</artifactId>
               <version>${org.hibernate.version}</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>org.hibernate</groupId>
               <artifactId>hibernate-annotations</artifactId>
               <version>${org.hibernate.version}</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>commons-dbcp</groupId>
               <artifactId>commons-dbcp</artifactId>
               <version>1.4</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>com.oracle</groupId>
               <artifactId>ojdbc6</artifactId>
               <version>11.2.0.2.0</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>mx.grupocp</groupId>
               <artifactId>fisa-model</artifactId>
               <version>0.0.1-SNAPSHOT</version>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>org.aspectj</groupId>
               <artifactId>aspectjweaver</artifactId>
               <version>1.6.11</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>net.sf.jasperreports</groupId>
               <artifactId>jasperreports</artifactId>
               <version>4.0.1</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>org.apache.cxf</groupId>
               <artifactId>cxf-rt-core</artifactId>
               <version>2.3.3</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>org.apache.cxf</groupId>
               <artifactId>cxf-rt-frontend-jaxws</artifactId>
               <version>2.3.3</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>org.apache.cxf</groupId>
               <artifactId>cxf-rt-transports-http</artifactId>
               <version>2.3.3</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>org.apache.cxf</groupId>
               <artifactId>cxf-rt-transports-http-jetty</artifactId>
               <version>2.3.3</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>org.apache.cxf</groupId>
               <artifactId>cxf-rt-transports-jms</artifactId>
               <version>2.3.3</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>org.apache.cxf</groupId>
               <artifactId>cxf-common-utilities</artifactId>
               <version>2.3.3</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>org.apache.cxf</groupId>
               <artifactId>cxf-rt-transports-local</artifactId>
               <version>2.3.3</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>org.apache.cxf</groupId>
               <artifactId>cxf-rt-databinding-aegis</artifactId>
               <version>2.3.3</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>org.apache.cxf</groupId>
               <artifactId>cxf-rt-frontend-simple</artifactId>
               <version>2.3.3</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>org.apache.cxf</groupId>
               <artifactId>cxf-rt-management</artifactId>
               <version>2.3.3</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>cglib</groupId>
               <artifactId>cglib</artifactId>
               <version>2.2</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>javassist</groupId>
               <artifactId>javassist</artifactId>
               <version>3.12.1.GA</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>log4j</groupId>
               <artifactId>log4j</artifactId>
               <version>1.2.15</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>org.slf4j</groupId>
               <artifactId>slf4j-log4j12</artifactId>
               <version>1.6.1</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>org.slf4j</groupId>
               <artifactId>slf4j-api</artifactId>
               <version>1.6.1</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
     </dependencies>

Hi all,
I have an application that run with mvn jetty:run and run fine, but when i deployed in weblogic 10.3.4 send next error,
I guess it takes one of the weblogic jars, but as I make the application take the jar of war instead of the weblogic
[28/06/2011 08:52:21 ERROR ContextLoader:initWebApplicationContext:220] - Context initialization failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'abstractPersistenceDaoGenericHibernate' defined in URL [zip:C:/oracle/JDEV11/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/fisa-service/t8lrkf/war/WEB-INF/lib/fisa-model-0.0.1-SNAPSHOT.jar!/mx/grupocp/fisa/model/dao/impl/AbstractPersistenceDaoGenericHibernate.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.springframework.orm.hibernate3.HibernateTemplate]: : Error creating bean with name 'hibernateTemplate' defined in class path resource [META-INF/PersistenceAppCtx.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [META-INF/PersistenceAppCtx.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateTemplate' defined in class path resource [META-INF/PersistenceAppCtx.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [META-INF/PersistenceAppCtx.xml]: Invocation of init method failed; nested exception is java.lang*.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z*
     at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:730)
     at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:196)
     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)
     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907)
     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
     at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
     at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
     at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
     at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
     at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
     at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1872)
     at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
     at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)
     at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
     at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
     at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
     at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
     at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
     at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
     at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
     at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
     at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
     at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
     at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)
     at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
     at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
     at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:43)
     at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
     at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
     at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
     at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
     at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
     at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
     at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
     at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
     at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
     at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
     at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
     at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
     at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
     at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
this is ma pom file
<parent>
          <artifactId>fisa</artifactId>
          <groupId>mx.grupocp</groupId>
          <version>0.0.1-SNAPSHOT</version>
     </parent>
     <groupId>mx.grupocp</groupId>
     <artifactId>fisa-service</artifactId>
     <version>0.0.1-SNAPSHOT</version>
     <packaging>war</packaging>
     <dependencies>
          <dependency>
               <groupId>org.springframework</groupId>
               <artifactId>spring-orm</artifactId>
               <version>${org.springframework.version}</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>org.hibernate</groupId>
               <artifactId>hibernate-core</artifactId>
               <version>${org.hibernate.version}</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>org.hibernate</groupId>
               <artifactId>hibernate-annotations</artifactId>
               <version>${org.hibernate.version}</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>commons-dbcp</groupId>
               <artifactId>commons-dbcp</artifactId>
               <version>1.4</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>com.oracle</groupId>
               <artifactId>ojdbc6</artifactId>
               <version>11.2.0.2.0</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>mx.grupocp</groupId>
               <artifactId>fisa-model</artifactId>
               <version>0.0.1-SNAPSHOT</version>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>org.aspectj</groupId>
               <artifactId>aspectjweaver</artifactId>
               <version>1.6.11</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>net.sf.jasperreports</groupId>
               <artifactId>jasperreports</artifactId>
               <version>4.0.1</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>org.apache.cxf</groupId>
               <artifactId>cxf-rt-core</artifactId>
               <version>2.3.3</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>org.apache.cxf</groupId>
               <artifactId>cxf-rt-frontend-jaxws</artifactId>
               <version>2.3.3</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>org.apache.cxf</groupId>
               <artifactId>cxf-rt-transports-http</artifactId>
               <version>2.3.3</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>org.apache.cxf</groupId>
               <artifactId>cxf-rt-transports-http-jetty</artifactId>
               <version>2.3.3</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>org.apache.cxf</groupId>
               <artifactId>cxf-rt-transports-jms</artifactId>
               <version>2.3.3</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>org.apache.cxf</groupId>
               <artifactId>cxf-common-utilities</artifactId>
               <version>2.3.3</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>org.apache.cxf</groupId>
               <artifactId>cxf-rt-transports-local</artifactId>
               <version>2.3.3</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>org.apache.cxf</groupId>
               <artifactId>cxf-rt-databinding-aegis</artifactId>
               <version>2.3.3</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>org.apache.cxf</groupId>
               <artifactId>cxf-rt-frontend-simple</artifactId>
               <version>2.3.3</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>org.apache.cxf</groupId>
               <artifactId>cxf-rt-management</artifactId>
               <version>2.3.3</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>cglib</groupId>
               <artifactId>cglib</artifactId>
               <version>2.2</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>javassist</groupId>
               <artifactId>javassist</artifactId>
               <version>3.12.1.GA</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>log4j</groupId>
               <artifactId>log4j</artifactId>
               <version>1.2.15</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>org.slf4j</groupId>
               <artifactId>slf4j-log4j12</artifactId>
               <version>1.6.1</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
          <dependency>
               <groupId>org.slf4j</groupId>
               <artifactId>slf4j-api</artifactId>
               <version>1.6.1</version>
               <type>jar</type>
               <scope>compile</scope>
          </dependency>
     </dependencies>

Similar Messages

  • Java.lang.NoSuchMethodError: javax/persistence/OneToMany.orphanRemoval()Z

    Hi,
    I have a web application that is built using Spring 3.2.1 and Hibernate 4.2.0 (JPA 2). The application deploys and runs well in Weblogic v 12.1.1. Now we have a change in the requirement from the client regarding the server version. The server needs to be downgraded to a lower version i.e., Weblogic v 10.3.2. Now, when I deploy the application onto this version of the server I get the following exception while deployment.
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.filterChains': Cannot resolve reference to bean 'org.springframework.security.web.DefaultSecurityFilterChain#0' while setting bean property 'sourceList' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.web.DefaultSecurityFilterChain#0': Cannot resolve reference to bean 'org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#0' while setting constructor argument with key [3]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#0': Cannot resolve reference to bean 'org.springframework.security.authentication.ProviderManager#0' while setting bean property 'authenticationManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.authentication.ProviderManager#0': Cannot resolve reference to bean 'org.springframework.security.config.authentication.AuthenticationManagerFactoryBean#0' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.config.authentication.AuthenticationManagerFactoryBean#0': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.authenticationManager': Cannot resolve reference to bean 'org.springframework.security.authentication.dao.DaoAuthenticationProvider#0' while setting constructor argument with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.authentication.dao.DaoAuthenticationProvider#0': Cannot resolve reference to bean 'cpmaSecurityService' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cpmaSecurityService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.ncr.cpa.data.dao.UserDao com.ncr.cpa.service.impl.CPMASecurityService.userDAO; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDaoImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.hibernate.SessionFactory com.ncr.cpa.data.dao.impl.UserDaoImpl.sessionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/applicationContextTxManager.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: javax/persistence/OneToMany.orphanRemoval()Z
      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329)
      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)
      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:154)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1391)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1132)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:522)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
      at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
      at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:608)
      at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:933)
      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
      at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:390)
      at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
      at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:113)
      at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
      at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1870)
      at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3155)
      at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1518)
      at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:487)
      at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:427)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
      at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
      at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:201)
      at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:249)
      at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:427)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
      at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
      at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:28)
      at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:672)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
      at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
      at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:44)
      at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
      at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
      at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
      at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
      at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:52)
      at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
      at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:31)
      at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
      at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:170)
      at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:124)
      at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:181)
      at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:97)
      at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    It looks like a problem with the JPA library. I tried few of the solutions after I did some research but were of no use. Below are the solutions that I had tried
    Solution 1:
    1) Copy hibernate-jpa-2.0-api-1.0.1.Final.jar into your weblogic's %DOMAIN_HOME%/lib directory.
    2) Open up your setDomainEnv.cmd (windows) or setDomainEnv sh (unix) script file and set your PRE_CLASSPATH variable to set PRE_CLASSPATH=%DOMAIN_HOME%\lib\hibernate-jpa-2.0-api-1.0.1.Final.jar
    After trying the above solution the exception is still raised while deployment of the application.
    Solution 2:
    Create "weblogic-application.xml" file into META-INF with something like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <weblogic-application xmlns="http://xmlns.oracle.com/weblogic/weblogic-application">
    <application-param>
      <param-name>webapp.encoding.default</param-name>
      <param-value>UTF-8</param-value>
    </application-param>
    <prefer-application-packages> 
      <package-name>javax.persistence.*</package-name>
    </prefer-application-packages>
    </weblogic-application>
    After trying the above solution the exception is still raised while deployment of the application
    I really appreciate if anyone can suggest me what is causing this exception and how can I fix this?
    Thanks,
    Srikanth

    Hi,
    if you deplyo to Application Server 10.1.3 make sure you install the ADF runtime libraries 10.1.3.1. Shut down the Application Server and use the runtime installer from the JDeveloper tools menu
    Frank

  • Package javax.persistence does not exist

    Hi, I'm a beginner on Weblogic, sorry my so simple and basic question (and my bad english). But I'm trying to build the weblogic examples ("ant build", as the documentation says) and got error messages like this:
    Buildfile: build.xml
    clean:
    init:
    [mkdir] Created dir: /opt/bea/wlserver_10.3/samples/server/examples/src/examples/ejb/ejb30/build/META-INF
    [copy] Copying 1 file to /opt/bea/wlserver_10.3/samples/server/examples/src/examples/ejb/ejb30/build/META-INF
    [copy] Copying 1 file to /opt/bea/wlserver_10.3/samples/server/examples/src/examples/ejb/ejb30/build/META-INF
    [echo] ======================================================
    [echo] Building EJB 3.0 Samples
    [echo] ======================================================
    [echo] Base directory : /opt/bea/wlserver_10.3/samples/server/examples/src/examples/ejb/ejb30
    [echo] Samples Home : /opt/bea/wlserver_10.3/samples
    [echo] Deployed Target : /opt/bea/wlserver_10.3/samples/server/examples/build/ejb30/reviewService.ear
    compile:
    [javac] Compiling 38 source files to /opt/bea/wlserver_10.3/samples/server/examples/src/examples/ejb/ejb30/build
    [javac] /opt/bea/wlserver_10.3/samples/server/examples/src/examples/ejb/ejb30/src/java/examples/ejb/ejb30/domain/Artist.java:6: package javax.persistence does not exist
    [javac] import javax.persistence.*;
    [javac] ^
    [javac] /opt/bea/wlserver_10.3/samples/server/examples/src/examples/ejb/ejb30/src/java/examples/ejb/ejb30/domain/Person.java:7: package javax.persistence does not exist
    I suppose that there is some "jar" containing "javax.persistence" that should be included in some classpath
    on build.xml file, but I didn't find such "jar". I found in documentation that persistence is also implemented using
    the Kodo software, an may be I should configure it, but I don't know how. Can someone help me building the
    Weblogic examples?
    Thanks.

    Hi,
    Here the result of :
    echo "CLASSPATH" in windows after running setWLS.Env.cmd
    C:\bea\patch_wlw1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;
    C:\bea\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;
    C:\bea\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;
    C:\bea\patch_cie660\profiles\default\sys_manifest_classpath\weblogic_patch.jar;
    C:\bea\JROCKI~1\lib\tools.jar;C:\bea\WLSERV~1.3\server\lib\weblogic_sp.jar;
    C:\bea\WLSERV~1.3\server\lib\weblogic.jar;
    C:\bea\modules\features\weblogic.server.modules_10.3.0.0.jar;
    C:\bea\WLSERV~1.3\server\lib\webservices.jar;
    C:\bea\modules\ORGAPA~1.5/lib/ant-all.jar;
    C:\bea\modules\NETSFA~1.0_1/lib/ant-contrib.jar;
    C:\bea\patch_wlw1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;
    C:\bea\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;
    C:\bea\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;
    C:\bea\patch_cie660\profiles\default\sys_manifest_classpath\weblogic_patch.jar;
    C:\bea\JROCKI~1\lib\tools.jar;
    C:\bea\WLSERV~1.3\server\lib\weblogic_sp.jar;
    C:\bea\WLSERV~1.3\server\lib\weblogic.jar;
    C:\bea\modules\features\weblogic.server.modules_10.3.0.0.jar;
    C:\bea\WLSERV~1.3\server\lib\webservices.jar;
    C:\bea\modules\ORGAPA~1.5/lib/ant-all.jar;
    C:\bea\modules\NETSFA~1.0_1/lib/ant-contrib.jar;
    C:\Program Files\Java\jre1.6.0_07\lib\ext\QTJava.zip
    Hope it will help
    can you past the content of you script setWLSEnv.sh?
    Also try with the script setExamplesEnv.sh under C:\bea\wlserver_10.3\samples\domains\wl_server (for windows) the equivalent of Unix
    Thanks

  • Javax.persistence annotated class creating persistence.jar dependency

    Hi,
    I'm trying to create a JAR for clients to use. I would like to include a few classes that have been annotated for use with hibernate using the standard javax.persistence annotations (code snippet below). The problem is, @GeneratedValue accepts a javax.persistence.GenerationType enum which is creating a dependency and, in fact, causes the client's compiler to fail if they try to import and use the Award class after including my JAR.
    Does anyone know of a solution. Thanks in advance. Here's the compiler output:
    An exception has occurred in the compiler (1.6.0_04). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport)  after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report.  Thank you.
    com.sun.tools.javac.code.Symbol$CompletionFailure: class file for javax.persistence.GenerationType not found
    Compilation completed with 1 error and 0 warnings
    1 error
    0 warnings
    Compiler internal error. Process terminated with exit code 4
    @Entity
    @Table( name = "award" )
    public class Award
        @Id
        @GeneratedValue( strategy = GenerationType.IDENTITY ) // this requires that GenerationType be available to the client
        @Column( name = "award_id", nullable = false, length = 19 )
        private Long id;
        // etc., etc.
    }

    Did you read the error message anyway? Did you bother to Google the error message?
    At least try upgrading both the JDK and the JPA implementation.

  • Problems building JavaDoc of classes using Hibernate/javax.persistence

    Hallo!
    I am trying to create the javadoc of classes that use hibernate. First it starts of with error messages like
      [javadoc] SubmissionSet.java:40: cannot find symbol
      [javadoc] symbol: class Table
      [javadoc] @Table(name="submissionset"/*, schema = "reg"*/)or
      [javadoc] Employee.java:8: package javax.persistence does not exist
      [javadoc] import javax.persistence.JoinColumn;
      [javadoc]                         ^Afterwards it gets even strange with exceptions within javadoc like:
    [javadoc] java.lang.ClassCastException: com.sun.tools.javadoc.ClassDocImpl cannot be cast to com.sun.javadoc.AnnotationTypeDoc
      [javadoc]     at com.sun.tools.javadoc.AnnotationDescImpl.annotationType(AnnotationDescImpl.java:46)
      [javadoc]     at com.sun.tools.doclets.internal.toolkit.util.Util.isDeprecated(Util.java:811)
      [javadoc]     at com.sun.tools.doclets.formats.html.TagletWriterImpl.deprecatedTagOutput(TagletWriterImpl.java:70)
      [javadoc]     at com.sun.tools.doclets.internal.toolkit.taglets.DeprecatedTaglet.getTagletOutput(DeprecatedTaglet.java:40)
      [javadoc]     at com.sun.tools.doclets.formats.html.MethodWriterImpl.writeDeprecated(MethodWriterImpl.java:166)
      [javadoc]     at com.sun.tools.doclets.internal.toolkit.builders.MethodBuilder.buildDeprecationInfo(MethodBuilder.java:183)
      [javadoc]     at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      [javadoc]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [javadoc]     at java.lang.reflect.Method.invoke(Method.java:597)
      [javadoc]     at com.sun.tools.doclets.internal.toolkit.builders.MethodBuilder.invokeMethod(MethodBuilder.java:109)
      [javadoc]     at com.sun.tools.doclets.internal.toolkit.bu    at java.lang.reflect.Method.invoke(Method.java:597)
      [javadoc]     at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:215)
      [javadoc]     at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:91)
      [javadoc]     at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
      [javadoc]     at com.sun.tools.javadoc.Start.begin(Start.java:128)
      [javadoc]     at com.sun.tools.javadoc.Main.execute(Main.java:41)
      [javadoc]     at com.sun.tools.javadoc.Main.main(Main.java:31)I suppose the problem is somehow linked to the usage of hibernate since the same ant script works for other projects (that don't use hibernate...). Do you have an idea what could be wrong?
    Thanks in advance
    Patrick

    See [http://forums.sun.com/thread.jspa?threadID=5333060&tstart=0]. In general, if you use third-party libraries in your code, you should include these libraries in Javadoc's classpath option when generating documentation.

  • Java.lang.NoSuchMethodError: javax.servlet.jsp.PageContext:

     

              I Have exactly the same error and I would like to have a solution.....
              It happens when weblogic tries to compile a jsp page.
              So the result on the browser is the original jsp page: The jsp tags are not parsed.
              This problem exists on my Weblogic 4.5.1 sp11 (on unix) nut not on my weblogic 4.5.2 NT ?
              Any idea ?
              Thanks.
              Chris Opacki <[email protected]> wrote:
              >Has anyone had this error and found a way to fix it?
              >
              >java.lang.NoSuchMethodError: javax.servlet.jsp.PageContext: method
              ><init>(Ljavax/servlet/jsp/JspFactory;)V not found
              

  • Java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.

    Hi ..
    i make a simple struts application for login check which when i try to run tomcat i got the following error
    i have installed Apache Tomcat/5.5.17, jdk1.5.0_09, eclipse 3.2
    please tell me whats wrong with configuration
    becoz same code working fine well in different machin..........
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:272)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V
         org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfoImpl.java:576)
         org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:401)
         org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248)
         org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:162)
         org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:423)
         org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1552)
         org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
    Apache Tomcat/5.5.17

    Could you include the content of your JSP page?

  • Java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo. ini

    Hi,
    I encountered this error when first deploying my Web App in the Apache Tomcat 5.5.7 Manager and launching my login .jsp:
    Any ideas? *.tld files?
    Thsiis a vendors *.war file so I am very unsure of code(jsp's) used.
    Need more info?
    Please let me know.
    TIA!
    java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V
    Aug 3, 2005 4:40:44 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V
    at org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfoImpl.java:568)
    at org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:401)
    at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248)
    at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:179)
    at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
    at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
    at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
    at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
    at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
    at org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
    at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    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:825)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Unknown Source)

    Hi,
    Apparently changig the CLASSPATH did the trick.(changing path to servlet-api.jar)
    We can view the JSP's in the WAR file now without exceptions, able to use the Logon.jsp page now.
    Else, Thanks for the insight to looking inside the WAR file...
    [root@msnweb webapps]# jar tvf optix-web.war | grep -i "api"
    124720 Thu Aug 04 13:09:28 CDT 2005 WEB-INF/lib/xml-apis.jar
    [root@msnweb webapps]# jar tvf optix-web.war | grep -i "servlet"
    11930 Thu Aug 04 13:09:26 CDT 2005 WEB-INF/classes/DataStreamServlet.class
    5203 Thu Aug 04 13:09:26 CDT 2005 WEB-INF/classes/DeleteFolderItemServlet.class
    12307 Thu Aug 04 13:09:26 CDT 2005 WEB-INF/classes/OpenObjectServlet.class
    66697 Thu Aug 04 13:09:28 CDT 2005 WEB-INF/lib/servlet-lib.jar
    I just looked in the /Webapps dir where Tomcat extracted the *.war file and put the JSP's, that correct as well?

  • Error:java.lang.NoSuchMethodError:javax.servlet.jsp.tagext.TagAttributeInfo

    Hi All,
    I am getting the following error when i create a jsf jsp page and build it in jdeveloper.
    Error:java.lang.NoSuchMethodError:javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V
    when i build the application by simply creating jsp not jsf jsp then it works well.
    Could you any tell me how to fix this? i searched in forums but i didn't find relevant solution.
    Thanks,
    Udhaya

    Hi!
    Can you tell us what version of JDeveloper you are using, and what steps you took to create the JSF page? Like, write from scratch or use the JSF page wizard?
    Also, can you check your project properties, and check that the JSF libraries are included, and JSF tag libraries set up?
    Regards,
    Jeroen van Veldhuizen

  • How to update java.sql.Clob using javax.persistence.EntityManager?

    Hello.
    Can anyone tell me (or show me some example) how to update java.sql.Clob using javax.persistence.EntityManager.
    When I’m trying to update column (with type Clob) value is not inserting, after update column is empty. I haven’t any error during update, I’m using database Oracle 10g.
    Edited by: ernest211 on Jul 16, 2009 1:24 AM

    Post some code so we can see how you are doing it. If you are using JPA entities take a look at the @Lob annotation.
    m

  • Javax.persistence.NoResultException: No entity help

    here is a my method
    public WnUser findUser (Object email) {
    return (WnUser) em.createQuery("SELECT object(u.email) FROM entities.WnUser u WHERE u.email =:email")
    .setParameter("email", email).getSingleResult();
    when I call this I see errors
    2:23:44,843 ERROR [STDERR] javax.ejb.EJBException: javax.persistence.NoResultException: No entity found for query
    12:23:44,843 ERROR [STDERR]      at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63)
    12:23:44,843 ERROR [STDERR]      at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
    12:23:44,843 ERROR [STDERR]      at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
    12:23:44,843 ERROR [STDERR]      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
    12:23:45,281 ERROR [STDERR]      at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
    12:23:45,281 ERROR [STDERR]      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
    I want write method fro login by email and password, also I want search email with entity beans, nut I have this errors, what is it?

    Seems this is happening because your query finds no result.
    If you look at the javadoc for javax.persistence.Query, you can see that method getSingleResult() throws a NoResultException if there is no result.

  • Where is javax.persistence.AccessType

    Hello all,
    I am not able to fine the Enum AccessType , neither in the api-doc nor in the lib.
    Can anyone help me to find out that which library shall I look for the same.
    Thanks a lot for the help.
    Regards,
    Varun Narang.

    Got the answer:
    EJB 3.0 Java Persistence API Final Release, A.4 Changes since Public Draft:
    Quote:
    "Removed accessType element from annotations: required use of a single access type in an entity hierarchy; placement of the mapping annotations determines the access type in effect. "

  • Import javax.persistence cannot be resolved

    I am running Weblogic Workshop 9.2.0 and Eclipse-Helios v3.6.2, and am running both jdk1.6 and jdk1.5. Going through the Java 5 Tutorial on Web Tier technologies, I am experiencing the above error.
    On investigating the jdk, I am unable to find the jar file that contains the above package. Can someone point me in the correct direction to resolve this issue?
    Thank you.
    Stevenson

    The class is not in the JDK, it is part of the JEE5/JEE6 platform and thus provided by weblogic itself. Generally you have a few options;
    - figure out which libraries of weblogic you have to add (the documentation should tell you this)
    - if using an IDE, you can generally setup a server runtime in your project; in doing so the correct libraries are automatically added
    - IDEs generally give access to a generic 'stub' implementation of the JEE classes that you can compile against. You don't need to deploy anything because as said the server already provides the libraries during runtime.

  • Javax class not found error.

    First and formost, apologies if this is in the wrong forum.
    I'm running NB 6.1 and trying to add the new kewl mysql features to my servlet. It automatically added all the code and inserted imports for javax.
    For some reason it says that it can't find the following classes:
    import javax.persistence.CascadeType;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.Id;
    import javax.persistence.NamedQueries;
    import javax.persistence.NamedQuery;
    import javax.persistence.OneToMany;
    import javax.persistence.Table;However it does recognise that javax.persistence exists.
    I've tried running it with both jdk 5 & 6 with no luck.
    I'm sure Javax is inbuilt, Is there something I'm missing?

    Ok, the classes are included if the glassfish server is running, since I'm running Tomcat I created a library with all the classes in it and added it to my project.
    I was then able to use the entity classes I created with no bother.
    Then I proceeded to install RESTful webservices. and add the restfull webservices to the project.
    Now if I run/debug the main project, it doesn't run my main servlet!!!
    When running test Restful webservices I receives: Cannot acces WADL: Please restart your RESTfull webservices and reload this page.
    How do I get the project to run the orginal servlet now and bypass the restfull web service?
    How do I fix the Restfull problem

  • Onetomany manytoone bidrectional mapping

    How do I accomplish this;
    Here is my code. I have both a onetoone where 1 telephone number is mandatory for 1 customer.
    But the customer can have many telephone numbers other than the mandatory one.
    Customer.java
    package testonetoone;
    import java.io.Serializable;
    import java.math.BigDecimal;
    import java.util.ArrayList;
    import java.util.Collection;
    import javax.persistence.CascadeType;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.FetchType;
    import javax.persistence.GeneratedValue;
    import javax.persistence.Id;
    import javax.persistence.JoinColumn;
    import javax.persistence.NamedQueries;
    import javax.persistence.NamedQuery;
    import javax.persistence.OneToMany;
    import javax.persistence.OneToOne;
    import javax.persistence.SequenceGenerator;
    @Entity
    @NamedQueries( { @NamedQuery(name = "Customer.findAll", query = "select o from Customer o") })
    public class Customer implements Serializable {
    @Id
    @Column(name = "CUSTOMER_ID", nullable = false)
    @GeneratedValue(generator = "CustomerSeq")
    @SequenceGenerator(name = "CustomerSeq", sequenceName = "ISATS.CUSTOMER_SEQ", allocationSize = 1)
    private BigDecimal customerId;
    @Column(name = "CUSTOMER_NAME", length = 20)
    private String customerName;
    // @Column(name="PHONES_ID", nullable = false)
    // private String phonesId;
    @OneToOne(optional = false, cascade = CascadeType.ALL, fetch = FetchType.EAGER)
    @JoinColumn(name = "PHONES_ID", unique = true, nullable = false, updatable = false)
    private Phones telephoneNumber;
    @OneToMany(cascade = CascadeType.ALL, mappedBy = "customerTelephones", orphanRemoval = true, fetch = FetchType.EAGER)
    // @JoinColumn(name = "PHONES_ID", unique = true, nullable = false, updatable = false)
    private Collection<Phones> telephoneNumbersList = new ArrayList<Phones>();
    public Customer() {
    public BigDecimal getCustomerId() {
    return customerId;
    public void setCustomerId(BigDecimal customerId) {
    this.customerId = customerId;
    public String getCustomerName() {
    return customerName;
    public void setCustomerName(String customerName) {
    this.customerName = customerName;
    public void setTelephoneNumber(Phones telephoneNumber) {
    this.telephoneNumber = telephoneNumber;
    public Phones getTelephoneNumber() {
    return telephoneNumber;
    public void setTelephoneNumbersList(Collection<Phones> telephoneNumbersList) {
    this.telephoneNumbersList = telephoneNumbersList;
    public Collection<Phones> getTelephoneNumbersList() {
    return telephoneNumbersList;
    Phones.java
    package testonetoone;
    import java.io.Serializable;
    import java.math.BigDecimal;
    import javax.persistence.CascadeType;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.FetchType;
    import javax.persistence.GeneratedValue;
    import javax.persistence.Id;
    import javax.persistence.JoinColumn;
    import javax.persistence.ManyToOne;
    import javax.persistence.NamedQueries;
    import javax.persistence.NamedQuery;
    import javax.persistence.OneToOne;
    import javax.persistence.SequenceGenerator;
    @Entity
    @NamedQueries( { @NamedQuery(name = "Phones.findAll", query = "select o from Phones o") })
    public class Phones implements Serializable {
    // @Column(name = "CUSTOMER_ID")
    // private BigDecimal customerId;
    @Id
    @Column(name = "PHONES_ID", nullable = false)
    @GeneratedValue(generator = "PhonesSeq")
    @SequenceGenerator(name = "PhonesSeq", sequenceName = "ISATS.PHONES_SEQ", allocationSize = 1)
    private BigDecimal phonesId;
    @Column(name = "PHONE_NUMBER", length = 20)
    private String phoneNumber;
    @OneToOne(optional = false, cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "telephoneNumber")
    // @JoinColumn(name = "CUSTOMER_ID", unique = true, nullable = false, insertable = false, updatable = false)
    private Customer customer;
    @ManyToOne(optional = false,cascade = CascadeType.ALL, fetch = FetchType.EAGER)
    @JoinColumn(name = "CUSTOMER_ID", nullable = false)
    private Customer customerTelephones;
    public Phones() {
    // public BigDecimal getCustomerId() {
    // return customerId;
    // public void setCustomerId(BigDecimal customerId) {
    // this.customerId = customerId;
    public BigDecimal getPhonesId() {
    return phonesId;
    public void setPhonesId(BigDecimal phonesId) {
    this.phonesId = phonesId;
    public String getPhoneNumber() {
    return phoneNumber;
    public void setPhoneNumber(String phoneNumber) {
    this.phoneNumber = phoneNumber;
    public void setCustomer(Customer customer) {
    this.customer = customer;
    // @JoinColumn(name = "CUSTOMER_ID", unique = true, nullable = false, insertable = false, updatable = false)
    public Customer getCustomer() {
    return customer;
    public void setCustomerTelephones(Customer customerTelephones) {
    this.customerTelephones = customerTelephones;
    public Customer getCustomerTelephones() {
    return customerTelephones;
    testonetoone.java
    package testonetoone;
    import java.util.ArrayList;
    import java.util.List;
    import javax.persistence.EntityManager;
    import javax.persistence.Persistence;
    public class TestOneToOne {
    public TestOneToOne() {
    super();
    public static void main(String[] args) {
    TestOneToOne testOneToOne = new TestOneToOne();
    EntityManager em = null;
    em = Persistence.createEntityManagerFactory("TestOneToOne", new java.util.HashMap()).createEntityManager();
    // 1) Create customer, create phones, set add mapping
    // EntityManager em = emf.createEntityManager();
    Phones p = new Phones();
    p.setPhoneNumber("5716120001");
    Customer c = new Customer();
    c.setCustomerName("Toyota");
    p.setCustomer(c);
    c.setTelephoneNumber(p);
    Phones p2 = new Phones();
    p2.setPhoneNumber("5716120002");
    List<Phones> telephoneNumbersList = new ArrayList<Phones>();
    telephoneNumbersList.add(p2);
    p2.setCustomer(c);
    c.setTelephoneNumbersList(telephoneNumbersList);
    // Query query = em.createQuery("SELECT e FROM CUSTOMER e");
    // List<Customer> list = (List<Customer>) query.getResultList();
    // System.out.println(list);
    // query= em.createQuery("SELECT d FROM PHONES d");
    // List<Phones> dlist = (List<Phones>) query.getResultList();
    // System.out.println(dlist);
    try {
    em.getTransaction().begin();
    em.persist(c);
    em.flush();
    em.getTransaction().commit();
    } catch (Exception e) {
    e.printStackTrace();
    } finally {
    em.close();
    }

    This is not a bidirectional relationship (well, the OneToMany and ManyToOne form one), it is a circular reference. I am not sure how you can possibly do this in the database without making one of the foreign key fields nullable, or delaying constraint checking until the transaction completes.
    Which ever relationship you make nullable will have to be set after the persist calls are flushed to the database. If you are able to delay constraint checking in the database, this isn't neccessary.
    Best Regards,
    Chris

Maybe you are looking for

  • Is a power mac G4 worth noding to Logic?

    I"m thinking of getting a G4 as a back up computer. Amd since it will sit next to my nacbook I was thinking what the heck, I can use Logic node and pull some power. But I"ve someone say they noded like 30 G4's together and it came up to power of 1 G5

  • Page Flows in an EAR file

    What is the trick to get Page Flows (.jpf) files to be put in an .ear file from within Workshop 8.1 ? When I do "Build EAR" from the menu, the build happens fine, but when I expand the EAR file, the JPF file is not there ? All the associated JSP's ar

  • Can't write to files on another mac?

    Hi, I know this is a very basic question and I'm going to sound a dummy but I just can't seem to figure it out! I am using a mac book and want to be able to access and save to files held on an imac. The computers are networked, file sharing is set up

  • The procedure entry point sqlite3_prepare_v2 could not be located

    Can anyone help me solve this problem. I keep getting this message on startup; +The procedure entry point sqlite3preparev2 could not be located in the dynamic link library SQLite3.dll+ I have taken Itunes 10 off and reloaded it be nothing has changed

  • How can I have the last command when I open new ttisql

    Hi Is it possible that when I open new ttisql windows I will be able to use all the recent commands from previous ttisql windows ? Thanks