From: wobbet <nu...@jb...> - 2005-05-17 15:10:19
|
Now that I've recovered from my temporary insanity... I was having trouble with deploying a build when I discovered that there are two sections of the build.xml in which I need to specify libs and the config data - one in the jar task for mail.sar and the other in the copy-to sub-task of the mkunwrapped task for creating dev-deploy. So that leads me to my question of... Why does the mkunwrapped task use its own list of files to copy rather than a) Building all of the binary distributables and then exploding them to the dev-deploy directory or b) Using one or more Ant filesets defined outside of the tasks to be referenced inside of the task? I understand that item (a) may not be the desired way to go because you then add a dependency. So why not item (b)? Is there a technical reason that it should not be done? If there is no technical reason and there are no objections then I will move the build to use common filesets to simplify maintenance. If there are objections, let me know what they are and I will either work around them or not do it. The second issue I ran into is that when running the app in the Eclipse/JBoss IDE debugger everything worked great. But when I deployed (after getting the data files into the .sar appropriately) I got exceptions saying that my mail could not be persisted because there was a problem with Hibernate. I've never used Hibernate (I will be happy to make jASEN's map thingy be my first implementation of it after I get the base deploy working) so I don't know if I'm simply missing something off of my classpath or what. The exception I received is... | 10:07:56,647 INFO [Mail] all headers after loading: MailHeadersImpl (6): [hdr(R | eceived = 'Received: from localhost.localdomain.com (localhost 127.0.0.1) by loc | alhost.localdomain.com/JBossMail 1.0M3 (127.0.0.1) | with SMTP id 1116342476647559.2326712449285; Tue, 17 May 2005 10:07:56 - | 0500 (CDT)'), hdr(To = 'To: <aco...@lo...>'), hdr(From = ' | From: <aco...@lo...>'), hdr(Subject = 'Subject: error'), h | dr(Content-Type = 'Content-Type: text/plain; charset=us-ascii'), hdr(Content-Tra | nsfer-Encoding = 'Content-Transfer-Encoding: 8bit')] | 10:07:56,717 DEBUG [PagedStore] Creating Store Item | 10:07:56,737 DEBUG [SessionFactoryObjectFactory] JNDI lookup: jbossmail.Hibernat | eSessionFactory | 10:07:56,737 DEBUG [SessionFactoryObjectFactory] lookup: uid=8a8a82eb03eb303c010 | 3eb303d680000 | 10:07:56,918 DEBUG [SessionImpl] opened session | 10:07:56,928 DEBUG [JTATransaction] Looking for UserTransaction under: UserTrans | action | 10:07:56,928 DEBUG [JTATransaction] Obtained UserTransaction | 10:07:56,928 DEBUG [JTATransaction] beginning new transaction | 10:07:56,928 DEBUG [HibernateUtil] Begin Transaction: createStoreItem:701837 | 10:07:56,998 DEBUG [PagedStore] Rollback Transaction: 701837 | 10:07:56,998 DEBUG [JTATransaction] rollback | 10:07:56,998 DEBUG [SessionImpl] transaction completion | 10:07:57,008 ERROR [PagedStore] Failed to create store item. No persister for: o | rg.jboss.mail.store.paged.Blob | 10:07:57,008 DEBUG [SessionImpl] closing session | 10:07:57,008 ERROR [Mail] org.jboss.mail.store.StoreException: net.sf.hibernate. | MappingException: No persister for: org.jboss.mail.store.paged.Blob | org.jboss.mail.store.StoreException: net.sf.hibernate.MappingException: No persi | ster for: org.jboss.mail.store.paged.Blob | at org.jboss.mail.store.paged.PagedStore.createStoreItem(PagedStore.java | :477) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. | java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces | sorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch | er.java:144) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker. | java:249) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642) | at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvoc | ationHandler.java:201) | at $Proxy84.createStoreItem(Unknown Source) | at org.jboss.mail.message.StoredMailBody.newInstance(StoredMailBody.java | :60) | at org.jboss.mail.message.MailBodyManager.createMailBody(MailBodyManager | .java:38) | at org.jboss.mail.message.MailBodyManager.createMailBody(MailBodyManager | .java:83) Many thanks! rjsjr View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3878039#3878039 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3878039 |