RE: [JBoss-user] cmr bug in 3.2.4RC1?
On Fri, 19 Mar 2004, Alexey Loubyansky wrote: This XDoclet results in 1:m with relation table mapping (on my machine). you are of course right - i have even written it in the (elided) javadoc of this method ;-) And it is in fact broken at the moment. True m:n works fine for me. Fixed in 3.2.4RC2 and 4.0.0DR4. thanks a lot, heinz-dieter conradi --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] cmr bug in 3.2.4RC1?
when updating form jboss-3.2.3 to jboss-3.2.4RC1 i noticed that one of my JUnit tests failed. the test is about a m-n relation which is managed by a relation table. looking at the debugging output it appears that after the setter method for the set no insert method is called. this is what was in 3.2.3: 2004-03-17 08:47:05,698 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCInsertRelationsCommand.Institution] Executing SQL: INSERT INTO T_A_CONTACT(s_b_id,s_b_id) VALUES (?, ?) 2004-03-17 08:47:05,699 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCInsertRelationsCommand.Institution] Rows affected = 1 2004-03-17 08:47:05,699 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCInsertRelationsCommand.Institution] Rows affected = 1 but it missing in 3.2.4RC1. is this a regressin bug in jboss. or i am doing something stupid. tia, heinz-dieter conradi ps: the bean is unidirectional is the code looks as follows: public abstract class ABean implements EntityBean { [...] /** * @ejb.interface-method view-type=local * * @ejb.relation * name=A-AContact * role-name=A-has-AContacts * target-ejb=B * target-role-name=B-is-an-AContact * * @jboss.relation-mapping style=relation-table * * @jboss.relation-table *table-name=t_a_contact * * @jboss.target-relation *fk-constraint=${fk-constraint} *related-pk-field=aId *fk-column=s_a_id * * @jboss.relation *fk-constraint=${fk-constraint} *related-pk-field=bId *fk-column=s_b_id */ public abstract Set getAContacts(); /** @ejb.interface-method view-type=local */ public abstract void setAContacts(Set aContacts); [...] } --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss3.2.3 - AOP or javassist
thanks to all who responded. during the weekend, i decided to play with the interceptors and after a bit of googling i found the right starting point in the sources. i am now doing the following: i wrote my own MyInterceptor which extends AbstractInterceptor and in the jboss.xml of the application i have configured a new container-configuration where this Interceptor is added to the session beans. everything seems to work :-) i can do my exception wrapping, can even call other beans ... (btw, at the moment, i call the other bean like any client would do it. i guess there is a more elegant way?) i really like the interceptor design of jboss. thanks to all again. p.s. when the new AOP release is out, i might perhaps have a new look at doing it instead with AOP, but if the above is working ... --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss3.2.3 - AOP or javassist
i would like to perform some general operations for most of the calls coming to my facade session beans. instead of coding this for every method in every facade, i would like to use aop like techniques. as far as i know, one cannot use JBossAOP with JBoss-3.2.3 (i guess because of Classloader problems). is this true? And what about using javassist (or similar libraries as CGLib)? at least a simple approach cannot work, since the EJB container itself provides proxy classes for the classes i am interested in. are there ways around this? tia, heinz-dieter conradi --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss3.2.3 - AOP or javassist
i would like to perform some general operations for most of the calls coming to my facade session beans. instead of coding this for every method in every facade, i would like to use aop like techniques. as far as i know, one cannot use JBossAOP with JBoss-3.2.3 (i guess because of Classloader problems). is this true? U can't use AOP with 3.2.3 but u can use Interceptors. With AOP u can perform a complite aspect oriented programmation, with Jboss3.2.3 Intercetor u can intercept calls only to ur ejbs' methods. I think this is enough for you... i guess you are right. do you have a simple example of how to create and use such an interceptor? thanks, heinz-dieter --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] j2sdk1.5 and jboss
The JMX Spec allows you to override the MBeanServerBuilder Implementation. Just add -Djavax.management.builder.initial = org.jboss.mx.server.MBeanServerBuilderImpl to your run.conf and you are done. Almost. Because you first might encounter a few JMX JDK Bugs, which will prevent booting JBoss. I have reported them against build-32 and got a confirmation that those are fixed, but haven't been able to check whether they made it in the current build or not. this is obviously a lot more convenient than my self build rt.jar file. unfortunately, then it tries to load the the jboss managment server immediately. i.e. throws a ClassNotFoundException just as in the case, when i put the jboss-jmx.jar in the Xbootclasspath. this could of course just be what you hinted at: The second problem is the broken LoaderRepository implementation within Jboss (4.x), so you need to patch Jboss in order to get it up and running. i am running JBoss 3.2.3, but i do not think this will make a great difference. i guess i have to wait for the new release for doing it propertly. thanks again, heinz-dieter conradi --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] j2sdk1.5 and jboss
hi all, i would like to play with the new 1.5 release from sun. unfortunately, when starting JBOSS i get the following exception: 10:21:49,055 INFO [Server] Starting General Purpose Architecture (GPA)... Failed to boot JBoss: javax.management.InstanceNotFoundException: JMImplementation:service=LoaderRepository,name=Default at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1010) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:804) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784) at org.jboss.system.server.ServerImpl.initBootLibraries(ServerImpl.java:499) at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:335) at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291) at org.jboss.Main.boot(Main.java:150) at org.jboss.Main$1.run(Main.java:395) at java.lang.Thread.run(Thread.java:566) since javax.managment is not part of the 1.4.2 version, i don't know where to look. any ideas, if it is possible to use 1.5 with jboss? tia, heinz-dieter conradi --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] j2sdk1.5 and jboss
thanks to all who responded, the point indeed is the fact that with 1.5 sun bundles the jmx extension with the standard edition. (i.e. recompiling would not work, however recompiling does at all, since ant complaints: [execmodules] javac: source release 1.4 requires target release 1.4) putting the jboss libraries one after the other in Xbootclasspath (or with the same effect in jre/lib/endorsed) just got me to a nullpointer exception when it tried to get hold of a manager. at last i tried to just ged rid of the management extension from sun. i unjared the rt.jar file from sun, got rid of the whole javax/management directory, jared it again and put it at it's place in jre/lib. jboss then booted and my tests indeed worked :-) again, thanks to all, heinz-dieter --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] finder and two cmr-fields on same table problem
hi all, i have just encountered the following problem, and i just don't know if i am doing something really stupid or if i have run into a limitation of the spec/jboss... i have an entity bean which has two cmr-fields to the same table (bean): public abstract class CrossingBean implements EntityBean { [...] public abstract StreetLocal getStreet1(); public abstract StreetLocal getStreet2(); [...] } where the StreetBean is another entity bean which has a 'street' property. then i have defined a finder, whose xdoclet-tags looks as follows: * @ejb.finder * signature=de.s_tec.vb2.server.beans.location.Crossing * findByName( * java.lang.String street1 * ) * query=SELECT OBJECT(o) * FROM Crossing AS o * WHERE o.street1.street = ?1 when deploying this bean i get an exception which says: Unknown terminal field: at line 1, column 128. Encountered: street after: o.street1.) however, when i remove the 'street2' property from my bean, everything deploys fine. what is going on here? am i just stupid? tia, heinz-dieter conradi --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] finder and two cmr-fields on same table problem
hi, On Fri, 12 Dec 2003, Alexey Loubyansky wrote: Works for me. How do you configure the relationships? i went and checked the relationships again - and found that there was indeed a copy/paste error: both relationships had the same name. at an earlier stage JBoss complained while deploying, that there where two relations with the same 'role-name', but the same 'name' did not bother it ;-( thanks very much, heinz-dieter --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss-net with complex type (no serializer found)
hi stephan, I am trying to rollout our application to JBoss.NET instead of a separate Axis.war I am running xdoclet 1.2b2, JBoss 3.2.2RC4 under redhat 9 some days ago, i had the same problem. i solved it by looking into the jboss-net testsuite which is distributed with the sources. My session bean (the one exposed as web service is): * @ejb.bean type=Stateless * name=NodeSyncher * * @ejb.transaction type=Required * * @jboss-net.web-service urn=NodeSynchService */ public class NodeSyncherBean implements javax.ejb.SessionBean { My LoginResponse is: * * @jboss-net.xml-schema urn=kserver:LoginResponse * public class LoginResponse implements java.io.Serializable { My ant task do : jbossnet webDeploymentName=NodeSynchService prefix=kserver destdir=${build.wsr.dir}/META-INF/ the answer is, that you have to configure your client, i.e. your client's axis configuration and tell it which serializer to use for which class. the configuration file could look something like this: !-- Example EJB Web Service Descriptor -- deployment name=SessionId targetNamespace=http://net.jboss.org/; xmlns=http://xml.apache.org/axis/wsdd/; xmlns:jbnet=http://net.jboss.org/server; xmlns:java=http://xml.apache.org/axis/wsdd/providers/java; xmlns:kserver= you have to put something here. the exact content is not important, it's just a namespace definition. e.g. http://xml.kiala.com/kserver; transport name=http pivot=java:org.apache.axis.transport.http.HTTPSender /transport typeMapping qname=kserver:NodeSynchService type=java:your.complete.package.name.NodeSynchService serializer=org.apache.axis.encoding.ser.BeanSerializerFactory deserializer=org.apache.axis.encoding.ser.BeanDeserializerFactory encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; /typeMapping /deployment As you may observe from my response, i am myself not really sure what i am doing here. however, at least in my case it seems to work ;-) for e.g. i am not sure how to configure a axis, since i am using the (deprecated) AxisInvocationHandler. i do not know why it is deprecated, but it allows me to work with the remote EJBObject's in almost the same way as directly calling EJB. good look, heinz-dieter conradi --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] AxisInvocationHandler deprecated
i have just started playing with jboss-net and really like what i have seen. in particular, the possiblity to directly create a RemoteInterface with the help of the AxisInvocationHandler, since this make the client code very similar to using standard ejb-invocations. however, the documentation says, that this class is deprecated and says 'we recommend using the axis stub way of creating web service references'. however, skimming through the axis reference and the samples i have found no way to accomplish this. what is the recommended way to accomplish this? and what is the reason the class has been deprecated? tia, heinz-dieter conradi --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user