[Beginners Corner] - Re: No Persistence provider for EntityManager
by jhannoy
Modified the code little bit... and now getting the following exception:
| E:\E_WSPACE_EURO\StateMonitor>ant run.client
| Buildfile: build.xml
|
| prepare:
|
| compile:
|
| ejbjar:
|
| run.client:
| [java] Created Class...
| [java] MonitorRemote Sateless...
| [java] java.lang.RuntimeException: Non matching type for inject of field: p
| rotected javax.persistence.EntityManager session.MonitorBean.em for type: org.
| jboss.ejb3.entity.InjectedEntityManagerFactory of jndiName env/session.Monitor
| Bean/em
| [java] intfs: , javax.persistence.EntityManagerFactory, java.io.Externaliza
| ble
| [java] at org.jboss.injection.JndiFieldInjector.inject(JndiFieldInjecto
| r.java:128)
| [java] at org.jboss.injection.JndiFieldInjector.inject(JndiFieldInjecto
| r.java:106)
| [java] at org.jboss.injection.JndiFieldInjector.inject(JndiFieldInjecto
| r.java:63)
| [java] at org.jboss.ejb3.AbstractPool.create(AbstractPool.java:111)
| [java] at org.jboss.ejb3.InfinitePool.get(InfinitePool.java:49)
| [java] at org.jboss.ejb3.ThreadlocalPool.create(ThreadlocalPool.java:50
| )
| [java] at org.jboss.ejb3.ThreadlocalPool.get(ThreadlocalPool.java:90)
| [java] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(
| StatelessInstanceInterceptor.java:54)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(A
| uthenticationInterceptor.java:77)
| [java] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(
| Ejb3AuthenticationInterceptor.java:110)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagatio
| nInterceptor.java:46)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(As
| ynchronousInterceptor.java:106)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(Sta
| telessContainer.java:304)
| [java] at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
| [java] at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invok
| e(AOPRemotingInvocationHandler.java:82)
| [java] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:76
| 9)
| [java] at org.jboss.remoting.transport.socket.ServerThread.processInvoc
| ation(ServerThread.java:573)
| [java] at org.jboss.remoting.transport.socket.ServerThread.dorun(Server
| Thread.java:373)
| [java] at org.jboss.remoting.transport.socket.ServerThread.run(ServerTh
| read.java:166)
| [java] Caused by: java.lang.IllegalArgumentException
| [java] at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFie
| ldAccessorImpl.java:63)
| [java] at java.lang.reflect.Field.set(Field.java:656)
| [java] at org.jboss.injection.JndiFieldInjector.inject(JndiFieldInjecto
| r.java:116)
| [java] at org.jboss.injection.JndiFieldInjector.inject(JndiFieldInjecto
| r.java:106)
| [java] at org.jboss.injection.JndiFieldInjector.inject(JndiFieldInjecto
| r.java:63)
| [java] at org.jboss.ejb3.AbstractPool.create(AbstractPool.java:111)
| [java] at org.jboss.ejb3.InfinitePool.get(InfinitePool.java:49)
| [java] at org.jboss.ejb3.ThreadlocalPool.create(ThreadlocalPool.java:50
| )
| [java] at org.jboss.ejb3.ThreadlocalPool.get(ThreadlocalPool.java:90)
| [java] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(
| StatelessInstanceInterceptor.java:54)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(A
| uthenticationInterceptor.java:77)
| [java] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(
| Ejb3AuthenticationInterceptor.java:110)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagatio
| nInterceptor.java:46)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(As
| ynchronousInterceptor.java:106)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(Sta
| telessContainer.java:304)
| [java] at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
| [java] at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invok
| e(AOPRemotingInvocationHandler.java:82)
| [java] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:76
| 9)
| [java] at org.jboss.remoting.transport.socket.ServerThread.processInvoc
| ation(ServerThread.java:573)
| [java] at org.jboss.remoting.transport.socket.ServerThread.dorun(Server
| Thread.java:373)
| [java] at org.jboss.remoting.transport.socket.ServerThread.run(ServerTh
| read.java:166)
| [java] at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemot
| eClientInvoker.java:163)
| [java] at org.jboss.remoting.Client.invoke(Client.java:1634)
| [java] at org.jboss.remoting.Client.invoke(Client.java:548)
| [java] at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(Inv
| okeRemoteInterceptor.java:62)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(Cl
| ientTxPropagationInterceptor.java:67)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.aspects.security.SecurityClientInterceptor.invoke(S
| ecurityClientInterceptor.java:53)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInte
| rceptor.java:74)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(Stateles
| sRemoteProxy.java:107)
| [java] at $Proxy0.create(Unknown Source)
| [java] at testcases.TestClient.runTest(TestClient.java:46)
| [java] at testcases.TestClient.main(TestClient.java:78)
| [java] at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(Inv
| okeRemoteInterceptor.java:74)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(Cl
| ientTxPropagationInterceptor.java:67)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.aspects.security.SecurityClientInterceptor.invoke(S
| ecurityClientInterceptor.java:53)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInte
| rceptor.java:74)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(Stateles
| sRemoteProxy.java:107)
| [java] at $Proxy0.create(Unknown Source)
| [java] at testcases.TestClient.runTest(TestClient.java:46)
| [java] at testcases.TestClient.main(TestClient.java:78)
|
| BUILD SUCCESSFUL
| Total time: 1 second
| E:\E_WSPACE_EURO\StateMonitor>
|
:(
-James
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115448#4115448
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115448
18 years, 3 months
[JBoss Seam] - Integration Testing - Render Response phase
by Nogard
Hi all.
I'm using Seam 2.0.1.CR1 and trying to write Seam integration test. I took one from the examples as an example :). Here is the test code (it extends SeamTest):
| @Test
| public void testLogin() throws Exception {
| new FacesRequest("/login.xhtml") {
| @Override
| protected void updateModelValues() throws Exception {
| setValue("#{identity.username}", ADMIN_USERNAME);
| setValue("#{identity.password}", ADMIN_PASSWORD);
| }
|
| @Override
| protected void invokeApplication() throws Exception {
| invokeAction("#{identity.login}");
| }
|
| @Override
| protected void renderResponse() throws Exception {
| assert (Boolean) getValue("#{identity.loggedIn}");
| }
| }.run();
|
Everything works fine updateModelValues and invokeApplication methods are invoked, authentication is successfull, but renderResponse method is not invoked. I debug it and found this piece of code in emulateJsfLifecycle method of BaseSeamTest class:
| if ( skipRender() )
| {
| // we really should look at redirect parameters here!
| return false;
| }
| else
| {
| renderResponsePhase();
| return true;
| }
|
so skipRender method always returns true and it has only one row inside:
| FacesContext.getCurrentInstance().getResponseComplete();
|
Could anybody explain why it happens, why response is complete, and why renderResponsePhase should be invoked only if it's not?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115447#4115447
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115447
18 years, 3 months
[Beginners Corner] - Re: No Persistence provider for EntityManager
by jhannoy
I'm getting the following exception while running the client app:
| E:\StateMonitor>ant run.client
| Buildfile: build.xml
|
| prepare:
|
| compile:
|
| ejbjar:
|
| run.client:
| [java] Created Class...
| [java] MonitorRemote Sateless...
| [java] java.lang.RuntimeException: java.lang.reflect.InvocationTargetExcept
| ion
| [java] at org.jboss.ejb3.EJBContainer.construct(EJBContainer.java:526)
| [java] at org.jboss.ejb3.AbstractPool.create(AbstractPool.java:66)
| [java] at org.jboss.ejb3.InfinitePool.get(InfinitePool.java:49) [java] at org.jboss.ejb3.ThreadlocalPool.create(ThreadlocalPool.java:50
| )
| [java] at org.jboss.ejb3.ThreadlocalPool.get(ThreadlocalPool.java:90)
| [java] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(
| StatelessInstanceInterceptor.java:54)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(A
| uthenticationInterceptor.java:77)
| [java] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(
| Ejb3AuthenticationInterceptor.java:110)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagatio
| nInterceptor.java:46)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(As
| ynchronousInterceptor.java:106)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(Sta
| telessContainer.java:304)
| [java] at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
| [java] at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invok
| e(AOPRemotingInvocationHandler.java:82)
| [java] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:76
| 9)
| [java] at org.jboss.remoting.transport.socket.ServerThread.processInvoc
| ation(ServerThread.java:573)
| [java] at org.jboss.remoting.transport.socket.ServerThread.dorun(Server
| Thread.java:373)
| [java] at org.jboss.remoting.transport.socket.ServerThread.run(ServerTh
| read.java:166)
| [java] Caused by: java.lang.reflect.InvocationTargetException
| [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
| Method)
| [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeC
| onstructorAccessorImpl.java:39)
| [java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Del
| egatingConstructorAccessorImpl.java:27)
| [java] at java.lang.reflect.Constructor.newInstance(Constructor.java:49
| 4)
| [java] at org.jboss.ejb3.EJBContainer.construct(EJBContainer.java:514)
| [java] at org.jboss.ejb3.AbstractPool.create(AbstractPool.java:66)
| [java] at org.jboss.ejb3.InfinitePool.get(InfinitePool.java:49)
| [java] at org.jboss.ejb3.ThreadlocalPool.create(ThreadlocalPool.java:50
| )
| [java] at org.jboss.ejb3.ThreadlocalPool.get(ThreadlocalPool.java:90)
| [java] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(
| StatelessInstanceInterceptor.java:54)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(A
| uthenticationInterceptor.java:77)
| [java] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(
| Ejb3AuthenticationInterceptor.java:110)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagatio
| nInterceptor.java:46)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(As
| ynchronousInterceptor.java:106)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(Sta
| telessContainer.java:304)
| [java] at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
| [java] at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invok
| e(AOPRemotingInvocationHandler.java:82)
| [java] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:76
| 9)
| [java] at org.jboss.remoting.transport.socket.ServerThread.processInvoc
| ation(ServerThread.java:573)
| [java] at org.jboss.remoting.transport.socket.ServerThread.dorun(Server
| Thread.java:373)
| [java] at org.jboss.remoting.transport.socket.ServerThread.run(ServerTh
| read.java:166)
| [java] at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemot
| eClientInvoker.java:163)
| [java] at org.jboss.remoting.Client.invoke(Client.java:1634)
| [java] at org.jboss.remoting.Client.invoke(Client.java:548)
| [java] at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(Inv
| okeRemoteInterceptor.java:62)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(Cl
| ientTxPropagationInterceptor.java:67)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.aspects.security.SecurityClientInterceptor.invoke(S
| ecurityClientInterceptor.java:53)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInte
| rceptor.java:74)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(Stateles
| sRemoteProxy.java:107)
| [java] at $Proxy0.create(Unknown Source)
| [java] at testcases.TestClient.runTest(TestClient.java:46)
| [java] at testcases.TestClient.main(TestClient.java:78) [java] at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(Inv
| okeRemoteInterceptor.java:74)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(Cl
| ientTxPropagationInterceptor.java:67)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.aspects.security.SecurityClientInterceptor.invoke(S
| ecurityClientInterceptor.java:53)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInte
| rceptor.java:74)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(Stateles
| sRemoteProxy.java:107)
| [java] at $Proxy0.create(Unknown Source)
| [java] at testcases.TestClient.runTest(TestClient.java:46)
| [java] at testcases.TestClient.main(TestClient.java:78)
| [java] Caused by: java.lang.NullPointerException
| [java] at session.MonitorBean.<init>(MonitorBean.java:27)
| [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
| Method)
| [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeC
| onstructorAccessorImpl.java:39)
| [java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Del
| egatingConstructorAccessorImpl.java:27)
| [java] at java.lang.reflect.Constructor.newInstance(Constructor.java:49
| 4)
| [java] at org.jboss.ejb3.EJBContainer.construct(EJBContainer.java:514)
| [java] at org.jboss.ejb3.AbstractPool.create(AbstractPool.java:66)
| [java] at org.jboss.ejb3.InfinitePool.get(InfinitePool.java:49)
| [java] at org.jboss.ejb3.ThreadlocalPool.create(ThreadlocalPool.java:50
| )
| [java] at org.jboss.ejb3.ThreadlocalPool.get(ThreadlocalPool.java:90)
| [java] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(
| StatelessInstanceInterceptor.java:54)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(A
| uthenticationInterceptor.java:77)
| [java] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(
| Ejb3AuthenticationInterceptor.java:110)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagatio
| nInterceptor.java:46)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(As
| ynchronousInterceptor.java:106)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
| ocation.java:101)
| [java] at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(Sta
| telessContainer.java:304)
| [java] at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
| [java] at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invok
| e(AOPRemotingInvocationHandler.java:82)
| [java] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:76
| 9)
| [java] at org.jboss.remoting.transport.socket.ServerThread.processInvoc
| ation(ServerThread.java:573)
| [java] at org.jboss.remoting.transport.socket.ServerThread.dorun(Server
| Thread.java:373)
| [java] at org.jboss.remoting.transport.socket.ServerThread.run(ServerTh
| read.java:166)
|
| BUILD SUCCESSFUL
| Total time: 1 second
| E:\StateMonitor>
|
Would really appreciate if somebody can help me to figure out the problem.
-Thanks,
James.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115446#4115446
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115446
18 years, 3 months
[JBoss jBPM] - which database table used for storing the classes that in t
by rainhust
in jbpm user guide , mention can deploy the delegate classes to jbpm database at 18.2.2. The process class loader
Delegation classes are loaded with the process class loader of their respective process definition. The process class loader is a class loader that has the jBPM classloader as a parent. The process class loader adds all the classes of one particular process definition. You can add classes to a process definition by putting them in the /classes folder in the process archive. Note that this is only useful when you want to version the classes that you add to the process definition. If versioning is not necessary, it is much more efficient to make the classes available to the jBPM class loader.
If the resource name doesn't start with a slash, resources are also loaded from the /classes directory in the process archive. If you want to load resources outside of the classes directory, start with a double slash ( // ). For example to load resource data.xml wich is located next to the processdefinition.xml on the root of the process archive file, you can do clazz.getResource("//data.xml") or classLoader.getResourceAsStream("//data.xml") or any of those variants.
which table used for storing the classes. thx.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115445#4115445
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115445
18 years, 3 months
[JBoss Seam] - Re: Possible to turn off validation for search value object
by jazir1979
Hi Thorsten,
Yes, you just need to make sure your search field is not wrapped in s:validate or s:validateAll tags. There was somebody else with this problem a few days ago, and they had s:decorate with the edit.xhtml template which includes the validate tags.
Hibernate validation will only occur at the UI level if your fields are wrapped in these tags. It will also occur if you try to persist the entity, but I imagine you aren't doing this when using it as a search object.
hope this helps,
Daniel.
"SunFire" wrote : I have a User class which has an email string field annotated with @NotNull @Email.
| I used seam-gen to generate everything for it. UserList, UserHome, etc. Now when I try to search for a username in the generated UserList.xhtml I get an error "must be a well-formed email address". So I guess that even for the object used to hold the search parameters validation is enabled. Is it possible to turn this off? Don't think it makes any sense at all to validate search strings. Now I could write an extra class to only hold the search parameters but switching validation off for the search parameter object would seem nicer to me.
|
| Thanks, Thorsten
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115444#4115444
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115444
18 years, 3 months
[JNDI/Naming/Network] - Re: javax.naming.NameNotFoundException: queue not bound
by bidhudas
Now the queue issue is resolved. But server is not getting started. Its getting shutdown after one minute( it shows as restartign in server window). Getting following in the console.
Please let me know how to resolve this at the earliest.
anonymous wrote : --- Packages waiting for a deployer ---
| org.jboss.deployment.DeploymentInfo@93a9ea6b { url=file:/D:/softs/JBoss/jboss-4.2.1.GA/server/DAS-web/deploy/deploy.lnk }
| deployer: null
| status: null
| state: INIT_WAITING_DEPLOYER
| watch: file:/D:/softs/JBoss/jboss-4.2.1.GA/server/DAS-web/deploy/deploy.lnk
| altDD: null
| lastDeployed: 1198650020906
| lastModified: 1198650020906
| mbeans:
|
| --- Incompletely deployed packages ---
| org.jboss.deployment.DeploymentInfo@93a9ea6b { url=file:/D:/softs/JBoss/jboss-4.2.1.GA/server/DAS-web/deploy/deploy.lnk }
| deployer: null
| status: null
| state: INIT_WAITING_DEPLOYER
| watch: file:/D:/softs/JBoss/jboss-4.2.1.GA/server/DAS-web/deploy/deploy.lnk
| altDD: null
| lastDeployed: 1198650020906
| lastModified: 1198650020906
| mbeans:
|
|
| 07:20:21,156 INFO [Http11Protocol] Démarrage de Coyote HTTP/1.1 sur http-127.0.0.1-8087
| 07:20:21,171 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
| 07:20:21,187 INFO [Server] JBoss (MX MicroKernel) [4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA date=200707131605)] Started in 8s:703ms
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115443#4115443
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115443
18 years, 3 months
[JBossWS] - Error in implementing web-service given in JBoss Messaging
by Neha2911
When im running my jboss messaging web-service example i encounter following error.
Im using
Java Version : JDK1.5 ,
JBoss Version : jboss-4.2.2.GA
Jboss Messaging : jboss-messaging-1.4.0.SP1.
My other examples such as queue n mdb are running fine.
| #######
| [echo] The queue: testQueue
| [echo] The client jar: ../..//jboss-messaging-client.jar
|
| sanity-check:
|
| init:
|
| compile:
|
| war:
|
| deploy:
|
| sleep:
| [echo] Sleeping for 10 seconds ...
|
| run-wsdl-client:
| [get] Getting: http://127.0.0.1:8080/jms-web-service/JMSWebServiceExample?
| wsdl
| [get] To: C:\jboss-messaging-1.4.0.SP1\examples\web-service\output\service
| .wsdl
| [wstools] DEBUG [main] (WSDLDefinitionsFactory.java:102) - parse: file:/C:/jbo
| ss-messaging-1.4.0.SP1/examples/web-service/./output/service.wsdl
| [wstools] DEBUG [main] (DefaultSPIProvider.java:68) - provide SPI 'class org.j
| boss.wsf.spi.management.ServerConfigFactory'
| [wstools] DEBUG [main] (JavaToXSD.java:175) - Load schema: http://endpoint.web
| services.jms.example.jboss.org/=file:/C:/DOCUME~1/282154/LOCALS~1/Temp/JB...
| ndpoint.webservices.jms.example.jboss.org_24007.xsd
| [wstools] DEBUG [main] (JBossWSEntityResolver.java:64) - resolveEntity: [pub=n
| ull,sysid=file:/C:/DOCUME~1/282154/LOCALS~1/Temp/JBossWS_endpoint.webservices.jm
| s.example.jboss.org_24007.xsd]
| [wstools] DEBUG [main] (JBossWSEntityResolver.java:64) - resolveEntity: [pub=h
| ttp://schemas.xmlsoap.org/soap/encoding/,sysid=null]
| [wstools] DEBUG [main] (MappingFileGeneratorHelper.java:876) - Typemapping loo
| kup failed for null
| [wstools] DEBUG [main] (MappingFileGeneratorHelper.java:877) - Falling back to
| identifier generation
| [wstools] DEBUG [main] (MappingFileGeneratorHelper.java:876) - Typemapping loo
| kup failed for null
| [wstools] DEBUG [main] (MappingFileGeneratorHelper.java:877) - Falling back to
| identifier generation
|
| compile-client:
| [javac] Compiling 4 source files to C:\jboss-messaging-1.4.0.SP1\examples\we
| b-service\output\client-classes
|
| run:
|
| send-and-receive:
| [java] DEBUG [main] (JAXRPCClientMetaDataBuilder.java:103) - START buildMet
| aData: [service={http://endpoint.webservices.jms.example.jboss.org/}JMSSampleSer
| vice]
| [java] DEBUG [main] (WSDLDefinitionsFactory.java:102) - parse: http://127.0
| .0.1:8080/jms-web-service/JMSWebServiceExample?wsdl
| [java] DEBUG [main] (DefaultSPIProvider.java:68) - provide SPI 'class org.j
| boss.wsf.spi.management.ServerConfigFactory'
| [java] DEBUG [main] (JavaToXSD.java:175) - Load schema: http://endpoint.web
| services.jms.example.jboss.org/=file:/C:/DOCUME~1/282154/LOCALS~1/Temp/JB...
| ndpoint.webservices.jms.example.jboss.org_35128.xsd
| [java] DEBUG [main] (JBossWSEntityResolver.java:64) - resolveEntity: [pub=n
| ull,sysid=file:/C:/DOCUME~1/282154/LOCALS~1/Temp/JBossWS_endpoint.webservices.jm
| s.example.jboss.org_35128.xsd]
| [java] DEBUG [main] (JBossWSEntityResolver.java:64) - resolveEntity: [pub=h
| ttp://schemas.xmlsoap.org/soap/encoding/,sysid=null]
| [java] java.lang.IllegalArgumentException: Cannot obtain wsdl service: {htt
| p://endpoint.webservices.jms.example.jboss.org/}JMSSampleService
| [java] at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuil
| der.buildMetaDataInternal(JAXRPCClientMetaDataBuilder.java:172)
| [java] at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuil
| der.buildMetaData(JAXRPCClientMetaDataBuilder.java:134)
| [java] at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuil
| der.buildMetaData(JAXRPCClientMetaDataBuilder.java:86)
| [java] at org.jboss.ws.core.jaxrpc.client.ServiceImpl.<init>(ServiceImp
| l.java:111)
| [java] at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createServ
| ice(ServiceFactoryImpl.java:157)
| [java] at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createServ
| ice(ServiceFactoryImpl.java:142)
| [java] at org.jboss.example.jms.webservices.client.Client.sendMessage(C
| lient.java:75)
| [java] at org.jboss.example.jms.webservices.client.Client.example(Clien
| t.java:58)
| [java] at org.jboss.example.jms.common.ExampleSupport.run(ExampleSuppor
| t.java:161)
| [java] at org.jboss.example.jms.webservices.client.Client.main(Client.j
| ava:117)
| [java]
| [java] #####################
| [java] ### FAILURE! ###
| [java] #####################
|
| BUILD FAILED
| C:\jboss-messaging-1.4.0.SP1\examples\web-service\build.xml:157: The following e
| rror occurred while executing this line:
| C:\jboss-messaging-1.4.0.SP1\examples\web-service\build.xml:166: Java returned:
| 1
|
| Total time: 14 seconds
| C:\jboss-messaging-1.4.0.SP1\examples\web-service>
|
|
please anyone of u can tell me what is the problem
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115442#4115442
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115442
18 years, 3 months
[Messaging, JMS & JBossMQ] - Error in running the example web-service
by Neha2911
When im running my jboss messaging web-service example i encounter following error.
Im using
Java Version : JDK1.5 ,
JBoss Version : jboss-4.2.2.GA
Jboss Messaging : jboss-messaging-1.4.0.SP1.
My other examples such as queue n mdb are running fine.
#######
| [echo] The queue: testQueue
| [echo] The client jar: ../..//jboss-messaging-client.jar
|
| sanity-check:
|
| init:
|
| compile:
|
| war:
|
| deploy:
|
| sleep:
| [echo] Sleeping for 10 seconds ...
|
| run-wsdl-client:
| [get] Getting: http://127.0.0.1:8080/jms-web-service/JMSWebServiceExample?
| wsdl
| [get] To: C:\jboss-messaging-1.4.0.SP1\examples\web-service\output\service
| .wsdl
| [wstools] DEBUG [main] (WSDLDefinitionsFactory.java:102) - parse: file:/C:/jbo
| ss-messaging-1.4.0.SP1/examples/web-service/./output/service.wsdl
| [wstools] DEBUG [main] (DefaultSPIProvider.java:68) - provide SPI 'class org.j
| boss.wsf.spi.management.ServerConfigFactory'
| [wstools] DEBUG [main] (JavaToXSD.java:175) - Load schema: http://endpoint.web
| services.jms.example.jboss.org/=file:/C:/DOCUME~1/282154/LOCALS~1/Temp/JB...
| ndpoint.webservices.jms.example.jboss.org_24007.xsd
| [wstools] DEBUG [main] (JBossWSEntityResolver.java:64) - resolveEntity: [pub=n
| ull,sysid=file:/C:/DOCUME~1/282154/LOCALS~1/Temp/JBossWS_endpoint.webservices.jm
| s.example.jboss.org_24007.xsd]
| [wstools] DEBUG [main] (JBossWSEntityResolver.java:64) - resolveEntity: [pub=h
| ttp://schemas.xmlsoap.org/soap/encoding/,sysid=null]
| [wstools] DEBUG [main] (MappingFileGeneratorHelper.java:876) - Typemapping loo
| kup failed for null
| [wstools] DEBUG [main] (MappingFileGeneratorHelper.java:877) - Falling back to
| identifier generation
| [wstools] DEBUG [main] (MappingFileGeneratorHelper.java:876) - Typemapping loo
| kup failed for null
| [wstools] DEBUG [main] (MappingFileGeneratorHelper.java:877) - Falling back to
| identifier generation
|
| compile-client:
| [javac] Compiling 4 source files to C:\jboss-messaging-1.4.0.SP1\examples\we
| b-service\output\client-classes
|
| run:
|
| send-and-receive:
| [java] DEBUG [main] (JAXRPCClientMetaDataBuilder.java:103) - START buildMet
| aData: [service={http://endpoint.webservices.jms.example.jboss.org/}JMSSampleSer
| vice]
| [java] DEBUG [main] (WSDLDefinitionsFactory.java:102) - parse: http://127.0
| .0.1:8080/jms-web-service/JMSWebServiceExample?wsdl
| [java] DEBUG [main] (DefaultSPIProvider.java:68) - provide SPI 'class org.j
| boss.wsf.spi.management.ServerConfigFactory'
| [java] DEBUG [main] (JavaToXSD.java:175) - Load schema: http://endpoint.web
| services.jms.example.jboss.org/=file:/C:/DOCUME~1/282154/LOCALS~1/Temp/JB...
| ndpoint.webservices.jms.example.jboss.org_35128.xsd
| [java] DEBUG [main] (JBossWSEntityResolver.java:64) - resolveEntity: [pub=n
| ull,sysid=file:/C:/DOCUME~1/282154/LOCALS~1/Temp/JBossWS_endpoint.webservices.jm
| s.example.jboss.org_35128.xsd]
| [java] DEBUG [main] (JBossWSEntityResolver.java:64) - resolveEntity: [pub=h
| ttp://schemas.xmlsoap.org/soap/encoding/,sysid=null]
| [java] java.lang.IllegalArgumentException: Cannot obtain wsdl service: {htt
| p://endpoint.webservices.jms.example.jboss.org/}JMSSampleService
| [java] at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuil
| der.buildMetaDataInternal(JAXRPCClientMetaDataBuilder.java:172)
| [java] at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuil
| der.buildMetaData(JAXRPCClientMetaDataBuilder.java:134)
| [java] at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuil
| der.buildMetaData(JAXRPCClientMetaDataBuilder.java:86)
| [java] at org.jboss.ws.core.jaxrpc.client.ServiceImpl.<init>(ServiceImp
| l.java:111)
| [java] at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createServ
| ice(ServiceFactoryImpl.java:157)
| [java] at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createServ
| ice(ServiceFactoryImpl.java:142)
| [java] at org.jboss.example.jms.webservices.client.Client.sendMessage(C
| lient.java:75)
| [java] at org.jboss.example.jms.webservices.client.Client.example(Clien
| t.java:58)
| [java] at org.jboss.example.jms.common.ExampleSupport.run(ExampleSuppor
| t.java:161)
| [java] at org.jboss.example.jms.webservices.client.Client.main(Client.j
| ava:117)
| [java]
| [java] #####################
| [java] ### FAILURE! ###
| [java] #####################
|
| BUILD FAILED
| C:\jboss-messaging-1.4.0.SP1\examples\web-service\build.xml:157: The following e
| rror occurred while executing this line:
| C:\jboss-messaging-1.4.0.SP1\examples\web-service\build.xml:166: Java returned:
| 1
|
| Total time: 14 seconds
|
please anyone of u can tell me what is the problem
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115441#4115441
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115441
18 years, 3 months
[JBoss Portal] - Custom Tomcat Value Implementation - Dashboard Access Denied
by groovenarula
I'm trying to integrate JBoss Portal with an existing 'Single Sign On' framework that works similar to how Site Minder works. We don't have the option to swap out the framework so we don't have a choice but figure out how to get this to work.
The framework authenticates the user and provides the users identity through a HTTP Header. I am thinking of creating a custom 'Tomcat Value' that will read the user's login name from the HTTP header and then use that to set the 'request's' principal. In order to test this theory, I have the following code that set's the request's principal to 'admin' :
public void invoke(Request request, Response response)
throws IOException, ServletException {
List roles = new ArrayList();
String username = "admin";
roles.add("Authenticated");
roles.add("Admin");
roles.add("User");
request.setUserPrincipal(new CustomPrincipal(
request.getContext().getRealm(), username, roles));
// now execute all other valves
getNext().invoke(request, response);
}
On accessing the portal, the portal does indicate that I've 'Logged in as: admin'. However when I click on the 'Dashboard' link, I get a '403 - Access denied error'.
What am I missing here ? We are in the process of evaluating different portals for our next project and am convinced that JBoss portal will be the right fit for us. So I really need to get this working with our framework.
If I'm using the worng technique and please do let me know that as well. Any help will be truly appreciated.
Thanks
Groove
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115438#4115438
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115438
18 years, 3 months