1 2 3 4 5 Previous Next 327 Replies Latest reply: Oct 3, 2007 10:57 PM by Vishal Sharma Go to original post RSS
  • 30. Re: Tutorial on J2EE using JBOSS, Eclipse and Lomboz.
    Vishal Sharma Expert

    Thanks for yr feedback.
    I hope u are enjoying the tutorial.

  • 31. Re: Tutorial on J2EE using JBOSS, Eclipse and Lomboz.
    bumeshrai Newbie

    Dear Vishal,

    The chap 3 example works fine, except for one small 'doubt'. JBoss instead of opening in ../server/default opens in ../server/all. So the table created in chap.1 in ../server/default/ dir has to be made in ../server/all/.


    Thanks for the great tutorial. J2EE was never so easy..

  • 32. Re: Tutorial on J2EE using JBOSS, Eclipse and Lomboz.
    bumeshrai Newbie

    Dear Vishal,

    How does the following snippet work (though there is no doubt it works...):

    /**
    * Sets the Session Context
    * @param javax.ejb.SessionContext the new ctx value
    * @ejb.method setSessionContext
    **/

    There is no tag like ejb.method in XDoclet 1.2.b3 or 1.1.2. It will be helpful if it is clarified in the tutorial ch.3

  • 33. Re: Tutorial on J2EE using JBOSS, Eclipse and Lomboz.
    Vishal Sharma Expert

    Now for yr post no 32 about @ejb.method tag, you are right that there is no tag like that is used on callback method setSessionContext and unsetSessionContext in chapter 3. It's a mistake.
    Same mistake has been carried over in chap5 on finder methods.

    You dont have to specify any xdoclet tag as it picks up from the declaration of method signature in bean.
    Note : as tage declared in ejbGenerate.xml is responsibe for generating session bean methods.

    We might have to correct that, but since its working its ok at this stage.
    But that was a good point and I will try to update that asap.
    And my appologies for that.

  • 34. Re: Tutorial on J2EE using JBOSS, Eclipse and Lomboz.
    Vishal Sharma Expert


    As for yr post no 31 about 'opening in ../server/default opens in ../server/all'.
    Now whatever you have done in chap1 is sufficient, where it says to load scripts from default.
    Reason is, hypersonoc DB is not storing the data on some disk as in case of some ideal db, but it reads from the scripts availabe under dir all/data/hypersonic/.

    So every time you start jboss, it redas the schema and its data from scripts under this dir.

    Now we ask you to save these scripts under default/data/hypersonic,
    once you execute these statements for creating and uplodaing data, all this data along with schema goes in all/data/hypersonic and is actually saved in default.script.
    Thats why we ask you yo commit after doing all this so that it save this data in this 'default.script' script., so next time when u start jboss it reads from /default/data/hypersonic/default.script.

    I presume this will clarify yr doubt.
    But keep posting any feedback, that way it will be improved upon.

    Goodluck.

  • 36. Re: Tutorial on J2EE using JBOSS, Eclipse and Lomboz.
    spoox2@hotmail.com Newbie

    Hi! Vishal and the rest,
    I have gone through the tutorial to the point where it say "Add EJB to module". I am able to add a method to the EJB but when i right click on MySessionBean --> Lomboz J2EE --> Add EJB to module , I don't get the screen you have shown a snapshot of. And neither does the navigator show the MySessionBean Type under MySessionBean.java as shown in the snapshot. Later when i right click on MyBank --> Lomboz J2EE --> Generate EJb i get an error saying "Error creating EJB" and the error reason says "J2EEAction.Internal ".
    Please guide me as to where i am going wrong. I am attaching my screenshot. Please take a look at it. Thanx.

  • 37. Re: Tutorial on J2EE using JBOSS, Eclipse and Lomboz.
    spoox2@hotmail.com Newbie

    Jus' for a little heads up.. I am using Eclipse 2.1.0 and Lomboz as mentioned in ur tutorial.

  • 38. Re: Tutorial on J2EE using JBOSS, Eclipse and Lomboz.
    Vishal Sharma Expert

    First of all I can't see yr screenshot. Soreally cnat say whrre you missed out.
    But i think u are in chapter 3, where u are having this trouble.
    The same steps are in chapter 1 and if you finished chapter 1 successfully, then really chapter 3 should be fine. Try cross checking yr steps with chapter1 and see whether you succeed.

  • 39. Re: Tutorial on J2EE using JBOSS, Eclipse and Lomboz.
    spoox2@hotmail.com Newbie

    Sorry about it. I am on chapter 1 still and i guess the attachment did not get through. I will try attaching it now.

  • 40. Re: Tutorial on J2EE using JBOSS, Eclipse and Lomboz.
    Vishal Sharma Expert

    Another update on tutorial.
    ------------------------------------

    Chapter 6 on CMP has been released today.


    Next to come Chapter 7 on MDB and Chapter 8 on Web Components.

    As we have got a huge response for this, Myself and Glen McCallum would like to thank you all for your suggestions and feedbacks.

    Good Luck.

    Vishal.

  • 41. Re: Tutorial on J2EE using JBOSS, Eclipse and Lomboz.
    mainland Newbie

    When I do the chaper 3, every thing is fine until I run the test client, the error message:
    I check several and assume it is a java rmi problem,

    how to fix it, thanks a lot




    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.ServerException: RuntimeException; nested exception is:
    java.lang.NullPointerException
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)
    at sun.rmi.transport.Transport$1.run(Transport.java:148)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
    at java.lang.Thread.run(Thread.java:536)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
    at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
    at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
    at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:135)
    at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:87)
    at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
    at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:45)
    at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:100)
    at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
    at $Proxy1.loginUser(Unknown Source)
    at au.com.tusc.client.SessionClient.testBean(SessionClient.java:49)
    at au.com.tusc.client.SessionClient.main(SessionClient.java:61)
    Caused by: java.rmi.ServerException: RuntimeException; nested exception is:
    java.lang.NullPointerException
    at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:360)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
    at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:322)
    at org.jboss.ejb.Container.invoke(Container.java:674)
    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:324)
    at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
    at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:359)
    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:324)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
    at sun.rmi.transport.Transport$1.run(Transport.java:148)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
    at java.lang.Thread.run(Thread.java:536)
    Caused by: java.lang.NullPointerException
    at au.com.tusc.dao.StoreAccessDAOImpl.loginUser(StoreAccessDAOImpl.java:46)
    at au.com.tusc.session.StoreAccessSession.loginUser(StoreAccessSession.java:60)
    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:324)
    at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:629)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
    at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104)
    at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:117)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
    ... 21 more

  • 42. Re: Tutorial on J2EE using JBOSS, Eclipse and Lomboz.
    Vishal Sharma Expert

    I presume yr bean was deployed succesfully and you had no errors while starting JBOSS. For this error you have to check yr databse (DB) (which is hypersonic) as chapter 3 uses DAO to get usename and other details from DB.
    So before you invoke client just check yr DB whether you can see yr table and data in it. Go to DB Gui interface, Use JMX Console, If you cant see table then just load the table and data using supplied scripts and make sure you commit them. Steps are covered in chapter 1.

    I hope this will get you going.

  • 43. Re: Tutorial on J2EE using JBOSS, Eclipse and Lomboz.
    mainland Newbie

    I tried the database, everything is fine, I still have the same error. I run the application on windows 2000.

    really do not know what is wrong.

  • 44. Re: Tutorial on J2EE using JBOSS, Eclipse and Lomboz.
    mainland Newbie

    I really you chaper 3's example has problem when run in windows

1 2 3 4 5 Previous Next