[EJB 3.0] - Is Map allowed as @CollectionOfElements?
by lhoriman
Is it possible to have a @CollectionOfElements which is a Map? Using JBoss 4.0.4.GA:
@CollectionOfElements
| @JoinColumn(name="blahId")
| @MapKey(name="foo")
| Map<String, Thing> things;
|
| (Thing is @Embeddable)
Gives me:
org.hibernate.AnnotationException: Associated class not found: com.kink.heart.entity.Thing
| at org.hibernate.cfg.annotations.MapBinder.bindKeyFromAssociationTable(MapBinder.java:95)
| at org.hibernate.cfg.annotations.MapBinder.access$000(MapBinder.java:55)
| at org.hibernate.cfg.annotations.MapBinder$1.secondPass(MapBinder.java:78)
| at org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:35)
| ...
If I change the collection type to Set, everything works.
Is Map not supported? Will it be in the future?
Thanks,
Jeff
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959387#3959387
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959387
19 years, 9 months
[JBoss Seam] - Problem starting converstaion and setting state from HTTP GE
by c_eric_ray
I have a simple page using the standard login form using j_security_check. JBoss is configured to authenticate against an LDAP server. Once authenticated the <welcome-page> is rendered and it simply does this...
<meta http-equiv="Refresh" content="0; URL=extract/index.jsf">
When index.jsf is rendered I need some data retrieved from the database so I can display it immeditately. That's where I have a problem. I can't get the data loaded from the database and displayed in my page.
I've tried all recommendations in Section 3.3 of the SEAM documentation. Nothing works. I'm sure I'm doing something wrong. Any ideas.
Here's the code...
| @Stateful
| @Name("package")
| public class PackageAction implements Package {
|
| @DataModel
| private List<PackageEntity> packages = null;
|
| @PersistenceContext(unitName="DC")
| private EntityManager em;
|
|
| public PackageAction() {}
|
| @Begin(join=true) @Create
| public void load() {
| packages = em.createQuery("from PackageEntity").getResultList();
| }
|
| @Destroy @Remove
| public void destroy() {}
| }
|
I even added a pages.xml file like so...
| <pages>
| <page view-id="/extract/index.jsf" action="#{package.load}"/>
| </pages>
|
and that doesn't work either.
Here's the web page...
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| <f:view xmlns:h="http://java.sun.com/jsf/html"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:c="http://java.sun.com/jstl/core"
| xmlns:ui="http://java.sun.com/jsf/facelets">
|
| <ui:composition>
| <f:loadBundle basename="bundle.packageTable" var="pkgHeaders" />
|
| <h:form>
| <h:dataTable value="#{packages}" var="pkgEntity" styleClass="dataTableBody" headerClass="dataTableHeader"
| rowClasses="evenRow,oddRow" cellspacing="0">
| <h:column>
| <f:facet name="header">
| <h:outputText value="#{pkgHeaders.id}" />
| </f:facet>
| <h:outputText value="#{pkgEntity.id}" />
| </h:column>
| <h:column>
| <f:facet name="header">
| <h:outputText value="#{pkgHeaders.status}" />
| </f:facet>
| <h:outputText value="#{pkgEntity.statusCode}" />
| </h:column>
| <h:column>
| <f:facet name="header">
| <h:outputText value="#{pkgHeaders.user}" />
| </f:facet>
| <h:outputText value="#{pkgEntity.user.username}" />
| </h:column>
|
| ...
|
| </h:dataTable>
| </h:form>
| </ui:composition>
| </f:view>
|
Thanks.
Eric Ray
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959386#3959386
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959386
19 years, 9 months
[JBoss jBPM] - Re: jBPM expert needed ASAP Part Time Denver, CO or Dallas,
by qqchuck
Sorry if I'm being unclear, but I also understand how unclear things can be in a technical world!
(As an aside, I've been doing Java for 9 years solid now, so I'm fairly experienced, but just need help with this particular engine)
"My question would then be: What is your definition of trivial? I've created some processes that others would call difficult/non-trival but I think the're trivial."
Think of it as:
1. The example "Hello world" type project offered by the tutorial developers.
2. Add timers, forks, joins, and say... at least 10 total nodes.
3. Add experience troubleshooting and using in a production environment under at least a minimum load of say... 3-4 users.
4. A "nice to have" feature of a developer would be using jBPM without having used it inside JBoss, but that's not required. (I'm working on getting them to JBoss, and this project should help, but for now, we have to use another container - which you shouldn't have to worry about too much -- I can tie them together.)
The rest of any questions and convo could be handled in a 5-10 minute phone convo, so if anyone would like me to contact them about this engagement, like I said above, convince me in the first 3-6 sentences of your email that you've got some of the above, and I'll respond to you and we'll get on the phone and quickly figure out if were a potential match or not. I won't waste your time.
Email me here: qqchuck-site@yahoo dot com
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959385#3959385
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959385
19 years, 9 months
[JBossCache] - Re: PojoCache Weblogic 91 and JConsole issue!!
by sphinxmember
Hi,
Thanks for your reply, Here is what I get on the weblogic server.
I was getting errors on the jconsole side also which are not coming now after I started it with the following set up, Let me know what more information I need to provide. I am using spring to export the pojo cache as mbean to weblogic mbean server.
jconsole -J-classpath -JC:\bea91\weblogic91\server\lib\wljmxclient.
jar;C:\bea91\jdk150_04\lib\jconsole.jar;C:\jboss-cache\JBossCache-1.3.0.SP2\lib-50\jboss-ca
che-jdk50.jar
<Jul 19, 2006 5:04:01 PM PDT> <BEA-080003> <RuntimeException thrown by rmi server:
javax.management.remote.rmi.RMIConnectionImpl.getAttribute(Ljavax.management.ObjectName;Ljava.lang.
String;Ljavax.security.auth.Subject;)
java.lang.ClassCastException: org.jboss.cache.aop.TreeCacheAop.
java.lang.ClassCastException: org.jboss.cache.aop.TreeCacheAop
at weblogic.iiop.IIOPOutputStream.writeAny(IIOPOutputStream.java:1534)
at weblogic.iiop.IIOPOutputStream.writeObject(IIOPOutputStream.java:2172)
at javax.management.remote.rmi.RMIConnectionImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:517)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:407)
Truncated. see log file for complete stacktrace
>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959384#3959384
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959384
19 years, 9 months