and there is nowhere a jboss-build.properties (!) file under my
D:/JBoss-4.0.0 directory
You should be able to obtain the supplementary JBoss files from the same place as this document. The file is packaged as a ZIP archive called jbossj2ee-src.zip.
Should I chuck JBoss and try EJBs on Sun's Application Server?
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
- Jess
Blog:KnitClimbJava | Twitter: jsant | Ravelry: wingedsheep
There is no directory named j2eetutorial14 in JBoss 3.2.6 nor in JBoss 4.0.0 nor in JBoss 4.0.4 GA.
We will make use of the example applications provided by Sun in the J2EE tutorial, in particular the Duke�s Bank application. You can find the tutorial on-line at http://java.sun.com/j2ee/1.4/docs/tutorial/doc/. You should read the getting started information there and download the example code from http://java.sun.com/j2ee/1.4/download.html#tutorial.
We will look at how to run the code in JBoss, supplementing the tutorial where necessary with JBoss-specific configuration information and deployment descriptors.
Is it too difficult to specify which files they mean by 'supplementary'?
Originally posted by Dave Elwood:
so I have under jboss.home the dir /examples2 from the above
and I have under jboss.home the dir /examples1 which came out of jbossj2ee-src.zip
so we have examples1/bank and examples2/bank
is it necessary to mix these two /examples* directories together?
The file is packaged as a ZIP archive called jbossj2ee-src.zip. Download this and unpack it into the j2eetutorial14 directory, adding to the existing tutorial files.
Originally posted by Dave Elwood:
to Andrew Monkhouse :
Yes, if it will get an EJB bean to run here then please move this thread over to that other place.
Originally posted by Dave Elwood:
"All the Duke�s Bank code is in a the examples/bank"
No it isn't.
When I run (as dictated in section 4.1.2)
>ant -f D:/JBoss-4.0.4/examples/bank jboss-build.xml compile
then the errors come out that the classes AccountController, AccountController home etc. do not exist.
These classes are not present in any of the three JBoss versions I have
used up now. [/QB]
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
00:59:03,429 INFO [EARDeployer] Init J2EE application: file:/D:/JBoss-4.0.3/server/default/deploy/JBossDukesBank.ear
00:59:04,690 INFO [EjbModule] Deploying CustomerBean
00:59:05,231 INFO [EjbModule] Deploying AccountBean
00:59:05,261 INFO [EjbModule] Deploying TxBean
00:59:05,271 INFO [EjbModule] Deploying NextIdBean
00:59:05,281 INFO [EjbModule] Deploying AccountControllerBean
00:59:05,301 INFO [EjbModule] Deploying CustomerControllerBean
00:59:05,311 INFO [EjbModule] Deploying TxControllerBean
00:59:05,632 INFO [ClientDeployer] Client ENC bound under: bank-client
00:59:05,682 INFO [BaseLocalProxyFactory] Bound EJB LocalHome CustomerBean' to jndi 'ebankCustomer'
00:59:06,052 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'AccountBean' to jndi 'ebankAccount'
00:59:06,082 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'TxBean' to jndi 'ebankTx'
00:59:06,102 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'NextIdBean' to jndi 'ebankNextId'
00:59:06,904 INFO [ProxyFactory] Bound EJB Home 'AccountControllerBean' to jndi 'ebankAccountController'
00:59:06,914 INFO [ProxyFactory] Bound EJB Home 'CustomerControllerBean' to jndi 'ebankCustomerController'
00:59:06,934 INFO [ProxyFactory] Bound EJB Home 'TxControllerBean' to jndi 'ebankTxController'
00:59:06,944 INFO [EJBDeployer] Deployed: file:/D:/JBoss-4.0.3/server/default/tmp/deploy/tmp39045JBossDukesBank.ear-contents/bank-ejb.jar
00:59:07,024 INFO [TomcatDeployer] deploy, ctxPath=/bank, warUrl=.../tmp/deploy/tmp39045JBossDukesBank.ear-contents/web-client-exp.war/
00:59:07,374 INFO [EARDeployer] Started J2EE application: file:/D:/JBoss-4.0.3/server/default/deploy/JBossDukesBank.ear
Originally posted by Dave Elwood:
I finally found the link
after 11 other links
at the bottom of the webpage
Originally posted by Dave Elwood:
now I have Update 2 just as you described and it deploys.
Waa..Hoo!
Now I just need to see if I can call it up with a client app
such as http://localhost:8080/getupanddance
Originally posted by Dave Elwood:
But do you see what I mean about hokey documentation?
Originally posted by Jose Alvarez de Lara:
I would like to keep this thread on until I had solved the application. Is it posible.
java.rmi.ServerException: EJBException:; nested exception is:
javax.ejb.EJBException: ejbCreate: comp not bound
at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:365)
at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:136)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)
at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:637)
at org.jboss.ejb.Container.invoke(Container.java:981)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.invocation.unified.server.UnifiedInvoker.invoke(UnifiedInvoker.java:231)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:201)
at $Proxy16.invoke(Unknown Source)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:769)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:573)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:373)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:166)
Caused by: javax.ejb.EJBException: ejbCreate: comp not bound
at com.sun.ebank.ejb.customer.CustomerControllerBean.ejbCreate(CustomerControllerBean.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.ejb.StatefulSessionContainer.createSession(StatefulSessionContainer.java:278)
at org.jboss.ejb.StatefulSessionContainer.createHome(StatefulSessionContainer.java:337)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
at org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invokeHome(StatefulSessionContainer.java:549)
at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:145)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:189)
at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:56)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:125)
at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:173)
at org.jboss.ejb.plugins.TxInterceptorBMT.invokeHome(TxInterceptorBMT.java:71)
at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invokeHome(StatefulSessionInstanceInterceptor.java:143)
at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)
at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:637)
at org.jboss.ejb.Container.invoke(Container.java:981)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.invocation.unified.server.UnifiedInvoker.invoke(UnifiedInvoker.java:231)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:201)
at $Proxy16.invoke(Unknown Source)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:769)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:573)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:373)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:166)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:163)
at org.jboss.remoting.Client.invoke(Client.java:1634)
at org.jboss.remoting.Client.invoke(Client.java:548)
at org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy.invoke(UnifiedInvokerProxy.java:183)
at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:184)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
at $Proxy0.create(Unknown Source)
at com.sun.ebank.appclient.DataModel.<init>(DataModel.java:127)
at com.sun.ebank.appclient.EventHandle.<init>(EventHandle.java:51)
at com.sun.ebank.appclient.BankAdmin.main(BankAdmin.java:587)
I just had the craziest dream. This tiny ad was in it.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|