Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

ClassNotFoundException

I am trying to deploy a application. Directory structure is correct. Class is there where it needs to be. When I deploy I keep getting this error:

Provision Failure: Uninstantiable:

Exception : java.lang.ClassNotFoundException : com.aaa.dao.IndividualStructureCdbDAO at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247)

I am using XAP 7.1.0. Any ideas ?

Thanks

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=3435]{quote}

asked 2010-06-04 09:52:09 -0500

omsoni gravatar image

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

Can you post the full exception?
Where do you have this class? Within the lib folder or at the root level of the PU folder?
Shay

answered 2010-06-04 10:16:00 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Comments

Class is in its own package in the jar. Below is the structure of the jar. The class in question is underlined in bold.
Thanks for help.

0 Fri Jun 04 11:38:26 EDT 2010 META-INF/
   106 Fri Jun 04 11:38:24 EDT 2010 META-INF/MANIFEST.MF
     0 Fri Jun 04 11:38:24 EDT 2010 com/
     0 Fri Jun 04 11:38:24 EDT 2010 com/ge/
     0 Fri Jun 04 11:38:24 EDT 2010 com/ge/comfin/
     0 Fri Jun 04 11:38:24 EDT 2010 com/ge/comfin/fleet/
     0 Fri Jun 04 11:38:24 EDT 2010 com/ge/comfin/fleet/cdbdomain/
     0 Fri Jun 04 11:38:24 EDT 2010 com/ge/comfin/fleet/dao/
     0 Fri Jun 04 11:38:24 EDT 2010 com/ge/comfin/fleet/feeder/
     0 Fri Jun 04 11:38:24 EDT 2010 com/ge/comfin/fleet/service/
     0 Fri Jun 04 11:38:24 EDT 2010 com/ge/comfin/fleet/serviceBO/
     0 Fri Jun 04 11:38:24 EDT 2010 META-INF/spring/
  1517 Fri Jun 04 11:38:24 EDT 2010 com/ge/comfin/fleet/cdbdomain/Individual.class
  2208 Fri Jun 04 11:38:24 EDT 2010 com/ge/comfin/fleet/cdbdomain/Structure.class
  4558 Fri Jun 04 11:38:24 EDT 2010 com/ge/comfin/fleet/dao/IndividualStructureCdbDAO.class
   440 Fri Jun 04 11:38:24 EDT 2010 com/ge/comfin/fleet/dao/IndividualStructureDAO.class
  2397 Fri Jun 04 11:38:24 EDT 2010 com/ge/comfin/fleet/dao/IndividualStructureSpaceDAO.class
   946 Fri Jun 04 11:38:24 EDT 2010 com/ge/comfin/fleet/dao/Queries.class
  1149 Fri Jun 04 11:38:24 EDT 2010 com/ge/comfin/fleet/feeder/IndividualStructureFeeder.class
   393 Fri Jun 04 11:38:24 EDT 2010 com/ge/comfin/fleet/service/IndividualStructureService.class
  1430 Fri Jun 04 11:38:24 EDT 2010 com/ge/comfin/fleet/service/IndividualStructureServiceImpl.class
   575 Fri Jun 04 11:38:24 EDT 2010 com/ge/comfin/fleet/serviceBO/IndividualBO.class
   780 Fri Jun 04 11:38:24 EDT 2010 env_dev.properties
  1435 Fri Jun 04 11:38:24 EDT 2010 META-INF/spring/dataaccess.xml
  1777 Fri Jun 04 11:38:24 EDT 2010 META-INF/spring/datasource.xml
   780 Fri Jun 04 11:38:24 EDT 2010 META-INF/spring/env_dev.properties
   594 Fri Jun 04 11:38:24 EDT 2010 META-INF/spring/fleetsoaexample.xml
   501 Fri Jun 04 11:38:24 EDT 2010 META-INF/spring/individual-query.xml
  1615 Fri Jun 04 11:38:24 EDT 2010 META-INF/spring/individualservice.xml
  1343 Fri Jun 04 11:38:24 EDT 2010 META-INF/spring/individualspace.xml
  3415 Fri Jun 04 11:38:24 EDT 2010 META-INF/spring/pu.xml
     0 Fri Jun 04 11:38:26 EDT 2010 lib/
373194 Tue Feb 09 16:00:36 EST 2010 lib/xstream-1.2.2.jar
 24677 Tue Feb 09 16:00:36 EST 2010 lib/xpp3_min-1.1.3.4.O.jar
367444 Tue Feb 09 16:00:40 EST 2010 ...

































(more)

omsoni gravatar imageomsoni ( 2010-06-04 10:46:28 -0500 )edit

Below is complete stack trace:

Exception : java.lang.ClassNotFoundException : com.ge.comfin.fleet.dao.IndividualStructureCdbDAO at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:434) at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165) at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247) at com.gigaspaces.internal.io.AnnotatedObjectInputStream.resolveClass(AnnotatedObjectInputStream.java:178) at com.gigaspaces.internal.io.MarshalInputStream.resolveClass(MarshalInputStream.java:115) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496) at java.io.ObjectInputStream.readClass(ObjectInputStream.java:1462) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1312) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at com.gigaspaces.exception.lrmi.ApplicationException.readExternal(ApplicationException.java:48) at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.readUnshared(ObjectInputStream.java:441) at com.gigaspaces.lrmi.nio.ReplyPacket.readExternal(ReplyPacket.java:69) at com.gigaspaces.lrmi.nio.Reader.unmarshall(Reader.java:527) at com.gigaspaces.lrmi.nio.Reader.bytesToPacket(Reader.java:517) at com.gigaspaces.lrmi.nio.Reader.readReply(Reader.java:122) at com.gigaspaces.lrmi.nio.CPeer.invoke(CPeer.java:544) at com.gigaspaces.lrmi.ConnPoolInvocationHandler.invoke(ConnPoolInvocationHandler.java:40) at com.gigaspaces.lrmi.MethodCachedInvocationHandler.invoke(MethodCachedInvocationHandler.java:60) at com.gigaspaces.lrmi.DynamicSmartStub.invokeRemote(DynamicSmartStub.java:428) at com.gigaspaces.lrmi.DynamicSmartStub.invoke(DynamicSmartStub.java:403) at com.gigaspaces.reflect.$GSProxy8.instantiate(Unknown Source) at com.gigaspaces.grid.gsc.GSCProxy.instantiate(GSCProxy.java:106) at org.jini.rio.monitor.ServiceProvisioner$ProvisionTask.doProvision(ServiceProvisioner.java:763) at org.jini.rio.monitor.ServiceProvisioner$ProvisionTask.run(ServiceProvisioner.java:596) at org.jini.rio.resources.resource.PoolableThread.run(PoolableThread.java:89)

omsoni gravatar imageomsoni ( 2010-06-04 10:57:45 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2010-06-04 09:52:09 -0500

Seen: 51 times

Last updated: Jun 04 '10