[JBoss Seam] - <s:link> and "nested" propagation not working
by hstang
I am trying to start a new nested conversation using
| <s:link view="/a.xhtml" propagation="nest" value="Go to A"/>
|
but I am getting an exception (see below). But the exception disappears if I start a nested conversation in an action method. So, it'll work if I re-write with the following:
| <s:link view="/a.xhtml" action="#{actionClass.prepare}" value="Go to A"/>
|
| @Name("actionClass")
| public class ActionClass {
|
| @Begin(nested = true)
| public void prepare() {}
|
| }
|
I am using Seam 1.1GA. Also assume that a long running conversation already exists at the time of invocation. Does anyone know why this is happening? Here's the exception:
| 10:58:26,053 [http-8080-Processor24] ERROR PhaseListenerManager:91 - Exception in PhaseListener RESTORE_VIEW(1) afterPhase
| java.lang.NullPointerException
| at org.jboss.seam.core.ConversationEntry.<init>(ConversationEntry.java:50)
| at org.jboss.seam.core.ConversationEntries.createConversationEntry(ConversationEntries.java:53)
| at org.jboss.seam.core.Manager.createConversationEntry(Manager.java:636)
| at org.jboss.seam.core.Manager.beginNestedConversation(Manager.java:681)
| at org.jboss.seam.core.Manager.handleConversationPropagation(Manager.java:500)
| at org.jboss.seam.jsf.AbstractSeamPhaseListener.afterRestoreView(AbstractSeamPhaseListener.java:61)
| at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:73)
| at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:89)
| at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:181)
| at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:66)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:181)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:46)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:32)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:75)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:213)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
| at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
| at java.lang.Thread.run(Thread.java:619)
| 10:58:26,303 [http-8080-Processor24] ERROR PhaseListenerManager:91 - Exception in PhaseListener RENDER_RESPONSE(6) afterPhase
| java.lang.NullPointerException
| at org.jboss.seam.core.Manager.unlockConversation(Manager.java:363)
| at org.jboss.seam.contexts.Lifecycle.flushAndDestroyContexts(Lifecycle.java:354)
| at org.jboss.seam.contexts.Lifecycle.endRequest(Lifecycle.java:248)
| at org.jboss.seam.jsf.AbstractSeamPhaseListener.afterRender(AbstractSeamPhaseListener.java:232)
| at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:89)
| at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:89)
| at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:391)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:181)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:46)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:32)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:75)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:213)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
| at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
| at java.lang.Thread.run(Thread.java:619)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997083#3997083
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997083
19 years, 7 months
[JBoss jBPM] - I got a problem with the servlet-api.jar
by vt00098
Hello, everybody.Happy new year to everyone.
I use the examples with the jbpm3.1. this example use tomcat as the app server. I found the example in the \jbpm-starters-kit-3.1.2\jbpm\.. I first run ant, then run ant -f build.deploy.xml build.webapp and got a jbpm.war. I extract this file and import the extractd files into a eclipse project. erery thing is ok. jbpm can run under tomcat. now I try to modify the source code in the webapp to fit my requirment. I found they lack some jars.?for example:serverlet-api.jar, jsp-api.jar, comm-fileupload.jar and so on. when I add serverlet-api.jar to the project, the errors in the source file such as logfilter.jsp dispeared, but jbpm run into error. i got the following problems, can anyone help me?
thks and regards
vt00098
javax.servlet.ServletException: Unresolved compilation problems:
org.apache.jasper cannot be resolved to a type
org.apache.jasper cannot be resolved to a type
org.apache.jasper cannot be resolved to a type
org.apache.jasper cannot be resolved to a type
org.apache.jasper cannot be resolved to a type
org.apache.jasper cannot be resolved to a type
org.apache.jasper cannot be resolved to a type
org.apache.jasper cannot be resolved to a type
_jspx_tagPool_f_view cannot be resolved
org.apache.jasper cannot be resolved
The method getServletConfig() is undefined for the type login_jsp
_jspx_tagPool_h_messages_nobody cannot be resolved
org.apache.jasper cannot be resolved
The method getServletConfig() is undefined for the type login_jsp
_jspx_tagPool_h_form_id cannot be resolved
org.apache.jasper cannot be resolved
The method getServletConfig() is undefined for the type login_jsp
_jspx_tagPool_h_selectOneMenu_value_required_id cannot be resolved
org.apache.jasper cannot be resolved
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997058#3997058
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997058
19 years, 7 months
[JBossCache] - Re: Debuging with JBossCache (from IntelliJ)
by gmeroz
i tried to run \JBossCache-all-2.0.0.ALPHA1\examples\PojoCache\annotated50 using the same configuration and got the following error:
-------------------------------------------------------
GMS: address is 192.168.10.222:4578
-------------------------------------------------------
-------------------------------------------------------
GMS: address is 192.168.10.222:4582
-------------------------------------------------------
org.jboss.cache.ReplicationException: java.lang.Exception: Don't know how to marshall object of type class examples.Student
at org.jboss.cache.TreeCache.callRemoteMethods(TreeCache.java:2110)
at org.jboss.cache.TreeCache.callRemoteMethods(TreeCache.java:2045)
at org.jboss.cache.TreeCache.callRemoteMethods(TreeCache.java:2177)
at org.jboss.cache.RPCManager.callRemoteMethods(RPCManager.java:65)
at org.jboss.cache.interceptors.BaseRpcInterceptor.replicateCall(BaseRpcInterceptor.java:84)
at org.jboss.cache.interceptors.BaseRpcInterceptor.replicateCall(BaseRpcInterceptor.java:62)
at org.jboss.cache.interceptors.ReplicationInterceptor.handleReplicatedMethod(ReplicationInterceptor.java:114)
at org.jboss.cache.interceptors.ReplicationInterceptor.invoke(ReplicationInterceptor.java:86)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:75)
at org.jboss.cache.interceptors.TxInterceptor.handleNonTxMethod(TxInterceptor.java:290)
at org.jboss.cache.interceptors.TxInterceptor.invoke(TxInterceptor.java:128)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:75)
at org.jboss.cache.interceptors.CacheMgmtInterceptor.invoke(CacheMgmtInterceptor.java:151)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:75)
at org.jboss.cache.interceptors.InvocationContextInterceptor.invoke(InvocationContextInterceptor.java:61)
at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:3803)
at org.jboss.cache.TreeCache.put(TreeCache.java:1556)
at org.jboss.cache.TreeCacheProxyImpl.put(TreeCacheProxyImpl.java:226)
at org.jboss.cache.pojo.impl.InternalHelper.put(InternalHelper.java:162)
at org.jboss.cache.pojo.impl.SerializableObjectHandler.putIntoCache(SerializableObjectHandler.java:76)
at org.jboss.cache.pojo.impl.SerializableObjectHandler.put(SerializableObjectHandler.java:60)
at org.jboss.cache.pojo.impl.PojoCacheDelegate.putObjectII(PojoCacheDelegate.java:179)
at org.jboss.cache.pojo.impl.PojoCacheImpl.putObject(PojoCacheImpl.java:139)
at org.jboss.cache.pojo.impl.PojoCacheImpl.org$jboss$cache$pojo$impl$PojoCacheImpl$attach$aop(PojoCacheImpl.java:117)
at org.jboss.cache.pojo.impl.PojoCacheImpl$PojoCacheImplAdvisor.attach3085019539260813833(PojoCacheImpl$PojoCacheImplAdvisor.java)
at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java)
at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java:109)
at test.examples.StudentMaintTest.testPropagation(StudentMaintTest.java:98)
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 junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at junit.textui.TestRunner.doRun(TestRunner.java:116)
at com.intellij.rt.execution.junit.IdeaTestRunner.doRun(IdeaTestRunner.java:69)
at junit.textui.TestRunner.doRun(TestRunner.java:109)
at com.intellij.rt.execution.junit.IdeaTestRunner.startRunnerWithArgs(IdeaTestRunner.java:24)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:118)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
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 com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
Caused by: java.lang.Exception: Don't know how to marshall object of type class examples.Student
at org.jboss.cache.marshall.TreeCacheMarshaller200.marshallObject(TreeCacheMarshaller200.java:253)
at org.jboss.cache.marshall.TreeCacheMarshaller200.marshallMap(TreeCacheMarshaller200.java:328)
at org.jboss.cache.marshall.TreeCacheMarshaller200.marshallObject(TreeCacheMarshaller200.java:238)
at org.jboss.cache.marshall.TreeCacheMarshaller200.marshallMethodCall(TreeCacheMarshaller200.java:279)
at org.jboss.cache.marshall.TreeCacheMarshaller200.marshallObject(TreeCacheMarshaller200.java:182)
at org.jboss.cache.marshall.TreeCacheMarshaller200.marshallMethodCall(TreeCacheMarshaller200.java:279)
at org.jboss.cache.marshall.TreeCacheMarshaller200.marshallObject(TreeCacheMarshaller200.java:182)
at org.jboss.cache.marshall.TreeCacheMarshaller200.objectToStream(TreeCacheMarshaller200.java:82)
at org.jboss.cache.marshall.VersionAwareMarshaller.objectToByteBuffer(VersionAwareMarshaller.java:121)
at org.jgroups.blocks.RpcDispatcher.callRemoteMethod(RpcDispatcher.java:205)
at org.jboss.cache.TreeCache.callRemoteMethods(TreeCache.java:2104)
... 50 more
org.jboss.cache.pojo.PojoCacheException: PojoTreeCache: org.jboss.cache.ReplicationException: java.lang.Exception: Don't know how to marshall object of type class examples.Student
at org.jboss.cache.pojo.impl.PojoCacheImpl.org$jboss$cache$pojo$impl$PojoCacheImpl$attach$aop(PojoCacheImpl.java:122)
at org.jboss.cache.pojo.impl.PojoCacheImpl$PojoCacheImplAdvisor.attach3085019539260813833(PojoCacheImpl$PojoCacheImplAdvisor.java)
at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java)
at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java:109)
at test.examples.StudentMaintTest.testPropagation(StudentMaintTest.java:98)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
Process finished with exit code -1
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997038#3997038
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997038
19 years, 7 months
[EJB 3.0] - Customizing the persistence of an embedded object
by SmokingAPipe
Simple question: I have a class that uses an embedded object that's not an entity, like this:
| @Entity
| public class LogMessage {
| private java.util.logging.Level level;
| }
|
Right now, the way that handles it is it creates a bytea column to store the level. Of course that's not what I want. What would be ideal would be to somehow annotate it so I could define my own persistence for that particular field. In this case, I would want to persist it as either an integer or a string perhaps. I know in Hibernate it wasn't a big deal to write my own custom type with its own storage approach but I can't find anything like that in EJB3. Any ideas?
Of course the other thing i can do is to just write up my own enum and not even use the java.util.logging.Level class, but hey, that class is there and does exactly what I want so it would be ideal to use it.
Thanks for any ideas on this
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997031#3997031
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997031
19 years, 7 months
[EJB 3.0] - ClassCastException EJB3 wrapped local object.
by hurzeler
Hello there,
I have the following issue. I have a Stateless session bean called SiteDAOBean. This bean has a method:
| public void update(Site site) throws PersistenceException
| {
| em.merge(site);
| }
|
Which works nicely if I call it remotely with a Site argument. However due to some extra functionallity that I need locally I have to wrap the Site class by extending it to SelectableSite. It then has a couple more methods that are only used locally and a field that is transient but it is still fundamentally a Site class.
Calling:
| SiteDAO siteDAO = (SiteDAO) context.lookup(SiteDAOBean.class
| .getSimpleName()
| + "/remote");
| siteDAO.update(site);
|
I get the following exception:
Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: mhl.edm.util.SelectableSite (no security manager: RMI class loader disabled)
| at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:371)
| at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)
| at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
| at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
| at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
| at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1544)
| at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
| at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
| at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
| at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
| at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
| at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
| at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
| at org.jboss.aop.joinpoint.MethodInvocation.getArguments(MethodInvocation.java:267)
| ... 102 more
Obviously I need to cast the SelectableSite back to Site so that RMI does not complain not finding the class remotely.
I tried:
siteDAO.update((Site)site);
but that does not work. Can anyone tell me how to overcome this issue short from creating a new Site object?
Thanks for your help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997022#3997022
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997022
19 years, 7 months
[JBoss Seam] - Problem with exceptions.xml
by sjmenden
I am having problems getting exceptions.xml working. I want to get a simple scenario working of redirecting all exceptions to /error.xhtml.
exceptions.xml
| <exceptions>
| <exception>
| <redirect view-id="/error.xhtml">Unexpected failure</redirect>
| <end-conversation/>
| </exception>
| </exceptions>
|
And I am testing this by throwing a NPE in one of my EJBs(extends EntityHome). I am not getting the error page, and I am getting the debug.seam output embeded in my template.xhtml with the url of the page I was calling, in this case ticket.seam. The output is all crammed on the left hand side of the page in the navigation.
Any ideas how I can fix this. I even removed the debug jar and I still got that debug output (not the full debug.seam page though). I even tried:
| <component name="org.jboss.seam.core.init">
| <property name="debug">false</property>
| <property name="jndiPattern">@jndiPattern@</property>
| </component>
|
| and
|
| <context-param>
| <param-name>org.jboss.seam.core.init.debug</param-name>
| <param-value>false</param-value>
| </context-param>
|
but it changed nothing.
Optimally, I would like to keep the debug.seam page so I can reference it, but I would in general like to forward all exceptions to /error.xhtml. What am I doing wrong?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997020#3997020
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997020
19 years, 7 months
[EJB 3.0] - JTA EntityManager cannot access a transactions
by daleth
Let me preface this with I'm not sure if I should post this here or in in the Seam forums.
I have a Seam application that uses an embedded EJB3 container as it is meant to be deployed outside of JBoss AS (on Tomcat, specifically). However, there are also some background tasks that are meant to run via Quartz schedule jobs and update the database through the entity beans. Because these tasks are completely outside of Seam I'm getting the EntityManagerFactory through a JNDI lookup, however I get the following exception when I try to commit the entity beans
java.lang.IllegalStateException: JTA EntityManager cannot access a transactions
I've tried starting, and joining the entity manager to, through by using the begin() method on the following transactions and then doing an EntityManager.joinTransaction(). I tried looking up the TransactionManager and then I tried looking up the UserTransaction and using it. In both cases I was able to retrieve the object from the JNDI tree, but got the above error. As a last resort I also tried using EntityManager.getTransaction() which of course returned nothing because the manager was not currently joined to a transaction.
I'm sure I'm just missing something simple here but so far I haven't been able to figure it out. Any help would be really appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997011#3997011
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997011
19 years, 7 months
[JBoss AOP] - Re: How to access intercepted methods in JSF?
by kabir.khan@jboss.com
"ykrishnaprasad" wrote : 1) If there is a return in the intercepted method(call or execution), the interceptor doesn't work.
| Is there anything i am missing?
|
Please define "doesn't work"
"ykrishnaprasad" wrote :
|
"ykrishnaprasad" wrote :
| 2) I have an AOP "Project1" with interceptor on a method in a class.
| I do not have a problem running the Project1 by itself(unless i use a return in my intercepted method).
| But if a take the Project1 jar(without jboss-aop.xml in the jar) file for
| this project along with its jboss-aop.xml(2 files in total)
| and drop it in JBoss deploy directory, and try to use the intercepted method of Project1 class
| in JSF of "Project2", it doesn't intercept.
| Am i deploying correctly?
|
| Project1:
| Calltest.java
| HelloAOPInterceptor.java
| jboss-aop.xml
|
The jboss-aop.xml file must be deployed before the jar (assuming you are using loadtime weaving) - See the "injboss" example that comes with the dist for info about packaging
"ykrishnaprasad" wrote :
|
| Project2:
| JSF, faces-config.xml and web.xml
|
| (The reason for seperating the jar and jboss-aop.xml(of Project1)
| is that i can reference the deploy directory project1.jar in my Project2 library
| list to use its classes.If i include the jboss-aop.xml
| in the jar itself, then it has to be named as project1.jar.aop(according to JBoss AOP framework doc chapter 10)
| which i cannot add to my library list in Project 2.)
|
I don't understand what you are asking?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996998#3996998
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996998
19 years, 7 months
[JBoss Seam] - Re: Seam & Maven2
by fhh
Just to supply some more input to this thread:
I have just switched one of our bigger seam projects which had a pretty sophisticated ant build script to Maven 2. It took me (never used Maven (1|2)) slightly more than a day.
It works but I'm not as impressed as many others:
1.) The maven plugins are buggy. No, I mean BUGGY. And they are pretty unflexible. This means that you have to do things just the maven way. The combination of these is nasty because it means there are hardly any wok-arounds availabe. If you are hit by a bug there are very few alternative routes to reach your "goal".
(However, I have to admit that I like the strict layout that is required by maven projects. I think this is the right approach in the long run.)
2.) The feature where Maven really shines is its dependency management. Well, in theory it is. The idea behind the dependecy management is good but in real life it falls short of its promise.
The problem seems to be that the complete dependency chain can only be resolved if all the projects are build using Maven 2 which is obviously not the case. In all other projects the dependencies have to be supplied manually and hardly anybody seems to bother about this.
This thread is a good example: Everybody is traing to give a complete list of all dependencies. But I think this is not the right appoach: Rather one should look on which libraries Seam directly depends. This should be put in a repository and have then their dependencies marked in their pom file etc. until we have a complete chain of dependencies.
(BTW: Is there a way to change the scope of a transitive dependency. Many of the libs which are required to deploy a seam app in Tomcat are not required for JBoss etc. So is it possible to build a war for tomcat and one for JBoss which contain different sets of libraries, by switching the profile for example?)
For 95% of the files in the repositories this is not the case so you have to take adjust the dependecies for every project manually down the chain.
(I have lessened this pain to some extend by building my own company repository which I would recommend to anybody using Maven.)
3.) Versioning of interdependent projects is a weakness if you don't use the maven 2 release plugin (s. 1.)). But I have no idea how to use it with subversion to set checkout numbers, for example. (I would be thankful for some input here).
4.) Documentation is poor. I admit there is lots of it but even the plugins home pages don't have much more information then an autogenerated list of parameters. There is hardly any examples etc.
So Maven is allright but nothing to go crazy about. It strength lies in sharing dependency information with others. This is very useful for me as some parts of our project are not developed inhouse and this was the main reason I decided to switch.
But if you don't need that feature and you have a working ant build or are familiar with ant then it is hardly worth the trouble to switch.
Regards
Felix
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996980#3996980
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996980
19 years, 7 months
[JBoss Seam] - Re: chapter 2 helloworld example doesn't work
by nickleli
Thanks for your help norman! here is the output that you mentioned. it appears to not be deploying correctly but i'm not sure why...
10:22:41,343 INFO [EARDeployer] Init J2EE application: file:/C:/Program Files/j
boss-4.0.5.GA/server/default/deploy/myproject.ear/
10:22:42,453 INFO [Ejb3Deployment] EJB3 deployment time took: 407
10:22:42,593 INFO [Ejb3Deployment] EJB3 deployment time took: 125
10:22:42,609 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=mypro
ject.ear,jar=jboss-seam.jar,name=Dispatcher,service=EJB3 with dependencies:
10:22:42,609 INFO [EJBContainer] STARTED EJB: org.jboss.seam.core.Dispatcher ej
bName: Dispatcher
10:22:42,625 INFO [EJB3Deployer] Deployed: file:/C:/Program Files/jboss-4.0.5.G
A/server/default/deploy/myproject.ear/jboss-seam.jar
10:22:42,625 INFO [JmxKernelAbstraction] installing MBean: persistence.units:ea
r=myproject.ear,unitName=myproject with dependencies:
10:22:42,625 INFO [JmxKernelAbstraction] jboss.jca:name=myprojectDatasour
ce,service=DataSourceBinding
10:22:42,625 INFO [EJB3Deployer] Deployed: file:/C:/Program Files/jboss-4.0.5.G
A/server/default/deploy/myproject.ear/myproject.jar/
10:22:42,640 INFO [TomcatDeployer] deploy, ctxPath=/myproject, warUrl=.../deplo
y/myproject.ear/myproject.war/
10:22:42,687 INFO [ServletContextListener] Welcome to Seam 1.1.0.GA
10:22:42,703 INFO [Initialization] Namespace: http://jboss.com/products/seam/co
re, package: org.jboss.seam.core, prefix: org.jboss.seam.core
10:22:42,703 INFO [Initialization] Namespace: http://jboss.com/products/seam/fr
amework, package: org.jboss.seam.framework, prefix: org.jboss.seam.core.framewor
k
10:22:42,703 INFO [Initialization] Namespace: http://jboss.com/products/seam/jm
s, package: org.jboss.seam.jms, prefix: org.jboss.seam.jms
10:22:42,703 INFO [Initialization] Namespace: http://jboss.com/products/seam/dr
ools, package: org.jboss.seam.drools, prefix: org.jboss.seam.drools
10:22:42,703 INFO [Initialization] Namespace: http://jboss.com/products/seam/re
moting, package: org.jboss.seam.remoting, prefix: org.jboss.seam.remoting
10:22:42,703 INFO [Initialization] Namespace: http://jboss.com/products/seam/th
eme, package: org.jboss.seam.theme, prefix: org.jboss.seam.theme
10:22:42,718 INFO [Scanner] scanning: C:\Program Files\jboss-4.0.5.GA\server\de
fault\deploy\myproject.ear\myproject.jar
10:22:42,718 INFO [Scanner] scanning: /C:/Program Files/jboss-4.0.5.GA/server/d
efault/tmp/deploy/tmp37131jboss-seam.jar
10:22:42,765 INFO [Initialization] Namespace: http://jboss.com/products/seam/dr
ools, package: org.jboss.seam.drools, prefix: org.jboss.seam.drools
10:22:42,765 INFO [Initialization] Namespace: http://jboss.com/products/seam/re
moting, package: org.jboss.seam.remoting, prefix: org.jboss.seam.remoting
10:22:42,765 INFO [Initialization] Namespace: http://jboss.com/products/seam/th
eme, package: org.jboss.seam.theme, prefix: org.jboss.seam.theme
10:22:42,765 INFO [Initialization] Namespace: http://jboss.com/products/seam/co
re, package: org.jboss.seam.core, prefix: org.jboss.seam.core
10:22:42,765 INFO [Initialization] Namespace: http://jboss.com/products/seam/jm
s, package: org.jboss.seam.jms, prefix: org.jboss.seam.jms
10:22:42,765 INFO [Initialization] Namespace: http://jboss.com/products/seam/fr
amework, package: org.jboss.seam.framework, prefix: org.jboss.seam.core.framewor
k
10:22:42,765 INFO [Initialization] reading /WEB-INF/components.xml
10:22:42,781 INFO [Initialization] reading jar:file:/C:/Program Files/jboss-4.0
.5.GA/server/default/tmp/deploy/tmp37131jboss-seam.jar!/META-INF/components.xml
10:22:42,796 INFO [Initialization] reading properties from: /seam.properties
10:22:42,796 INFO [Initialization] reading properties from: /jndi.properties
10:22:42,796 INFO [Initialization] initializing Seam
10:22:42,796 INFO [Scanner] scanning: C:\Program Files\jboss-4.0.5.GA\server\de
fault\deploy\myproject.ear\myproject.jar
10:22:42,812 INFO [Scanner] scanning: /C:/Program Files/jboss-4.0.5.GA/server/d
efault/tmp/deploy/tmp37131jboss-seam.jar
10:22:43,734 INFO [Initialization] two components with same name, higher preced
ence wins: org.jboss.seam.core.pages
10:22:43,750 INFO [Initialization] two components with same name, higher preced
ence wins: org.jboss.seam.core.manager
10:22:43,765 INFO [Component] Component: org.jboss.seam.core.init, scope: APPLI
CATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
10:22:43,781 INFO [Initialization] Installing components...
10:22:43,781 INFO [Component] Component: org.jboss.seam.core.exceptions, scope:
APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Exceptions
10:22:43,781 INFO [Component] Component: org.jboss.seam.core.applicationContext
, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationCon
text
10:22:43,796 INFO [Component] Component: org.jboss.seam.core.conversationStack,
scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack
10:22:43,796 INFO [Component] Component: org.jboss.seam.remoting.messaging.subs
criptionRegistry, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.rem
oting.messaging.SubscriptionRegistry
10:22:43,796 INFO [Component] Component: org.jboss.seam.core.isUserInRole, scop
e: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.IsUserInRole
10:22:43,796 INFO [Component] Component: org.jboss.seam.core.redirect, scope: C
ONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Redirect
10:22:43,796 INFO [Component] Component: org.jboss.seam.debug.contexts, scope:
APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.debug.Contexts
10:22:43,796 INFO [Component] Component: org.jboss.seam.framework.currentDateti
me, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentDa
tetime
10:22:43,812 INFO [Component] Component: org.jboss.seam.core.switcher, scope: P
AGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher
10:22:43,812 INFO [Component] Component: org.jboss.seam.core.conversation, scop
e: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
10:22:43,812 INFO [Component] Component: org.jboss.seam.framework.currentDate,
scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentDate
10:22:43,812 INFO [Component] Component: org.jboss.seam.theme.themeSelector, sc
ope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.theme.ThemeSelector
10:22:43,812 INFO [Component] Component: org.jboss.seam.core.facesMessages, sco
pe: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesMessages
10:22:43,812 INFO [Component] Component: org.jboss.seam.core.persistenceContext
s, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.PersistenceC
ontexts
10:22:43,812 INFO [Component] Component: org.jboss.seam.core.safeActions, scope
: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SafeActions
10:22:43,812 INFO [Component] Component: org.jboss.seam.core.validation, scope:
APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Validation
10:22:43,812 INFO [Component] Component: org.jboss.seam.core.businessProcessCon
text, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessPr
ocessContext
10:22:43,812 INFO [Component] Component: org.jboss.seam.core.messages, scope: S
ESSION, type: JAVA_BEAN, class: org.jboss.seam.core.Messages
10:22:43,812 INFO [Component] Component: org.jboss.seam.core.sessionContext, sc
ope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionContext
10:22:43,812 INFO [Component] Component: org.jboss.seam.core.conversationList,
scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList
10:22:43,812 INFO [Component] Component: org.jboss.seam.core.conversationEntrie
s, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationEntri
es
10:22:43,812 INFO [Component] Component: org.jboss.seam.core.facesPage, scope:
PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.FacesPage
10:22:43,812 INFO [Component] Component: org.jboss.seam.debug.introspector, sco
pe: EVENT, type: JAVA_BEAN, class: org.jboss.seam.debug.Introspector
10:22:43,828 INFO [Component] Component: org.jboss.seam.core.pages, scope: APPL
ICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages
10:22:43,828 INFO [Component] Component: org.jboss.seam.theme.theme, scope: SES
SION, type: JAVA_BEAN, class: org.jboss.seam.theme.Theme
10:22:43,828 INFO [Component] Component: org.jboss.seam.core.resourceBundle, sc
ope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle
10:22:43,828 INFO [Component] Component: org.jboss.seam.core.localeSelector, sc
ope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.LocaleSelector
10:22:43,828 INFO [Component] Component: org.jboss.seam.remoting.remotingConfig
, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.remoting.RemotingCo
nfig
10:22:43,828 INFO [Component] Component: org.jboss.seam.core.facesContext, scop
e: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesContext
10:22:43,828 INFO [Component] Component: org.jboss.seam.core.httpError, scope:
APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.HttpError
10:22:43,828 INFO [Component] Component: org.jboss.seam.core.uiComponent, scope
: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.UiComponent
10:22:43,828 INFO [Component] Component: org.jboss.seam.core.manager, scope: EV
ENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager
10:22:43,843 INFO [Component] Component: org.jboss.seam.core.events, scope: APP
LICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Events
10:22:43,843 INFO [Component] Component: org.jboss.seam.core.userPrincipal, sco
pe: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.UserPrincipal
10:22:43,843 INFO [Component] Component: org.jboss.seam.persistence.persistence
Provider, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.persistence.H
ibernatePersistenceProvider
10:22:43,843 INFO [Component] Component: org.jboss.seam.core.interpolator, scop
e: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Interpolator
10:22:43,843 INFO [Component] Component: org.jboss.seam.core.locale, scope: STA
TELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Locale
10:22:43,843 INFO [Component] Component: entityManager, scope: CONVERSATION, ty
pe: JAVA_BEAN, class: org.jboss.seam.core.ManagedPersistenceContext
10:22:43,843 INFO [Component] Component: org.jboss.seam.core.eventContext, scop
e: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventContext
10:22:43,843 INFO [Component] Component: org.jboss.seam.core.pageContext, scope
: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PageContext
10:22:43,843 INFO [Component] Component: org.jboss.seam.core.conversationContex
t, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationC
ontext
10:22:43,843 INFO [Component] Component: org.jboss.seam.framework.currentTime,
scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentTime
10:22:43,859 INFO [Component] Component: org.jboss.seam.core.expressions, scope
: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Expressions
10:22:43,859 INFO [Component] Component: org.jboss.seam.core.pojoCache, scope:
APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PojoCache
10:22:43,859 INFO [Initialization] done initializing Seam
10:22:43,859 INFO [FacesConfigurator] Reading standard config org/apache/myface
s/resource/standard-faces-config.xml
10:22:43,890 INFO [FacesConfigurator] Reading config jar:file:/C:/Program Files
/jboss-4.0.5.GA/server/default/tmp/deploy/tmp37131jboss-seam.jar!/META-INF/faces
-config.xml
10:22:43,890 INFO [FacesConfigurator] Reading config jar:file:/C:/Program%20Fil
es/jboss-4.0.5.GA/server/default/./deploy/myproject.ear/myproject.war/WEB-INF/li
b/jboss-seam-debug.jar!/META-INF/faces-config.xml
10:22:43,906 INFO [FacesConfigurator] Reading config jar:file:/C:/Program%20Fil
es/jboss-4.0.5.GA/server/default/./deploy/myproject.ear/myproject.war/WEB-INF/li
b/jboss-seam-ui.jar!/META-INF/faces-config.xml
10:22:43,921 INFO [FacesConfigurator] Reading config jar:file:/C:/Program%20Fil
es/jboss-4.0.5.GA/server/default/./deploy/myproject.ear/myproject.war/WEB-INF/li
b/jsf-facelets.jar!/META-INF/faces-config.xml
10:22:43,921 INFO [FacesConfigurator] Reading config /WEB-INF/navigation.xml
10:22:43,937 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config.xml
10:22:43,953 WARN [LocaleUtils] Locale name in faces-config.xml null or empty,
setting locale to default locale : en_US
10:22:44,031 INFO [StartupServletContextListener] ServletContext 'C:\Program Fi
les\jboss-4.0.5.GA\server\default\.\deploy\myproject.ear\myproject.war\' initial
ized.
10:22:44,031 INFO [StartupServletContextListener] Serialization provider : clas
s org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
10:22:44,062 INFO [EARDeployer] Started J2EE application: file:/C:/Program File
s/jboss-4.0.5.GA/server/default/deploy/myproject.ear/
10:22:44,140 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca
:service=DataSourceBinding,name=myprojectDatasource' to JNDI name 'java:myprojec
tDatasource'
10:22:44,140 WARN [Ejb3Configuration] Persistence provider caller does not impl
ements the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is n
ull.
10:22:44,140 INFO [Configuration] Reading mappings from resource: META-INF/orm.
xml
10:22:44,140 INFO [Ejb3Configuration] [PersistenceUnit: myproject] no META-INF/
orm.xml found
10:22:44,140 INFO [ConnectionProviderFactory] Initializing connection provider:
org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
10:22:44,140 INFO [InjectedDataSourceConnectionProvider] Using provided datasou
rce
10:22:46,625 INFO [SettingsFactory] RDBMS: MySQL, version: 5.0.27-community-nt
10:22:46,625 INFO [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version:
mysql-connector-java-3.1.14 ( $Date: 2006-10-18 17:40:15 +0200 (Wed, 18 Oct 200
6) $, $Revision: 5888 $ )
10:22:46,625 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
10:22:46,625 INFO [TransactionFactoryFactory] Transaction strategy: org.hiberna
te.ejb.transaction.JoinableCMTTransactionFactory
10:22:46,625 INFO [TransactionManagerLookupFactory] instantiating TransactionMa
nagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
10:22:46,625 INFO [TransactionManagerLookupFactory] instantiated TransactionMan
agerLookup
10:22:46,625 INFO [SettingsFactory] Automatic flush during beforeCompletion():
disabled
10:22:46,625 INFO [SettingsFactory] Automatic session close at end of transacti
on: disabled
10:22:46,625 INFO [SettingsFactory] JDBC batch size: 15
10:22:46,625 INFO [SettingsFactory] JDBC batch updates for versioned data: disa
bled
10:22:46,625 INFO [SettingsFactory] Scrollable result sets: enabled
10:22:46,625 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
10:22:46,625 INFO [SettingsFactory] Connection release mode: auto
10:22:46,625 INFO [SettingsFactory] Maximum outer join fetch depth: 2
10:22:46,625 INFO [SettingsFactory] Default batch fetch size: 1
10:22:46,625 INFO [SettingsFactory] Generate SQL with comments: disabled
10:22:46,625 INFO [SettingsFactory] Order SQL updates by primary key: disabled
10:22:46,625 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.AST
QueryTranslatorFactory
10:22:46,625 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
10:22:46,625 INFO [SettingsFactory] Query language substitutions: {}
10:22:46,625 INFO [SettingsFactory] JPA-QL strict compliance: enabled
10:22:46,625 INFO [SettingsFactory] Second-level cache: enabled
10:22:46,625 INFO [SettingsFactory] Query cache: enabled
10:22:46,625 INFO [SettingsFactory] Cache provider: org.hibernate.cache.Hashtab
leCacheProvider
10:22:46,625 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
10:22:46,625 INFO [SettingsFactory] Structured second-level cache entries: disa
bled
10:22:46,625 INFO [SettingsFactory] Query cache factory: org.hibernate.cache.St
andardQueryCacheFactory
10:22:46,625 INFO [SettingsFactory] Echoing all SQL to stdout
10:22:46,640 INFO [SettingsFactory] Statistics: disabled
10:22:46,640 INFO [SettingsFactory] Deleted entity synthetic identifier rollbac
k: disabled
10:22:46,640 INFO [SettingsFactory] Default entity-mode: pojo
10:22:46,640 INFO [SessionFactoryImpl] building session factory
10:22:46,640 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no
JNDI name configured
10:22:46,640 INFO [SchemaUpdate] Running hbm2ddl schema update
10:22:46,640 INFO [SchemaUpdate] fetching database metadata
10:22:46,640 INFO [SchemaUpdate] updating schema
10:22:46,640 INFO [SchemaUpdate] schema update complete
10:22:46,640 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.fa
ctory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.p
kgs=org.jboss.naming:org.jnp.interfaces}
10:22:46,640 INFO [UpdateTimestampsCache] starting update timestamps cache at r
egion: org.hibernate.cache.UpdateTimestampsCache
10:22:46,640 INFO [StandardQueryCache] starting query cache at region: org.hibe
rnate.cache.StandardQueryCache
10:22:46,671 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@4b916bf4 { url=file:/C:/Program Files/jboss-
4.0.5.GA/server/default/deploy/myproject.ear/ }
deployer: org.jboss.deployment.EARDeployer@11f23e5
status: null
state: FAILED
watch: file:/C:/Program Files/jboss-4.0.5.GA/server/default/deploy/myproject.e
ar/
altDD: null
lastDeployed: 1167502901218
lastModified: 1167419957484
mbeans:
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996979#3996979
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996979
19 years, 7 months
[JBoss Seam] - Re: NPE After adding @RequestParameter to SESSION bean
by fhh
This is not yet fixed!
| Caused by: java.lang.NullPointerException
| at org.jboss.seam.util.Parameters.convertMultiValueRequestParameter(Parameters.java:48)
| at org.jboss.seam.Component.injectParameters(Component.java:1151)
| at org.jboss.seam.Component.inject(Component.java:1114)
| at org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:48)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
|
I'm trying to call an SFSB method as a page action with @RequestParameter. Some of the request parameters are actually empty, e.g.:
| <input type="hidden" name="adresseUmsatzsteuerIdentNummer" value="" />
|
Could this be the source of the problem?
Regards
Felix
P.S.: This used to work under 1.0.1.GA.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996974#3996974
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996974
19 years, 7 months