Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Deploying Adder Bean of Budi Kurniawan's book

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I am trying to run Budi Kurniawan'AdderBean example given on:http://benmira.free.fr/en/j2ee/ejb.htm

I am unable to deploy the bean but get the following errors:

vider
[INFO,JMSProviderLoader] Started
[INFO,ServerSessionPoolLoader] Starting
[INFO,ServerSessionPoolLoader] pool factory StdJMSPool bound to java:/StdJMSPoo

[INFO,ServerSessionPoolLoader] Started
[INFO,J2eeDeployer] Starting
[INFO,J2eeDeployer] No web container found - only EJB deployment available...
[INFO,J2eeDeployer] Cleaning up deployment directory
[INFO,J2eeDeployer] Started
[INFO,RARDeployer] Starting
[INFO,RARDeployer] Started
[INFO,MinervaNoTransCMFactory] Starting
[INFO,MinervaNoTransCMFactory] Connection manager factory 'MinervaNoTransCMFact
ry bound to 'java:/MinervaNoTransCMFactory'
[INFO,MinervaNoTransCMFactory] Started
[INFO,MinervaSharedLocalCMFactory] Starting
[INFO,MinervaSharedLocalCMFactory] Connection manager factory 'MinervaSharedLoc
lCMFactory bound to 'java:/MinervaSharedLocalCMFactory'
[INFO,MinervaSharedLocalCMFactory] Started
[INFO,MinervaXACMFactory] Starting
[INFO,MinervaXACMFactory] Connection manager factory 'MinervaXACMFactory bound
o 'java:/MinervaXACMFactory'
[INFO,MinervaXACMFactory] Started
[INFO,MinervaDS] Starting
[INFO,MinervaDS] Started
[INFO,JmsXA] Starting
[INFO,JmsXA] Started
[INFO,AutoDeployer] Starting
[INFO,AutoDeployer] Watching directory: C:\jboss\deploy
[INFO,AutoDeployer] Watching directory: C:\jboss\deploy\lib
[INFO,AutoDeployer] Auto deploy of file:/C:/jboss/deploy/lib/jms-ra.rar
[INFO,RARDeployer] Attempting to deploy RAR at 'file:/C:/jboss/deploy/lib/jms-r
.rar'
[WARN,JmsXA] Using default value 'java efaultJMSProvider' for config property
JmsProviderAdapterJNDI'
[INFO,JmsXA] FINE: Setting LogWriter: org.jboss.logging.log4j.CategoryWriter@af
68a
[INFO,JmsXA] Bound connection factory for resource adapter 'JMS Adapter' to JND
name 'java:/JmsXA'
[INFO,AutoDeployer] Auto deploy of file:/C:/jboss/deploy/adder.jar
[INFO,J2eeDeployer] Deploy J2EE application: file:/C:/jboss/deploy/adder.jar
[INFO,J2eeDeployer] Create application adder.jar
[INFO,J2eeDeployer] install EJB module adder.jar
[INFO,ContainerFactory] Deploying:file:/C:/jboss/tmp/deploy/Default/adder.jar
[ERROR,ContainerFactory]
Bean : Adder
Section: 16.2
Warning: The Bean Provider must specify the fully-qualified name of the enterpr
se bean's home interface in the home element.

[ERROR,ContainerFactory]
Bean : Adder
Section: 16.2
Warning: The Bean Provider must specify the fully-qualified name of the enterpr
se bean's remote interface in the remote element.

[INFO,ContainerFactory] Deploying Adder
[ERROR,ContainerFactory] DeploymentError
java.lang.ClassNotFoundException: com.brainysoftware.ejb.AdderHome
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at org.jboss.ejb.StatelessSessionContainer.init(StatelessSessionContain
r.java:147)
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(NativeMethodAccessorImpl
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1
28)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1
23)
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(NativeMethodAccessorImpl
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1
28)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1
23)
at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:371

at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:10
)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1
28)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1
23)
at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(Con
igurationService.java:967)
at $Proxy0.start(Unknown Source)
at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1
28)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1
23)
at org.jboss.Main.<init>(Main.java:208)
at org.jboss.Main$1.run(Main.java:110)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.Main.main(Main.java:106)
[ERROR,J2eeDeployer] Starting adder.jar failed!
[ERROR,Default] java.lang.NullPointerException
[ERROR,Default] at org.jboss.ejb.plugins.local.BaseLocalContainerInvoke
.stop(BaseLocalContainerInvoker.java:152)
[ERROR,Default] at org.jboss.ejb.Container.stop(Container.java:382)
[ERROR,Default] at org.jboss.ejb.StatelessSessionContainer.stop(Statele
sSessionContainer.java:216)
[ERROR,Default] at org.jboss.ejb.Application.stop(Application.java:231)
[ERROR,Default] at org.jboss.ejb.ContainerFactory.deploy(ContainerFacto
y.java:400)
[ERROR,Default] at org.jboss.ejb.ContainerFactory.deploy(ContainerFacto
y.java:306)
[ERROR,Default] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
ethod)
[ERROR,Default] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMe
hodAccessorImpl.java:39)
[ERROR,Default] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Dele
atingMethodAccessorImpl.java:25)
[ERROR,Default] at java.lang.reflect.Method.invoke(Method.java:324)
[ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanS
rverImpl.java:1628)
[ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanS
rverImpl.java:1523)
[ERROR,Default] at org.jboss.deployment.J2eeDeployer.startModules(J2eeD
ployer.java:487)
[ERROR,Default] at org.jboss.deployment.J2eeDeployer.startApplication(J
eeDeployer.java:459)
[ERROR,Default] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeploye
.java:190)
[ERROR,Default] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
ethod)
[ERROR,Default] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMe
hodAccessorImpl.java:39)
[ERROR,Default] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Dele
atingMethodAccessorImpl.java:25)
[ERROR,Default] at java.lang.reflect.Method.invoke(Method.java:324)
[ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanS
rverImpl.java:1628)
[ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanS
rverImpl.java:1523)
[ERROR,Default] at org.jboss.deployment.AutoDeployer.deploy(AutoDeploye
.java:395)
[ERROR,Default] at org.jboss.deployment.AutoDeployer.run(AutoDeployer.j
va:233)
[ERROR,Default] at org.jboss.deployment.AutoDeployer.startService(AutoD
ployer.java:371)
[ERROR,Default] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBea
Support.java:103)
[ERROR,Default] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown
ource)
[ERROR,Default] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Dele
atingMethodAccessorImpl.java:25)
[ERROR,Default] at java.lang.reflect.Method.invoke(Method.java:324)
[ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanS
rverImpl.java:1628)
[ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanS
rverImpl.java:1523)
[ERROR,Default] at org.jboss.configuration.ConfigurationService$Service
roxy.invoke(ConfigurationService.java:967)
[ERROR,Default] at $Proxy0.start(Unknown Source)
[ERROR,Default] at org.jboss.util.ServiceControl.start(ServiceControl.j
va:79)
[ERROR,Default] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
ethod)
[ERROR,Default] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMe
hodAccessorImpl.java:39)
[ERROR,Default] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Dele
atingMethodAccessorImpl.java:25)
[ERROR,Default] at java.lang.reflect.Method.invoke(Method.java:324)
[ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanS
rverImpl.java:1628)
[ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanS
rverImpl.java:1523)
[ERROR,Default] at org.jboss.Main.<init>(Main.java:208)
[ERROR,Default] at org.jboss.Main$1.run(Main.java:110)
[ERROR,Default] at java.security.AccessController.doPrivileged(Native M
thod)
[ERROR,Default] at org.jboss.Main.main(Main.java:106)
[INFO,J2eeDeployer] Module adder.jar is not running
[INFO,J2eeDeployer] Destroying application adder.jar
[ERROR,AutoDeployer] DeploymentInfo failed:file:/C:/jboss/deploy/adder.jar
org.jboss.deployment.J2eeDeploymentException: Error while starting adder.jar: n
ll, Cause: java.lang.NullPointerException
at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:530

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(NativeMethodAccessorImpl
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1
28)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1
23)
at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:371

at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:10
)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1
28)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1
23)
at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(Con
igurationService.java:967)
at $Proxy0.start(Unknown Source)
at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1
28)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1
23)
at org.jboss.Main.<init>(Main.java:208)
at org.jboss.Main$1.run(Main.java:110)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.Main.main(Main.java:106)
Caused by: java.lang.NullPointerException
at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.stop(BaseLocal
ontainerInvoker.java:152)
at org.jboss.ejb.Container.stop(Container.java:382)
at org.jboss.ejb.StatelessSessionContainer.stop(StatelessSessionContain
r.java:216)
at org.jboss.ejb.Application.stop(Application.java:231)
at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:400)
at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:306)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1
28)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1
23)
at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:487

... 30 more
[INFO,AutoDeployer] Auto deploy of file:/C:/jboss/deploy/lib/jbosspool-jdbc.rar
[INFO,RARDeployer] Attempting to deploy RAR at 'file:/C:/jboss/deploy/lib/jboss
ool-jdbc.rar'
[INFO,RARMetaData] Loading Minerva Resource Adapter for JDBC 1/2 drivers
[INFO,RARMetaData] Required license terms present. See deployment descriptor.
[WARN,MinervaDS] Not setting config property 'Password'
[WARN,MinervaDS] Not setting config property 'Driver'
[WARN,MinervaDS] Not setting config property 'UserName'
[INFO,MinervaDS] Bound connection factory for resource adapter 'Minerva JDBC Lo
alTransaction ResourceAdapter' to JNDI name 'java:/MinervaDS'
[INFO,AutoDeployer] Started
[INFO,JMXAdaptorService] Starting
[INFO,JMXAdaptorService] Started
[INFO,RMIConnectorService] Starting
[INFO,RMIConnectorService] Started
[INFO,MailService] Starting
[INFO,MailService] Mail Service 'Mail' bound to java:/Mail
[INFO,MailService] Started
[INFO,ServiceControl] Started 47 services
[INFO,Default] JBoss-2.4.4 Started in 0m:6s.329

------------------------------------------

thanks in advance
 
incandescent light gives off an efficient form of heat. You must be THIS smart to ride this ride. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic