This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 195547 - RESTful WS from entity classes in Spring project throws java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor
Summary: RESTful WS from entity classes in Spring project throws java.lang.NoClassDefF...
Status: RESOLVED DUPLICATE of bug 193626
Alias: None
Product: javaee
Classification: Unclassified
Component: Spring (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P3 normal (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-16 10:15 UTC by Jeffrey Rubinoff
Modified: 2011-02-16 18:11 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeffrey Rubinoff 2011-02-16 10:15:56 UTC
Not sure if this is a Spring or a REST WS bug...
Create a RESTful WS from entity classes in a Java web project that includes the Spring framework. Deploy to GF 3.0.1 or 3.1 b40.
Test the service. Both EE5 and EE6 services fail, with the message 
SEVERE: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor 
Problem originally reported by a user, who says that project works with Hibernate instead of Spring.
To reproduce, follow the Getting Started with RESTful WS tutorial including Spring, http://netbeans.org/kb/docs/websvc/rest.html#rest-spring . Complete through the "Testing the RESTful Web Services" section.
Comment 1 Denis Anisimov 2011-02-16 11:22:50 UTC

*** This bug has been marked as a duplicate of bug 193627 ***
Comment 2 Jeffrey Rubinoff 2011-02-16 12:20:21 UTC
Actually think this is a duplicate of 193626, not 193627

*** This bug has been marked as a duplicate of bug 193626 ***
Comment 3 Martin Fousek 2011-02-16 15:08:26 UTC
It's J2ee issue. See http://wiki.netbeans.org/SpringWithAopalliance. 

I will try to ask Petr Jiricka if the jar couldn't be part of netbeans
distribution, but there is strange license.
Comment 4 Denis Anisimov 2011-02-16 18:11:16 UTC
It can't be.
This is already resolved in the issue #193626.