Entity Bean Novice Needs Help
cmilley Apr 5, 2002 3:54 PMI am just trying to learn how to do entity beans and I am using JBoss. I think I have configured the jboss.jcml file to load my driver and my connection to my SQL Server database. The problem comes when I try to deploy my simple entity bean. I get a ClassNotFoundException: int.
Here is a portion of the stack trace:
[14:55:49,023,EntityContainer] Begin java:comp/env for EJB: TblFunding
[14:55:49,023,EntityContainer] TCL: java.net.URLClassLoader@20c906
[14:55:49,023,EntityContainer] Binding resource manager: java:/DefaultDS to JDNI ENC as: jdbc/MyDatabaseJndiName
[14:55:49,023,EntityContainer] End java:comp/env for EJB: TblFunding
[14:55:49,039,ContainerFactory] DeploymentError
java.lang.ClassNotFoundException: int
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.init(JRMPContainerInvoker.java:212)
at org.jboss.ejb.EntityContainer.init(EntityContainer.java:286)
at org.jboss.ejb.Application.init(Application.java:202)
at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:372)
at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:306)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:487)
at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:459)
at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
at java.lang.Thread.run(Unknown Source)
Is there some restriction that we cannot have the Primary key class type be a simple integer?? I do not understand how to fix this!! Any help would be greatly appreciated!
Thanks