[JBoss Seam] - Re: unexplode problems
by henrik.lindberg
And this is the typical result of doing a "clean":
|
| Buildfile: C:\Projects\cssite\build.xml
|
| clean:
|
| unexplode:
| [delete] Deleting directory C:\Dev\jboss-4.0.5.GA\server\default\deploy\cssite.ear
| [delete] Unable to delete file C:\Dev\jboss-4.0.5.GA\server\default\deploy\cssite.ear\cssite.war\WEB-INF\lib\commons-fileupload.jar
| [delete] Unable to delete file C:\Dev\jboss-4.0.5.GA\server\default\deploy\cssite.ear\cssite.war\WEB-INF\lib\icefaces-comps.jar
| [delete] Unable to delete file C:\Dev\jboss-4.0.5.GA\server\default\deploy\cssite.ear\cssite.war\WEB-INF\lib\icefaces-facelets.jar
| [delete] Unable to delete file C:\Dev\jboss-4.0.5.GA\server\default\deploy\cssite.ear\cssite.war\WEB-INF\lib\icefaces.jar
| [delete] Unable to delete directory C:\Dev\jboss-4.0.5.GA\server\default\deploy\cssite.ear
| [delete] Unable to delete directory C:\Dev\jboss-4.0.5.GA\server\default\deploy\cssite.ear
| [delete] Unable to delete directory C:\Dev\jboss-4.0.5.GA\server\default\deploy\cssite.ear
| [delete] Unable to delete directory C:\Dev\jboss-4.0.5.GA\server\default\deploy\cssite.ear
|
| init:
| [mkdir] Created dir: C:\Projects\cssite\exploded-archives\cssite.jar
| [mkdir] Created dir: C:\Projects\cssite\exploded-archives\cssite.ear
| [mkdir] Created dir: C:\Projects\cssite\exploded-archives\cssite.war
| [mkdir] Created dir: C:\Projects\cssite\dist
|
| compile:
|
| copyclasses:
| [copy] Copying 24 files to C:\Projects\cssite\exploded-archives\cssite.jar
|
| jar:
| [copy] Copying 1 file to C:\Projects\cssite\exploded-archives\cssite.jar
| [copy] Copying 1 file to C:\Projects\cssite\exploded-archives\cssite.jar\META-INF
| [copy] Copying 1 file to C:\Projects\cssite\exploded-archives\cssite.jar\META-INF
| [copy] Copying 1 file to C:\Projects\cssite\exploded-archives\cssite.jar
|
| war:
| [copy] Copying 27 files to C:\Projects\cssite\exploded-archives\cssite.war
| [copy] Copying 5 files to C:\Projects\cssite\exploded-archives\cssite.war\WEB-INF
| [copy] Copying 9 files to C:\Projects\cssite\exploded-archives\cssite.war\WEB-INF\lib
| [copy] Copying 1 file to C:\Projects\cssite\exploded-archives\cssite.war\WEB-INF\classes
|
| ear:
| [copy] Copying 13 files to C:\Projects\cssite\exploded-archives\cssite.ear
| [copy] Copying 2 files to C:\Projects\cssite\exploded-archives\cssite.ear\META-INF
|
| datasource:
| [copy] Copying 1 file to C:\Dev\jboss-4.0.5.GA\server\default\deploy
|
| explode:
| [mkdir] Created dir: C:\Dev\jboss-4.0.5.GA\server\default\deploy\cssite.ear\cssite.jar
| [copy] Copying 28 files to C:\Dev\jboss-4.0.5.GA\server\default\deploy\cssite.ear\cssite.jar
| [copy] Copying 42 files to C:\Dev\jboss-4.0.5.GA\server\default\deploy\cssite.ear\cssite.war
| [copy] Copying 15 files to C:\Dev\jboss-4.0.5.GA\server\default\deploy\cssite.ear
|
| restart:
|
| compiletest:
|
| buildtest:
| [copy] Copying 13 files to C:\Projects\cssite\test-build
| [copy] Copying 1 file to C:\Projects\cssite\test-build\META-INF
| [copy] Copying 1 file to C:\Projects\cssite\test-build
| BUILD SUCCESSFUL
| Total time: 5 seconds
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015230#4015230
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015230
19Â years, 2Â months
[JBoss Seam] - Re: unexplode problems
by henrik.lindberg
After switching to using ICEFaces I get these type of errors constantly.
The reason is that something is holding on to the jars in the the war directory.
Is there something I can do to make sure JBoss (and/or Tomcat) lets go of references so I can redeploy my changed project.
I am using a default seam-gen generated build.xml file, and it is the "unexplode" target that files in the last delete operation.
| <target name="unexplode" description="Undeploy the exploded archive">
| <delete failonerror="no">
| <fileset dir="${ear.deploy.dir}">
| <exclude name="**/*.jar" />
| </fileset>
| </delete>
| <delete file="${deploy.dir}/${project.name}-${profile}-ds.xml" failonerror="no" />
| <delete dir="${ear.deploy.dir}" failonerror="no" />
| </target>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015222#4015222
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015222
19Â years, 2Â months
[JBoss jBPM] - Re: BPEL Installation Question
by jgreiner
Sweet seems like I am getting closer.
Well it ran for a while then failed with another exception. This is the same error I get when I run the ant create-schema from the examples directory.
| Feb 12, 2007 11:09:44 AM org.hibernate.tool.hbm2ddl.SchemaExport main
| SEVERE: Error creating schema
| org.hibernate.MappingException: No Dialect mapping for JDBC type: -1
| at org.hibernate.dialect.TypeNames.get(TypeNames.java:56)
| at org.hibernate.dialect.TypeNames.get(TypeNames.java:81)
| at org.hibernate.dialect.Dialect.getTypeName(Dialect.java:255)
| at org.hibernate.mapping.Column.getSqlType(Column.java:182)
| at org.hibernate.mapping.Table.sqlCreateString(Table.java:383)
| at org.hibernate.cfg.Configuration.generateSchemaCreationScript(Configuration.java:779)
| at org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:94)
| at org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:61)
| at org.hibernate.tool.hbm2ddl.SchemaExport.main(SchemaExport.java:394)
| org.hibernate.MappingException: No Dialect mapping for JDBC type: -1
| at org.hibernate.dialect.TypeNames.get(TypeNames.java:56)
| at org.hibernate.dialect.TypeNames.get(TypeNames.java:81)
| at org.hibernate.dialect.Dialect.getTypeName(Dialect.java:255)
| at org.hibernate.mapping.Column.getSqlType(Column.java:182)
| at org.hibernate.mapping.Table.sqlCreateString(Table.java:383)
| at org.hibernate.cfg.Configuration.generateSchemaCreationScript(Configuration.java:779)
| at org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:94)
| at org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:61)
| at org.hibernate.tool.hbm2ddl.SchemaExport.main(SchemaExport.java:394)
|
|
Here is my hibernate.cfg.xml (at least the part that is important)
| <!-- SQL dialect -->
| <property name="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</property>
|
| <!-- JDBC connection properties (begin) ===
| <property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
| <property name="hibernate.connection.url">jdbc:oracle:thin:@db01:1521:ods</property>
| <property name="hibernate.connection.username">jbpm</property>
| <property name="hibernate.connection.password">password</property>
| <property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
| ==== JDBC connection properties (end) -->
|
| <!-- DataSource properties (begin) -->
| <property name="hibernate.connection.datasource">java:/JbpmBpelDS</property>
| <property name="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</property>
| <!-- DataSource properties (end) -->
|
Thanks for all the help by the way.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015209#4015209
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015209
19Â years, 2Â months
[JBoss Seam] - Re: Seam Email and Embeddedable EJB3 for testing
by bsmithjj
I made sure facelets is in my testing classpath. Now it looks like MockRenderKit doesn't want to play along...
| 12:13:08,170 ERROR com.evergreen.accesscontrol.impl.MailSenderBean.(error:119) - java.lang.UnsupportedOperationException
|
| java.lang.UnsupportedOperationException
| at org.jboss.seam.mock.MockRenderKit.createResponseWriter(MockRenderKit.java:34)
| at org.jboss.seam.ui.facelet.FaceletsRenderer.wrapResponseWriter(FaceletsRenderer.java:95)
| at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:52)
| at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:38)
| at com.evergreen.accesscontrol.impl.MailSenderBean.sendSeamEmail(MailSenderBean.java:165)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:121)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:110)
| at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
| at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:37)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
| at org.jboss.seam.interceptors.BijectionInterceptor.bijectNonreentrantComponent(BijectionInterceptor.java:79)
| at org.jboss.seam.interceptors.BijectionInterceptor.bijectComponent(BijectionInterceptor.java:58)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:21)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor
| .java:52)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
| at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
| at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:50)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
| at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerIntercep
| tor.java:54)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:211)
| at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:79)
| at $Proxy114.sendSeamEmail(Unknown Source)
| at com.evergreen.accesscontrol.MailSender$$FastClassByCGLIB$$8991d937.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
| at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:74)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
| at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
| at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
| at org.jboss.seam.intercept.ClientSideInterceptor.interceptInvocation(ClientSideInterceptor.java:83)
| at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:52)
| at com.evergreen.accesscontrol.MailSender$$EnhancerByCGLIB$$210ec914.sendSeamEmail(<generated>)
| at com.evergreen.accesscontrol.MailSenderBeanTest$2.invokeApplication(MailSenderBeanTest.java:126)
| at org.jboss.seam.mock.SeamTest$Request.run(SeamTest.java:478)
| at com.evergreen.accesscontrol.MailSenderBeanTest.test_sendSeamEmailMessage(MailSenderBeanTest.java:114)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:552)
| at org.testng.internal.Invoker.invokeMethod(Invoker.java:407)
| at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:778)
| at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:105)
| at org.testng.TestRunner.privateRun(TestRunner.java:682)
| at org.testng.TestRunner.run(TestRunner.java:566)
| at org.testng.SuiteRunner.privateRun(SuiteRunner.java:220)
| at org.testng.SuiteRunner.run(SuiteRunner.java:146)
| at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:713)
| at org.testng.TestNG.runSuitesLocally(TestNG.java:676)
| at org.apache.maven.surefire.testng.TestNGExecutor.executeTestNG(TestNGExecutor.java:64)
| at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75)
| at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
| at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015206#4015206
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015206
19Â years, 2Â months
[JBoss Seam] - Re: DataModel
by lightbulb432
anonymous wrote : What I'm trying to tell you is that you have to update the DataModel when you change the data.
That works (i.e. calling the factory method to update the DataModel) when the Factory method grabs results from the database. But I have a Factory that grabs results from another entity that has just been updated.
My DataModel is a collection of entities from another entity. e.g. myA.getCollectionOfBs(). My remove method from the DataModel does the following:
em.remove(b);
| // em.flush();
| runFactory();
runFactory() simply does a myA.getCollectionOfBs(), which returns the same set of entities (not removing the entity I just got rid of). I tried doing a flush where I've commented it out above, but that didn't help.
What can I do to get these changes reflected? (Short of just doing a query...shouldn't I be able to get them straight from the entities?)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015205#4015205
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015205
19Â years, 2Â months