[JBoss Seam] - Re: Seam 1.3.0 Alpha - pdf component causes problem
by fmars
"norman.richards(a)jboss.com" wrote : It doesn't look remotely related to PDF. Do you get an error from a full restart of the server?
Yes, you are right. it has nothing to do with it. But i am still getting exceptions. So i tried to prognosis it: i still don't know why, but here what i did:
first i've created a fresh new seam project with default settings. it has deployed itself successfully. so i have added an entity bean. before redeploying i call undeploy evertime. Deployed and it was successfull.
from my other project, i copied an entity and pasted in this new project. But this time i couldn't deploy successfully. i deleted it immediately and redeployed. still got the same error. after that i couldn't deploy it. i tried even to shutdown and restart the server. here is the exact output.
21:35:09,843 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DenemeDatasource' to JNDI name 'java:DenemeDatasource'
| 21:35:09,953 INFO [EARDeployer] Init J2EE application: file:/D:/projects/jboss-4.2.0.GA/server/default/deploy/Deneme.ear
| 21:35:13,265 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.entity.PersistenceUnitDeployment
| 21:35:13,265 INFO [JmxKernelAbstraction] installing MBean: persistence.units:ear=Deneme.ear,unitName=Deneme with dependencies:
| 21:35:13,265 INFO [JmxKernelAbstraction] jboss.jca:name=DenemeDatasource,service=DataSourceBinding
| 21:35:13,265 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.units:ear=Deneme.ear,unitName=Deneme
| 21:35:13,281 INFO [Ejb3Configuration] found EJB3 Entity bean: model.com.mydomain.methcancerdb.NewClassentitt
| 21:35:13,437 WARN [Ejb3Configuration] Persistence provider caller does not implements the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is null.
| 21:35:13,437 WARN [ServiceController] Problem starting service persistence.units:ear=Deneme.ear,unitName=Deneme
| javax.persistence.PersistenceException: [PersistenceUnit: Deneme] class or package not found
| at org.hibernate.ejb.Ejb3Configuration.addNamedAnnotatedClasses(Ejb3Configuration.java:1089)
| at org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Configuration.java:886)
| at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:772)
| at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:407)
| at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:126)
| at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:246)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
|
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy130.start(Unknown Source)
| at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:120)
| at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:551)
| at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:333)
| at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy33.start(Unknown Source)
| at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:512)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy34.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy9.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
| Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: model.com.mydomain.methcancerdb.NewClassentitt
| at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
| at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:514)
| at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:408)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
| at java.lang.Class.forName0(Native Method)
| at java.lang.Class.forName(Class.java:242)
| at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:112)
| at org.hibernate.ejb.Ejb3Configuration.classForName(Ejb3Configuration.java:1005)
| at org.hibernate.ejb.Ejb3Configuration.addNamedAnnotatedClasses(Ejb3Configuration.java:1077)
| ... 102 more
| 21:35:14,437 INFO [EJB3Deployer] Deployed: file:/D:/projects/jboss-4.2.0.GA/server/default/tmp/deploy/tmp59329Deneme.ear-contents/Deneme.jar
| 21:35:14,453 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
| 21:35:14,453 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=Deneme.ear,jar=jboss-seam.jar,name=TimerServiceDispatcher,service=EJB3 with dependencies:
| 21:35:14,687 INFO [EJBContainer] STARTED EJB: org.jboss.seam.core.TimerServiceDispatcher ejbName: TimerServiceDispatcher
| 21:35:14,953 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateful.StatefulContainer
| 21:35:14,953 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=Deneme.ear,jar=jboss-seam.jar,name=TransactionListener,service=EJB3 with dependencies:
| 21:35:14,968 INFO [EJBContainer] STARTED EJB: org.jboss.seam.core.TransactionListener ejbName: TransactionListener
| 21:35:14,984 INFO [EJB3Deployer] Deployed: file:/D:/projects/jboss-4.2.0.GA/server/default/tmp/deploy/tmp59329Deneme.ear-contents/jboss-seam.jar
| 21:35:15,437 INFO [TomcatDeployer] deploy, ctxPath=/Deneme, warUrl=.../tmp/deploy/tmp59329Deneme.ear-contents/Deneme-exp.war/
| 21:35:15,750 INFO [ContextConfig] WARNING: Security role name NONE used in an <auth-constraint> without being defined in a <security-role>
| 21:35:16,812 INFO [ServletContextListener] Welcome to Seam 1.3.0.ALPHA
| 21:35:16,828 INFO [Scanner] scanning: /D:/projects/jboss-4.2.0.GA/server/default/tmp/deploy/tmp59329Deneme.ear-contents/Deneme-exp.war/WEB-INF/lib/jboss-seam-remoting.jar
| 21:35:16,843 INFO [Scanner] scanning: /D:/projects/jboss-4.2.0.GA/server/default/tmp/deploy/tmp59329Deneme.ear-contents/jboss-seam.jar
| 21:35:16,859 INFO [Scanner] scanning: /D:/projects/jboss-4.2.0.GA/server/default/tmp/deploy/tmp59329Deneme.ear-contents/Deneme-exp.war/WEB-INF/lib/jboss-seam-ioc.jar
| 21:35:16,953 INFO [Initialization] Namespace: http://jboss.com/products/seam/security, package: org.jboss.seam.security, prefix: org.jboss.seam.security
| 21:35:16,953 INFO [Initialization] Namespace: http://jboss.com/products/seam/drools, package: org.jboss.seam.drools, prefix: org.jboss.seam.drools
| 21:35:16,953 INFO [Initialization] Namespace: http://jboss.com/products/seam/spring, package: org.jboss.seam.ioc.spring, prefix: org.jboss.seam.ioc.spring
| 21:35:16,953 INFO [Initialization] Namespace: http://jboss.com/products/seam/mail, package: org.jboss.seam.mail, prefix: org.jboss.seam.mail
| 21:35:17,437 INFO [Initialization] Namespace: http://jboss.com/products/seam/web, package: org.jboss.seam.web, prefix: org.jboss.seam.web
| 21:35:17,437 INFO [Initialization] Namespace: http://jboss.com/products/seam/remoting, package: org.jboss.seam.remoting, prefix: org.jboss.seam.remoting
| 21:35:17,437 INFO [Initialization] Namespace: http://jboss.com/products/seam/theme, package: org.jboss.seam.theme, prefix: org.jboss.seam.theme
| 21:35:17,437 INFO [Initialization] Namespace: http://jboss.com/products/seam/core, package: org.jboss.seam.core, prefix: org.jboss.seam.core
| 21:35:17,437 INFO [Initialization] Namespace: http://jboss.com/products/seam/jms, package: org.jboss.seam.jms, prefix: org.jboss.seam.jms
| 21:35:17,437 INFO [Initialization] Namespace: http://jboss.com/products/seam/framework, package: org.jboss.seam.framework, prefix: org.jboss.seam.core.framework
| 21:35:17,437 INFO [Scanner] scanning: /D:/projects/jboss-4.2.0.GA/server/default/tmp/deploy/tmp59329Deneme.ear-contents/Deneme-exp.war/WEB-INF/lib/jboss-seam-debug.jar
| 21:35:17,437 INFO [Scanner] scanning: /D:/projects/jboss-4.2.0.GA/server/default/tmp/deploy/tmp59329Deneme.ear-contents/Deneme.jar
| 21:35:17,437 INFO [Scanner] scanning: /D:/projects/jboss-4.2.0.GA/server/default/tmp/deploy/tmp59329Deneme.ear-contents/Deneme-exp.war/WEB-INF/lib/jboss-seam-pdf.jar
| 21:35:17,437 INFO [Scanner] scanning: /D:/projects/jboss-4.2.0.GA/server/default/tmp/deploy/tmp59329Deneme.ear-contents/Deneme-exp.war/WEB-INF/lib/jboss-seam-ui.jar
| 21:35:17,453 INFO [Scanner] scanning: /D:/projects/jboss-4.2.0.GA/server/default/tmp/deploy/tmp59329Deneme.ear-contents/Deneme-exp.war/WEB-INF/lib/jboss-seam-mail.jar
| 21:35:17,937 INFO [Initialization] Namespace: http://jboss.com/products/seam/pdf, package: org.jboss.seam.pdf, prefix:
| 21:35:17,937 INFO [Initialization] reading /WEB-INF/components.xml
| 21:35:18,031 INFO [Initialization] reading jar:file:/D:/projects/jboss-4.2.0.GA/server/default/tmp/deploy/tmp59329Deneme.ear-contents/jboss-seam.jar!/META-INF/components.xml
| 21:35:18,031 INFO [Initialization] reading jar:file:/D:/projects/jboss-4.2.0.GA/server/default/tmp/deploy/tmp59329Deneme.ear-contents/Deneme-exp.war/WEB-INF/lib/jboss-seam-ioc.jar!/META-INF/components.xml
| 21:35:18,437 INFO [Initialization] reading jar:file:/D:/projects/jboss-4.2.0.GA/server/default/tmp/deploy/tmp59329Deneme.ear-contents/Deneme-exp.war/WEB-INF/lib/jboss-seam-remoting.jar!/META-INF/components.xml
| 21:35:18,437 INFO [Initialization] reading properties from: /seam.properties
| 21:35:18,437 INFO [Initialization] reading properties from: /jndi.properties
| 21:35:18,453 INFO [Initialization] initializing Seam
| 21:35:18,500 INFO [Scanner] scanning: /D:/projects/jboss-4.2.0.GA/server/default/tmp/deploy/tmp59329Deneme.ear-contents/Deneme-exp.war/WEB-INF/lib/jboss-seam-debug.jar
| 21:35:19,000 INFO [Scanner] scanning: /D:/projects/jboss-4.2.0.GA/server/default/tmp/deploy/tmp59329Deneme.ear-contents/Deneme.jar
| 21:35:19,250 INFO [Scanner] scanning: /D:/projects/jboss-4.2.0.GA/server/default/tmp/deploy/tmp59329Deneme.ear-contents/Deneme-exp.war/WEB-INF/lib/jboss-seam-pdf.jar
| 21:35:19,359 INFO [Scanner] scanning: /D:/projects/jboss-4.2.0.GA/server/default/tmp/deploy/tmp59329Deneme.ear-contents/Deneme-exp.war/WEB-INF/lib/jboss-seam-ui.jar
| 21:35:19,593 INFO [Scanner] scanning: /D:/projects/jboss-4.2.0.GA/server/default/tmp/deploy/tmp59329Deneme.ear-contents/Deneme-exp.war/WEB-INF/lib/jboss-seam-mail.jar
| 21:35:19,625 INFO [Scanner] scanning: /D:/projects/jboss-4.2.0.GA/server/default/tmp/deploy/tmp59329Deneme.ear-contents/Deneme-exp.war/WEB-INF/lib/jboss-seam-remoting.jar
| 21:35:19,765 INFO [Scanner] scanning: /D:/projects/jboss-4.2.0.GA/server/default/tmp/deploy/tmp59329Deneme.ear-contents/jboss-seam.jar
| 21:35:21,125 INFO [Scanner] scanning: /D:/projects/jboss-4.2.0.GA/server/default/tmp/deploy/tmp59329Deneme.ear-contents/Deneme-exp.war/WEB-INF/lib/jboss-seam-ioc.jar
| 21:35:21,234 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.security.identity
| 21:35:21,250 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.persistence.persistenceProvider
| 21:35:21,250 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.web.ajax4jsfFilter
| 21:35:21,515 INFO [Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
| 21:35:21,562 WARN [Initialization] Did not install PojoCache due to NoClassDefFoundError: org/jgroups/MembershipListener
| 21:35:21,562 INFO [Initialization] Installing components...
| 21:35:21,578 INFO [Component] Component: entityManager, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.ManagedPersistenceContext
| 21:35:21,578 INFO [Component] Component: org.jboss.seam.core.applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationContext
| 21:35:21,953 INFO [Component] Component: org.jboss.seam.core.businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessProcessContext
| 21:35:21,953 INFO [Component] Component: org.jboss.seam.core.conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
| 21:35:21,953 INFO [Component] Component: org.jboss.seam.core.conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationContext
| 21:35:21,953 INFO [Component] Component: org.jboss.seam.core.conversationEntries, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationEntries
| 21:35:22,453 INFO [Component] Component: org.jboss.seam.core.conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList
| 21:35:22,453 INFO [Component] Component: org.jboss.seam.core.conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack
| 21:35:22,453 INFO [Component] Component: org.jboss.seam.core.dispatcher, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ThreadPoolDispatcher
| 21:35:22,515 INFO [Component] Component: org.jboss.seam.core.eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventContext
| 21:35:22,953 INFO [Component] Component: org.jboss.seam.core.events, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Events
| 21:35:22,953 INFO [Component] Component: org.jboss.seam.core.exceptions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Exceptions
| 21:35:22,968 INFO [Component] Component: org.jboss.seam.core.expressions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Expressions
| 21:35:22,968 INFO [Component] Component: org.jboss.seam.core.facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesContext
| 21:35:23,453 INFO [Component] Component: org.jboss.seam.core.facesMessages, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesMessages
| 21:35:23,453 INFO [Component] Component: org.jboss.seam.core.facesPage, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.FacesPage
| 21:35:23,453 INFO [Component] Component: org.jboss.seam.core.httpError, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.HttpError
| 21:35:23,453 INFO [Component] Component: org.jboss.seam.core.image, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Image
| 21:35:23,953 INFO [Component] Component: org.jboss.seam.core.interpolator, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Interpolator
| 21:35:23,953 INFO [Component] Component: org.jboss.seam.core.isUserInRole, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.IsUserInRole
| 21:35:23,953 INFO [Component] Component: org.jboss.seam.core.locale, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Locale
| 21:35:23,953 INFO [Component] Component: org.jboss.seam.core.localeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.LocaleSelector
| 21:35:24,453 INFO [Component] Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager
| 21:35:24,468 INFO [Component] Component: org.jboss.seam.core.messages, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.Messages
| 21:35:24,468 INFO [Component] Component: org.jboss.seam.core.methodContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.MethodContext
| 21:35:24,468 INFO [Component] Component: org.jboss.seam.core.pageContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PageContext
| 21:35:24,953 INFO [Component] Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages
| 21:35:24,968 INFO [Component] Component: org.jboss.seam.core.persistenceContexts, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.PersistenceContexts
| 21:35:24,968 INFO [Component] Component: org.jboss.seam.core.redirect, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Redirect
| 21:35:24,968 INFO [Component] Component: org.jboss.seam.core.renderer, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.ui.facelet.FaceletsRenderer
| 21:35:25,453 INFO [Component] Component: org.jboss.seam.core.resourceBundle, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle
| 21:35:25,453 INFO [Component] Component: org.jboss.seam.core.safeActions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SafeActions
| 21:35:25,453 INFO [Component] Component: org.jboss.seam.core.servletSession, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ServletSession
| 21:35:25,453 INFO [Component] Component: org.jboss.seam.core.sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionContext
| 21:35:25,953 INFO [Component] Component: org.jboss.seam.core.switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher
| 21:35:25,953 INFO [Component] Component: org.jboss.seam.core.timeZone, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.TimeZone
| 21:35:25,953 INFO [Component] Component: org.jboss.seam.core.timeZoneSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.TimeZoneSelector
| 21:35:25,953 INFO [Component] Component: org.jboss.seam.core.uiComponent, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.UiComponent
| 21:35:26,453 INFO [Component] Component: org.jboss.seam.core.userPrincipal, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.UserPrincipal
| 21:35:26,453 INFO [Component] Component: org.jboss.seam.core.validation, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Validation
| 21:35:26,453 INFO [Component] Component: org.jboss.seam.core.validators, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Validators
| 21:35:26,453 INFO [Component] Component: org.jboss.seam.debug.contexts, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.debug.Contexts
| 21:35:26,453 INFO [Component] Component: org.jboss.seam.debug.hotDeployFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.debug.hot.HotDeployFilter
| 21:35:26,468 INFO [Component] Component: org.jboss.seam.debug.introspector, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.debug.Introspector
| 21:35:26,484 INFO [Component] Component: org.jboss.seam.framework.currentDate, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentDate
|
| 21:35:26,484 INFO [Component] Component: org.jboss.seam.framework.currentDatetime, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentDatetime
| 21:35:26,484 INFO [Component] Component: org.jboss.seam.framework.currentTime, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentTime
| 21:35:26,484 INFO [Component] Component: org.jboss.seam.jsf.jsfProvider, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.jsf.JsfProvider
| 21:35:26,500 INFO [Component] Component: org.jboss.seam.mail.mailSession, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.mail.MailSession
| 21:35:26,500 INFO [Component] Component: org.jboss.seam.pdf.documentStore, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.pdf.DocumentStore
| 21:35:26,515 INFO [Component] Component: org.jboss.seam.persistence.persistenceProvider, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.persistence.HibernatePersistenceProvider
| 21:35:26,515 INFO [Component] Component: org.jboss.seam.remoting.gwt.gwtToSeamAdapter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.remoting.gwt.GWTToSeamAdapter
| 21:35:26,515 INFO [Component] Component: org.jboss.seam.remoting.remoting, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.remoting.Remoting
| 21:35:26,531 INFO [Component] Component: org.jboss.seam.security.configuration, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.security.Configuration
| 21:35:26,531 INFO [Component] Component: org.jboss.seam.security.identity, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.security.RuleBasedIdentity
| 21:35:26,546 INFO [Component] Component: org.jboss.seam.theme.theme, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.theme.Theme
| 21:35:26,546 INFO [Component] Component: org.jboss.seam.theme.themeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.theme.ThemeSelector
| 21:35:26,546 INFO [Component] Component: org.jboss.seam.transaction.transaction, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.transaction.Transaction
| 21:35:26,546 INFO [Component] Component: org.jboss.seam.ui.entityConverter, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.ui.EntityConverter
| 21:35:26,562 INFO [Component] Component: org.jboss.seam.ui.entityConverterStore, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.ui.EntityConverterStore
| 21:35:26,578 INFO [Component] Component: org.jboss.seam.ui.graphicImage.graphicImageResource, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.graphicImage.GraphicImageResource
| 21:35:26,578 INFO [Component] Component: org.jboss.seam.ui.graphicImage.graphicImageStore, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.ui.graphicImage.GraphicImageStore
| 21:35:26,578 INFO [Component] Component: org.jboss.seam.ui.resource.styleResource, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.resource.StyleResource
| 21:35:26,578 INFO [Component] Component: org.jboss.seam.ui.resource.webResource, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.resource.WebResource
| 21:35:26,578 INFO [Component] Component: org.jboss.seam.web.ajax4jsfFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.filter.Ajax4jsfFilter
| 21:35:26,593 INFO [Component] Component: org.jboss.seam.web.exceptionFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.ExceptionFilter
| 21:35:26,609 INFO [Component] Component: org.jboss.seam.web.multipartFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.MultipartFilter
| 21:35:26,609 INFO [Component] Component: org.jboss.seam.web.redirectFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.RedirectFilter
| 21:35:26,609 INFO [Component] Component: securityRules, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.drools.RuleBase
| 21:35:26,625 INFO [Lifecycle] starting up: org.jboss.seam.ui.resource.styleResource
| 21:35:26,625 INFO [Lifecycle] starting up: org.jboss.seam.remoting.remoting
| 21:35:26,625 INFO [Lifecycle] starting up: org.jboss.seam.ui.graphicImage.graphicImageResource
| 21:35:26,625 INFO [Lifecycle] starting up: org.jboss.seam.web.multipartFilter
| 21:35:26,625 INFO [Lifecycle] starting up: org.jboss.seam.web.exceptionFilter
| 21:35:26,640 INFO [Lifecycle] starting up: org.jboss.seam.debug.hotDeployFilter
| 21:35:26,640 INFO [Lifecycle] starting up: org.jboss.seam.ui.resource.webResource
| 21:35:26,640 INFO [Lifecycle] starting up: org.jboss.seam.web.ajax4jsfFilter
| 21:35:26,671 INFO [Lifecycle] starting up: org.jboss.seam.web.redirectFilter
| 21:35:26,671 INFO [Initialization] done initializing Seam
| 21:35:26,718 INFO [CacheManager] Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
| 21:35:26,718 INFO [LRUMapCacheFactory] Creating LRUMap cache instance using parameters: {org.ajax4jsf.VIEW_HANDLERS=com.sun.facelets.FaceletViewHandler, org.ajax4jsf.SKIN=blueSky, com.sun.faces.injectionProvider=org.jboss.web.jsf.integration.injection.JBossInjectionProvider, facelets.DEVELOPMENT=true, javax.faces.DEFAULT_SUFFIX=.xhtml, javax.faces.STATE_SAVING_METHOD=client}
| 21:35:27,156 INFO [LRUMapCacheFactory] Creating LRUMap cache instance of default capacity
| 21:35:27,187 INFO [CacheManager] Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
| 21:35:27,187 INFO [LRUMapCacheFactory] Creating LRUMap cache instance using parameters: {org.ajax4jsf.VIEW_HANDLERS=com.sun.facelets.FaceletViewHandler, org.ajax4jsf.SKIN=blueSky, com.sun.faces.injectionProvider=org.jboss.web.jsf.integration.injection.JBossInjectionProvider, facelets.DEVELOPMENT=true, javax.faces.DEFAULT_SUFFIX=.xhtml, javax.faces.STATE_SAVING_METHOD=client}
| 21:35:27,656 INFO [LRUMapCacheFactory] Creating LRUMap cache instance of default capacity
| 21:35:27,656 INFO [SeamFilter] Initializing filter: org.jboss.seam.web.ajax4jsfFilter
| 21:35:27,656 INFO [CacheManager] Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
| 21:35:27,656 INFO [LRUMapCacheFactory] Creating LRUMap cache instance using parameters: {org.ajax4jsf.VIEW_HANDLERS=com.sun.facelets.FaceletViewHandler, org.ajax4jsf.SKIN=blueSky, com.sun.faces.injectionProvider=org.jboss.web.jsf.integration.injection.JBossInjectionProvider, facelets.DEVELOPMENT=true, javax.faces.DEFAULT_SUFFIX=.xhtml, javax.faces.STATE_SAVING_METHOD=client}
| 21:35:28,156 INFO [LRUMapCacheFactory] Creating LRUMap cache instance of default capacity
| 21:35:28,171 INFO [CacheManager] Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
| 21:35:28,171 INFO [LRUMapCacheFactory] Creating LRUMap cache instance using parameters: {org.ajax4jsf.VIEW_HANDLERS=com.sun.facelets.FaceletViewHandler, org.ajax4jsf.SKIN=blueSky, com.sun.faces.injectionProvider=org.jboss.web.jsf.integration.injection.JBossInjectionProvider, facelets.DEVELOPMENT=true, javax.faces.DEFAULT_SUFFIX=.xhtml, javax.faces.STATE_SAVING_METHOD=client}
| 21:35:28,656 INFO [LRUMapCacheFactory] Creating LRUMap cache instance of default capacity
| 21:35:28,656 INFO [SeamFilter] Initializing filter: org.jboss.seam.web.redirectFilter
| 21:35:28,656 INFO [SeamFilter] Initializing filter: org.jboss.seam.web.multipartFilter
| 21:35:28,656 INFO [SeamFilter] Initializing filter: org.jboss.seam.web.exceptionFilter
| 21:35:28,656 INFO [SeamFilter] Initializing filter: org.jboss.seam.debug.hotDeployFilter
| 21:35:28,750 INFO [EARDeployer] Started J2EE application: file:/D:/projects/jboss-4.2.0.GA/server/default/deploy/Deneme.ear
| 21:35:29,156 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
|
| --- MBeans waiting for other MBeans ---
| ObjectName: persistence.units:ear=Deneme.ear,unitName=Deneme
| State: FAILED
| Reason: javax.persistence.PersistenceException: [PersistenceUnit: Deneme] class or package not found
| I Depend On:
| jboss.jca:service=DataSourceBinding,name=DenemeDatasource
|
| --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
| ObjectName: persistence.units:ear=Deneme.ear,unitName=Deneme
| State: FAILED
| Reason: javax.persistence.PersistenceException: [PersistenceUnit: Deneme] class or package not found
| I Depend On:
| jboss.jca:service=DataSourceBinding,name=DenemeDatasource
|
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054883#4054883
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054883
18Â years, 10Â months
[JBoss Seam] - Exception trying to do integration testing
by sgollery
I have a small application using Seam 1.2.1.GA and Hibernate. It's running okay in the server, but now I'm trying to add integration testing and TestNG is throwing an error:
[testng] 12:13:31,437 ERROR [AbstractKernelController] Error installing to Start: name=persistence.units:jar=test.jar,unitName=myDatabase state=Create
[testng] java.lang.AssertionError
[testng] at org.hibernate.cfg.AnnotationBinder.getElementsToProcess(AnnotationBinder.java:766)
[testng] at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:621)
[testng] at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:452)
[testng] at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:268)
[testng] at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1039)
[testng] at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1233)
[testng] at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:154)
[testng] at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:869)
[testng] at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:407)
[testng] at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:126)
[testng] at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:264)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[testng] at java.lang.reflect.Method.invoke(Unknown Source)
... and so on...
Here's my persistence.xml:
| <persistence-unit name="myDatabase">
| <provider>org.hibernate.ejb.HibernatePersistence</provider>
| <jta-data-source>java:/myDatasource</jta-data-source>
| <properties>
| <property name="hibernate.dialect"
| value="org.hibernate.dialect.MySQLDialect"/>
| <property name="hibernate.hbm2ddl.auto" value="none"/>
| <property name="hibernate.show_sql" value="false"/>
| <!-- These are the default for JBoss EJB3, but not for HEM: -->
| <property name="hibernate.cache.provider_class"
| value="org.hibernate.cache.HashtableCacheProvider"/>
| <property name="hibernate.transaction.manager_lookup_class"
| value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
| <property name="jboss.entity.manager.factory.jndi.name"
| value="java:/EntityManagerFactories/myData"/>
| </properties>
| </persistence-unit>
|
And jboss-beans.xml:
| <bean name="myDatasourceBootstrap"
| class="org.jboss.resource.adapter.jdbc.local.LocalTxDataSource">
| <property name="driverClass">com.mysql.jdbc.Driver</property>
| ... other properties elided ....
| </bean>
|
| <bean name="myDatasource" class="java.lang.Object">
| <constructor factoryMethod="getDatasource">
| <factory bean="myDatasourceBootstrap"/>
| </constructor>
| </bean>
|
My test code (derived closely from the booking example):
| public class LoginTest extends SeamTest {
|
| @Test
| public void testLogin() throws Exception {
|
| new FacesRequest() {
|
| @Override
| protected void updateModelValues() throws Exception {
| setValue("#{identity.username}", "xxxxx");
| setValue("#{identity.password}", "YYYYY");
| }
|
| @Override
| protected void invokeApplication() throws Exception {
| System.out.println("invokeApplication");
| assert getValue("#{identity.username}").equals("xxxxx");
| invokeMethod("#{identity.login}");
| }
|
| @Override
| protected void renderResponse() throws Exception {
| assert getValue("#{identity.loggedIn}").equals(true);
| }
| }.run();
|
| }
|
| public static void main(String[] args) throws Exception {
| new LoginTest().testLogin();
| }
|
| }
|
And testng.xml:
| <suite name="Login Testing" verbose="2" parallel="false">
|
| <test name="Login">
| <classes>
| <class name="my.tests.LoginTest"/>
| </classes>
| </test>
|
|
| </suite>
|
This is very close to the test structure in the booking example, except for using Hibernate and MySQL instead of hsqldb. But apparently I'm leaving something out.
Any help would be appreciated.
Steven Gollery
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054881#4054881
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054881
18Â years, 10Â months
[JBoss Seam] - using import.sql with multiple datasources
by sysex
I am developing a Seam application in conjunction with my client who is writing a proprietary CMS system, in which the data access entities will be embedded in the principal app. My requirement is to have two datasources: mysql and oracle. One being for user registration and the other to provide site content.
I realize that there are many outstanding CMS solutions that provide data access as a service; but... since this approach was not my decision, let's avoid recommending a different architecture :)
My problem is that their CMS database schema is generated on the fly from the EJB's so it is necessary to import data after deployment. My problem is that there doesn't seem to be a way to specify to Hibernate which datasource should attempt to read and import the contents of import.sql. My error output would imply that both datasources attempt to load import.sql.
If specificity is not an option I may have to manually update to datasource element to not "drop-create" and import the test data manually. I would rather avoid this if possible though.
Here are my configuration files. Again, I am using Seam.
--------------------------------------------------------------------------------
persistence.xml
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!-- Persistence deployment descriptor for dev profile -->
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
<persistence-unit name="entityManager" transaction-type="JTA">
org.hibernate.ejb.HibernatePersistence
<jta-data-source>java:/OracleLocalDS</jta-data-source>
</persistence-unit>
<persistence-unit name="someclient">
org.hibernate.ejb.HibernatePersistence
<jta-data-source>java:/someclientDatasource</jta-data-source>
</persistence-unit>
--------------------------------------------------------------------------------
jboss-ds.xml
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<local-tx-datasource>
<jndi-name>someclientDatasource</jndi-name>
<connection-url>jdbc:mysql://localhost/someclient</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>user</user-name>
pwd
</local-tx-datasource>
<local-tx-datasource>
<jndi-name>OracleLocalDS</jndi-name>
<connection-url>jdbc:oracle:thin:@localhost:1521</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>user</user-name>
pwd
</local-tx-datasource>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054877#4054877
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054877
18Â years, 10Â months