[JBoss Seam] - SeamEntityConverter Mess
by toni
Hi,
I'm trying to use the SeamEntityConverter convertEntity tag in order to select an entity from a selectOneMenu widget.
I downloaded the entityconverter-0.1.zip and unzipped it. The I discovered that the tld is pointing to the wrong class and that reference to the taglib is wrong too. After fixing this I'm now getting the whole time getting "invalid value" when trying to select an entity. I have tried everything nothing seems work.
So my questions:
1. Is the tag in the 1.2.1 GA release included. I don't think so, but it says so in the Wiki : " This is now in Seam from the 1.2.1.GA releas". Don't know what that really mean.
2. If it's not in the 1.2.1 GA release, then were can I get the jar from? The one in the wiki has wrong tld names and class references and even after fixing this it's not working for me.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047233#4047233
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047233
18 years, 11 months
[JBoss Seam] - @Embeddable question
by anescu
Hi,
We're trying to use an @Embeddable class in our project. It's a seam generated project, but we keep our entities and modify the views as needed.
So, we have a ABC @Embeddable class which has one field
private String name;
And this class is embedded into another, XYZ.
On the interface i have a field:
<s:decorate id="ABCNameDecoration" template="layout/edit.xhtml">
| <ui:define name="label"><h:outputText value="#{messages['XYZ.ABCName.label']}" /></ui:define>
| <h:inputText id="ABCName"
| size="100"
| maxlength="100"
| value="#{xyzHome.instance.ABC.name}" title="#{messages['XYZ.ABCName.tooltip']}">
| <a:support event="onblur" reRender="ABCNameDecoration"/>
| </h:inputText>
| </s:decorate>
The page renders ok, but when i try to edit/add an entity and put some value into this field I get a validation error:
anonymous wrote : value could not be converted to the expected type
No error shows up in the log, even on debug mode.
I browsed the forum and found somewhere something about needing a converter for this entity. I also found some examples on how to build a custom JSF converter. So, my questions are:
1) is there a doc on how to do custom converters on seam (what needs to be configured and so on)
2) If my ABC class has 5 fields, all rendered on the page of the owing entity (XYZ) as separate fields, do I need 5 converters, one for each field????
Tnx, I wait for your reply...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047231#4047231
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047231
18 years, 11 months
[Security & JAAS/JBoss] - NegotiateKerberos
by chat2saqib
Hi All,
I am trying to follow the instructions which is available on http://wiki.jboss.org/wiki/Wiki.jsp?page=NegotiateKerberos to test the Negotiate Authentication on Tomcat in JBoss exactly what it is said on the website. But, I dont know why when i run the JBOSS it gives me an exception.
13:17:43,875 INFO [ServiceConfigurator] Problem configuring service jboss.security:service=JaasSecurityManager
org.jboss.deployment.DeploymentException: Exception setting attribute javax.management.Attribute@fb6354 on mbean jboss.s
ecurity:service=JaasSecurityManager; - nested throwable: (java.lang.NoClassDefFoundError: org/jboss/web/tomcat/security/
WebCallbackHandler)
at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:698)
at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:332)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:460)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
at org.jboss.system.ServiceController.install(ServiceController.java:226)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:464)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NoClassDefFoundError: org/jboss/web/tomcat/security/WebCallbackHandler
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at org.jboss.mx.loading.RepositoryClassLoader.findClassLocally(RepositoryClassLoader.java:672)
at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:652)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:190)
at org.jboss.mx.loading.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:131)
at org.jboss.mx.loading.LoadMgr3.nextTask(LoadMgr3.java:399)
at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:517)
at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.jboss.security.plugins.JaasSecurityManagerService.setCallbackHandlerClassName(JaasSecurityManagerService.
java:188)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.AttributeDispatcher.invoke(AttributeDispatcher.java:136)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.interceptor.ModelMBeanAttributeInterceptor.invoke(ModelMBeanAttributeInterceptor.java:103)
at org.jboss.mx.interceptor.PersistenceInterceptor.invoke(PersistenceInterceptor.java:76)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.setAttribute(AbstractMBeanInvoker.java:461)
at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:608)
at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:694)
... 39 more
I think when I change my C:\server2\jboss-4.0.4.GA\server\default\conf\jboss-service.xml file where I add the following attribut for the Mbean as mentioned in the website Step 3.
----------------------In jboss-service.xml file----------------------------
<!-- A flag which indicates whether the SecurityAssociation server mode
is set on service creation. This is true by default since the
SecurityAssociation should be thread local for multi-threaded server
operation.
-->
org.jboss.web.tomcat.security.AdvancedWebCallbackHandler
true
org.jboss.security.plugins.JaasSecurityManager
anonymous
<!-- DefaultCacheTimeout: Specifies the default timed cache policy timeout
in seconds.
If you want to disable caching of security credentials, set this to 0 to
force authentication to occur every time. This has no affect if the
AuthenticationCacheJndiName has been changed from the default value.
-->
1800
<!-- DefaultCacheResolution: Specifies the default timed cache policy
resolution in seconds. This controls the interval at which the cache
current timestamp is updated and should be less than the DefaultCacheTimeout
in order for the timeout to be meaningful. This has no affect if the
AuthenticationCacheJndiName has been changed from the default value.
-->
60
I will be really thankful to help me out in this please.
Thanks in Advance.
Saqib Hussain.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047224#4047224
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047224
18 years, 11 months