Greetings,
I have a beginner problem. I am testing example Beans from tJ2EE Developer's
Guide and I am stopped by Account example.
When I try to deploy it on jBoss I will receive bellow log. What is it and
what I have to do to not see it. I'm afraid it is very
simple but I tried to find something helpful in archive of mailing-list for
3 hours and found no interesting.
Thanks,
dave
Log
[Auto deploy] Auto deploy of file:/D:/jBoss2.0_pr3/deploy/Account.jar
[Container factory] Deploying:file:/D:/jBoss2.0_pr3/deploy/Account.jar
[Container factory] Deploying AccountBean
[Container factory] No configuration chosen. Using default configuration
[Container factory] java.lang.ClassNotFoundException: $Proxy2
[Container factory] Using default DataSource:Hypersonic
at java.lang.Class.getMethods0(Native Method)
at java.lang.Class.getMethods(Unknown Source)
at org.jboss.ejb.EntityContainer.setupBeanMapping(EntityContainer.java:534)
at org.jboss.ejb.EntityContainer.init(EntityContainer.java:175)
at org.jboss.ejb.Application.init(Application.java:158)
at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:493)
at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:183)
at java.lang.reflect.Method.invoke(Native Method)
[Container factory] java.lang.NoClassDefFoundError:
InsufficientBalanceException
at javax.management.MBeanServer.invoke(MBeanServer.java:1635)
at javax.management.MBeanServer.invoke(MBeanServer.java:1501)
at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:258)
at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:194)
at java.lang.Thread.run(Unknown Source)
[Auto deploy] Deployment failed:file:/D:/jBoss2.0_pr3/deploy/Account.jar
[Auto deploy] org.jboss.ejb.DeploymentException: Could not deploy
file:/D:/jBoss2.0_pr3/deploy/Account.jar
[Auto deploy] at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:514)
[Auto deploy] at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:183)
[Auto deploy] at java.lang.reflect.Method.invoke(Native Method)
[Auto deploy] at
javax.management.MBeanServer.invoke(MBeanServer.java:1635)
[Auto deploy] at
javax.management.MBeanServer.invoke(MBeanServer.java:1501)
[Auto deploy] at
org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:258)
[Auto deploy] at
org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:194)
[Auto deploy] at java.lang.Thread.run(Unknown Source)
ejb-jar file for Account.jar
<?xml version="1.0" encoding="Cp1252"?>
<ejb-jar>
<description>no description</description>
<display-name>EjbAccount</display-name>
<enterprise-beans>
<entity>
<display-name>AccountBean</display-name>
<ejb-name>AccountBean</ejb-name>
<home>AccountHome</home>
<remote>Account</remote>
<ejb-class>AccountEJB</ejb-class>
<persistence-type>Bean</persistence-type>
<prim-key-class>java.lang.Object</prim-key-class>
<reentrant>False</reentrant>
<resource-ref>
<res-ref-name>jdbc/AccountDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</entity>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>AccountBean</ejb-name>
<method-intf>Remote</method-intf>
<method-name>getLastName</method-name>
<method-params />
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
<container-transaction>
<method>
<ejb-name>AccountBean</ejb-name>
<method-intf>Remote</method-intf>
<method-name>debit</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
<container-transaction>
<method>
<ejb-name>AccountBean</ejb-name>
<method-intf>Remote</method-intf>
<method-name>getBalance</method-name>
<method-params />
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
<container-transaction>
<method>
<ejb-name>AccountBean</ejb-name>
<method-intf>Remote</method-intf>
<method-name>credit</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
<container-transaction>
<method>
<ejb-name>AccountBean</ejb-name>
<method-intf>Remote</method-intf>
<method-name>getFirstName</method-name>
<method-params />
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]