AW: [JBoss-user] Remote Beans as Web Services
Title: Nachricht Marc, as Kevin has noted, there seems to be a problem with WSDL generation for allowedMethods="*" even in the axis version we use in the JBoss 3.2 branch (whichversion did you use?). I will fix this in the next days. CGJ -Ursprüngliche Nachricht-Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 14. März 2003 19:02An: [EMAIL PROTECTED]Betreff: RE: [JBoss-user] Remote Beans as Web Services Christoph, I finally managed to get a nightly build from the website. (Not too used to the open source idea yet) and anyway's I built that and my bean seemed to deploy grand. I could also make remote client calls thru the jndi and test them as exposed webservices. Initially I was unable to retrieve the WSDL file but then on Kevin's advice I only allowed for the one business method to be exposed and subsequently it all worked nicely. I still have to try the remote debugging technique you mentioned earlier and basically get my head around all this new stuff I'm using, eclipse, jbosside etc. Could I ask you what the point in having the jbosside is if you can simply remotely debug jboss like a normal application like this? Many thanks for your help and patience throughout this torrid installation. Mark. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jung , Dr. ChristophSent: 14 March 2003 15:21To: '[EMAIL PROTECTED]'Subject: AW: [JBoss-user] Remote Beans as Web Services -Ursprüngliche Nachricht-Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 14. März 2003 12:33An: [EMAIL PROTECTED]Betreff: RE: [JBoss-user] Remote Beans as Web Services Christoph, Kevin, I'd a look at the EJBProvider code myself and the strange thing was that the line pointed to in the stack trace where the NullPointerException occurred was blank? I figured it maybe somehow it was the superclass method i.e. the axis EJBProvider that was maybe throwing the error somehow but sure enough there was nothing at that line either? The jars I'm using were from the embedded catalina version I downloaded from Dr. Scharlau's site. Hence why I'm trying to get Jboss running within Eclipse so I can see exactly what's causing this NullPointerException. so maybe the best is to recompile the 3.2 sources of jboss.net in order to get the line information consistent. Christoph, When you start jboss and connect to it remotely can you then step thru the code and insert the likes of break points etc? Also the JAVA_OPTS parameter, I couldn't find it in the build.bat file. Is it simply a case of inserting it yourself? for example, set JAVA_OPTS=-classic -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n %JAVA_OPTS% Thanks a million for your help, Mark. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jung , Dr. ChristophSent: 14 March 2003 08:06To: '[EMAIL PROTECTED]'Subject: AW: [JBoss-user] Remote Beans as Web Services Mark, Kevin, a) I looked through the JBoss.net EJBProvider code again. Allwe do there is to switch the classloading context and then delegate into theparent (Axis) EJBProvider. If there is a problemwith "*" and wsdl generation, this should appear in plain Axis, too. I think I saw the right stop classes there. Kevin, have you any experience with that? b) As for eclipse: If you look into the jboss.net module, there will be a ..classpath and .project ready for importing directly into eclipse (there are a few absolute paths in 3.2 which we have removed in 4.0 in favor of a global variable "JBOSS_ROOT". You can do a local build in jboss.net andmove/extract the generatedlibs in the output/lib directory manually into your jboss distro. After that, I usually start jboss through the run script (but in debug mode - see the JAVA_OPTS parameter) and attach to it via remote debugging. Thanks for having a look, CGJ -Ursprüngliche Nachricht-Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 13. März 2003 22:47An: [EMAIL PROTECTED]Betreff: Re: [JBoss-user] Remote Beans as Web Services Hi Christophe, I deploy it within a wsr file that's located within an ear file. When this is deployed in the engine it seems to
AW: [JBoss-user] error deploying jboss.net
Hi Nathan, That special build was indeed a beta of axis that has a few changed interfaces wrt. 1.0 Axis 1.0 is not supported until 3.2 CGJ -Ursprüngliche Nachricht- Von: Nathan Hoover [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 14. März 2003 18:25 An: [EMAIL PROTECTED] Betreff: [JBoss-user] error deploying jboss.net I have built JBoss 3.0.6 from source, and I receive the following error deploying JBoss.NET: 12:18:21,734 ERROR [MainDeployer] could not start deployment: file:/C:/Documents and Settings/Hoover/Desktop/download/jboss-3.0.6-sr c/build/output/jboss-3.0.6/server/default/deploy/jbossweb.sar/ java.lang.IllegalAccessError: try to access field org.apache.axis.configuration.FileProvider.myInputStream from class org.jboss.net. axis.XMLResourceProvider at org.jboss.net.axis.XMLResourceProvider.configureEngine(XMLResourceProvider.j ava:64) at org.apache.axis.AxisEngine.init(AxisEngine.java:188) at org.apache.axis.AxisEngine.init(AxisEngine.java:173) at org.apache.axis.server.AxisServer.init(AxisServer.java:127) at org.jboss.net.axis.server.AxisService.ensureService(AxisService.java:212) at org.jboss.net.axis.server.AxisService.startService(AxisService.java:227) at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)- -snip- at java.lang.Thread.run(Thread.java:479) I originally got an error about an inability to find axis, so I downloaded axis 1.0 and copied the jars from the lib/ directory in their tarball to the server/default/lib directory in my JBoss tree, and that left me with this error. I suspect that I am supposed to be using some special build of axis optimized for JBoss.NET - is that the case? N --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.F-Secure.com/ --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
AW: [JBoss-user] Axis JBoss - Client Stubs Not Portable ?
Hi Nicholas, That is a unfortunately question that you need to post to the axis users list (or even, the wsdl4j community ...) I would guess that there is some command-line switch to influence that behaviour, but I am not into that tool, sorry. CGJ -Ursprüngliche Nachricht- Von: Nicholas [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 13. März 2003 16:21 An: [EMAIL PROTECTED] Betreff: [JBoss-user] Axis JBoss - Client Stubs Not Portable ? I have been working with Axis JBoss for a while and I am finally getting around to putting together my build system. It has occured to me that when I run WSDL2Java, the client stubs generated have HARD CODED IP addresses or host names, making the generated code completely non-portable to other systems. So much for code once, run anywhere. The components affected are the ServiceLocator and the SoapBindingStubs. The ServiceLocator issue seems to be trivial to fix, but the SoapBindingStubs use the IP address/host name in the namespaces. Am I doing something wrong here ? Does anyone have any insight into this ? Thanks. //Nicholas = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.F-Secure.com/ --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: Re[4]: [JBoss-user] CMP Entity Bean Insert/Commit after ejbPostCreate()
-Original Message- From: Alex Loubyansky [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 8:25 PM To: Chad Brandon Subject: Re[4]: [JBoss-user] CMP Entity Bean Insert/Commit after ejbPostCreate() Thursday, March 13, 2003, 9:47:38 PM, you wrote: CB Hi Alex, CB I'd really like to know how to do this. First, if foreign key fields and primary key fields to the same columns in the database. Suppose, you create a Child entity when related Parent doesn't exist yet. Child is created and getParent() returns null (as there is no Parent yet) Later you create Parent for the created above Child. Relationship between Parent and Child is establisged automatically after ejbCreate and before ejbPostCreate (so in ejbPostCreate it is ready). Relationship is established only if Parent's pk columns have the same values as Child's primary key columns to which Parent's foreign key fields are mapped. Established relationship is destroyed only when Child or Parent is deleted. Attempts to change relationships with CMR setters results in exceptions as it is not allowed to change entity's primary key. It is also possible to have foreign key fields partly mapped to primary key columns and partly to its own columns. In this case you can manipulate relationships with CMR setters only if the don't affect primary key columns. Foreign key field is considered NULL if at least one column that is not a primary key one contains NULL value. It could be still hard to grasp. If you have a real problem then describe it and we'll follow a real example. alex CB Thanks, CB Chad CB Alex Loubyansky [EMAIL PROTECTED] wrote:DS 3.2 supports not null foreign keys, but you will have to ask Alexey how DS to set it up. CB Just map foreign key fields to primary key columns. CB This case is not trivial and we had hot debates on this topic with CB Dain and Jeremy. If foreign key fields mapped to primary key fields is CB what you need then feel free to ask for details on how it works. CB Just FYI, you can also have a partial mapping, i.e. some of the foreign key CB fields are mapped to primary key columns and others to its own. But CB those that mapped to its own can't be NON NULL. CB alex DS -dain DS On Thursday, March 13, 2003, at 10:42 AM, Jonathan.O'[EMAIL PROTECTED] DS wrote: Bernhard, No, JBoss 3.x does the insert after ejbCreate. 4.0 is reputed to have (will have) support for INSERT after ejbPostCreate. Ciao, Jonathan O'Connor Development Manager XCOM Dublin Phone: +353 1 872 3305 Mobile: +353 86 824 0736 DS Hi, does JBoss 3.2 issue INSERT/COMMIT after ejbPostCreate() or is it possible to configure it this way (you can do this e.g. in WebLogic) ? As far as I know, all JBoss 3.0.x versions already do an INSERT between ejbCreate() and ejbPostCreate(). Has this changed in any newer version()? This is a problem for me, since this means FK columns can't be declared as NOT NULL since as y'all know CMR fields can only be set in ejbPostCreate(). I don't want to use Deferred Constraints feature some databases offer. Cheers, Bernhard Bernhard Meyer-Willner, MSc Insurance - Financial Services _ LogicaCMG Logica GmbH Osterbekstrasse 90b - Alster City 22083 Hamburg Germany T: +49 (0) 40 27071-405 (direct) M: +49 (0) 177 425-9036 E: mailto:[EMAIL PROTECTED] www.logicacmg.com --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Axis JBoss - Client Stubs Not Portable ?
Hiya Nicholas. I have been working with Axis JBoss for a while and I am finally getting around to putting together my build system. It has occured to me that when I run WSDL2Java, the client stubs generated have HARD CODED IP addresses or host names, making the generated code completely non-portable to other systems. So much for code once, run anywhere. The components affected are the ServiceLocator and the SoapBindingStubs. I think the only one which makes it unportable is using the default method in the locator to create a stub as this is used to communicate with the server. The url used is the endpoint url or, if not supplied, then the location generating the wsdl. The only ones I can think of in the stub are the type and operation namespaces, neither of which really have any functional bearing (they just partition the types and operations). The ServiceLocator issue seems to be trivial to fix, but the SoapBindingStubs use the IP address/host name in the namespaces. Use the methods with a URL parameter to provide the location of the service. If you don't like the generated one then you can override it using the endpointURL element within service (in the wsdd). The type and operations are affected by a number of things but the best one is probably the default namespace. This can also be specified in the wsdd file using the namespace elements in service. (The first namespace is the default one). Am I doing something wrong here ? Does anyone have any insight into this ? Let me know how you get on. Kev Kevin Conner This is a personal e-mail. Any views or opinions presented are solely those of the author and do not necessarily represent those of Orchard Information Systems Ltd. --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] jboss-service.xml DTD
hi all, anyone can point me to where i can find the DTD for jboss-service.xml? i have to specify a constructor for an MBean that accepts input parameters and i don't know how to do it can anyone help me? thanx and regards marco -Original Message- From: ext Kevin Conner [mailto:[EMAIL PROTECTED] Sent: 17 March, 2003 11:55 To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-user] Axis JBoss - Client Stubs Not Portable ? Hiya Nicholas. I have been working with Axis JBoss for a while and I am finally getting around to putting together my build system. It has occured to me that when I run WSDL2Java, the client stubs generated have HARD CODED IP addresses or host names, making the generated code completely non-portable to other systems. So much for code once, run anywhere. The components affected are the ServiceLocator and the SoapBindingStubs. I think the only one which makes it unportable is using the default method in the locator to create a stub as this is used to communicate with the server. The url used is the endpoint url or, if not supplied, then the location generating the wsdl. The only ones I can think of in the stub are the type and operation namespaces, neither of which really have any functional bearing (they just partition the types and operations). The ServiceLocator issue seems to be trivial to fix, but the SoapBindingStubs use the IP address/host name in the namespaces. Use the methods with a URL parameter to provide the location of the service. If you don't like the generated one then you can override it using the endpointURL element within service (in the wsdd). The type and operations are affected by a number of things but the best one is probably the default namespace. This can also be specified in the wsdd file using the namespace elements in service. (The first namespace is the default one). Am I doing something wrong here ? Does anyone have any insight into this ? Let me know how you get on. Kev Kevin Conner This is a personal e-mail. Any views or opinions presented are solely those of the author and do not necessarily represent those of Orchard Information Systems Ltd. --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] GUVENDE MISINIZ ?
TURKIYE'DE BIR ILK ! SADECE 25.000.000 TL HACKER ve GUVENLIK REHBERI CD'SI Hack ve Guvenlik konusunda bilmek istediginiz hersey, ihtiyaciniz olan her program bu cd'de. Sadece 25.000.000 TL ye bu cd'ye sahip olabilirsiniz! Siparis icin: 0546 599 64 54 Turkiye'de bilisim guvenligi alaninda bir ilki gerceklestirdik, ve sizlere icinde binlerce dokuman ve program bulunan "HACKER ve GUVENLIK REHBERI" cd'sini hazirladik. Bu cd'yi aldiginizda dis saldirilardan korunmak icin gerekli yazilimlari elde edecek, kendi guvenliginizi sagladiktan sonra ise hacker'ligin sirlarini ogrenecek, guvenlik icin neler gerekiyorsa sahip olacaksiniz. Hackerlar nasil calisiyor, hangi programlari kullaniyor? E-mail ve ICQ sifreleri nasil caliniyor, bunlardan nasil korunmali? Saldirilar nasil ve hangi programlarla yapiliyor? Saldiri yontemleri ve bunlardan korunma yollari nelerdir? Crack nedir, yontemleri nelerdir? Sifre calma yontemleri ve sifrelerinizi koruma yollari nelerdir? Firewall nedir, nasil kurulur, gerekli yazilimlar nelerdir? Virus ve trojanlardan nasil korunulur? Sistemlerdeki aciklar nelerdir, ve bu aciklar nasil kapatilir? Bu ve bunun gibi bir cok soruya, bu cd'de cevap bulabileceksiniz. CD'de bulunan dokuman ve programlardan bazilarini asagida bulabilirsiniz: Firewall programi + kurulum-kullanim kilavuzu (turkce) Antivirus ve trojan programi + kurulum-kullanim kilavuzu (turkce) Tamamen Turkce hack ve crack dokumanlari Unlu "Hacker's Handbook" (Hackerlarin El Kitabi) CD'si, icindeki binlerce dokuman ve yazilim Yuzlerce hack ve guvenlik programi Binlerce hack ve guvenlik dokumani ONEMLI NOT:CD icerisinde warez, crack ve illegal program kesinlikle bulunmamaktadir. CD icerisinde anlatilan bazi hack ve crack dokumanlarinin amaci, sadece bu tarz yontemleri tanimak, ve sistemi anlamaktir. Bu yontemlerin kotu amacli kullanimindan dogan zararlar ve tum sorumluluk tamamen kullaniciya aittir. Listemizden cikmak icin lutfen tiklayiniz xhh ob tfucmblnvqzl ujsbri ttmmcuev
[JBoss-user] Using my Custom MBean to monitor my application
hi all, i am little novice with JBoss JMX and i wanted to ask few questions. I have written my own Custom MBean to monitor properties loaded in the servlet of my web application. i have written a .sar file which contains .class files as well as jboss-service.xml. Now, in the constructor of my MBean, i should pass some initialization parameters (the properties loaded in the servlet); so, i have to add an entry to my jboss-service.xml. Not only, but those properties should be the ones loaded in my servlet. So this looks like my MBean should not be created until my webapp is started (in the init() method of hte servlet i have to create the MBean by passing properties loaded in my servlet). But, i m little lost...since i don't even know the DTD of jboss-service.xml. Can anyone of you help me in sorting out what i have to do so that i can monitor my servlet thru my Custom MBean? to me it looks like i have to: - add an entry in jboss-service.xml to specify the initialization parameters of t he constructor - add an entry so that my MBean is NOT created until my servlet is started - then? thanx in advance and regards marco -Original Message- From: Mistroni Marco (NET-IMN/Espoo) Sent: 17 March, 2003 13:56 To: '[EMAIL PROTECTED]' Subject: jboss-service.xml DTD hi all, anyone can point me to where i can find the DTD for jboss-service.xml? i have to specify a constructor for an MBean that accepts input parameters and i don't know how to do it can anyone help me? thanx and regards marco -Original Message- From: ext Kevin Conner [mailto:[EMAIL PROTECTED] Sent: 17 March, 2003 11:55 To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-user] Axis JBoss - Client Stubs Not Portable ? Hiya Nicholas. I have been working with Axis JBoss for a while and I am finally getting around to putting together my build system. It has occured to me that when I run WSDL2Java, the client stubs generated have HARD CODED IP addresses or host names, making the generated code completely non-portable to other systems. So much for code once, run anywhere. The components affected are the ServiceLocator and the SoapBindingStubs. I think the only one which makes it unportable is using the default method in the locator to create a stub as this is used to communicate with the server. The url used is the endpoint url or, if not supplied, then the location generating the wsdl. The only ones I can think of in the stub are the type and operation namespaces, neither of which really have any functional bearing (they just partition the types and operations). The ServiceLocator issue seems to be trivial to fix, but the SoapBindingStubs use the IP address/host name in the namespaces. Use the methods with a URL parameter to provide the location of the service. If you don't like the generated one then you can override it using the endpointURL element within service (in the wsdd). The type and operations are affected by a number of things but the best one is probably the default namespace. This can also be specified in the wsdd file using the namespace elements in service. (The first namespace is the default one). Am I doing something wrong here ? Does anyone have any insight into this ? Let me know how you get on. Kev Kevin Conner This is a personal e-mail. Any views or opinions presented are solely those of the author and do not necessarily represent those of Orchard Information Systems Ltd. --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] loadLibray into an MBean
Hi, i'm trying to load a third party library into an MBean as follows: static { try { System.loadLibrary(quickfix_jni); } catch(UnsatisfiedLinkError e) { System.out.println(Could not quickfix library + e); } System.out.println(Loaded library quickfix_jni); } the libray appears to load, but when i go to use the library for the first time though, i get a java.lang.UnsatisfiedLinkError for the method invocation. i have set the runtime java.library.path and $LD_LIBRAY_PATH to ensure the library is visible to my MBean but still no joy. an ldd on the shared object shows no unresolved errors; does anyone know what i'm missing/recognize this situation ? Cheers Mike signature.asc Description: This is a digitally signed message part
[JBoss-user] JBoss.NET and Axis SOAP Monitor
Hi, How can I use Axis SOAP Monitor with JBoss? Axis site says it should be in http://localhost:port/axis/SOAPMonitor, but there is nothing. And does anyone know what is wrong with jboss.org site? It seems to be down.. -- jK.MkIII --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Using my Custom MBean to monitor my application
There is no dtd for the *-service.xml file format, it would need to be a schema anyway. I can never remember the constructor argument format, but if you look in the system module at org.jboss.system.ServiceCreator it is not hard to figure out. I'm not well acquainted with servlets. I don't think they are exposed individually as mbeans. Before jboss 4 I can't think of a way to make an mbean depend on a package being deployed already. You might be able to use the classpath element in *-service.xml to make the servlets deploy before any of the mbeans. If all the configuration info for your mbean comes from the servlet, you might consider simply creating the mbean in code in your servlet init process and dispense with the *-service.xml. On 2003.03.17 07:10 [EMAIL PROTECTED] wrote: hi all, i am little novice with JBoss JMX and i wanted to ask few questions. I have written my own Custom MBean to monitor properties loaded in the servlet of my web application. i have written a .sar file which contains .class files as well as jboss-service.xml. Now, in the constructor of my MBean, i should pass some initialization parameters (the properties loaded in the servlet); so, i have to add an entry to my jboss-service.xml. Not only, but those properties should be the ones loaded in my servlet. So this looks like my MBean should not be created until my webapp is started (in the init() method of hte servlet i have to create the MBean by passing properties loaded in my servlet). But, i m little lost...since i don't even know the DTD of jboss-service.xml. Can anyone of you help me in sorting out what i have to do so that i can monitor my servlet thru my Custom MBean? to me it looks like i have to: - add an entry in jboss-service.xml to specify the initialization parameters of t he constructor - add an entry so that my MBean is NOT created until my servlet is started - then? thanx in advance and regards marco -Original Message- From: Mistroni Marco (NET-IMN/Espoo) Sent: 17 March, 2003 13:56 To: '[EMAIL PROTECTED]' Subject: jboss-service.xml DTD hi all, anyone can point me to where i can find the DTD for jboss-service.xml? i have to specify a constructor for an MBean that accepts input parameters and i don't know how to do it can anyone help me? thanx and regards marco -Original Message- From: ext Kevin Conner [mailto:[EMAIL PROTECTED] Sent: 17 March, 2003 11:55 To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-user] Axis JBoss - Client Stubs Not Portable ? Hiya Nicholas. I have been working with Axis JBoss for a while and I am finally getting around to putting together my build system. It has occured to me that when I run WSDL2Java, the client stubs generated have HARD CODED IP addresses or host names, making the generated code completely non-portable to other systems. So much for code once, run anywhere. The components affected are the ServiceLocator and the SoapBindingStubs. I think the only one which makes it unportable is using the default method in the locator to create a stub as this is used to communicate with the server. The url used is the endpoint url or, if not supplied, then the location generating the wsdl. The only ones I can think of in the stub are the type and operation namespaces, neither of which really have any functional bearing (they just partition the types and operations). The ServiceLocator issue seems to be trivial to fix, but the SoapBindingStubs use the IP address/host name in the namespaces. Use the methods with a URL parameter to provide the location of the service. If you don't like the generated one then you can override it using the endpointURL element within service (in the wsdd). The type and operations are affected by a number of things but the best one is probably the default namespace. This can also be specified in the wsdd file using the namespace elements in service. (The first namespace is the default one). Am I doing something wrong here ? Does anyone have any insight into this ? Let me know how you get on. Kev Kevin Conner This is a personal e-mail. Any views or opinions presented are solely those of the author and do not necessarily represent those of Orchard Information Systems Ltd. --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JSP to access EJB
Hi, I have developped my own JSP taglib. A tag takes a collection as parameter. I do : mytags:iterate collection=%= org.TechAdvantage.intranet.client.HomeCaching.getInstance().getCalendrier().getAllPersonnes()%/ getAllPersonnes() is a method from a Stateless Session bean which act as a facade for CMP Entity Beans. The facade is a Remote interface and home. the HomeCaching class is a singleton that holds the home and remote interface of the SLSB. When calling the JSP, I get a NullPointerException : 13:22:49,739 ERROR [LogInterceptor] RuntimeException: java.lang.NullPointerException at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:613) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186) at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:77) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:108) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:208) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:154) at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:322) at org.jboss.ejb.Container.invoke(Container.java:652) at sun.reflect.GeneratedMethodAccessor119.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:101) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:88) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80) at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:109) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:82) at $Proxy57.getAllPersonnes(Unknown Source) at org.apache.jsp.index_jsp._jspService(index_jsp.java:75) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) As you can see, $Proxy57 calls the getAllPersonnes() method. I suspect that this occurs because the SLSB is remote. I am using JBoss3.2.0-Tomcat4.1.18. the JBoss client libs have been put in the WEB-INF/lib directory of the war file. So here is my questions : the JSP is in the same JVM than the EJB's, Can I access them through the remote interface or must I use a local interface ? Where can I find example of JSP accessing EJB's in JBoss ? thanks for any help, ionel --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] remote EJB reference to local reference
Good afternoon! Whether there is a way to transform remote EJB reference to local reference in the context of method of another EJB? What`s the fastest way to do it for stateful session bean and for entity bean (may be specific for Jboss)? For entity bean it can be realized by localHome.findByPrimaryKey(), but it not Effectively. Thanks, Viktor Shevchik mailto:[EMAIL PROTECTED] --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Using my Custom MBean to monitor my application
There is no dtd for the *-service.xml file format, it would need to be a schema anyway. I can never remember the constructor argument format, but if you look in the system module at org.jboss.system.ServiceCreator it is not hard to figure out. I'm not well acquainted with servlets. I don't think they are exposed individually as mbeans. Before jboss 4 I can't think of a way to make an mbean depend on a package being deployed already. You might be able to use the classpath element in *-service.xml to make the servlets deploy before any of the mbeans. If all the configuration info for your mbean comes from the servlet, you might consider simply creating the mbean in code in your servlet init process and dispense with the *-service.xml. exactly, that is what i want to do. Fact is that i want to see my MBean in JBoss jmx console. So, for seeing it there, i should deploy it in a .sar file... but if i want to initialize it with servlet properties, i should do it in the servlet. So, how can initialize my MBean in the servlet and see it in JBoss jmx-console? there is some piece (of code?) that i am missing: either how to create an MBean and register it with the default server or how to deploy it with a sar file and initialize in my app... which is simpler? anyway, i don't know how to do both... do u have any suggestions? thanx in advance and regards marco On 2003.03.17 07:10 [EMAIL PROTECTED] wrote: hi all, i am little novice with JBoss JMX and i wanted to ask few questions. I have written my own Custom MBean to monitor properties loaded in the servlet of my web application. i have written a .sar file which contains .class files as well as jboss-service.xml. Now, in the constructor of my MBean, i should pass some initialization parameters (the properties loaded in the servlet); so, i have to add an entry to my jboss-service.xml. Not only, but those properties should be the ones loaded in my servlet. So this looks like my MBean should not be created until my webapp is started (in the init() method of hte servlet i have to create the MBean by passing properties loaded in my servlet). But, i m little lost...since i don't even know the DTD of jboss-service.xml. Can anyone of you help me in sorting out what i have to do so that i can monitor my servlet thru my Custom MBean? to me it looks like i have to: - add an entry in jboss-service.xml to specify the initialization parameters of t he constructor - add an entry so that my MBean is NOT created until my servlet is started - then? thanx in advance and regards marco -Original Message- From: Mistroni Marco (NET-IMN/Espoo) Sent: 17 March, 2003 13:56 To: '[EMAIL PROTECTED]' Subject: jboss-service.xml DTD hi all, anyone can point me to where i can find the DTD for jboss-service.xml? i have to specify a constructor for an MBean that accepts input parameters and i don't know how to do it can anyone help me? thanx and regards marco -Original Message- From: ext Kevin Conner [mailto:[EMAIL PROTECTED] Sent: 17 March, 2003 11:55 To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-user] Axis JBoss - Client Stubs Not Portable ? Hiya Nicholas. I have been working with Axis JBoss for a while and I am finally getting around to putting together my build system. It has occured to me that when I run WSDL2Java, the client stubs generated have HARD CODED IP addresses or host names, making the generated code completely non-portable to other systems. So much for code once, run anywhere. The components affected are the ServiceLocator and the SoapBindingStubs. I think the only one which makes it unportable is using the default method in the locator to create a stub as this is used to communicate with the server. The url used is the endpoint url or, if not supplied, then the location generating the wsdl. The only ones I can think of in the stub are the type and operation namespaces, neither of which really have any functional bearing (they just partition the types and operations). The ServiceLocator issue seems to be trivial to fix, but the SoapBindingStubs use the IP address/host name in the namespaces. Use the methods with a URL parameter to provide the location of the service. If you don't like the generated one then you can override it using the endpointURL element within service (in the wsdd). The type and operations are affected by a number of things but the best one is probably the default namespace. This can also be specified in the wsdd file using the namespace elements in service. (The first namespace is the
Re[2]: [JBoss-user] Using my Custom MBean to monitor my application
Hello Marco, Monday, March 17, 2003, 3:11:49 PM, you wrote: There is no dtd for the *-service.xml file format, it would need to be a schema anyway. I can never remember the constructor argument format, but if you look in the system module at org.jboss.system.ServiceCreator it is not hard to figure out. I'm not well acquainted with servlets. I don't think they are exposed individually as mbeans. Before jboss 4 I can't think of a way to make an mbean depend on a package being deployed already. You might be able to use the classpath element in *-service.xml to make the servlets deploy before any of the mbeans. If all the configuration info for your mbean comes from the servlet, you might consider simply creating the mbean in code in your servlet init process and dispense with the *-service.xml. MMnc exactly, that is what i want to do. MMnc Fact is that i want to see my MBean in JBoss jmx console. So, for seeing it there, i should MMnc deploy it in a .sar file... but if i want to initialize it with servlet properties, i should do it in the servlet. MMnc So, how can initialize my MBean in the servlet and see it in JBoss jmx-console? you can do that in init() and destroy methods() of your servlet. Create a managed class with your properties, instantiate it in init() and register it to the MBeanServer. In destroy() unregister that mbean. Then your servlet takes its values in that class instance. If you want to use lifecycle you have to deal with ServiceController mbean manually. init(): ServletConfig cfg = new ServletConfig(); // configure cfg.setSomeValue(5); // register and start service manually MBeanServer server = MBeanServerFactory.findMBeanServer(null).get(0); server.registerMBean(cfg, cfg.OBJECT_NAME); server.invoke( ServiceController.OBJECTNAME, start, new Object[] {cfg.OBJECT_NAME}, new String[] { ObjectName.class.getName() }); destroy(): MBeanServer server = MBeanServerFactory.findMBeanServer(null).get(0); server.invoke( ServiceController.OBJECTNAME, destroy, new Object[] {cfg.OBJECT_NAME}, new String[] { ObjectName.class.getName() }); server.unregisterMBean(cfg.OBJECT_NAME); MMnc there is some piece (of code?) that i am missing: either how to create an MBean and register it MMnc with the default server or how to deploy it with a sar file and initialize in my app... MMnc which is simpler? anyway, i don't know how to do both... MMnc do u have any suggestions? MMnc thanx in advance and regards MMnc marco On 2003.03.17 07:10 [EMAIL PROTECTED] wrote: hi all, i am little novice with JBoss JMX and i wanted to ask few questions. I have written my own Custom MBean to monitor properties loaded in the servlet of my web application. i have written a .sar file which contains .class files as well as jboss-service.xml. Now, in the constructor of my MBean, i should pass some initialization parameters (the properties loaded in the servlet); so, i have to add an entry to my jboss-service.xml. Not only, but those properties should be the ones loaded in my servlet. So this looks like my MBean should not be created until my webapp is started (in the init() method of hte servlet i have to create the MBean by passing properties loaded in my servlet). But, i m little lost...since i don't even know the DTD of jboss-service.xml. Can anyone of you help me in sorting out what i have to do so that i can monitor my servlet thru my Custom MBean? to me it looks like i have to: - add an entry in jboss-service.xml to specify the initialization parameters of t he constructor - add an entry so that my MBean is NOT created until my servlet is started - then? thanx in advance and regards marco -Original Message- From: Mistroni Marco (NET-IMN/Espoo) Sent: 17 March, 2003 13:56 To: '[EMAIL PROTECTED]' Subject: jboss-service.xml DTD hi all, anyone can point me to where i can find the DTD for jboss-service.xml? i have to specify a constructor for an MBean that accepts input parameters and i don't know how to do it can anyone help me? thanx and regards marco -Original Message- From: ext Kevin Conner [mailto:[EMAIL PROTECTED] Sent: 17 March, 2003 11:55 To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-user] Axis JBoss - Client Stubs Not Portable ? Hiya Nicholas. I have been working with Axis JBoss for a while and I am finally getting around to putting together my build system. It has occured to me that when I run WSDL2Java, the client stubs generated have HARD CODED IP addresses or host names, making the generated code completely non-portable to other systems. So much for code once, run anywhere. The components affected are the ServiceLocator and the
RE: [JBoss-user] Using my Custom MBean to monitor my application
On 2003.03.17 09:11 [EMAIL PROTECTED] wrote: There is no dtd for the *-service.xml file format, it would need to be a schema anyway. I can never remember the constructor argument format, but if you look in the system module at org.jboss.system.ServiceCreator it is not hard to figure out. I'm not well acquainted with servlets. I don't think they are exposed individually as mbeans. Before jboss 4 I can't think of a way to make an mbean depend on a package being deployed already. You might be able to use the classpath element in *-service.xml to make the servlets deploy before any of the mbeans. If all the configuration info for your mbean comes from the servlet, you might consider simply creating the mbean in code in your servlet init process and dispense with the *-service.xml. exactly, that is what i want to do. Fact is that i want to see my MBean in JBoss jmx console. So, for seeing it there, i should deploy it in a .sar file... but if i want to initialize it with servlet properties, i should do it in the servlet. So, how can initialize my MBean in the servlet and see it in JBoss jmx-console? there is some piece (of code?) that i am missing: either how to create an MBean and register it with the default server or how to deploy it with a sar file and initialize in my app... which is simpler? anyway, i don't know how to do both... do u have any suggestions? MBeanServer server = org.jboss.util.jmx.MBeanServerLocator.locate(); Object resource = new MyMBean(foo, bar, etc); ObjectName resourceName = new ObjectName(myapp:service=MysteryMBean); server.registerMBean(resource, resourceName); //This assumes MyMBean is a standard mbean (implementing MyMBeanMBean interface) or a dynamic mbean. The jmx console shows all mbeans, however they were created/registered. david jencks thanx in advance and regards marco On 2003.03.17 07:10 [EMAIL PROTECTED] wrote: hi all, i am little novice with JBoss JMX and i wanted to ask few questions. I have written my own Custom MBean to monitor properties loaded in the servlet of my web application. i have written a .sar file which contains .class files as well as jboss-service.xml. Now, in the constructor of my MBean, i should pass some initialization parameters (the properties loaded in the servlet); so, i have to add an entry to my jboss-service.xml. Not only, but those properties should be the ones loaded in my servlet. So this looks like my MBean should not be created until my webapp is started (in the init() method of hte servlet i have to create the MBean by passing properties loaded in my servlet). But, i m little lost...since i don't even know the DTD of jboss-service.xml. Can anyone of you help me in sorting out what i have to do so that i can monitor my servlet thru my Custom MBean? to me it looks like i have to: - add an entry in jboss-service.xml to specify the initialization parameters of t he constructor - add an entry so that my MBean is NOT created until my servlet is started - then? thanx in advance and regards marco -Original Message- From: Mistroni Marco (NET-IMN/Espoo) Sent: 17 March, 2003 13:56 To: '[EMAIL PROTECTED]' Subject: jboss-service.xml DTD hi all, anyone can point me to where i can find the DTD for jboss-service.xml? i have to specify a constructor for an MBean that accepts input parameters and i don't know how to do it can anyone help me? thanx and regards marco -Original Message- From: ext Kevin Conner [mailto:[EMAIL PROTECTED] Sent: 17 March, 2003 11:55 To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-user] Axis JBoss - Client Stubs Not Portable ? Hiya Nicholas. I have been working with Axis JBoss for a while and I am finally getting around to putting together my build system. It has occured to me that when I run WSDL2Java, the client stubs generated have HARD CODED IP addresses or host names, making the generated code completely non-portable to other systems. So much for code once, run anywhere. The components affected are the ServiceLocator and the SoapBindingStubs. I think the only one which makes it unportable is using the default method in the locator to create a stub as this is used to communicate with the server. The url used is the endpoint url or, if not supplied, then the location generating the wsdl. The only ones I can think of in the stub are the type and operation namespaces, neither of which really have any functional bearing (they just partition the types and operations).
RE: Re[2]: [JBoss-user] Using my Custom MBean to monitor my application
MBeanServer server = MBeanServerFactory.findMBeanServer(null).get(0); thanx a lot! the line above what was i was missing...how to get teh default MBean server running in JBoss.( i should read more the JMX APIs :-( will it be so that, after my app has started, if i look at jmx-console i'll see my MBean? thanx and regards marco server.registerMBean(cfg, cfg.OBJECT_NAME); server.invoke( ServiceController.OBJECTNAME, start, new Object[] {cfg.OBJECT_NAME}, new String[] { ObjectName.class.getName() }); destroy(): MBeanServer server =3D MBeanServerFactory.findMBeanServer(null).get(0); server.invoke( ServiceController.OBJECTNAME, destroy, new Object[] {cfg.OBJECT_NAME}, new String[] { ObjectName.class.getName() }); server.unregisterMBean(cfg.OBJECT_NAME); MMnc there is some piece (of code?) that i am missing: either how to creat= e an MBean and register it MMnc with the default server or how to deploy it with a sar file and initi= alize in my app... MMnc which is simpler? anyway, i don't know how to do both... MMnc do u have any suggestions? MMnc thanx in advance and regards MMnc marco =20 =20 =20 =20 On 2003.03.17 07:10 [EMAIL PROTECTED] wrote: hi all, i am little novice with JBoss JMX and i wanted to ask few questions. =20 I have written my own Custom MBean to monitor properties=20 loaded in the servlet of my web application. i have written a .sar file which contains .class files as well as jboss-service.xml. =20 Now, in the constructor of my MBean, i should pass some=20 initialization parameters (the properties loaded in the servlet); so, i have to add an entry to my jboss-service.xml. Not only, but those properties should be the ones loaded in=20 my servlet. So this looks like my MBean should not be created until my webapp is started (in the=20 init() method of hte servlet i have to create the MBean by passing properties loaded in my servlet). =20 But, i m little lost...since i don't even know the DTD of jboss-service.xml. =20 Can anyone of you help me in sorting out what i have to do=20 so that i can monitor my servlet thru my Custom MBean? =20 to me it looks like i have to: - add an entry in jboss-service.xml to specify the initialization parameters of t he constructor - add an entry so that my MBean is NOT created until my servlet is started - then? =20 thanx in advance and regards marco =20 =20 =20 =20 =20 -Original Message- From: Mistroni Marco (NET-IMN/Espoo)=20 Sent: 17 March, 2003 13:56 To: '[EMAIL PROTECTED]' Subject: jboss-service.xml DTD =20 =20 hi all, anyone can point me to where i can find the DTD for=20 jboss-service.xml? =20 i have to specify a constructor for an MBean that accepts=20 input parameters and i don't know how to do it =20 can anyone help me? =20 thanx and regards marco =20 =20 =20 -Original Message- From: ext Kevin Conner=20 [mailto:[EMAIL PROTECTED] Sent: 17 March, 2003 11:55 To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-user] Axis JBoss - Client Stubs=20 Not Portable ? =20 =20 Hiya Nicholas. =20 I have been working with Axis JBoss for a while and I am finally getting around to putting together my build system. It has occured to me that when I run WSDL2Java, the client stubs generated have HARD CODED IP addresses or host names, making the generated code=20 completely non-portable to other systems. So much for code once, run=20 anywhere. The components affected are the ServiceLocator and the=20 SoapBindingStubs.=20 =20 I think the only one which makes it unportable is using=20 the default method in the locator to create a stub as this is used to=20 communicate with the server. The url used is the endpoint url or, if not=20 supplied, then the location generating the wsdl. =20 The only ones I can think of in the stub are the type=20 and operation namespaces, neither of which really have any functional bearing (they just partition the types and operations). =20 The ServiceLocator issue seems to be trivial to fix, but the SoapBindingStubs use the IP address/host name in the namespaces. =20 Use the methods with a URL parameter to provide the=20 location of the service. If you don't like the generated one then you=20 can override it using the endpointURL element within service (in the wsdd). =20 The type and operations are affected by a number of=20 things but the best one is probably the default namespace. This can also be specified in the wsdd file using the namespace elements=20 in service. (The first namespace is
[JBoss-user] --
-- http://www.8he8.com 0533-8652951 13853366319 QQ:66388619 ++ --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] please help with sar
Hi all, I currently have an ear (say test.ear archive (ejb-test.jar + test.war) and since I'm trying to eval hibernate I need a hib-test.sar. Now I'm trying to put hib-test.sar it inside test.ear, but inspecting jndi-view service no hibernate service is started. If I put hib-test.sar directly in the deploy dir the service fails because it depends from postgres-service.xml. Please what shoul I do? kiuma --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] read-ahead question
hi, I have following entity bean definition in jbosscmp-jdbc.xml: entity ejb-nameUsersBean/ejb-name read-ahead strategyon-find/strategy page-size4/page-size eager-load-group*/eager-load-group /read-ahead list-cache-max1000/list-cache-max table-nameusers/table-name ... /entity Now I call: UsersLocalHome usersHome = (UsersLocalHome) serviceLocator.getLocalHome(JNDINamesAccess.USERS_EJB); Collection usersCollection = usersHome.findAll(); In my tabel are 9 entries. I defined (above) page-size=4 but in my PostgreSQL debug file I see n+1 queries instead of 3. SELECT t0_o.users_id, t0_o.mandant_id, t0_o.language_id, t0_o.login_name, t0_o.password, t0_o.first_name, t0_o.last_name, t0_o.sex, t0_o.creation_date, t0_o.last_login_date, t0_o.status FROM users t0_o SELECT users_id,mandant_id, language_id, login_name, password, first_name, last_name, sex, creation_date, last_login_date, status FROM users WHERE (users_id=3) OR (users_id=1047478054621394) OR (users_id=1047565695856221) OR (users_id=1047657838929148) SELECT users_id,mandant_id, language_id, login_name, password, first_name, last_name, sex, creation_date, last_login_date, status FROM users WHERE (users_id=1047478054621394) OR (users_id=1047565695856221) OR (users_id=1047657838929148) OR (users_id=1047657841302566) SELECT users_id,mandant_id, language_id, login_name, password, first_name, last_name, sex, creation_date, last_login_date, status FROM users WHERE (users_id=1047565695856221) OR (users_id=1047657838929148) OR (users_id=1047657841302566) OR (users_id=1047657843382249) SELECT users_id,mandant_id, language_id, login_name, password, first_name, last_name, sex, creation_date, last_login_date, status FROM users WHERE (users_id=1047657838929148) OR (users_id=1047657841302566) OR (users_id=1047657843382249) OR (users_id=1047657844739175) SELECT users_id,mandant_id, language_id, login_name, password, first_name, last_name, sex, creation_date, last_login_date, status FROM users WHERE (users_id=1047657841302566) OR (users_id=1047657843382249) OR (users_id=1047657844739175) OR (users_id=1) SELECT users_id,mandant_id, language_id, login_name, password, first_name, last_name, sex, creation_date, last_login_date, status FROM users WHERE (users_id=1047657843382249) OR (users_id=1047657844739175) OR (users_id=1) OR (users_id=2) SELECT users_id,mandant_id, language_id, login_name, password, first_name, last_name, sex, creation_date, last_login_date, status FROM users WHERE (users_id=1047657844739175) OR (users_id=1) OR (users_id=2) SELECT users_id,mandant_id, language_id, login_name, password, first_name, last_name, sex, creation_date, last_login_date, status FROM users WHERE (users_id=1) OR (users_id=2) SELECT mandant_id, language_id, login_name, password, first_name, last_name, sex, creation_date, last_login_date, status FROM users WHERE (users_id=2) Why? In jboss.xml are: container-configurations container-configuration container-nameStandard CMP 2.x EntityBean/container-name commit-optionA/commit-option /container-configuration /container-configurations and at least: which container configuration will be taken by default for entity and session beans? Regards, Rafal --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] read-ahead question
You need to use a transaction. Preloaded data is only available in a single transaction. -dain On Monday, March 17, 2003, at 10:28 AM, Rafal Kedziorski wrote: hi, I have following entity bean definition in jbosscmp-jdbc.xml: entity ejb-nameUsersBean/ejb-name read-ahead strategyon-find/strategy page-size4/page-size eager-load-group*/eager-load-group /read-ahead list-cache-max1000/list-cache-max table-nameusers/table-name ... /entity Now I call: UsersLocalHome usersHome = (UsersLocalHome) serviceLocator.getLocalHome(JNDINamesAccess.USERS_EJB); Collection usersCollection = usersHome.findAll(); In my tabel are 9 entries. I defined (above) page-size=4 but in my PostgreSQL debug file I see n+1 queries instead of 3. SELECT t0_o.users_id, t0_o.mandant_id, t0_o.language_id, t0_o.login_name, t0_o.password, t0_o.first_name, t0_o.last_name, t0_o.sex, t0_o.creation_date, t0_o.last_login_date, t0_o.status FROM users t0_o SELECT users_id,mandant_id, language_id, login_name, password, first_name, last_name, sex, creation_date, last_login_date, status FROM users WHERE (users_id=3) OR (users_id=1047478054621394) OR (users_id=1047565695856221) OR (users_id=1047657838929148) SELECT users_id,mandant_id, language_id, login_name, password, first_name, last_name, sex, creation_date, last_login_date, status FROM users WHERE (users_id=1047478054621394) OR (users_id=1047565695856221) OR (users_id=1047657838929148) OR (users_id=1047657841302566) SELECT users_id,mandant_id, language_id, login_name, password, first_name, last_name, sex, creation_date, last_login_date, status FROM users WHERE (users_id=1047565695856221) OR (users_id=1047657838929148) OR (users_id=1047657841302566) OR (users_id=1047657843382249) SELECT users_id,mandant_id, language_id, login_name, password, first_name, last_name, sex, creation_date, last_login_date, status FROM users WHERE (users_id=1047657838929148) OR (users_id=1047657841302566) OR (users_id=1047657843382249) OR (users_id=1047657844739175) SELECT users_id,mandant_id, language_id, login_name, password, first_name, last_name, sex, creation_date, last_login_date, status FROM users WHERE (users_id=1047657841302566) OR (users_id=1047657843382249) OR (users_id=1047657844739175) OR (users_id=1) SELECT users_id,mandant_id, language_id, login_name, password, first_name, last_name, sex, creation_date, last_login_date, status FROM users WHERE (users_id=1047657843382249) OR (users_id=1047657844739175) OR (users_id=1) OR (users_id=2) SELECT users_id,mandant_id, language_id, login_name, password, first_name, last_name, sex, creation_date, last_login_date, status FROM users WHERE (users_id=1047657844739175) OR (users_id=1) OR (users_id=2) SELECT users_id,mandant_id, language_id, login_name, password, first_name, last_name, sex, creation_date, last_login_date, status FROM users WHERE (users_id=1) OR (users_id=2) SELECT mandant_id, language_id, login_name, password, first_name, last_name, sex, creation_date, last_login_date, status FROM users WHERE (users_id=2) Why? In jboss.xml are: container-configurations container-configuration container-nameStandard CMP 2.x EntityBean/container-name commit-optionA/commit-option /container-configuration /container-configurations and at least: which container configuration will be taken by default for entity and session beans? Regards, Rafal --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Remote Beans as Web Services
Title: Nachricht Hi Christoph, I actually built jboss from a nightly snapshot I downloaded off the site. Originally I was using 3.2 though. The problem I think actually occurs when the java provider is trying to generate the wsdl. However Im not 100% clear on the use of using breakpoints in eclipse with abstract classes so Im gonna figure that out first and then have another look. If you do get it working and could let us know thatd be great. Thanks, Mark. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jung , Dr. Christoph Sent: 17 March 2003 07:57 To: '[EMAIL PROTECTED]' Subject: AW: [JBoss-user] Remote Beans as Web Services Marc, as Kevin has noted, there seems to be a problem with WSDL generation for allowedMethods=* even in the axis version we use in the JBoss 3.2 branch (whichversion did you use?). I will fix this in the next days. CGJ -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 14. März 2003 19:02 An: [EMAIL PROTECTED] Betreff: RE: [JBoss-user] Remote Beans as Web Services Christoph, I finally managed to get a nightly build from the website. (Not too used to the open source idea yet) and anyway's I built that and my bean seemed to deploy grand. I could also make remote client calls thru the jndi and test them as exposed webservices. Initially I was unable to retrieve the WSDL file but then on Kevin's advice I only allowed for the one business method to be exposed and subsequently it all worked nicely. I still have to try the remote debugging technique you mentioned earlier and basically get my head around all this new stuff I'm using, eclipse, jbosside etc. Could I ask you what the point in having the jbosside is if you can simply remotely debug jboss like a normal application like this? Many thanks for your help and patience throughout this torrid installation. Mark. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jung , Dr. Christoph Sent: 14 March 2003 15:21 To: '[EMAIL PROTECTED]' Subject: AW: [JBoss-user] Remote Beans as Web Services -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 14. März 2003 12:33 An: [EMAIL PROTECTED] Betreff: RE: [JBoss-user] Remote Beans as Web Services Christoph, Kevin, I'd a look at the EJBProvider code myself and the strange thing was that the line pointed to in the stack trace where the NullPointerException occurred was blank? I figured it maybe somehow it was the superclass method i.e. the axis EJBProvider that was maybe throwing the error somehow but sure enough there was nothing at that line either? The jars I'm using were from the embedded catalina version I downloaded from Dr. Scharlau's site. Hence why I'm trying to get Jboss running within Eclipse so I can see exactly what's causing this NullPointerException. so maybe the best is to recompile the 3.2 sources of jboss.net in order to get the line information consistent. Christoph, When you start jboss and connect to it remotely can you then step thru the code and insert the likes of break points etc? Also the JAVA_OPTS parameter, I couldn't find it in the build.bat file. Is it simply a case of inserting it yourself? for example, set JAVA_OPTS=-classic -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n %JAVA_OPTS% Thanks a million for your help, Mark. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jung , Dr. Christoph Sent: 14 March 2003 08:06 To: '[EMAIL PROTECTED]' Subject: AW: [JBoss-user] Remote Beans as Web Services Mark, Kevin, a) I looked through the JBoss.net EJBProvider code again. Allwe do there is to switch the classloading context and then delegate into theparent (Axis) EJBProvider. If there is a problemwith * and wsdl generation, this should appear in plain Axis, too. I think I saw the right stop classes there. Kevin, have you any experience with that? b) As for eclipse: If you look into the jboss.net module, there will be a ..classpath and .project ready for importing directly into eclipse (there are a few absolute paths in 3.2 which we have removed in 4.0 in favor of a global variable JBOSS_ROOT. You can do a local build in jboss.net andmove/extract the generatedlibs in the output/lib directory manually into your jboss distro. After that, I usually start jboss through the run script (but in debug mode - see the JAVA_OPTS parameter) and attach to it via remote debugging. Thanks for having a look, CGJ -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 13. März 2003 22:47 An: [EMAIL
RE: [JBoss-user] JBoss.NET and Axis SOAP Monitor
How can I use Axis SOAP Monitor with JBoss? Axis site says it should be in http://localhost:port/axis/SOAPMonitor, but there is nothing. And does anyone know what is wrong with jboss.org site? It seems to be down.. You have to set it up yourself. You need to add a servlet mapping into your web.xml for the SoapMonitorService (I think), add the SoapMonitorApplet into the root of your web app and specify the handlers on the service (or transport). I'm not sure how this will work given the classloading in jboss but you can certainly try it. The soap monitor service creates a server socket to which the applet connects. A better way to see what is happening is to use the tcpmon as a proxy, it's easy to set up the HTTP communication to proxy through it. The tcpmon will show you all the headers (authentication info) as well as any error response (the soap monitor does not handle faults). It also means you can do it on a per client basis if you wish. HTH, Kev Kevin Conner This is a personal e-mail. Any views or opinions presented are solely those of the author and do not necessarily represent those of Orchard Information Systems Ltd. --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] please help with sar
Title: RE: [JBoss-user] please help with sar I think you have to modify the META-INF/application.xml in the .ear to reference the .sar. You can also put the .sar inside the .jar inside the .ear and it will get deployed. (That's what we do.) JD -Original Message- From: kiuma [mailto:[EMAIL PROTECTED]] Sent: Monday, March 17, 2003 8:34 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] please help with sar Hi all, I currently have an ear (say test.ear archive (ejb-test.jar + test.war) and since I'm trying to eval hibernate I need a hib-test.sar. Now I'm trying to put hib-test.sar it inside test.ear, but inspecting jndi-view service no hibernate service is started. If I put hib-test.sar directly in the deploy dir the service fails because it depends from postgres-service.xml. Please what shoul I do? kiuma --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] get environment entries
Here is an example from some working code. In the bean, use this: Context initial = new InitialContext(); Context environment = (Context) initial.lookup(java:comp/env); setServerName((String) environment.lookup(Ticket Server Name)); In ejb-jar.xml, use this: env-entry env-entry-nameTicket Server Name/env-entry-name env-entry-typejava.lang.String/env-entry-type env-entry-value192.168.7.123/env-entry-value /env-entry Stefan Groschupf wrote: Hello, My bean needs some custom configurationvalues. Described in the book mastering enterprise java beanspage 244, I want to put these values in a ejb-jar file and query the values via jndi. My problem is I can't access the values like described in the book, I get a not bound exception. Anyone know how to access environment entries by an ejb in jboss? Someone know a other way to access custom values in a xml file? Thanks for any hints Stefan --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Out of Memory Exception
Hi all I have an application running on Jboss-Jetty 3.0.3. We tested it in three environments. 1. Intel PIII 1.4Ghz256MB ram ECC 21 Users with frequent clicks...it was slow...thats all... 2. Duron 1.2 GHz 1GB ram.SDRAM 21 Users with frequent clicks...a little faster but started having OUT OF MEMORY EXCEPTION 3. Dual PIII 1.0GHz 1GB ram ECC 21 Users with frequent clicks...much faster but very frequent OUT OF MEMORY EXCEPTION So you see, I dont get it at all, the more the memory, the more frequent the out of memory exception...What does this mean? Thanx in anticipation -Michael UkpongEnterprise Portal ArchitectSocketWorks Ltd+2348033473455-With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs
[JBoss-user] (no subject)
Hi folks, The jboss Im using I built from a nightly snapshot. Windows XP with JDK1.4.1 The server started up fine. I attempted to deploy a web service and it didnt seem to deploy. When I shutdown the server and then booted it back up I got a number of exceptions that all came from the same nested throwable as in the trace. It cant find the org.jboss.jmx.adaptor.html.HtmlAdaptorServlet. I cant actually find this in the jars myself. For some reason I get the impression that it could maybe just be in a jar file thats currently locked due to a past run of the server that perhaps didnt shut down properly. Maybe the web-service wasnt well formed or something? Im not too sure. Has anyone any idea which jar this file is packed in? Thanks in advance, Mark. 19:21:16,181 WARN [ServiceController] Problem starting service jboss.deployment:name=file%3a/C%3a/java/jboss-head/build/output/jboss-4.0.0alpha /server/default/deploy/jmx-console.war/,service=DeploymentInfo org.jboss.deployment.DeploymentException: org.jboss.jmx.adaptor.html.HtmlAdaptorServlet; - nested throwable: (java.lang.ClassNotFoundException: org.jboss.jmx.adaptor.html.HtmlAdaptorServlet) at org.jboss.jetty.Jetty.deploy(Jetty.java:390) at org.jboss.jetty.JettyService.performDeploy(JettyService.java:249) at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:315) at org.jboss.deployment.DeploymentInfo.start(DeploymentInfo.java:259) 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:324) at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:72) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:56) at org.jboss.mx.server.Invocation.invoke(Invocation.java:81) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:160) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:559) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:993) at $Proxy12.start(Unknown Source) : :
[JBoss-user] RE:
HI guys, Ive located the servlet file in the web-inf/classes folder of the exploded jmx-console.war folder in the deploy directory. Could it be that when shutting down the server using crtl+c I somehow tampered with the listener that handles deployments? Mark. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 17 March 2003 19:31 To: '[EMAIL PROTECTED]' Subject: Hi folks, The jboss Im using I built from a nightly snapshot. Windows XP with JDK1.4.1 The server started up fine. I attempted to deploy a web service and it didnt seem to deploy. When I shutdown the server and then booted it back up I got a number of exceptions that all came from the same nested throwable as in the trace. It cant find the org.jboss.jmx.adaptor.html.HtmlAdaptorServlet. I cant actually find this in the jars myself. For some reason I get the impression that it could maybe just be in a jar file thats currently locked due to a past run of the server that perhaps didnt shut down properly. Maybe the web-service wasnt well formed or something? Im not too sure. Has anyone any idea which jar this file is packed in? Thanks in advance, Mark. 19:21:16,181 WARN [ServiceController] Problem starting service jboss.deployment:name=file%3a/C%3a/java/jboss-head/build/output/jboss-4.0.0alpha /server/default/deploy/jmx-console.war/,service=DeploymentInfo org.jboss.deployment.DeploymentException: org.jboss.jmx.adaptor.html.HtmlAdaptorServlet; - nested throwable: (java.lang.ClassNotFoundException: org.jboss.jmx.adaptor.html.HtmlAdaptorServlet) at org.jboss.jetty.Jetty.deploy(Jetty.java:390) at org.jboss.jetty.JettyService.performDeploy(JettyService.java:249) at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:315) at org.jboss.deployment.DeploymentInfo.start(DeploymentInfo.java:259) 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:324) at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:72) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:56) at org.jboss.mx.server.Invocation.invoke(Invocation.java:81) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:160) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:559) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:993) at $Proxy12.start(Unknown Source) : :
[JBoss-user] Proper way to shutdown
HI folks, Up until now Ive been shutting down jboss using crtl+c but then in the output as the server starts up it has 19:57:57,009 INFO [STDOUT] Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly Have I been shutting it down incorrectly or harmfully? Whats the best way to get a graceful shutdown? Thanks, Mark.
[JBoss-user] SecurityExceptions upon migration from 3.0.2 to 3.0.6
Hi. I attempted to deploy a package that I'd developed on JBoss 3.0.2 on JBoss 3.0.6. 3.0.6 refused to take it, complaining about authentication issues: 15:25:25,174 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()' Cause: Incomplete Deployment listing: Packages waiting for a deployer: none Incompletely deployed packages: none MBeans waiting for classes: none MBeans waiting for other MBeans: [ObjectName: jboss.j2ee:jndiName=test/Reservable,service=EJB state: FAILED I Depend On: Depends On Me: java.lang.SecurityException: Invalid authentication attempt, principal=null, ObjectName: jboss.j2ee:jndiName=test/Reservation,service=EJB state: FAILED I Depend On: Depends On Me: java.lang.SecurityException: Invalid authentication attempt, principal=null, ObjectName: jboss.j2ee:jndiName=test/Credential,service=EJB state: FAILED I Depend On: Depends On Me: java.lang.SecurityException: Invalid authentication attempt, principal=null, ObjectName: jboss.j2ee:jndiName=test/User,service=EJB state: FAILED I Depend On: Depends On Me: java.lang.SecurityException: Invalid authentication attempt, principal=null, ObjectName: jboss.j2ee:jndiName=test/Policy,service=EJB state: FAILED I Depend On: Depends On Me: java.lang.SecurityException: Invalid authentication attempt, principal=null] 15:25:25,407 INFO [URLDeploymentScanner] Started I'm curious -- was 3.0.2 leninant about some security issue that I neglected to address? (I didn't use any J2EE security mechanisms in my code.) Any suggestions would be very much appreciated. Thanks in advance, Joseph Barillari P.S.: A traceback for one of the beans is attached below. -- Joseph Barillari -- http://barillari.org Here's the issue: how do I tell it to not look for users/passwords/role files? I don't have any J2EE secureity measures implemented. 15:25:19,363 ERROR [UsersRolesLoginModule] Failed to load users/passwords/role files java.io.IOException: Properties file users.properties not found at org.jboss.security.auth.spi.UsersRolesLoginModule.loadProperties(UsersRolesLoginModule.java:212) at org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRolesLoginModule.java:193) at org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRolesLoginModule.java:95) 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:324) at javax.security.auth.login.LoginContext.invoke(LoginContext.java:662) at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129) at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607) at javax.security.auth.login.LoginContext.login(LoginContext.java:534) at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:462) at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:417) at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:244) at org.jboss.resource.connectionmanager.BaseConnectionManager2.getSubject(BaseConnectionManager2.java:707) at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:531) at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:822) at org.jboss.resource.adapter.jdbc.local.LocalDataSource.getConnection(LocalDataSource.java:102) at org.jboss.ejb.plugins.cmp.jdbc.SQLUtil.fixTableName(SQLUtil.java:38) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.init(JDBCEntityBridge.java:103) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:397) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:339) at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:198) at org.jboss.ejb.EntityContainer.start(EntityContainer.java:376) at org.jboss.ejb.Container.invoke(Container.java:756) at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1058) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1003) at $Proxy4.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:413) at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
Re: [JBoss-user] Proper way to shutdown
What version? Have you tried the shutdown.sh or shutdown.bat script in the bin directory? [EMAIL PROTECTED] wrote: HI folks, Up until now Ive been shutting down jboss using crtl+c but then in the output as the server starts up it has 19:57:57,009 INFO [STDOUT] Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly Have I been shutting it down incorrectly or harmfully? Whats the best way to get a graceful shutdown? Thanks, Mark. --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] [IDE] jndi browse]
Hi Stefan, I'm currently working with the JBoss IDE team at integrating my plug-in into their application. The next release of JBoss IDE should offer much tighter integration between my plug-in and the rest of the IDE -- it will just work. For now, I believe your best option is to manually add the JBoss client JARs to your project. You can create a dummy project just to hold the JARs, or add them to your main project yourself. That should do it. Thanks for using my software, --Renaud Waldura Original Message Subject: [JBoss-user] [IDE] jndi browse Date: Mon, 17 Mar 2003 18:56:33 +0100 From: Stefan Groschupf [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED]Hi, I use the jboss-ide and want to browse the jndi tree with the jndi browser plugin from Ranult Waldura. The problem is I can't access a jndi tree from a jboss I had start with the jboss-ide. What I have to setup? Get this somebody running? Thanks Stefan --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Cdric http://beust.com/weblog
Re: [JBoss-user] Proper way to shutdown
[EMAIL PROTECTED] wrote: What's the best way to get a graceful shutdown? For JBoss 3.0.x: http/https://your-host-name:your-port/jmx-console/HtmlAdaptor?action=invokeOpByNamename=jboss.system%3Atype%3DServermethodName=shutdown Or use console. shutdown.bat/shutdown.sh will not work, if http is disabled. --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] jetty and filters
I have my filter set up with a mapping of /*. I see my print out in 'init' but nothing comes out in 'doFilter'. What's up with that? RedHat 7.2 jdk 1.4.1 fairly recent jboss-head Any clues? --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] security question
Security is unchanged in 3.2 Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: Corbin, James [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 7:21 AM Subject: RE: [JBoss-user] security question Scott, How current is the Quick Start documentation on the Sourceforge site? Is it useful for a 3.2 installation of JBOSS? Thanks, J.D. --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] security question
Then replace the SecurityInteceptor as you are using non-standard security. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: Rafal Kedziorski [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 8:44 AM Subject: Re: [JBoss-user] security question At 06:42 12.03.2003 -0800, Scott M Stark wrote: Security is not enabled unless you set the security-domain element in the jboss.xml descriptor as described in the quick start guide. Set that and try your example. I don't want use JAAS or have I to use it? security-domain need a JNDI name for JAAS. I want only prevent calls from other clients without using any authentification. In a front I have a stateless session as facade, which should run under given role-name. I each method call of the facade I have own implementation of security checks. after my check I call other beans. Rafal Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: Rafal Kedziorski [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 4:16 AM Subject: [JBoss-user] security question hi, I have a small problem with security, which I'm testing now. I'm working with JBoss 3.0.6 and J2SE 1.4.1_02. My ejb-jar.xml looks so: --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] 3.0.4 - 3.0.7 deployment dependencies change?
No, Class-Path references are not treated as deployables as per the spec now. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: Brian Wallis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 3:32 PM Subject: [JBoss-user] 3.0.4 - 3.0.7 deployment dependencies change? I was building on 3.0.4 and have changed to 3.0.7. To resolve dependencies between jars I had Class-Path entries in the Manifests of the jars like so... in JavaCommon.jar META-INF/MANIFEST.MF there is an entry: Class-Path: Cis.jar which with 3.0.4 caused Cis.jar to be deployed before the deployment of JavaCommon.jar was completed thus making the classes in Cis.jar available during the deployment of JavaCommon.jar. This no longer seems to work with 3.0.7. This did seem to be a reasonable way to define dependencies between jar files, is this not a good way to do it? Is there a better way or is 3.0.7 broken? thanks, brian wallis... --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] security question
Every method not included in a method-permission section is implicitly placed into the excluded group. If you don't associate a role with a method the method is not accessible. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: Rafal Kedziorski [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, March 14, 2003 2:52 AM Subject: Re: [JBoss-user] security question now after trying some configurations and adding missed code: MmcmsCallbackHandler callbackHandler = new MmcmsCallbackHandler(principal, password); try { LoginContext loginContext = new LoginContext(securityDomain, callbackHandler); loginContext.login(); ... my beans ... loginContext.logout(); } catch (...) { } this works fine, but now I get this exception: 11:49:45,033 ERROR [SecurityInterceptor] No method permissions assigned to method=create, interface=LOCALHOME 11:49:45,043 ERROR [LogInterceptor] EJBException, causedBy: java.lang.SecurityException: No method permissions assigned to method=create, interface=LOCALHOME at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:190) at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:94) at --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss not finding xmls in Jar
The xml files must be in under the META-INF directory in the jar. You have the wrong case: sm8 550jar -tf /tmp/acme.jar META-INF/ META-INF/MANIFEST.MF ... Meta-inf/ Meta-inf/ejb-jar.xml Meta-inf/jboss.xml Meta-inf/jbosscmp-jdbc.xml Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: Richard Stack [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 9:20 AM Subject: [JBoss-user] JBoss not finding xmls in Jar I'm running JBoss 3.0.4 Tomcat. I'm trying to deploy EJBs from acme.jar. As the DEBUG message shows no xmls found Although ejb-jar.xml, jboss.xml jbosscmp-jdbc.xml are in the JAR (acme.jar inclosed). Any idea why the xmls aren't found? 12:10:43,910 DEBUG [MainDeployer] Starting deployment (init step) of package at: file:/F:/jboss-3.0.4_tomcat-4.1.12/server/default/deploy/acme.jar 12:10:43,910 DEBUG [UnifiedClassLoader] New jmx UCL with url file:/F:/jboss-3.0. 4_tomcat-4.1.12/server/default/tmp/deploy/server/default/deploy/acme.jar/94.acme .jar 12:10:43,910 DEBUG [UnifiedLoaderRepository3] Adding org.jboss.mx.loading.Unifie [EMAIL PROTECTED] url=file:/F:/jboss-3.0.4_tomcat-4.1.12/server/default/tmp /deploy/server/default/deploy/acme.jar/94.acme.jar } 12:10:43,940 DEBUG [JARDeployer] no xmls found 12:10:43,940 DEBUG [MainDeployer] using deployer org.jboss.deployment.JARDeploye [EMAIL PROTECTED] 12:10:43,940 DEBUG [MainDeployer] found 0 subpackages of file:/F:/jboss-3.0.4_to mcat-4.1.12/server/default/deploy/acme.jar 12:10:43,950 DEBUG [MainDeployer] Watching new file: file:/F:/jboss-3.0.4_tomcat -4.1.12/server/default/deploy/acme.jar --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] SecurityExceptions upon migration from 3.0.2 to 3.0.6
This is the access to the database that is requiring security. Compare your datasource configuration to the examples in the docs/examples/jca directory of the dist. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: Joseph Barillari [EMAIL PROTECTED] To: jboss-user [EMAIL PROTECTED] Sent: Monday, March 17, 2003 12:40 PM Subject: [JBoss-user] SecurityExceptions upon migration from 3.0.2 to 3.0.6 Hi. I attempted to deploy a package that I'd developed on JBoss 3.0.2 on JBoss 3.0.6. 3.0.6 refused to take it, complaining about authentication issues: --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Override the Manager element for embedded Tomcat
This should be allowed as there is a mapping to allow the Manager to be overriden. Check the tomcat41/src/main/org/jboss/web/catalina/ConfigHandler.java for an incorrect setup or file a bug report on sourceforge so someone can look into the issue. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: Filip Hanik [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 14, 2003 12:09 AM Subject: [JBoss-user] Override the Manager element for embedded Tomcat I'm trying to use the Tomcat persistence manager for sessions with embedded JBoss 3.0.6 DefaultContext cookies = true crossContext = true override = true Manager className=org.apache.catalina.session.PersistentManager all other attributes here/ /DefaultContext) I'm changing this in the file /default/deploy/tomcat41-service.xml but the wars still get deployed with the StandardManager, any thoughts? Filip --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] How is J2EE.8.3.2.5 done with JBoss 3.x?
That is all you need to do. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: Weiqi Gao [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 14, 2003 12:01 PM Subject: [JBoss-user] How is J2EE.8.3.2.5 done with JBoss 3.x? According to J2EE.8.3.2.5 (J2EE 1.3): The deployment tool must allow the Deployer to deploy the same J2EE application multiple times, as multiple independent applications, possibly with different configurations. For example, the enterprise beans in an ejb-jar file might be deployed multiple times under different JNDI names and with different configurations of their resources. How is this actually accomplished in JBoss 3.x? I'll take for example a simple J2EE application MyApp.ear that contains an EJB jar MyEjb.jar that contains an EJB named MyEjb. To deploy this ear twice, I need to: 1. Alter MyEjb.jar!/META-INF/jboss.xml to give the EJB a different JNDI name for each deployment. 2. Use scoped deployment in the EAR so that classes from one EAR doesn't polute the other EAR. Am I correct in my understanding? Are there other things that I need to take care of in addition to the above? Thanks, -- Weiqi Gao [EMAIL PROTECTED] --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] --
-- http://www.8he8.com 0533-8652951 13853366319 QQ:66388619 ++ --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Error: my patience Not Bound
Dear JBoss users, I have been literally tearing my hair out (whatever there is left) for a few days trying to understand why I'm getting this error. I have 3 Entity beans in my app, all written using XDoclet1.2b2 and deployed on JBoss3.0.4-tomcat . I am using a Session bean to lookup these 3 beans. 2 of them are retrieved fine, but the third bean, CreditCard, gives me a Not Bound exception when I try to look it up via the local VM: CreditCardLocalHome cachedLocalHome = (rpmaster.server.data.beans.CreditCardLocalHome) initialContext.lookup(java:comp/env/ejb/CreditCard); I have checked word for word the code between this bean and my other beans (Person and Address, not very complicated beans) . There is no difference AT ALL other than the names of the beans and different CMP fields. There is no difference in the generated source or DD's. Therefore I believe it is not an XDoclet issue. Could this be something with JBoss ? I know that the CreditCard bean is the one that gets deployed first (I see the message in the log INFO [EjbModule] Deploying CreditCard ) Here is my XDoclet source from CreditCardBean.java /*** * @ejb:bean * name=CreditCard * type=CMP * view-type=local * local-jndi-name=local/rpmaster.server.data.beans.CreditCard * primkey-field=creditCardUId * schema=CreditCard * cmp-version=${ejb.cmp.version} ... which generates the following declaration in CreditCardLocalHome.java: public static final String COMP_NAME=java:comp/env/ejb/CreditCard; public static final String JNDI_NAME=local/rpmaster.server.data.beans.CreditCard; and it also gives me the following ejb-jar.xml entry: ... entity description![CDATA[The CreditCardBean represents a creditCard]]/description ejb-nameCreditCard/ejb-name local-homerpmaster.server.data.beans.CreditCardLocalHome/local-home localrpmaster.server.data.beans.CreditCardLocal/local ... and in my jboss.xml I have the following: entity ejb-nameCreditCard/ejb-name local-jndi-namelocal/rpmaster.server.data.beans.CreditCard/local-jndi-name /entity * and here is the stack trace from aforementioned lookup: 21:40:04,234 INFO [PersonManagementSessionSession] FAILURE :: CreditCard not bound 21:40:04,238 ERROR [STDERR] javax.naming.NameNotFoundException:CreditCard not bound 21:40:04,247 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:495) 21:40:04,251 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:503) 21:40:04,255 ERROR [STDERR] at org.jnp.server.NamingServer.getObject(NamingServer.java:509) 21:40:04,259 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:282) 21:40:04,280 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:256) 21:40:04,280 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:256) 21:40:04,280 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:464) 21:40:04,281 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:592) 21:40:04,281 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:443) 21:40:04,281 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialContext.java:347) 21:40:04,281 ERROR [STDERR] at rpmaster.server.session.PersonManagementSessionEJB.updatePerson(Unknown Source) Anybody have any ideas why this is happening ? How can I request from my Context a list of what it has registered so that I can see if my CreditCard is in there, maybe under a different name ? I know that InitialContext has a lookup method but I cant figure out what String to pass it to get me the list of my java objects. Any help is truly appreciated. TIA Nathaniel --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] CMP - Primary Key Strategies?
I'm working on a CMP EntityBean with JBoss3 on Oracle8. My primary key must be a unique number. Oracle has a nice facility for handling sequences, which doesn't seam possible with this senerio because i'd need to write some jdbc code in the ejbCreate method to get the nextval. I'm aware that there are several J2EE patterns/blueprints to solve this...most have not-so-clean side effects that i'd like to avoid...such as extra tables..etc. Is there anything that i can do with JBoss to solve this problem in a simple and clean manner? Someone told me that there is a cmp engine that i can buy that plugs into jboss that makes this easy. Does anyone know what product this is? Does anyone have experience with it? thanks, -et __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Error: my patience Not Bound
One thing I find helpful is to study the results of the jndiview mbean list operation. It shows everything bound, including in each comp/env private context. http://localhost:8080/jmx-console find and click on the jndi-view mbean click list button david jencks On 2003.03.17 23:19 Nathaniel Rahav wrote: Dear JBoss users, I have been literally tearing my hair out (whatever there is left) for a few days trying to understand why I'm getting this error. I have 3 Entity beans in my app, all written using XDoclet1.2b2 and deployed on JBoss3.0.4-tomcat . I am using a Session bean to lookup these 3 beans. 2 of them are retrieved fine, but the third bean, CreditCard, gives me a Not Bound exception when I try to look it up via the local VM: CreditCardLocalHome cachedLocalHome = (rpmaster.server.data.beans.CreditCardLocalHome) initialContext.lookup(java:comp/env/ejb/CreditCard); I have checked word for word the code between this bean and my other beans (Person and Address, not very complicated beans) . There is no difference AT ALL other than the names of the beans and different CMP fields. There is no difference in the generated source or DD's. Therefore I believe it is not an XDoclet issue. Could this be something with JBoss ? I know that the CreditCard bean is the one that gets deployed first (I see the message in the log INFO [EjbModule] Deploying CreditCard ) Here is my XDoclet source from CreditCardBean.java /*** * @ejb:bean * name=CreditCard * type=CMP * view-type=local * local-jndi-name=local/rpmaster.server.data.beans.CreditCard * primkey-field=creditCardUId * schema=CreditCard * cmp-version=${ejb.cmp.version} ... which generates the following declaration in CreditCardLocalHome.java: public static final String COMP_NAME=java:comp/env/ejb/CreditCard; public static final String JNDI_NAME=local/rpmaster.server.data.beans.CreditCard; and it also gives me the following ejb-jar.xml entry: ... entity description![CDATA[The CreditCardBean represents a creditCard]]/description ejb-nameCreditCard/ejb-name local-homerpmaster.server.data.beans.CreditCardLocalHome/local-home localrpmaster.server.data.beans.CreditCardLocal/local ... and in my jboss.xml I have the following: entity ejb-nameCreditCard/ejb-name local-jndi-namelocal/rpmaster.server.data.beans.CreditCard/local-jndi-name /entity * and here is the stack trace from aforementioned lookup: 21:40:04,234 INFO [PersonManagementSessionSession] FAILURE :: CreditCard not bound 21:40:04,238 ERROR [STDERR] javax.naming.NameNotFoundException:CreditCard not bound 21:40:04,247 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:495) 21:40:04,251 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:503) 21:40:04,255 ERROR [STDERR] at org.jnp.server.NamingServer.getObject(NamingServer.java:509) 21:40:04,259 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:282) 21:40:04,280 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:256) 21:40:04,280 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:256) 21:40:04,280 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:464) 21:40:04,281 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:592) 21:40:04,281 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:443) 21:40:04,281 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialContext.java:347) 21:40:04,281 ERROR [STDERR] at rpmaster.server.session.PersonManagementSessionEJB.updatePerson(Unknown Source) Anybody have any ideas why this is happening ? How can I request from my Context a list of what it has registered so that I can see if my CreditCard is in there, maybe under a different name ? I know that InitialContext has a lookup method but I cant figure out what String to pass it to get me the list of my java objects. Any help is truly appreciated. TIA Nathaniel --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning
RE: [JBoss-user] please help with sar
Add a /META-INF/jboss-app.xml to your .ear describing your service. Rgds Wonne Keysers -Original Message- From: kiuma [mailto:[EMAIL PROTECTED] Sent: Mon 3/17/2003 17:34 To: [EMAIL PROTECTED] Cc: Subject: [JBoss-user] please help with sar Hi all, I currently have an ear (say test.ear archive (ejb-test.jar + test.war) and since I'm trying to eval hibernate I need a hib-test.sar. Now I'm trying to put hib-test.sar it inside test.ear, but inspecting jndi-view service no hibernate service is started. If I put hib-test.sar directly in the deploy dir the service fails because it depends from postgres-service.xml. Please what shoul I do? kiuma --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user winmail.dat
RE: [JBoss-user] CMP - Primary Key Strategies?
With JBoss 3.2 there is now a PkSQL entity-command that can be used to issue arbitrary SQL to obtain a new PK value. This could be used to obtain a value from the sequence. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric Tim Sent: Monday, March 17, 2003 9:39 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] CMP - Primary Key Strategies? I'm working on a CMP EntityBean with JBoss3 on Oracle8. My primary key must be a unique number. Oracle has a nice facility for handling sequences, which doesn't seam possible with this senerio because i'd need to write some jdbc code in the ejbCreate method to get the nextval. I'm aware that there are several J2EE patterns/blueprints to solve this...most have not-so-clean side effects that i'd like to avoid...such as extra tables..etc. Is there anything that i can do with JBoss to solve this problem in a simple and clean manner? Someone told me that there is a cmp engine that i can buy that plugs into jboss that makes this easy. Does anyone know what product this is? Does anyone have experience with it? thanks, -et __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi- bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/j boss-user --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Error: my patience Not Bound
Wow ! Thanks ! Looking at the JNDI mbean, I think I can see clearly that my problem lies in my SessionBean which does not contain an ejb-ref to the Bean in question! No wonder he cant find it! Thank you so much, for showing me such a useful tool! Nat p.s. I just added the ejb-ref and my JUnit tests are all green !! Yee H ! Date: Tue, 18 Mar 2003 01:19:13 -0500 From: David Jencks [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Error: my patience Not Bound Reply-To: [EMAIL PROTECTED] One thing I find helpful is to study the results of the jndiview mbean list operation. It shows everything bound, including in each comp/env private context. http://localhost:8080/jmx-console find and click on the jndi-view mbean click list button david jencks --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] CMP - Primary Key Strategies?
On Monday, March 17, 2003, at 09:38 PM, Eric Tim wrote: I'm working on a CMP EntityBean with JBoss3 on Oracle8. My primary key must be a unique number. Oracle has a nice facility for handling sequences, which doesn't seam possible with this senerio because i'd need to write some jdbc code in the ejbCreate method to get the nextval. In Postgres we get the value for the PK from a sequence by doing the following. create sequence manufacturers_sequence; create table manufacturers( manufacturer_id integer default nextval('manufacturers_sequence') primary key, manufacturer_name varchar(100) not null); Can you do something like that in Oracle when you create the table for the bean? Or are you letting JBoss create the table and it doesn't know how to put the 'default nextval...' snippet into the 'create table' command? -M@ I'm aware that there are several J2EE patterns/blueprints to solve this...most have not-so-clean side effects that i'd like to avoid...such as extra tables..etc. Is there anything that i can do with JBoss to solve this problem in a simple and clean manner? Someone told me that there is a cmp engine that i can buy that plugs into jboss that makes this easy. Does anyone know what product this is? Does anyone have experience with it? thanks, -et __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user