[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problem starting service AspectDeployer (JBoss 3.2.6 + J

2004-11-22 Thread michaelf
Dmitry,
Please refer to JBoss documentation at

http://docs.jboss.org/aop/aspect-framework/reference/en/html/installing.html

According to the documentation, JBossAOP 1.0.0 should work with JBoss 3.2.6.

I am interesting if it is really possible to run JBossAOP 1.0.0 with JBoss 
3.2.6 or it just my mistake in installation / configuration etc.

Please note, I have performed all required steps according to the documentation 
and the AspectManager service is started without any problems.

Please help!
Best regards, 
Michael




View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855862#3855862

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855862


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problem starting service AspectDeployer (JBoss 3.2.6 + J

2004-11-22 Thread michaelf
Kevin
Thank you very much!!!

The JBoss group should update their documentation regarding JBoss 3.2.6 as 
following

  | 
  | Edit server/config-name/conf/jboss-service.xml
  | 
  | Add in the beginning of the file 
  | (after classpath codebase=lib archives=*/ ) 
  | the following configuration:
  | 
  | 
  | mbean code=org.jboss.aop.deployment.AspectManagerService32
  |  name=jboss.aop:service=AspectManager
  |  attribute name=EnableTransformerfalse/attribute
  |  !-- only relevant when EnableTransformer is true --
  |  attribute name=SuppressTransformationErrorstrue/attribute
  |  !-- only relevant when Enabletransformer is true.  Optimization 
is optional
  |  only just in case there is a bug in it --
  |  attribute name=Optimizedtrue/attribute
  |  attribute name=Verbosetrue/attribute
  |  /mbean
  | 
  |  mbean code=org.jboss.aop.deployment.AspectDeployer32
  |  name=jboss.aop:service=AspectDeployer
  | /mbean
  | 
Best regards,
   Michael


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855930#3855930

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855930


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Problem starting service AspectDeployer (JBoss 3.2.6 + JBoss

2004-11-21 Thread michaelf
Hi!

I am trying to use JBoss 3.2.6 + JBossAOP 1.0.0 on JDK 1.4.2_05 without success.

I have problem with starting of the AspectDeployer service.

I have tried to put the definitions of mbeans AspectManager and AspectDeployer 
in the beginning of the jboss-service.xml file as described in the link below 
without success.

http://www.jboss.org/index.html?module=bbop=viewtopict=54245

Please help!

Best regards,
 Michael
P.S. The exception log:

17:06:17,905 WARN  [ServiceController] Problem starting service 
jboss.aop:service=AspectDeployer
  | RuntimeErrorException: java.lang.NoSuchMethodError: 
org.jboss.deployment.MainDeployerMBean.getSuffixOrder()[Ljava/lang/String;
  | Cause: java.lang.NoSuchMethodError: 
org.jboss.deployment.MainDeployerMBean.getSuffixOrder()[Ljava/lang/String;
  | at 
org.jboss.mx.server.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:99)
  | at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:64)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:884)
  | at $Proxy0.start(Unknown Source)
  | at org.jboss.system.ServiceController.start(ServiceController.java:414)
  | 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:60)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
  | at $Proxy4.start(Unknown Source)
  | at org.jboss.deployment.SARDeployer.start(SARDeployer.java:251)
  | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:829)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:604)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:588)
  | 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:60)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
  | at $Proxy5.deploy(Unknown Source)
  | at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:407)
  | at org.jboss.system.server.ServerImpl.start(ServerImpl.java:311)
  | at org.jboss.Main.boot(Main.java:145)
  | at org.jboss.Main$1.run(Main.java:399)
  | at java.lang.Thread.run(Thread.java:536)
  | Caused by: java.lang.NoSuchMethodError: 
org.jboss.deployment.MainDeployerMBean.getSuffixOrder()[Ljava/lang/String;
  | at 
org.jboss.aop.deployment.AspectDeployer.initializeMainDeployer(AspectDeployer.java:214)
  | at 
org.jboss.aop.deployment.AspectDeployer.startService(AspectDeployer.java:209)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
  | at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
  | 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:60)
  | ... 42 more


View the original post : 

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - AspectWerkz AOP with JBoss: could not load aspect

2004-11-09 Thread michaelf
Please help!
I am trying to use the AspectWerkz AOP with JBoss.
Unfortunately, I have no success.
Please note, that I success to run the example stand alone, but when I am 
trying to do the same thing in JBoss I have the following exception

java.lang.ClassNotFoundException: test.aop.LogAspect

and the following AspectWerkz warning:

loader: [EMAIL PROTECTED]
aspectClassName: test.aop.LogAspect
Warning: could not load aspect test.aop.LogAspect from [EMAIL PROTECTED] to: 
java.lang.ClassNotFoundException: test.aop.LogAspect
java.lang.ClassNotFoundException: test.aop.LogAspect

My steps:
1)  Create aspect 
public class LogAspect 
{

public Object aroundAdvice(JoinPoint joinPoint) throws Throwable {
if (joinPoint == null)
{
return null;
}
MemberSignature signature = (MemberSignature)joinPoint.getSignature();
System.out.println(--:  + joinPoint.getTargetClass().getName() + 
:: + signature.getName());
try {
return joinPoint.proceed();
} finally {
System.out.println(--:  + 
joinPoint.getTargetClass().getName() + :: + signature.getName());
}
}


}

2)  Create aop.xml ( created WITH  and / characters )


  aspectwerkz 
system id=AspectWerkzExample

 package name=test.aop
  
  aspect class=LogAspect
 pointcut name=pc1 expression=execution(* 
est.aop.TestMe.foo*(..))   
advice name=aroundAdvice type=around bind-to=pc1
  aspect
package
system
aspectwerkz

3)  Create application 

public class TestMe1 
{

public void foo() {
System.out.println(foo body);
}
}


4)  Offline weaving of application
5)  Packing the aspect, application and aop.xml in the same EAR file
6)  Deployed EAR
7)  Calling to the foo method

TestMe1 testMe = new TestMe1();
testMe.foo();

Please help!
Best regards,
   Michael


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3854498#3854498

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854498


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development