-
1. Re: NoClassDefFoundError: com/sun/rowset/CachedRowSetImpl
jaime.chavarriaga Jul 24, 2011 1:25 AM (in response to nsakiya)Maybe you must manually include the rowset.jar file in the endorsed or common library directory of your server
- <jboss-home>/lib/endorsed
- <jboss-home>/common/lib
-
2. Re: NoClassDefFoundError: com/sun/rowset/CachedRowSetImpl
spiritfox26 Jul 25, 2011 11:19 AM (in response to jaime.chavarriaga)Jaime Chavarriaga escribió:
Maybe you must manually include the rowset.jar file in the endorsed or common library directory of your server
- <jboss-home>/lib/endorsed
- <jboss-home>/common/lib
Sorry but this is not possible in JBoss AS 7, you need to configure a module for this. I'm trying to configure one module but is very complicated.
See this thread: http://community.jboss.org/thread/169561
Regards
-
3. Re: NoClassDefFoundError: com/sun/rowset/CachedRowSetImpl
gonne Jul 25, 2011 11:38 AM (in response to nsakiya)Try to add a dependency to the module "system".
MANIFEST.MF:
...
Dependencies: system
To import it using jboss-deployment-structure.xml:
<jboss-deployment-structure>
<deployment>
<dependencies>
<module name="system" />
</dependencies>
</deployment>
</jboss-deployment-structure>
Regards,
Gonne
-
4. Re: NoClassDefFoundError: com/sun/rowset/CachedRowSetImpl
aspraveen Dec 3, 2011 5:55 AM (in response to nsakiya)Hi,
I am presently struck in same situation, appreciate if you can share how did you fix it?
-
5. Re: NoClassDefFoundError: com/sun/rowset/CachedRowSetImpl
gonne Dec 3, 2011 6:12 PM (in response to aspraveen)Hi,
in JBoss 7.1.0.Beta1 the system module I have used in my post before does not exist anymore.
So I can only suggest my solution I have described in this post:
http://community.jboss.org/message/638330#638330
For your problem you have to add the path
{code:xml}
<path name="com/sun/rowset/CachedRowSetImpl"/>
{code}
Kind regards,
Gonne
-
6. Re: NoClassDefFoundError: com/sun/rowset/CachedRowSetImpl
aspraveen Dec 4, 2011 12:38 AM (in response to gonne)Thank you Gonne. It was the perfect hint.
Downloaded rowset jar file from Oracle sun website
Extracted to modules\com\sun\rowset
Then I edited modules/sun/jdk/main/module.xml file and added the following to paths
<path name="com/sun/rowset"/> <path name="com/sun/rowset/internal"/> <path name="com/sun/rowset/providers"/> worked.
-
7. Re: NoClassDefFoundError: com/sun/rowset/CachedRowSetImpl
gonne Dec 5, 2011 4:10 AM (in response to aspraveen)That is good, but I think you do not need the rowset.jar, because the classes you need are all in the rt.jar from your JDK.
-
8. Re: NoClassDefFoundError: com/sun/rowset/CachedRowSetImpl
dursunkoc Jan 9, 2013 5:27 AM (in response to gonne)I could not found the rt.jar within the jboss modlues should it be installed by myself.
-
9. Re: NoClassDefFoundError: com/sun/rowset/CachedRowSetImpl
aspraveen Jan 13, 2013 12:24 AM (in response to dursunkoc)It is easy to fix this error just follow the following
Edit modules/sun/jdk/main/module.xml file and added the following to paths
<path name=”com/sun/rowset”/>
<path name=”com/sun/rowset/internal”/>
<path name=”com/sun/rowset/providers”/>If still didn’t work, download
rowset jar file from Oracle sun website and extract to modules\com\sun\rowset
-
10. Re: NoClassDefFoundError: com/sun/rowset/CachedRowSetImpl
adzinets Jan 27, 2015 12:22 PM (in response to nsakiya)You can modify JBoss' system module as praveen suggested above, or create a new one. Under modules/com/sun/rowset/main create a module.xml containing
<?xml version="1.0" encoding="UTF-8"?> <module xmlns="urn:jboss:module:1.1" name="com.sun.rowset"> <dependencies> <system export="true"> <paths> <path name="com/sun/rowset"/> </paths> </system> </dependencies> </module>
Then add a dependency to the module to your war or ear. You can do it in the MANIFEST.MF or jboss-deployment-structure.xml:
<?xml version="1.0" encoding="UTF-8"?> <jboss-deployment-structure> <deployment> <dependencies> <module name="com.sun.rowset" /> </dependencies> </deployment> </jboss-deployment-structure>