Appearance
question:Let ( P_{1}, P_{2}, cdots, P_{2n+3} ) be ( 2n + 3 ) points on a plane where no three points are collinear, and no four points are concyclic. Construct circles passing through any three of these points such that among the remaining ( 2n ) points, ( n ) points lie inside the circle and ( n ) points lie outside the circle. Let the number of such circles be ( K ). Prove that ( K > frac{1}{pi} binom{2n+3}{2} ).
answer:1. Suppose we have ( 2n+3 ) points, ( P_{1}, P_{2}, ldots, P_{2n+3} ), in a plane where any 3 points are non-collinear, and any 4 points are non-cyclic. 2. For any two points ( P_i ) and ( P_j ), there exists a third point ( P_k ) such that the circle through ( P_i, P_j, ) and ( P_k ) has exactly ( n ) points inside the circle and ( n ) points outside the circle. 3. To demonstrate this, we proceed by considering the linear segment ( P_iP_j ). Let ( m ) be the number of points above the line ( P_iP_j ) in the plane, where ( m geq n+1 ). 4. Since no three points are collinear and no four points are concyclic, the ( m ) points can be arranged in increasing order of their angles subtended at ( P_iP_j ) segment. Let these points be denoted as ( P_{k_1}, P_{k_2}, ldots, P_{k_m} ). So, we have: [ 0^circ < angle P_i P_{k_1} P_j < angle P_i P_{k_2} P_j < ldots < angle P_i P_{k_m} P_j < 180^circ. ] 5. Based on this arrangement, a circle passing through ( P_i, P_j, ) and any ( P_k ) between ( P_{k_1} ) to ( P_{k_n} ) will ensure that the number of points inside the circle will not exceed ( n ). If one such constructed circle contains exactly ( n ) points inside it, it meets the requirement. 6. If not, constructing a circle using those points will either have more than ( n ) points inside, or less than ( n ) points inside when moving through different ( P_{k_h} ) points. 7. As we consider younger circles passing through other ( h ) combinations in the arrangement, each reduces the number of points by one. 8. Hence, among the ( m ) possible circles, there must be one such circle that precisely satisfies the requirement: ( n ) points inside and ( n ) points outside. 9. Thus, for any two points among the ( 2n+3 ) set, we can construct a valid circle passing through them. Therefore, the total number of such circles is: [ binom{2n+3}{2}. ] 10. However, since each circle can be counted three times during the count process, the actual number of unique circles ( K ) satisfying the condition is: [ K geq frac{1}{3} binom{2n+3}{2}. ] 11. Furthermore, since (frac{1}{3} < frac{1}{pi} ), it follows that: [ K > frac{1}{pi} binom{2n+3}{2}. ] # Conclusion: [ boxed{K > frac{1}{pi} binom{2n+3}{2}} ]
question:A 1000 car parking lot is divided into 3 sections. There are 320 spaces in section 1, and 200 more in section 2 than in section 3. How many spaces are made available in section 2 of the parking lot?
answer:Section 1 has 320 spaces. Let's assume section 3 has x spaces. Section 2 has 200 more spaces than section 3, so section 2 has x + 200 spaces. The total number of spaces in the parking lot is 1000, so the sum of the spaces in all three sections is 320 + x + (x + 200) = 1000. Combining like terms, we get 2x + 520 = 1000. Subtracting 520 from both sides, we get 2x = 480. Dividing both sides by 2, we get x = 240. Therefore, section 3 has 240 spaces, and section 2 has 240 + 200 = 440 spaces. 440 The answer is: 440
question:Q: Deploy error on persistence.xml Jboss 6.x + jpa I'm trying create a webapp with jpa under jboss, but when i'm running the app occurs error in the server deploy. I'm using eclipse luna and I have added jpa support in project properties (Project Faces), in the wizard I have marked to not generate the persistence.xml file, to work only with annotations. But the server deploy fail. What can I do? I took some parts of the trace to fit in the post 01:00:41,344 INFO [JMXKernel] Legacy JMX core initialized 01:00:45,590 INFO [AbstractServerConfig] JBoss Web Services - Stack CXF Server 3.4.1.GA 01:00:45,613 WARN [AbstractKernelController] Broken callback: ClassSingleCallbackItem@1c6db9f5{name=interface org.jboss.wsf.spi.metadata.DescriptorProcessor whenRequired=ControllerState@501dc938{Installed} dependentState=ControllerState@501dc938{Installed} attributeName=setProcessor owner=AbstractKernelControllerContext@550b7a01{ metadata=AbstractBeanMetaData@65f8dd6d{name=JMSDescriptorDeployer bean=org.jboss.webservices.integration.deployers.JMSDescriptorDeployer properties= classLoader=BeanMetaDataDeployerDeploymentClassLoaderMetaData@2934fa09{classloader=null} constructor=null autowireCandidate=true installCallbacks=[method=setProcessor, method=setParser]}name=JMSDescriptorDeployer target=org.jboss.webservices.integration.deployers.JMSDescriptorDeployer@67cb9267 state=Installed depends=AbstractDependencyInfo@35915368{}} signature=org.jboss.wsf.spi.metadata.DescriptorProcessor}: java.lang.ClassCastException: org.jboss.wsf.framework.deployment.jms.WebservicesDescriptorProcessorImpl cannot be cast to org.jboss.wsf.spi.metadata.jms.JMSDescriptorProcessor at org.jboss.webservices.integration.deployers.JMSDescriptorDeployer.setProcessor(JMSDescriptorDeployer.java:33) [:6.0.0.Final] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.7.0_45] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [:1.7.0_45] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [:1.7.0_45] at java.lang.reflect.Method.invoke(Method.java:606) [:1.7.0_45] at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:60) [jboss-reflect.jar:2.2.0.GA] at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:168) [jboss-reflect.jar:2.2.0.GA] at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66) [jboss-reflect.jar:2.2.0.GA] at org.jboss.beans.info.plugins.AbstractBeanInfo.invoke(AbstractBeanInfo.java:300) [jboss-reflect.jar:2.2.0.GA] at org.jboss.kernel.plugins.dependency.AbstractKernelControllerContext.invoke(AbstractKernelControllerContext.java:305) [jboss-kernel.jar:2.2.0.GA] at org.jboss.kernel.plugins.dependency.ClassSingleCallbackItem.ownerCallback(ClassSingleCallbackItem.java:78) [jboss-kernel.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.resolveCallbacks(AbstractController.java:1887) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.resolveCallbacks(AbstractController.java:1937) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1092) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:894) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:641) [jboss-dependency.jar:2.2.0.GA] at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:182) [:2.2.0.GA] at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:58) [:2.2.0.GA] at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62) [:2.2.0.GA] at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.0.GA] at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.GA] at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.GA] at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.GA] at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1571) [:2.2.0.GA] at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.GA] at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA] at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.GA] at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.GA] at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.GA] at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.Final] at org.jboss.profileservice.dependency.ProfileControllerContextDelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2] at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:151) [:0.2.2] at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94) [:0.2.2] at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.GA] at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.GA] at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA] at org.jboss.profileservice.dependency.ProfileActivationWrapperBasicProfileActivation.start(ProfileActivationWrapper.java:190) [:0.2.2] at org.jboss.profileservice.dependency.ProfileActivationWrapper.start(ProfileActivationWrapper.java:87) [:0.2.2] at org.jboss.profileservice.dependency.ProfileActivationService.activateProfile(ProfileActivationService.java:215) [:0.2.2] at org.jboss.profileservice.dependency.ProfileActivationService.activate(ProfileActivationService.java:159) [:0.2.2] at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.activate(AbstractProfileServiceBootstrap.java:112) [:0.2.2] at org.jboss.profileservice.resolver.BasicResolverFactoryProfileResolverFacade.deploy(BasicResolverFactory.java:87) [:0.2.2] at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.start(AbstractProfileServiceBootstrap.java:91) [:0.2.2] at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:132) [:6.0.0.Final] at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final] at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5] at org.jboss.bootstrap.impl.base.server.AbstractServerStartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5] at java.lang.Thread.run(Thread.java:744) [:1.7.0_45] 01:00:45,749 WARN [AbstractKernelController] Broken callback: ClassSingleCallbackItem@167e01ff{name=interface org.jboss.wsf.spi.metadata.DescriptorProcessor whenRequired=ControllerState@501dc938{Installed} dependentState=ControllerState@501dc938{Installed} attributeName=setProcessor owner=AbstractKernelControllerContext@2fed0cb8{ metadata=AbstractBeanMetaData@6c16e441{name=WSDescriptorDeployer bean=org.jboss.webservices.integration.deployers.WSDescriptorDeployer properties= classLoader=BeanMetaDataDeployerDeploymentClassLoaderMetaData@4bc7e296{classloader=null} constructor=null autowireCandidate=true installCallbacks=[method=setProcessor, method=setParser]}name=WSDescriptorDeployer target=org.jboss.webservices.integration.deployers.WSDescriptorDeployer@586ecd2c state=Installed depends=AbstractDependencyInfo@52e39ed7{}} signature=org.jboss.wsf.spi.metadata.DescriptorProcessor}: java.lang.ClassCastException: org.jboss.wsf.stack.cxf.deployment.jms.JMSDescriptorProcessorImpl cannot be cast to org.jboss.wsf.spi.metadata.webservices.WebservicesDescriptorProcessor at org.jboss.webservices.integration.deployers.WSDescriptorDeployer.setProcessor(WSDescriptorDeployer.java:33) [:6.0.0.Final] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.7.0_45] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [:1.7.0_45] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [:1.7.0_45] at java.lang.reflect.Method.invoke(Method.java:606) [:1.7.0_45] at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:60) [jboss-reflect.jar:2.2.0.GA] at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:168) [jboss-reflect.jar:2.2.0.GA] at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66) [jboss-reflect.jar:2.2.0.GA] at org.jboss.beans.info.plugins.AbstractBeanInfo.invoke(AbstractBeanInfo.java:300) [jboss-reflect.jar:2.2.0.GA] at org.jboss.kernel.plugins.dependency.AbstractKernelControllerContext.invoke(AbstractKernelControllerContext.java:305) [jboss-kernel.jar:2.2.0.GA] at org.jboss.dependency.plugins.SingleCallbackItem.changeCallback(SingleCallbackItem.java:67) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractCallbackItem.changeCallback(AbstractCallbackItem.java:80) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.OwnerCallbackItem.changeCallback(OwnerCallbackItem.java:116) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.resolveCallbacks(AbstractController.java:1951) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1092) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:894) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:641) [jboss-dependency.jar:2.2.0.GA] at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:182) [:2.2.0.GA] at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:58) [:2.2.0.GA] at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62) [:2.2.0.GA] at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.0.GA] at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.GA] at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.GA] at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.GA] at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1571) [:2.2.0.GA] at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.GA] at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA] at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.GA] at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.GA] at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.GA] at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.Final] at org.jboss.profileservice.dependency.ProfileControllerContextDelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2] at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:151) [:0.2.2] at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94) [:0.2.2] at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.GA] at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.GA] at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA] at org.jboss.profileservice.dependency.ProfileActivationWrapperBasicProfileActivation.start(ProfileActivationWrapper.java:190) [:0.2.2] at org.jboss.profileservice.dependency.ProfileActivationWrapper.start(ProfileActivationWrapper.java:87) [:0.2.2] at org.jboss.profileservice.dependency.ProfileActivationService.activateProfile(ProfileActivationService.java:215) [:0.2.2] at org.jboss.profileservice.dependency.ProfileActivationService.activate(ProfileActivationService.java:159) [:0.2.2] at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.activate(AbstractProfileServiceBootstrap.java:112) [:0.2.2] at org.jboss.profileservice.resolver.BasicResolverFactoryProfileResolverFacade.deploy(BasicResolverFactory.java:87) [:0.2.2] at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.start(AbstractProfileServiceBootstrap.java:91) [:0.2.2] at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:132) [:6.0.0.Final] at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final] at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5] at org.jboss.bootstrap.impl.base.server.AbstractServerStartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5] at java.lang.Thread.run(Thread.java:744) [:1.7.0_45] 01:00:46,571 INFO [JSFImplManagementDeployer] Initialized 3 JSF configurations: [Mojarra-1.2, MyFaces-2.0, Mojarra-2.0] 01:00:49,909 Advertência [FileConfigurationParser] AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal 01:00:52,345 Advertência [FileConfigurationParser] AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal 01:00:52,499 INFO [JMXConnector] starting JMXConnector on host localhost:1090 01:00:52,634 INFO [MailService] Mail Service bound to java:/Mail 01:00:53,302 Informações [HornetQServerImpl] live server is starting.. 01:00:53,362 INFO [JournalStorageManager] Using NIO Journal 01:00:53,383 Advertência [HornetQServerImpl] Security risk! It has been detected that the cluster admin user and password have not been changed from the installation default. Please see the HornetQ user guide, cluster chapter, for instructions on how to do this. 01:00:53,990 INFO [NettyAcceptor] Started Netty Acceptor version 3.2.1.Final-r2319 localhost:5455 for CORE protocol 01:00:53,991 INFO [NettyAcceptor] Started Netty Acceptor version 3.2.1.Final-r2319 localhost:5445 for CORE protocol 01:00:53,994 Informações [HornetQServerImpl] HornetQ Server version 2.1.2.Final (Colmeia, 120) started 01:00:54,037 INFO [WebService] Using RMI server codebase: http://localhost:8083/ 01:00:54,186 INFO [jbossatx] ARJUNA-32010 JBossTS Recovery Service (tag: JBOSSTS_4_14_0_Final) - JBoss Inc. 01:00:54,191 INFO [arjuna] ARJUNA-12324 Start RecoveryActivators 01:00:54,203 INFO [arjuna] ARJUNA-12296 ExpiredEntryMonitor running at Qui, 4 Jun 2015 01:00:54 01:00:54,250 INFO [arjuna] ARJUNA-12310 Recovery manager listening on endpoint 127.0.0.1:4712 01:00:54,251 INFO [arjuna] ARJUNA-12344 RecoveryManagerImple is ready on port 4712 01:00:54,252 INFO [jbossatx] ARJUNA-32013 Starting transaction recovery manager 01:00:54,258 INFO [arjuna] ARJUNA-12163 Starting service com.arjuna.ats.arjuna.recovery.ActionStatusService on port 4713 01:00:54,259 INFO [arjuna] ARJUNA-12337 TransactionStatusManagerItem host: 127.0.0.1 port: 4713 01:00:54,303 INFO [arjuna] ARJUNA-12170 TransactionStatusManager started on port 4713 and host 127.0.0.1 with service com.arjuna.ats.arjuna.recovery.ActionStatusService 01:00:54,330 INFO [jbossatx] ARJUNA-32017 JBossTS Transaction Service (JTA version - tag: JBOSSTS_4_14_0_Final) - JBoss Inc. 01:00:54,370 INFO [arjuna] ARJUNA-12202 registering bean jboss.jta:type=ObjectStore. 01:00:54,592 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:/Projetos/AngularJS/PlataformDesenv/runtimes/jboss-6.0.0.Final/bin/native 01:00:54,704 INFO [ModClusterService] Initializing mod_cluster 1.1.0.Final 01:00:54,718 INFO [TomcatDeployment] deploy, ctxPath=/invoker 01:00:55,009 INFO [RARDeployment] Required license terms exist, view vfs:/D:/Projetos/AngularJS/PlataformDesenv/runtimes/jboss-6.0.0.Final/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml 01:00:55,019 INFO [RARDeployment] Required license terms exist, view vfs:/D:/Projetos/AngularJS/PlataformDesenv/runtimes/jboss-6.0.0.Final/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml 01:00:55,025 INFO [RARDeployment] Required license terms exist, view vfs:/D:/Projetos/AngularJS/PlataformDesenv/runtimes/jboss-6.0.0.Final/server/default/deploy/jms-ra.rar/META-INF/ra.xml 01:00:55,035 INFO [HornetQResourceAdapter] HornetQ resource adaptor started 01:00:55,040 INFO [RARDeployment] Required license terms exist, view vfs:/D:/Projetos/AngularJS/PlataformDesenv/runtimes/jboss-6.0.0.Final/server/default/deploy/mail-ra.rar/META-INF/ra.xml 01:00:55,050 INFO [RARDeployment] Required license terms exist, view vfs:/D:/Projetos/AngularJS/PlataformDesenv/runtimes/jboss-6.0.0.Final/server/default/deploy/quartz-ra.rar/META-INF/ra.xml 01:00:55,122 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: Thread-2 01:00:55,147 INFO [SchedulerSignalerImpl] Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl 01:00:55,147 INFO [QuartzScheduler] Quartz Scheduler v.1.8.3 created. 01:00:55,149 INFO [RAMJobStore] RAMJobStore initialized. 01:00:55,150 INFO [QuartzScheduler] Scheduler meta-data: Quartz Scheduler Caused by: java.lang.Exception: Failed to resolve Java binding for /D:/Projetos/EclipseWeb/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_AS_6.x1433385246628/deploy/TTTTTT.war/WEB-INF/classes/META-INF/persistence.xml (check the SchemaBinding resolver configuration) at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:259) [jbossxb.jar:2.0.3.GA] at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:231) [jbossxb.jar:2.0.3.GA] at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:137) [:2.2.0.GA] at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:121) [:2.2.0.GA] at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:352) [:2.2.0.GA] at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:334) [:2.2.0.GA] at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:251) [:2.2.0.GA] at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:369) [:2.2.0.GA] ... 74 more A: I encountered the same issue. Here a solution (original message, karluqs Aug 8, 2012 1:02 PM) Solution from karluqs: I dont know whats exactly causing the classcastexception, but i made a change in JBOSS_HOME/server//deployers/jbossws.deployer/META-INF/stack-agnostic-jboss-beans.xml. For the beans WSDescriptorDeployer and JMSDescriptorDeployer, commented the setProcessor incallback and putted the exact bean directly <!-- deployers --> <bean name=WSDescriptorDeployer class=org.jboss.webservices.integration.deployers.WSDescriptorDeployer> <!-- <incallback method=setProcessor/> --> <property name=processor> <inject bean=WSDescriptorProcessor /> </property> <incallback method=setParser /> </bean> ... <bean name=JMSDescriptorDeployer class=org.jboss.webservices.integration.deployers.JMSDescriptorDeployer> <!-- <incallback method=setProcessor/> --> <property name=processor> <inject bean=CXFJMSDescriptorProcessor /> </property> <incallback method=setParser /> </bean> A: You do need a persistence.xml to define your persistence units, even if you rely on annotations to define your entities etc. From the JPA 2.1 spec (available for download here): Each persistence unit deployed into a Java EE container consists of a single persistence.xml file, any number of mapping files, and any number of class files. Is more than one persistence.xml file allowed per persistence unit deployed in Java EE?
answer:No, the JPA spec states that each persistence unit deployed into a Java EE container consists of a single persistence.xml file. So only one persistence.xml file is allowed per persistence unit deployed in Java EE. The key phrase from the doc is: Each persistence unit deployed into a Java EE container consists of a single persistence.xml file... This clearly states that each persistence unit must have exactly one persistence.xml file. Multiple persistence units could have multiple persistence.xml files, but each unit can only have one. So to summarize: - A single persistence.xml file per persistence unit when deployed in Java EE - Multiple persistence units can have multiple persistence.xml files - But each unit is limited to only one persistence.xml file
question:Q:Given the question Why does the woman want to buy some plants? and the answer She believes in the air-cleaning function of plants, write a conversation that might have happened. A:
answer:Person 1: Hey, I noticed you were looking at plants earlier. Why does the woman want to buy some plants? Person 2: Oh, she believes in the air-cleaning function of plants. She wants to have some to improve the air quality in her home.