| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Hi, I am trying to execute successfully "Your First EJB" EJB Tutorial from Lomboz ( http://www.objectlearn.com/support/docs/firstEJB.jsp ) I created successfull both the ejb and the client to test it. When I execute the test program this is what I got: javax.naming.NamingException: NotFound:SampleEjb. Root exception is org.omg.CORBA.OBJECT_NOT_EXIST vmcid: 0x0 minor code: 0 completed: No at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Construc tor.java:274) at com.sybase.CORBA.iiop.Connection.createSystemExcep tion(Connection.java:5296) at com.sybase.CORBA.iiop.Connection.invoke(Connection .java:3612) at SessionManager._st_Session.lookup(_st_Session.java :72) at com.sybase.ejb.NamingContext.lookup(NamingContext. java:705) at javax.naming.InitialContext.lookup(InitialContext. java:347) at com.testing.client.TestClient.getHome(TestClient.j ava:26) at com.testing.client.TestClient.testBean(TestClient. java:48) at com.testing.client.TestClient.main(TestClient.java :65) ¿Do I need to further configure the Package inside Jaguar's admin, so a client app can access the ejb? ¿Do Jaguar works only with Powerbuilder created ejbs? Please help me! My boss is needing me to finish other EJB apps! Thanks very much, Lorenzo Jiménez |
|
#2
| |||
| |||
| EAserver supports normal EJB's. You need to do a bunch of checking around for me. I have never used Lamboz. When you deployed the bean, did you generate skeletons and stubs? Did you ask to have them compiled? How did you deploy them? Did you use the wizard? Is the EJB "installed" in EAS as an installed package? In the properties of the EJB what is its name? Dave Wolf Cynergy Systems http://www.cynergysystems.com Lorenzo Jimenez wrote: > Hi, > > I am trying to execute successfully "Your First EJB" EJB Tutorial from > Lomboz ( http://www.objectlearn.com/support/docs/firstEJB.jsp ) > I created successfull both the ejb and the client to test it. When I execute > the test program this is what I got: > > javax.naming.NamingException: NotFound:SampleEjb. Root exception is > org.omg.CORBA.OBJECT_NOT_EXIST vmcid: 0x0 minor code: 0 completed: No > at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:39) > at > sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:27) > at java.lang.reflect.Constructor.newInstance(Construc tor.java:274) > at > com.sybase.CORBA.iiop.Connection.createSystemExcep tion(Connection.java:5296) > at com.sybase.CORBA.iiop.Connection.invoke(Connection .java:3612) > at SessionManager._st_Session.lookup(_st_Session.java :72) > at com.sybase.ejb.NamingContext.lookup(NamingContext. java:705) > at javax.naming.InitialContext.lookup(InitialContext. java:347) > at com.testing.client.TestClient.getHome(TestClient.j ava:26) > at com.testing.client.TestClient.testBean(TestClient. java:48) > at com.testing.client.TestClient.main(TestClient.java :65) > > ¿Do I need to further configure the Package inside Jaguar's admin, so a > client app can access the ejb? > ¿Do Jaguar works only with Powerbuilder created ejbs? > > Please help me! > My boss is needing me to finish other EJB apps! > Thanks very much, > > Lorenzo Jiménez > > > > |
|
#3
| |||
| |||
| Thank for the reply. I used all Lomboz function, first to create the ejb bean and Lomboz generated Home, Local, LocalHome, Session, and Util classes. then to deploy to Jaguar. If Lomboz is not compatible with Jaguar, then what IDE can generate ejb classes correctly? Lorenzo "Dave Wolf" <dave.wolf@cynergysystems.com_nospam> wrote in message news:423b12a1$1@forums-1-dub... > EAserver supports normal EJB's. You need to do a bunch of checking around > for me. I have never used Lamboz. > > When you deployed the bean, did you generate skeletons and stubs? Did you > ask to have them compiled? How did you deploy them? Did you use the > wizard? Is the EJB "installed" in EAS as an installed package? In the > properties of the EJB what is its name? > > Dave Wolf > Cynergy Systems > http://www.cynergysystems.com > > Lorenzo Jimenez wrote: >> Hi, >> >> I am trying to execute successfully "Your First EJB" EJB Tutorial from >> Lomboz ( http://www.objectlearn.com/support/docs/firstEJB.jsp ) >> I created successfull both the ejb and the client to test it. When I >> execute the test program this is what I got: >> >> javax.naming.NamingException: NotFound:SampleEjb. Root exception is >> org.omg.CORBA.OBJECT_NOT_EXIST vmcid: 0x0 minor code: 0 completed: No >> at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method) >> at >> sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:39) >> at >> sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:27) >> at java.lang.reflect.Constructor.newInstance(Construc tor.java:274) >> at >> com.sybase.CORBA.iiop.Connection.createSystemExcep tion(Connection.java:5296) >> at com.sybase.CORBA.iiop.Connection.invoke(Connection .java:3612) >> at SessionManager._st_Session.lookup(_st_Session.java :72) >> at com.sybase.ejb.NamingContext.lookup(NamingContext. java:705) >> at javax.naming.InitialContext.lookup(InitialContext. java:347) >> at com.testing.client.TestClient.getHome(TestClient.j ava:26) >> at com.testing.client.TestClient.testBean(TestClient. java:48) >> at com.testing.client.TestClient.main(TestClient.java :65) >> >> ¿Do I need to further configure the Package inside Jaguar's admin, so a >> client app can access the ejb? >> ¿Do Jaguar works only with Powerbuilder created ejbs? >> >> Please help me! >> My boss is needing me to finish other EJB apps! >> Thanks very much, >> >> Lorenzo Jiménez >> >> >> |
|
#4
| |||
| |||
| Also I created a servlet with Lomboz in a Web Project and deploying to Jaguar worked ok. I included the servlet. So I think the problem is either: 1. how the application access the object in Jaguar, or, 2. the client needed a plugin or something extra to function. Thanks. Lorenzo package com.nacion; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.*; public class Servlet extends HttpServlet { private com.testing.session.TestSession lookupTestSession() { try { javax.naming.Context c = new javax.naming.InitialContext(); Object remote = c.lookup("Generated_by_XDoclet/TestSession"); com.testing.session.TestSessionHome rv = (com.testing.session.TestSessionHome) javax.rmi.PortableRemoteObject.narrow( remote, com.testing.session.TestSessionHome.class); return rv.create(); } catch(javax.naming.NamingException ne) { java.util.logging.Logger.getLogger(getClass().getN ame()).log(java.util.logging.Level.SEVERE,"excepti on caught" ,ne); throw new RuntimeException(ne); } catch(javax.ejb.CreateException ce) { java.util.logging.Logger.getLogger(getClass().getN ame()).log(java.util.logging.Level.SEVERE,"excepti on caught" ,ce); throw new RuntimeException(ce); } catch(java.rmi.RemoteException re) { java.util.logging.Logger.getLogger(getClass().getN ame()).log(java.util.logging.Level.SEVERE,"excepti on caught" ,re); throw new RuntimeException(re); } } protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); PrintWriter out = response.getWriter(); out.println("<html>"); out.println("<head>"); out.println("<title>Hello EJB World</title>"); out.println("</head>"); out.println("<body>"); out.println("<h1><b><center>EJB World</center></b></h1>"); out.println("<hr>"); try { com.testing.session.TestSession objeto; objeto = lookupTestSession(); out.println("<p>Message: " + objeto.helloWorld() ); } catch (Exception e) { out.println("Cannot lookup or execute EJB: " + e.getMessage()); } out.println("</body>"); out.println("</html>"); out.close(); } protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet(request, response); } } "Dave Wolf" <dave.wolf@cynergysystems.com_nospam> wrote in message news:423b12a1$1@forums-1-dub... > EAserver supports normal EJB's. You need to do a bunch of checking around > for me. I have never used Lamboz. > > When you deployed the bean, did you generate skeletons and stubs? Did you > ask to have them compiled? How did you deploy them? Did you use the > wizard? Is the EJB "installed" in EAS as an installed package? In the > properties of the EJB what is its name? > > Dave Wolf > Cynergy Systems > http://www.cynergysystems.com > > Lorenzo Jimenez wrote: >> Hi, >> >> I am trying to execute successfully "Your First EJB" EJB Tutorial from >> Lomboz ( http://www.objectlearn.com/support/docs/firstEJB.jsp ) >> I created successfull both the ejb and the client to test it. When I >> execute the test program this is what I got: >> >> javax.naming.NamingException: NotFound:SampleEjb. Root exception is >> org.omg.CORBA.OBJECT_NOT_EXIST vmcid: 0x0 minor code: 0 completed: No >> at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method) >> at >> sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:39) >> at >> sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:27) >> at java.lang.reflect.Constructor.newInstance(Construc tor.java:274) >> at >> com.sybase.CORBA.iiop.Connection.createSystemExcep tion(Connection.java:5296) >> at com.sybase.CORBA.iiop.Connection.invoke(Connection .java:3612) >> at SessionManager._st_Session.lookup(_st_Session.java :72) >> at com.sybase.ejb.NamingContext.lookup(NamingContext. java:705) >> at javax.naming.InitialContext.lookup(InitialContext. java:347) >> at com.testing.client.TestClient.getHome(TestClient.j ava:26) >> at com.testing.client.TestClient.testBean(TestClient. java:48) >> at com.testing.client.TestClient.main(TestClient.java :65) >> >> ¿Do I need to further configure the Package inside Jaguar's admin, so a >> client app can access the ejb? >> ¿Do Jaguar works only with Powerbuilder created ejbs? >> >> Please help me! >> My boss is needing me to finish other EJB apps! >> Thanks very much, >> >> Lorenzo Jiménez >> >> >> |
|
#5
| |||
| |||
| I have never used Lomboz. Does it have deployment integration into EAServer? Dave Wolf Cynergy Systems http://www.cynergysystems.com Lorenzo Jimenez wrote: > Thank for the reply. > > I used all Lomboz function, first to create the ejb bean and Lomboz > generated Home, Local, LocalHome, Session, and Util classes. then to deploy > to Jaguar. > > If Lomboz is not compatible with Jaguar, then what IDE can generate ejb > classes correctly? > > Lorenzo > > > "Dave Wolf" <dave.wolf@cynergysystems.com_nospam> wrote in message > news:423b12a1$1@forums-1-dub... > >>EAserver supports normal EJB's. You need to do a bunch of checking around >>for me. I have never used Lamboz. >> >>When you deployed the bean, did you generate skeletons and stubs? Did you >>ask to have them compiled? How did you deploy them? Did you use the >>wizard? Is the EJB "installed" in EAS as an installed package? In the >>properties of the EJB what is its name? >> >>Dave Wolf >>Cynergy Systems >>http://www.cynergysystems.com >> >>Lorenzo Jimenez wrote: >> >>>Hi, >>> >>>I am trying to execute successfully "Your First EJB" EJB Tutorial from >>>Lomboz ( http://www.objectlearn.com/support/docs/firstEJB.jsp ) >>>I created successfull both the ejb and the client to test it. When I >>>execute the test program this is what I got: >>> >>>javax.naming.NamingException: NotFound:SampleEjb. Root exception is >>>org.omg.CORBA.OBJECT_NOT_EXIST vmcid: 0x0 minor code: 0 completed: No >>> at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method) >>> at >>>sun.reflect.NativeConstructorAccessorImpl.newIn stance(NativeConstructorAccessorImpl.java:39) >>> at >>>sun.reflect.DelegatingConstructorAccessorImpl.n ewInstance(DelegatingConstructorAccessorImpl.java: 27) >>> at java.lang.reflect.Constructor.newInstance(Construc tor.java:274) >>> at >>>com.sybase.CORBA.iiop.Connection.createSystemEx ception(Connection.java:5296) >>> at com.sybase.CORBA.iiop.Connection.invoke(Connection .java:3612) >>> at SessionManager._st_Session.lookup(_st_Session.java :72) >>> at com.sybase.ejb.NamingContext.lookup(NamingContext. java:705) >>> at javax.naming.InitialContext.lookup(InitialContext. java:347) >>> at com.testing.client.TestClient.getHome(TestClient.j ava:26) >>> at com.testing.client.TestClient.testBean(TestClient. java:48) >>> at com.testing.client.TestClient.main(TestClient.java :65) >>> >>>¿Do I need to further configure the Package inside Jaguar's admin, so a >>>client app can access the ejb? >>>¿Do Jaguar works only with Powerbuilder created ejbs? >>> >>>Please help me! >>>My boss is needing me to finish other EJB apps! >>>Thanks very much, >>> >>>Lorenzo Jiménez >>> >>> >>> > > |
|
#6
| |||
| |||
| Lorenzo Jimenez wrote: > Thank for the reply. > > I used all Lomboz function, first to create the ejb bean and Lomboz > generated Home, Local, LocalHome, Session, and Util classes. then to deploy > to Jaguar. > > If Lomboz is not compatible with Jaguar, then what IDE can generate ejb > classes correctly? > > Lorenzo > > > "Dave Wolf" <dave.wolf@cynergysystems.com_nospam> wrote in message > news:423b12a1$1@forums-1-dub... > >>EAserver supports normal EJB's. You need to do a bunch of checking around >>for me. I have never used Lamboz. >> >>When you deployed the bean, did you generate skeletons and stubs? Did you >>ask to have them compiled? How did you deploy them? Did you use the >>wizard? Is the EJB "installed" in EAS as an installed package? In the >>properties of the EJB what is its name? >> >>Dave Wolf >>Cynergy Systems >>http://www.cynergysystems.com >> >>Lorenzo Jimenez wrote: >> >>>Hi, >>> >>>I am trying to execute successfully "Your First EJB" EJB Tutorial from >>>Lomboz ( http://www.objectlearn.com/support/docs/firstEJB.jsp ) >>>I created successfull both the ejb and the client to test it. When I >>>execute the test program this is what I got: >>> >>>javax.naming.NamingException: NotFound:SampleEjb. Root exception is >>>org.omg.CORBA.OBJECT_NOT_EXIST vmcid: 0x0 minor code: 0 completed: No >>> at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method) >>> at >>>sun.reflect.NativeConstructorAccessorImpl.newIn stance(NativeConstructorAccessorImpl.java:39) >>> at >>>sun.reflect.DelegatingConstructorAccessorImpl.n ewInstance(DelegatingConstructorAccessorImpl.java: 27) >>> at java.lang.reflect.Constructor.newInstance(Construc tor.java:274) >>> at >>>com.sybase.CORBA.iiop.Connection.createSystemEx ception(Connection.java:5296) >>> at com.sybase.CORBA.iiop.Connection.invoke(Connection .java:3612) >>> at SessionManager._st_Session.lookup(_st_Session.java :72) >>> at com.sybase.ejb.NamingContext.lookup(NamingContext. java:705) >>> at javax.naming.InitialContext.lookup(InitialContext. java:347) >>> at com.testing.client.TestClient.getHome(TestClient.j ava:26) >>> at com.testing.client.TestClient.testBean(TestClient. java:48) >>> at com.testing.client.TestClient.main(TestClient.java :65) >>> >>>¿Do I need to further configure the Package inside Jaguar's admin, so a >>>client app can access the ejb? >>>¿Do Jaguar works only with Powerbuilder created ejbs? >>> >>>Please help me! >>>My boss is needing me to finish other EJB apps! >>>Thanks very much, >>> >>>Lorenzo Jiménez >>> >>> >>> > > Lomboz is good for a lot of servers but not for EAS. This is because you need to generate or write by yourself vendor specific deployment descriptors that lomboz does not for EAS. The only IDE that fully supports EAS is JBuilder in its Enterprise Edition or XDoclets but EAS they do not supports all features. What type of EJB components do you plan to use in your J2EE project ? (CMP, CMR, SSB, SFB, MDB etc.) If you plan to use CMP and CMP in your project and you can switch to an other J2EE server than DO IT. EAS is the slowist J2EE server (i've tested BEA, WebSphere, JBoss) if you use this components, but if plan to use CORBA objects in your project EAS is the right one.(or Borland App Server). Good luck Jan |
|
#7
| |||
| |||
| Yes, please read this with all the information needed http://www.mtbase.com/soporte/biblioteca/doc?id=10167 in spanish but with understandable images. http://easerver.codexchange.sybase.c...ver-Lomboz.htm Sybase EAServer File for Lomboz plugin to Eclipse Hope can help you, Regards, Lorenzo "Dave Wolf" <dave.wolf@cynergysystems.com_nospam> wrote in message news:423b8615$1@forums-1-dub... >I have never used Lomboz. Does it have deployment integration into >EAServer? > > Dave Wolf > Cynergy Systems > http://www.cynergysystems.com > > Lorenzo Jimenez wrote: >> Thank for the reply. >> >> I used all Lomboz function, first to create the ejb bean and Lomboz >> generated Home, Local, LocalHome, Session, and Util classes. then to >> deploy to Jaguar. >> >> If Lomboz is not compatible with Jaguar, then what IDE can generate ejb >> classes correctly? >> >> Lorenzo >> >> >> "Dave Wolf" <dave.wolf@cynergysystems.com_nospam> wrote in message >> news:423b12a1$1@forums-1-dub... >> >>>EAserver supports normal EJB's. You need to do a bunch of checking >>>around for me. I have never used Lamboz. >>> >>>When you deployed the bean, did you generate skeletons and stubs? Did >>>you ask to have them compiled? How did you deploy them? Did you use the >>>wizard? Is the EJB "installed" in EAS as an installed package? In the >>>properties of the EJB what is its name? >>> >>>Dave Wolf >>>Cynergy Systems >>>http://www.cynergysystems.com >>> >>>Lorenzo Jimenez wrote: >>> >>>>Hi, >>>> >>>>I am trying to execute successfully "Your First EJB" EJB Tutorial from >>>>Lomboz ( http://www.objectlearn.com/support/docs/firstEJB.jsp ) >>>>I created successfull both the ejb and the client to test it. When I >>>>execute the test program this is what I got: >>>> >>>>javax.naming.NamingException: NotFound:SampleEjb. Root exception is >>>>org.omg.CORBA.OBJECT_NOT_EXIST vmcid: 0x0 minor code: 0 completed: No >>>> at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native >>>> Method) >>>> at >>>> sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:39) >>>> at >>>> sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:27) >>>> at java.lang.reflect.Constructor.newInstance(Construc tor.java:274) >>>> at >>>> com.sybase.CORBA.iiop.Connection.createSystemExcep tion(Connection.java:5296) >>>> at com.sybase.CORBA.iiop.Connection.invoke(Connection .java:3612) >>>> at SessionManager._st_Session.lookup(_st_Session.java :72) >>>> at com.sybase.ejb.NamingContext.lookup(NamingContext. java:705) >>>> at javax.naming.InitialContext.lookup(InitialContext. java:347) >>>> at com.testing.client.TestClient.getHome(TestClient.j ava:26) >>>> at com.testing.client.TestClient.testBean(TestClient. java:48) >>>> at com.testing.client.TestClient.main(TestClient.java :65) >>>> >>>>¿Do I need to further configure the Package inside Jaguar's admin, so a >>>>client app can access the ejb? >>>>¿Do Jaguar works only with Powerbuilder created ejbs? >>>> >>>>Please help me! >>>>My boss is needing me to finish other EJB apps! >>>>Thanks very much, >>>> >>>>Lorenzo Jiménez >>>> >>>> >>>> >> |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.