[JBoss AOP] - Unable to resolve pointcut reference: aop.SimpleInterceptor.
by avihaimar
I am working on Jboss4.05 i want to create and deploy a jar with aop annotations.
I create a jar with the following structre:
ejb-classes
meta-inf:
persistence.xml
ejb-jar.xml
jboss.jar.aop
jboss-aop.xml
aop-classes (The class that are intercepted and the Interceptor)
The problem is that when the server starts up I get this exception:
Unable to resolve pointcut reference: aop.SimpleInterceptor.valueConstructors
The "SimpleInterceptor" class is the inspector class and it located under jboss.jar.aop, so i dont understand why i get this exception?
Another question that i have :
why i have to place the intercepted and the interceptor classes under the jboss.jar.aop and i cant place them with all the classes?
Thank you very much,
you are great.
20:20:40,455 ERROR [STDERR] The member namingContext in org.apache.catalina.core.NamingContextListener uses the type org.apache.naming.Namin
| gContext which cannot be found on the classpath. Weaving is therefore skipped for this particular member
| 20:20:40,455 ERROR [STDERR] The member namingContext in org.apache.catalina.core.NamingContextListener uses the type org.apache.naming.Namin
| gContext which cannot be found on the classpath. Weaving is therefore skipped for this particular member
| 20:20:40,455 ERROR [STDERR] The member NamingContextListener in org.apache.catalina.core.NamingContextListener uses the type org.apache.nami
| ng.NamingContext which cannot be found on the classpath. Weaving is therefore skipped for this particular member
| ?
|
| 20:20:50,002 ERROR [STDERR] The member PoolingConnectionProvider in org.quartz.utils.PoolingConnectionProvider uses the type org.apache.comm
| ons.dbcp.BasicDataSource which cannot be found on the classpath. Weaving is therefore skipped for this particular member
| 20:20:50,002 ERROR [STDERR] The member PoolingConnectionProvider in org.quartz.utils.PoolingConnectionProvider uses the type org.apache.comm
| ons.dbcp.BasicDataSource which cannot be found on the classpath. Weaving is therefore skipped for this particular member
|
| ?
| 20:20:55,253 ERROR [STDERR] error getting:java.lang.reflect.InvocationHandler. 'invoke'
| 20:20:55,253 ERROR [STDERR] java.lang.RuntimeException: Unable to resolve pointcut reference: aop.SimpleInterceptor.valueConstructors
| 20:20:55,253 ERROR [STDERR] at org.jboss.aop.pointcut.MatcherHelper.visit(MatcherHelper.java:142)
| 20:20:55,253 ERROR [STDERR] at org.jboss.aop.pointcut.ast.ASTPointcut.jjtAccept(ASTPointcut.java:41)
| 20:20:55,253 ERROR [STDERR] at org.jboss.aop.pointcut.MatcherHelper.visit(MatcherHelper.java:118)
| ?
|
| 20:20:55,518 ERROR [STDERR] javassist.CannotCompileException: by java.lang.RuntimeException: Unable to resolve pointcut reference: aop.Simpl
| eInterceptor.valueConstructors
| 20:20:55,518 ERROR [STDERR] at org.jboss.aop.instrument.CallerTransformer$CallerExprEditor.edit(CallerTransformer.java:364)
| 20:20:55,518 ERROR [STDERR] at javassist.expr.ExprEditor.loopBody(ExprEditor.java:182)
| 20:20:55,518 ERROR [STDERR] at javassist.expr.ExprEditor.doit(ExprEditor.java:90)
| 20:20:55,534 ERROR [STDERR] at javassist.CtBehavior.instrument(CtBehavior.java:542)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049096#4049096
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049096
18 years, 11 months
[EJB 3.0] - Re: can any one help me - having a bad day with ejb3 server
by wiggy
in fact its worse than that i cant DI to work in the embedded server at all - never mind between it and the 4.2 AS.
i created a very simple test local EJB all in the embedded server project like this .
| // test ejb business interface defintion
| import javax.ejb.Local;
|
|
| @Local
| public interface Test
| {
| public void message (String msg);
| }
|
|
with a bean implementation like this
| import javax.ejb.Stateless;
|
|
| @Stateless
| public class TestBean implements Test
| {
|
| public void message (String msg)
| {
| System.out.println ("test bean\n");
| }
|
| }
|
I then try and get the DI bit to trigger from the main client section with the main entry point
calling client : - all in the same project
| ...
| public class ClientApp
| {
| @EJB (name="Test")
| public Test test;
|
| public ClientApp () {}
|
| public static void main(String[] args) throws Exception
| {
| ... up to
|
| //try dependency injection!
|
| new ClientApp().init ();
|
|
|
|
| //Shut down EJB container
| EJB3StandaloneBootstrap.shutdown();
|
| }
|
| public void init()
| {
| //trigger the DI for test
| test.message("local DI test in embedded container");
| }
|
| ...
|
|
this gets the same null pointer ref
anonymous wrote :
| 17:42:37,707 INFO [MCKernelAbstraction] installing bean: jboss.j2ee:jar=bin,name=TestBean,service=EJB3 with dependencies:
| 17:42:38,638 INFO [EJBContainer] STARTED EJB: TestBean ejbName: TestBean
| 17:42:38,779 INFO [MCKernelAbstraction] installing bean: jboss.j2ee:jar=classes,name=HelloUserBean,service=EJB3 with dependencies:
| 17:42:38,809 INFO [EJBContainer] STARTED EJB: app.HelloUserBean ejbName: HelloUserBean
| Exception in thread "main" java.lang.NullPointerException
| at ClientApp.init(ClientApp.java:75)
| at ClientApp.main(ClientApp.java:62)
|
all this code is running in the embedded as server
what am i doing wrong here ?
Wiggy
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049092#4049092
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049092
18 years, 11 months
[JBoss Seam] - Right way of querying a collection
by thierry.rietsch
Hi all
I try to get part of a collection over eql (or whatever the ejb query language is called). In the Hibernate tutorial it is suggested to use the criterias to get the data from a collection. As we are using JBoss Seam framework we would like to solve this problem directly over eql.
| @Entity
| // ...
| class SoftwareInventoryObject {
| // other code
| String name;
|
| @OneToMany
| List<SoftwareInventoryObjectPart> parts;
|
| // Getter & Setter
| }
|
| @Entity
| class SoftwareInventoryObjectPart {
| // other code
| String name;
| // other code
| }
|
My first try was to get the SoftwareInventoryObject over this query:
"from SoftwareInventoryObject sio where sio.name = 'foo' and sio.parts.name = 'bar'". Unfortunately this returned always a SoftwareInventoryObject with all related SoftwareInventoryObjectParts. How do I get only a part of this collection?
Thank you very much for your help,
Thierry
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049088#4049088
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049088
18 years, 11 months