[JBoss Tools (users)] - hibernate hbm.xml editor wierd error
by mdiskin
I get this error:
ERROR 41:29 Attribute "order-by" must be declared for element type "many-to-many"
but only on the visual/tree view. The source view is fine and says the xml is valid.
Here's the config that's causing the error (which came from jboss support, but only the dev studio is supported, not the hibernate tools version and dev studio cannot be installed into my STS ide).
<map name="billers" inverse="true" schema="INVADMIN"
| table="BILLER_GROUP_ASSIGNMENT" mutable="true" sort="unsorted"
| optimistic-lock="true" embed-xml="true" >
| <key column="BILLER_GROUP_ID" on-delete="noaction" />
| <map-key type="long" formula="BILLER_ID" />
| <many-to-many column="BILLER_ID" unique="false" order-by="BILLER_NM"
| class="com.arccorp.database.invoicing.domain.Biller" embed-xml="true"
| not-found="exception" />
| </map>
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4221995#4221995
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4221995
15 years, 3 months
[Installation, Configuration & DEPLOYMENT] - Re: axis.jar incompatibility
by Wolfgang Knauf
Hi,
what is your version of "commons-collections.jar"?
The reason why I ask is this snippet of the error message:
when resolving method "org.apache.commons.collections.map.LazyMap.decorate(Ljava/util/Map;Lorg/apache/commons/collections/Transformer;)Ljava/util/Map;" the class loader ... of the current class, org/ajax4jsf/application/ComponentsLoaderImpl, and the class loader .. for resolved class, org/apache/commons/collections/map/LazyMap, have different Class objects for the type org/apache/commons/collections/Transformer used in the signature
So it seems that "org.apache.commons.collections.Transformer" is referenced in two different versions. Probably this is a requirement of RichFaces. Take a look at their website and find which commons-collections.jar version is required.
Hope this helps
Wolfgang
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4221992#4221992
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4221992
15 years, 3 months
[Security & JAAS/JBoss] - Basic app client to app server authentication in J2EE
by bugoff
I have DB with users. I also have a basic swing app with username/password fields. I want client to be able connect and authorize itself with those credentials.
Currently I have:
Client:
| //global
| @EJB(name="DemoServer/MyBean/remote") private MyBeanRemote ejb;
|
| //login
| Properties p = new Properties();
| p.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.security.jndi.LoginInitialContextFactory");
| p.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
| p.put(Context.PROVIDER_URL, "localhost");
| p.put(Context.SECURITY_PRINCIPAL, tName.getText());
| p.put(Context.SECURITY_CREDENTIALS, tPass.getText());
| p.put(Context.SECURITY_PROTOCOL, "MyLogin");
|
|
| InitialContext ctx;
| ctx = new InitialContext(p);
| ejb = (MyBeanRemote) ctx.lookup("DemoServer/MyBean/remote");
|
Server is local Jboss5 and EJB3. I have jaas.conf on server and I want to authenticate through it. Am I on the right path and what do I do? Thank you very much.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4221987#4221987
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4221987
15 years, 3 months