Re: [JBoss-user] Two ears and classcastexception :( please, help!!
Scott M Stark wrote: A client in one ear calling an ejb in another ear is a circumstance where you do not want a custom loader-repository. For this you want the default flat visibility since you are sharing types between deployments. You'll have to explain why the client is in ear1 calling ear2 rather than being in ear2. Hi Scott. Thanks for the help. Sorry for late answer. I was having some problems getting my messages to the list and just now I saw it was working again... Jae Gangemi sent me some explanations about how to get them working. I have to have the class used by both ears in the flat visibility as you are saying too. The client is in fact using the ear2 which is using as a client the ear1. The ear1 is holding components which will be used by more than one ear appication and so I decided to put them in a separate ear. Regards, Francisco Figueiredo Jr. --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Two ears and classcastexception :( please, help!!
Simone Milani wrote: Just put your 2 ears inside a sar module and put the common classes in a jar contained in the sar. Put the ears inside a sar? But what if I want to deploy them independently? Thanks in advance. Simone - Original Message - From: Francisco Figueiredo Jr. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 23, 2004 8:24 PM Subject: [JBoss-user] Two ears and classcastexception :( please, help!! Hi all, I'm trying to get one application inside an .ear to use beans inside another .ear. On both ear's I'm using custom class loader through the loader-repository tag in jboss-app.xml. On both ears, in their application.xml I expose a jar containing the ejb interfaces using the module tag. The problem is that when I try to call a getHome in one ear, it throws classcastexception when trying to call narrow method in PortableRemoteObject class. Am I doing something wrong? I'm sure the classcastexception is generated because of the different class loaders. I read the JBOSS admin guide in the section about classloaders and indeed I did a modification in the code which calls the narrow method and I could check they are from different classloaders. what I get from calling narrow is this: [EMAIL PROTECTED] url=file:/opt/jboss-3.2.3/server/default/tmp/deploy/tmp43175corporativo.ear ,addedOrder=45} what I get from the ear calling the get home is this: [EMAIL PROTECTED] url=file:/opt/jboss-3.2.3/server/default/tmp/deploy/tmp43176temis.ear ,addedOrder=46} I can see that the class loaders are in fact different. But from my two disparate ears! I mean, I thought if I used custom classloaders, it would not be visible by other applications in other classloaders. Am I missing something? What can I do to solve that? Please, help me. I'm desperate! :) Thanks in advance. Regards, Francisco Figueiredo Jr. __ Yahoo! GeoCities: a maneira mais fácil de criar seu web site grátis! http://br.geocities.yahoo.com/ --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Regards, Francisco Figueiredo Jr. Membro Fundador do Projeto MonoBrasil - MonoBrasil Project Founding Member - Science without religion is lame; religion without science is blind. ~ Albert Einstein --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Two ears and classcastexception :( please, help!!
Hi all, I'm trying to get one application inside an .ear to use beans inside another .ear. On both ear's I'm using custom class loader through the loader-repository tag in jboss-app.xml. On both ears, in their application.xml I expose a jar containing the ejb interfaces using the module tag. The problem is that when I try to call a getHome in one ear, it throws classcastexception when trying to call narrow method in PortableRemoteObject class. Am I doing something wrong? I'm sure the classcastexception is generated because of the different class loaders. I read the JBOSS admin guide in the section about classloaders and indeed I did a modification in the code which calls the narrow method and I could check they are from different classloaders. what I get from calling narrow is this: [EMAIL PROTECTED] url=file:/opt/jboss-3.2.3/server/default/tmp/deploy/tmp43175corporativo.ear ,addedOrder=45} what I get from the ear calling the get home is this: [EMAIL PROTECTED] url=file:/opt/jboss-3.2.3/server/default/tmp/deploy/tmp43176temis.ear ,addedOrder=46} I can see that the class loaders are in fact different. But from my two disparate ears! I mean, I thought if I used custom classloaders, it would not be visible by other applications in other classloaders. Am I missing something? What can I do to solve that? Please, help me. I'm desperate! :) Thanks in advance. Regards, Francisco Figueiredo Jr. __ Yahoo! GeoCities: a maneira mais fácil de criar seu web site grátis! http://br.geocities.yahoo.com/ --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Two ears and classcastexception :( please, help!!
Hi all, I'm trying to get one application inside an .ear to use beans inside another .ear. On both ear's I'm using custom class loader through the loader-repository tag in jboss-app.xml. On both ears, in their application.xml I expose a jar containing the ejb interfaces using the module tag. The problem is that when I try to call a getHome in one ear, it throws classcastexception when trying to call narrow method in PortableRemoteObject class. Am I doing something wrong? I'm sure the classcastexception is generated because of the different class loaders. I read the JBOSS admin guide in the section about classloaders and indeed I did a modification in the code which calls the narrow method and I could check they are from different classloaders. what I get from calling narrow is this: [EMAIL PROTECTED] url=file:/opt/jboss-3.2.3/server/default/tmp/deploy/tmp43175corporativo.ear ,addedOrder=45} what I get from the ear calling the get home is this: [EMAIL PROTECTED] url=file:/opt/jboss-3.2.3/server/default/tmp/deploy/tmp43176temis.ear ,addedOrder=46} I can see that the class loaders are in fact different. But from my two disparate ears! I mean, I thought if I used custom classloaders, it would not be visible by other applications in other classloaders. Am I missing something? What can I do to solve that? Please, help me. I'm desperate! :) Thanks in advance. Regards, Francisco Figueiredo Jr. = Regards, Francisco Figueiredo Jr. --- My grandfather once told me that there are two kinds of people: those who work and those who take the credit. He told me to try to be in the first group; there was less competition there. - Indira Gandhi __ Yahoo! GeoCities: a maneira mais fácil de criar seu web site grátis! http://br.geocities.yahoo.com/ --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: R: [JBoss-user] Tips for development environment with JBoss
Giovanni Formenti wrote: We are using Lomboz (from Objectlearn), an Eclipse's plugin. It seems very good for deploy and env management... I'm also interested to some JBoss dev tips! Yeah, I already did a look at it. It looks very good, and it is nice to know it went opensource since last time I checked it! :) But lomboz changes a lot of things like having its own build file etc. I liked more the JBOSS IDE. But I will checked it again. Thanks for feedback, Giovanni! -- Regards, Francisco Figueiredo Jr. Membro Fundador do Projeto MonoBrasil - MonoBrasil Project Founding Member - Science without religion is lame; religion without science is blind. ~ Albert Einstein --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Tips for development environment with JBoss
Bob Cotton wrote: Francisco Figueiredo Jr. [EMAIL PROTECTED] writes: The way we redeploy is by using exploded deployments. Where the ear is really a directory structure reflecting the internal structure of of a zipped up .ear file. This is an approach I also tried and it looks very promissing. Then, make sure you are targeting your new .class files into the new ear structure (all subcomponents can be exploded also, .war, .jar etc) Then, just touch foo.ear/META-INF/application.xml and jboss will redeploy that ear. A!! That is what I was looking for! :) I could do the exploded deployment, but I couldn't get JBOSS to redeploy it after I updated a class. I didn't know about this touch application.xml tip. Thanks Bob, for your feedback. I will try it. If this still takes too long, look at breaking up the components in the .ear. Either into smaller .ears, or into individual components (.war, ejbs jars, etc) and move those to deploy/. Then you only need to re-deploy the components that have changed. Yeah, this seems a very nice idea too. We are already doing some breaking. Initially we got all sort of ClassCastException possible :) We could get rid of them by just using the interface classes from one single .ear. All other ears using the interfaces would end up using the interface classes shared by the .ear I don't know if this is a good solution for it, but it worked and we could keep the development. If you all have any tips for this too, it would be very much appreciated. -- Regards, Francisco Figueiredo Jr. Membro Fundador do Projeto MonoBrasil - MonoBrasil Project Founding Member - Science without religion is lame; religion without science is blind. ~ Albert Einstein --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] RE: Tips for development with JBOSS
Markus Harnvi wrote: What I don't like with MyEclipse is that it more or less force you to use a special project layout. It also generates a build.xml that is impossible to share with other users in a mixed environment. This is the same feeling I have about Lomboz. But it has a lot of good stuff too. If all developers in a project use it and you start the project from scratch it's quite good. Yeap, I think Lomboz, from scratch is also a very nice tool. But we already started our project with our custom build files. Thanks for feedback Markus! -- Regards, Francisco Figueiredo Jr. Membro Fundador do Projeto MonoBrasil - MonoBrasil Project Founding Member - Science without religion is lame; religion without science is blind. ~ Albert Einstein --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Tips for development environment with JBoss
Barlow, Dustin wrote: If this still takes too long, look at breaking up the components in the .ear. Either into smaller .ears, or into individual components (.war, ejbs jars, etc) and move those to deploy/. Then you only need to re-deploy the components that have changed. From experience, breaking an application up into multiple smaller deployable components can be error-prone in terms of the JBoss classloader. Especially true if one component relies on another component that isn't bundled in the same archive (ear, jar, etc). This was exactly what happened to us here :) The solution we used was to share the interface files through a single .ear file. Thanks for feedback, Barlow -- Regards, Francisco Figueiredo Jr. Membro Fundador do Projeto MonoBrasil - MonoBrasil Project Founding Member - Science without religion is lame; religion without science is blind. ~ Albert Einstein --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Tips for development environment with JBoss
Hi all. I'd like to know some tips you have to development with JBOSS. Here at my job, we are using Eclipse as IDE and JBOSS IDE to help in debugging. I'd like to know what else I could use to help in the development with JBoss. I mean, we are having to do a full deploy of ear to update code as sometimes the hot code replace can't be done by jboss ide. We would like to have some configuratio tip or procedure which could allow us to be able to update the code without have to do a full deploy. Something like the Tomcat plugin which allows me to update the code and already handle the reload of classes. Could you share your experiences and development environment setups so I could get some ideas to use here at my job? We are using JBOSS 3.2.3 and Eclipse 2.1.2. Thanks in advance. Regards, Francisco Figueiredo Jr. --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss-IDE 1.2.1 released
Meyer-Willner, Bernhard wrote: I downloaded JBossIDE and extracted it into my plugins dir but I can't see it in Eclipse. What do I have to do to see and configure it? Go to window-ShowView-Other. A jboss-ide folder will be present where you can select the server manager view. I hope it helps. Regards, Francisco Figueiredo Jr. -Ursprüngliche Nachricht- Von: Laurent Etiemble [mailto:[EMAIL PROTECTED] Gesendet: Sonntag, 5. Oktober 2003 14:35 An: Jboss-User; Jboss-Development Betreff: [JBoss-user] JBoss-IDE 1.2.1 released Hi, The JBoss-IDE 1.2.1 release is available.It is a maintenance release which addresses many bugs.See release notes for more details : https://sourceforge.net/project/shownotes.php?release_id=187792 Downloads are available through the SourceForge site : http://prdownloads.sourceforge.net/jboss/org.jboss.ide.eclipse_1.2.1.bin.dis t.zip?download Updates are also possible within Eclipse through the Install/Update perspective. Just set up a bookmark to the following URL : http://jboss.sourceforge.net/jbosside/updates/ Laurent Etiemble, JBoss-IDE project lead. --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. LogicaCMG global sponsors, Gartner Symposium, Cannes, 4th -7th November 2003 http://symposium.gartner.com/story.php.id.3323.s.5.html Please note that LogicaCMG does not have control over content from,or availability of, this website --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss IDE support for Eclipse 3.0??
Hi all, do you have some idea of when there will be support of Jbosside in eclipse 3.0 M2? or any 3.0?? I tried run jbosside 1.1.0 with no luck. I know 3.0 will not be plugin binary compatible with 2.1. Thanks. -- Regards, Francisco Figueiredo Jr. --- My grandfather once told me that there are two kinds of people: those who work and those who take the credit. He told me to try to be in the first group; there was less competition there. - Indira Gandhi --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Building Jboss 4.0 from cvs
Alberto Rodriguez Galdo wrote: Hi, I'm interested in webservices in Jboss and particularly juddi integration in Jboss, that's why i would like to build the jboss 4.0 branch from cvs. Is it posible? or even, can i build only the jboss.net contrib? greets Yeap. You can follow intructions on sf.net page: http://sourceforge.net/cvs/?group_id=22866 Where module name will be jboss-head so you go to build folder and type execute the build script. It will compile jboss with jboss.net To compile just the jboss.net I think you can go in the jboss.net folder and execute the build script. Also, jboss.net is available in the 3.2.x release. I hope it helps. -- Regards, Francisco Figueiredo Jr. --- My grandfather once told me that there are two kinds of people: those who work and those who take the credit. He told me to try to be in the first group; there was less competition there. - Indira Gandhi --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Jboss with tomcat not starting...
Atanu Dey wrote: Hi All, Iam very new to Jboss. Using Jboss with tomcat 4.1.24. I have configured everything as per the doc. But when Iam running the run.bat, it is giving the following error ... please suggest me as to what can be the possible error. I have set the classpath of the lib folder in run.bat. 15:45:13,923 WARN [ServiceController] Problem starting service jboss:service=Naming java.lang.NoClassDefFoundError: javax/transaction/Transaction at tyrex.naming.EnvContext.getBindings(EnvContext.java:686) at tyrex.naming.EnvContext.lookup(EnvContext.java:181) at tyrex.naming.java.JavaContext.lookup(JavaContext.java:147) [...] Uhmmm, I'm using the 3.2.1-tomcat-4.1.24 with no problems. Can you check if your download file is not corrupt? Maybe just the jboss-j2ee.jar is corrupted. Try : jar -vtf jboss-j2ee.jar | grep Transaction on linux or jar -vtf jboss-j2ee.jar | find Trasaction on windows to see if you can see the Transaction class. I hope it helps. -- Regards, Francisco Figueiredo Jr. --- My grandfather once told me that there are two kinds of people: those who work and those who take the credit. He told me to try to be in the first group; there was less competition there. - Indira Gandhi --- This SF.NET email is sponsored by: eBay Great deals on office technology -- on eBay now! Click here: http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Possible classloader bug in 3.2.1?
John Dubchak wrote: Hi, Hi John. [...] Is this possibly a bug in the classloader? This is the only explanation I can come up with at this time. Any insight, or ideas would be greatly appreciated. I don't know if this is a bug in the classloader, but I had some problems with this and I could solve it in two ways: Try put the struts libs in the jboss lib server. As you are using a .ear, put a loader-repository entry in your jboss-app.xml. There is an example in the jboss-app_3_2.dtd. When I put the libs in the server, it worked fine, but you may have problems if you need more than one version of the libs running. The .ear solved my problem at all and I don't have to put the libs in the lib dir. I hope it helps. -- Regards, Francisco Figueiredo Jr. -- My grandfather once told me that there are two kinds of people: those who work and those who take the credit. He told me to try to be in the first group; there was less competition there. - Indira Gandhi --- This SF.NET email is sponsored by: eBay Great deals on office technology -- on eBay now! Click here: http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Datasource service support dropped?
Scott M Stark wrote: The *-service.xml file for datasources was dropped as the primary description because it was overly bloated with irrelevant JCA implementation details. You can still use this format if you want, but the details will change with the JCA implementation so its in your best interest to use the new *-ds.xml format. The format is described in the admin/devel docs fragment found on sourceforge. Thanks, Scott! I will use the *-ds.xml format. Just another question: Which configuration should I do to have my -ds.xml deployed if I put it in a .ear? I could put my ejb, war and later, thanks to a message on the list, my .sar to be deployed, all packaged in my .ear. I'm right now doing the deployment of -ds.xml by puting it in the deploy dir, but I would like to have it in the .ear. Can I just add a module entry in my application.xml with the -ds.xml file or I have to add it in the jboss-app, or something else? Thanks in advance. - Original Message - From: Francisco Figueiredo Jr. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 12, 2003 5:42 PM Subject: [JBoss-user] Datasource service support dropped? Hi all, I'd like to know how can I configure a datasource service with jboss 3.2.1. In 3.0.6 there were some configuration example files for configuring datasource services. But then, in the jboss 4.0 and later in the 3.2.x you dropped these files. Why?? (In earlier 3.2.x versions they were still being supported) I can use the -ds.xml files but I would like to know if I should still keep trying to use the service files or just use the -ds files. Sorry if this question alread has been answered. I coundn't find anything about this in the lists. Thanks in advance. -- Regards, Francisco Figueiredo Jr. --- This SF.NET email is sponsored by: eBay Great deals on office technology -- on eBay now! Click here: http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.NET email is sponsored by: eBay Great deals on office technology -- on eBay now! Click here: http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Datasource service support dropped?
Hi all, I'd like to know how can I configure a datasource service with jboss 3.2.1. In 3.0.6 there were some configuration example files for configuring datasource services. But then, in the jboss 4.0 and later in the 3.2.x you dropped these files. Why?? (In earlier 3.2.x versions they were still being supported) I can use the -ds.xml files but I would like to know if I should still keep trying to use the service files or just use the -ds files. Sorry if this question alread has been answered. I coundn't find anything about this in the lists. Thanks in advance. -- Regards, Francisco Figueiredo Jr. -- My grandfather once told me that there are two kinds of people: those who work and those who take the credit. He told me to try to be in the first group; there was less competition there. - Indira Gandhi --- This SF.NET email is sponsored by: eBay Great deals on office technology -- on eBay now! Click here: http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user