[JBoss-user] [Advanced Documentation] - Re: deploying aop and spring beans

2005-07-22 Thread markusydkvist
Ok, no replies so far, but I managed to work my way around it.

Like always, some time in the docs, plus double that amout of time of 
trial&error usually solves these kind of troubles... ;-)

I now deploy all 3pp's separately as jars, and can now see them in the 
UnfiedRepository3 mbean. (That particular bean is very helpful in these cases).

So:
enable loadtime weaving (turned on verbose)
spring.jar, x.jar  ...  -> deploy
myApp.aop -> deploy (aspects classes and META-INF/jboss-aop.xml)
myApp.war -> deploy (servlet, views, spring beans & spring xml)

when I first visit my jsp's I get A LOT of loadtime info from the aop-enabled 
classloader. 
Then it works, my spring beans are intercepted by JBoss aop framework.


/Marcus

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3886094#3886094

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3886094


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Advanced Documentation] - deploying aop and spring beans

2005-07-19 Thread markusydkvist
Folks!
I've been strugling for two days now, and I find no way of making this work:

A simple web-app with spring-beans. So far, all fine. Ok, so I want to add some 
advices to some of my spring-beans. Trouble. Ok, I could use spring-aop, but I 
really want to use Jboss-aop, wich I find much more competent.

What really puzzles me it the classloading stuff. In all tutorials of 
jboss-aop, it says that I could basically drop a xxx-aop.xml in my deploy. 
(after enabling load-time-weaving in AspectManager). After that I deploy my 
war. That really doesn't do it for me...

So I build an ear, with:

/META-INF/application.xml
some.aop
 . . |
/META-INF/jboss-aop.xml
/META-INF/lib/3pp.jar   //spring, log4j etc
   /mypackage/myClass.class   //my own stuff, incl. my aspects,servlets
some.war
 . . |
index.jsp
/META-INF/web.xml & jboss.xml
/META-INF/lib/3pp.jar   //spring, log4j etc
   /mypackage/myClass.class   //my own stuff, incl. my aspects,servlets


so I realize I have duplicated my 3pp's and own stuff. But really, I've tried 
all combinations of this, and I just can't seem to make it work in all cases, 
and it seems to me that either no weaving takes place, or if it does, I get in 
trouble when 3pp's are loaded: javassist.NotFound

Does Spring have its own classloading mechanisms that conflicts with jboss-aop?

Anyone that could point out a good resource for reading exactly how to package 
complex builds, how to use the manifest:class-path etc??

regards
/Marcus

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3885508#3885508

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3885508


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Stopping ear seems to fail

2005-01-30 Thread markusydkvist
Hi!
Im using JBossIDE to generate ear, and deploy to server. I'm having the most 
annoying error. When I fail to deploy an ear, due to some errors in dd's or 
similar, the ear-deployer service seems to "lock" that url (the name of the ear 
basically), and when I later on redeploy a new version of the ear, I get a 
javax.management.InstanceAlreadyExistsException. If I try to undeploy it first 
(to unlock that url??), I get: "ignoring request to stop non-existing service", 
but looking at the jmx-console, I sure can see my ear's url bound. I must be 
doing something very bad here, this just came to me yesterday (have had jboss 
running fine for a month). I even reinstalled the intire AS. No change!! 

Is there a difference in how deployment is done from JBoss IDE regarding 
manually copying the file to /deploy ??

regards
Marcus

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3864263#3864263

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3864263


---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user