Re: Werent current caller
Hello. By the message, I would assume (correct me), that you have a parent/child relation. I may _guess_, that you are trying to use the parent to set something in the child (like the parent ID). If this is the case, you might _need_ to set the parent to be reentrant=true. That helped me. My code required to create the child with a parameter like: (XML_Tag)entityContext.getEJBObject() so that the child knows it's parent... That requires reentrant=true. It _may_ be a shot in the dark, because I've not come upon this exception, but rather some other (can't remember which though). However, this is no-cost test and is worth trying. Lachezar. - Original Message - From: Jeff Lowcock [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Saturday, April 06, 2002 9:56 AM Subject: RE: Werent current caller This is the stack trace from the server. java.lang.InternalError: Werent current caller, server stacktrace (to disable this message, use -Dejb.assert=false at startup): java.lang.Throwable: Werent current caller void NetNwkEjb_EntityBeanWrapper41.setEntityBean(javax.ejb.EntityBean) void com.evermind.server.ejb.EntityEJBHome.passivateAndRelease(com.evermind.serve r.ejb.EvermindEntityContext, boolean) void com.evermind.server.ejb.EntityEJBObject.releaseContext(boolean) com.neowurks.network.ejb.NetNwkEjb NetNwkEjbHome_EntityHomeWrapper57.create(long, java.lang.String, java.lang.String) java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) void com.evermind.server.rmi.RMICallHandler.run(java.lang.Thread) void com.evermind.util.ThreadPoolThread.run() I've also received a mail that seems to indicate that the responder has only seen this in the oracle version of orion, which is the version I'm using. However OTN has been unavailable for the last day or so and I've not been able to check if there is any information there as well. This exception is being raised when I've successfully created the parent CMP and then try and create the child CMP, which then throws this. I'm working now to produce a focused piece of code to illustrate the client and server side without all of the other application baggage. -Original Message- From: Scott Farquhar [SMTP:[EMAIL PROTECTED]] Sent: 06 April 2002 02:05 To: Orion-Interest Subject: Re: Werent current caller Can you post the stack trace? Jeff Lowcock wrote: I'm getting this exception and message raised in the server when I'm attempting to create a new CMP instance. I cannot find any documentation on this message and way too much on the exception java.lang.InternalError, can anyone direct me to a source where I can identify possible sources of this error and where I'm going wrong. I've searched the Orion support site and the only mails I can find are for 0.9.4 and 0.9.6 versions, and none fo these mails actually describe the conditions I have. where to now? -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World
BMP - max-instances - orion 1.5.4
Hello, We have an application where we are loading a consequent number of beans (BMP) from the database. To avoid opening to many connections to the database, we have set two bmp entities specification in the orion-ejb-jar.xml like this : enterprise-beans entity-deployment name=TheFirstBean copy-by-value=false max-instances=40 location=TheFirstBean wrapper=EJBFirstHome_EntityHomeWrapper4 table=TheFirstBean instance-cache-timeout=10 pool-cache-timeout=10 /entity-deployment entity-deployment name=TheSecondBean copy-by-value=false max-instances=40 location=TheSecondBean wrapper=EJBSecondHome_EntityHomeWrapper5 table=TheSecondBean instance-cache-timeout=20 pool-cache-timeout=20 /entity-deployment ... I was thinking that the number of instance will never exceed 40 but actually when we ran the application we reached quickly a number exceeding this parameter for each bean. Moreover, there is a fluctuating number of bean instances pooled which never exceed 20. I was wondering what is the policy applied to a bean in the pooled state which reached its timeout. We would like to release each connection after a bean is loaded. Is there any clean solution ? Any help will be appreciated. Gautier Koscielny
How can I make orion stop caching my EBs?
Hello, I have an application that uses some EBs. The underlying data on which the EBs are mapped is modified by an external application. Orion caches the entity beans, so I don't see the DB modifications immediately in the beans. How can I make orion stop caching my EBs? Thanks, Cristian
RE: Werent current caller
Thanks for the hint, I'll give this a go. You must be intuitive as this parent child setting is what I'm trying to do, although I've also tried extracting the parent ID on the client side and then setting (via create) the parent key in the chils record as it's being created and this also throws the same exception. However OC4J may also be trying to reference the parent during this operation so the test is still worth conducting. I'll let you know the result. -Original Message- From: Lachezar Dobrev [SMTP:[EMAIL PROTECTED]] Sent: 08 April 2002 09:06 To: Orion-Interest Subject:Re: Werent current caller Hello. By the message, I would assume (correct me), that you have a parent/child relation. I may _guess_, that you are trying to use the parent to set something in the child (like the parent ID). If this is the case, you might _need_ to set the parent to be reentrant=true. That helped me. My code required to create the child with a parameter like: (XML_Tag)entityContext.getEJBObject() so that the child knows it's parent... That requires reentrant=true. It _may_ be a shot in the dark, because I've not come upon this exception, but rather some other (can't remember which though). However, this is no-cost test and is worth trying. Lachezar. - Original Message - From: Jeff Lowcock [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Saturday, April 06, 2002 9:56 AM Subject: RE: Werent current caller This is the stack trace from the server. java.lang.InternalError: Werent current caller, server stacktrace (to disable this message, use -Dejb.assert=false at startup): java.lang.Throwable: Werent current caller void NetNwkEjb_EntityBeanWrapper41.setEntityBean(javax.ejb.EntityBean) void com.evermind.server.ejb.EntityEJBHome.passivateAndRelease(com.evermind.serve r.ejb.EvermindEntityContext, boolean) void com.evermind.server.ejb.EntityEJBObject.releaseContext(boolean) com.neowurks.network.ejb.NetNwkEjb NetNwkEjbHome_EntityHomeWrapper57.create(long, java.lang.String, java.lang.String) java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) void com.evermind.server.rmi.RMICallHandler.run(java.lang.Thread) void com.evermind.util.ThreadPoolThread.run() I've also received a mail that seems to indicate that the responder has only seen this in the oracle version of orion, which is the version I'm using. However OTN has been unavailable for the last day or so and I've not been able to check if there is any information there as well. This exception is being raised when I've successfully created the parent CMP and then try and create the child CMP, which then throws this. I'm working now to produce a focused piece of code to illustrate the client and server side without all of the other application baggage. -Original Message- From: Scott Farquhar [SMTP:[EMAIL PROTECTED]] Sent: 06 April 2002 02:05 To: Orion-Interest Subject: Re: Werent current caller Can you post the stack trace? Jeff Lowcock wrote: I'm getting this exception and message raised in the server when I'm attempting to create a new CMP instance. I cannot find any documentation on this message and way too much on the exception java.lang.InternalError, can anyone direct me to a source where I can identify possible sources of this error and where I'm going wrong. I've searched the Orion support site and the only mails I can find are for 0.9.4 and 0.9.6 versions, and none fo these mails actually describe the conditions I have. where to now? -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World msg18676/bin0.bin Description: application/ms-tnef
Problem to deploy a application in a war file.
Hi everyone I am new in Orion Server, When i make a manual deploy of war, i add to application.xml web-module id=atlassian path=../application-deployments/atlassian.war / then web-app application=default name=atlassian root=/admin / well, if i put frostis.cf.jcyl.es:7780/admin application does not run. if i put frostis.cf.jcyl.es:7780/admin/default.jsp Orion server shows the next messages java.io.FileNotFoundException: /opt/oracle/u02/app/oracle/product/ias9i/j2ee/home/default-web-app/admin/default.jsp (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.open(Compiled Code) at java.io.FileInputStream.(Compiled Code) at oracle.jsp.provider.JspFilesystemResource.fromStream(JspFilesystemResource.java:153) at oracle.jsp.provider.JspFilesystemResource.fromReader(JspFilesystemResource.java:169) at oracle.jsp.app.JspAppLoader.fromReader(JspAppLoader.java:1851) at oracle.jsp.app.JspAppLoader.reloadPage(JspAppLoader.java:1107) at oracle.jsp.app.JspAppLoader.loadPage(JspAppLoader.java:1005) at oracle.jsp.app.JspAppLoader.getPage(JspAppLoader.java:671) at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:337) at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259) at oracle.jsp.JspServlet.internalService(Compiled Code) at oracle.jsp.JspServlet.service(JspServlet.java:148) at javax.servlet.http.HttpServlet.service(HttpServlet.java:336) at com.evermind.server.http.ServletRequestDispatcher.invoke(Compiled Code) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:170) at com.evermind.server.http.HttpRequestHandler.processRequest(Compiled Code) at com.evermind.server.http.HttpRequestHandler.run(Compiled Code) at com.evermind.util.ThreadPoolThread.run(Compiled Code) Any ideas? Thanks. P.D. do you know any comercial or free tools to admin Orion server? --- Javier Fernández Pérez Servicio de Informática Corporativa D.G. de Telecomunicaciones y Transportes Consejería de Fomento - Junta de Castilla y León Rigoberto Cortejoso, 14. 47014 Valladolid (Spain) Telf. 983418958 e-mail: [EMAIL PROTECTED] ---
Re: How can I make orion stop caching my EBs?
Hi Orion-Interest Use attribute exclusive-write-access=false in orion-ejb-jar.xml for your EB. Monday, April 08, 2002, 2:35:52 PM, you wrote: CD Hello, CD I have an application that uses some EBs. The underlying data on which the EBs are mapped is modified by an external application. CD Orion caches the entity beans, so I don't see the DB modifications immediately in the beans. CD How can I make orion stop caching my EBs? CD Thanks, CD Cristian -- Sergey G. Aslanov, CBOSS Group, Web-technologies department mailto:[EMAIL PROTECTED] tel: +7 095 7555655
[no subject]
Hi everybody, Could anyone tell me why I would get the 403 directory not allowed to be written error when I tried to run the addressbook example in the Orion CMP primer tutorial? I appreciate your help. __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/
Re: How can I make orion stop caching my EBs?
Answer: orion-ejb-jar.xml entity-deployment . exclusive-write-access=false ... Lachezar - Original Message - From: Cristian Donciulescu To: Orion-Interest Sent: Monday, April 08, 2002 12:35 PM Subject: How can I make orion stop caching my EBs? Hello, I have an application that uses some EBs. The underlying data on which the EBs are mapped is modified by an external application. Orion caches the entity beans, so I don't see the DB modifications immediately in the beans. How can I make orion stop caching my EBs? Thanks, Cristian
orion example news app
Subject: orion example news app From: alt.cybercafes [EMAIL PROTECTED] === Just setup orion example news app and was wondering what the default username and password login into the application.?
SV: Taglib + jsp:include + sendRedirect does not work?
First complete the tag library and then use jsp:include. But that will not do what I want. I want the parsed, compiled and included file be sent as a mail, so it must be in the body of the sendMail-tag. /Anders Callertun Net Entertainment AB [EMAIL PROTECTED] Hammarby Kajväg 14 phone +46-8-55 69 67 12 120 30 STOCKHOLM fax +46-8-55 69 67 07 icq 384204 cell +46 70 486 77 39 -Ursprungligt meddelande- Från: prasanth sb [mailto:[EMAIL PROTECTED]] Skickat: den 5 april 2002 16:46 Till: Orion-Interest Ämne: Re: Taglib + jsp:include + sendRedirect does not work? Hi Anders, First complete the tag library and then use jsp:include. util:sendMail from=[EMAIL PROTECTED] to=[EMAIL PROTECTED] subject=testmail /util:sendMail jsp:include page=/templates/smalltext.txt / thanks, Prasanth From: Anders Callertun [EMAIL PROTECTED] Reply-To: Orion-Interest [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Subject: Taglib + jsp:include + sendRedirect does not work? Date: Tue, 2 Apr 2002 17:31:34 +0200 The following jsp-file generates this Exception: java.lang.IllegalStateException: Response has already been committed, be sure not to write to the OutputStream or to trigger a commit due to any other action before calling this method. test.jsp-- %@taglib uri=utiltags prefix=util % util:sendMail from=[EMAIL PROTECTED] to=[EMAIL PROTECTED] subject=testmail jsp:include page=/templates/smalltext.txt / /util:sendMail % response.sendRedirect(http://www.google.com/;); % -- If I instead of the jsp:include tag, inserts the textfile in the jsp-page, it works. I've tried other taglibs and used a jsp:include for the body, for both Orion 1.5.2 and 1.5.3 and I get the same error. Am I doing something wrong? Is it Orion? Or is this not a valid thing to do? Thanks, Anders _ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com
RE: Problem to deploy a application in a war file.
try changing default.jsp to index.jsp, or change the config file where you specify the initial page. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Monday, April 08, 2002 7:12 AM To: Orion-Interest Subject: Problem to deploy a application in a war file. Hi everyone I am new in Orion Server, When i make a manual deploy of war, i add to application.xml web-module id=atlassian path=../application-deployments/atlassian.war / then web-app application=default name=atlassian root=/admin / well, if i put frostis.cf.jcyl.es:7780/admin application does not run. if i put frostis.cf.jcyl.es:7780/admin/default.jsp Orion server shows the next messages java.io.FileNotFoundException: /opt/oracle/u02/app/oracle/product/ias9i/j2ee/home/default-web-app/admin/def ault.jsp (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.open(Compiled Code) at java.io.FileInputStream.(Compiled Code) at oracle.jsp.provider.JspFilesystemResource.fromStream(JspFilesystemResource.j ava:153) at oracle.jsp.provider.JspFilesystemResource.fromReader(JspFilesystemResource.j ava:169) at oracle.jsp.app.JspAppLoader.fromReader(JspAppLoader.java:1851) at oracle.jsp.app.JspAppLoader.reloadPage(JspAppLoader.java:1107) at oracle.jsp.app.JspAppLoader.loadPage(JspAppLoader.java:1005) at oracle.jsp.app.JspAppLoader.getPage(JspAppLoader.java:671) at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:337) at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259) at oracle.jsp.JspServlet.internalService(Compiled Code) at oracle.jsp.JspServlet.service(JspServlet.java:148) at javax.servlet.http.HttpServlet.service(HttpServlet.java:336) at com.evermind.server.http.ServletRequestDispatcher.invoke(Compiled Code) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletReq uestDispatcher.java:170) at com.evermind.server.http.HttpRequestHandler.processRequest(Compiled Code) at com.evermind.server.http.HttpRequestHandler.run(Compiled Code) at com.evermind.util.ThreadPoolThread.run(Compiled Code) Any ideas? Thanks. P.D. do you know any comercial or free tools to admin Orion server? --- Javier Fernández Pérez Servicio de Informática Corporativa D.G. de Telecomunicaciones y Transportes Consejería de Fomento - Junta de Castilla y León Rigoberto Cortejoso, 14. 47014 Valladolid (Spain) Telf. 983418958 e-mail: [EMAIL PROTECTED] ---
Re: [orion-interest]CMP/BMP and standard JDBC, speed is of essence
On Sun, Apr 07, 2002 at 01:11:37PM -0700, Jeff Schnitzer wrote: Irrespective of who may be a smarter developer, I can guarantee you that I know a *lot* more about *my* specific business logic than Karl or Magnus. Furthermore, Karl and Magnus are for the most part just implementing a specification produced by a committee of labcoats dedicated to a lowest-common-denominator set of features that IBM, BEA, Borland, Sybase, the rest of the implementers can agree to. The absence of ORDER BY in EJB-QL and the lack of a standard PK generation mechanism make me seriously wonder if any of the people writing the EJB spec have ever used it to implement a real-world application. Forgive me, but what about the case where you just set the prim-key-class to be java.lang.Object and don't specify a managed primary key field in your ejb-jar.xml file? While that's not the world's most advanced method for automatically generating primary keys, it's there, and it does work Of course, I have no idea how to refer to this autogenerated primary key using EJB-QL, but that's beside the point ;) Cheers, Simon -- Real Programmers don't play tennis, or any other sport which requires you to change clothes. Mountain climbing is OK, and Real Programmers wear their climbing boots to work in case a mountain should suddenly spring up in the middle of the computer room.
RE:
HI, I have been trying to run this example too with the same error...seems like the users are not set up correctly or something because it isn't allowing anyone in. I wish I knew the problem too! If you come up with something, let us all know! Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Manli Chan Sent: Monday, April 08, 2002 8:03 AM To: Orion-Interest Subject: Hi everybody, Could anyone tell me why I would get the 403 directory not allowed to be written error when I tried to run the addressbook example in the Orion CMP primer tutorial? I appreciate your help. __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/
RE: Taglib + jsp:include + sendRedirect does not work?
the jsp:include action page has access to the JspWriter object only (i.e. serves content), which gets thrown away /throws exception when you do a sendRedirect [you are telling the server not to serve any content, instead go to a different page; technically, sendRedirect causes the server to send a HTTP 302 message to the client telling it that the resource has moved to the new URL, and the client/browser connects to it] You have to use a different mechanism to build the content of your email message, e.g. a bean. -Original Message- From: Anders Callertun [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 8:12 AM To: Orion-Interest Subject: SV: Taglib + jsp:include + sendRedirect does not work? First complete the tag library and then use jsp:include. But that will not do what I want. I want the parsed, compiled and included file be sent as a mail, so it must be in the body of the sendMail-tag. /Anders Callertun Net Entertainment AB [EMAIL PROTECTED] Hammarby Kajväg 14 phone +46-8-55 69 67 12 120 30 STOCKHOLM fax +46-8-55 69 67 07 icq 384204 cell +46 70 486 77 39 -Ursprungligt meddelande- Från: prasanth sb [mailto:[EMAIL PROTECTED]] Skickat: den 5 april 2002 16:46 Till: Orion-Interest Ämne: Re: Taglib + jsp:include + sendRedirect does not work? Hi Anders, First complete the tag library and then use jsp:include. util:sendMail from=[EMAIL PROTECTED] to=[EMAIL PROTECTED] subject=testmail /util:sendMail jsp:include page=/templates/smalltext.txt / thanks, Prasanth From: Anders Callertun [EMAIL PROTECTED] Reply-To: Orion-Interest [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Subject: Taglib + jsp:include + sendRedirect does not work? Date: Tue, 2 Apr 2002 17:31:34 +0200 The following jsp-file generates this Exception: java.lang.IllegalStateException: Response has already been committed, be sure not to write to the OutputStream or to trigger a commit due to any other action before calling this method. test.jsp-- %@taglib uri=utiltags prefix=util % util:sendMail from=[EMAIL PROTECTED] to=[EMAIL PROTECTED] subject=testmail jsp:include page=/templates/smalltext.txt / /util:sendMail % response.sendRedirect(http://www.google.com/;); % -- If I instead of the jsp:include tag, inserts the textfile in the jsp-page, it works. I've tried other taglibs and used a jsp:include for the body, for both Orion 1.5.2 and 1.5.3 and I get the same error. Am I doing something wrong? Is it Orion? Or is this not a valid thing to do? Thanks, Anders _ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com
[no subject]
Hi , I have a problem with InterBase and Orion. When I am trying to make a connection to a database, I receive : interbase.interclient.CommunicationException: [interclient] Communication error: A socket exception occurred while trying to establish a socket connection to server localhost. The message of the SocketException is Connection refused: connect. See API reference for exception interbase.interclient.CommunicationException Could somebody help me , please ?! By __ Do you want a free e-mail for life ? Get it at http://www.clujnapoca.ro/
ClassCastException while doing REMOTE ejb lookup from a web module
Hi, I am getting a ClassCastException when I try to narrow a lookup on a remote stateless session bean from a jsp page. My configuration is orion 1.5.4 with an application for the remote stateless session bean and an application for the web module. For testing purposes, I am running under the same instance of orion. Below is a snippet of code from the jsp page accessing the remote ejb. % KBKTestHome kbkHome = null; KBKTest kbkTest = null; Hashtable env = new Hashtable(); Context jndi = null; env.put(Context.INITIAL_CONTEXT_FACTORY, com.evermind.server.rmi.RMIInitialContextFactory); env.put(Context.PROVIDER_URL, ormi://localhost:23809/kbk-test-application); env.put(javax.naming.Context.SECURITY_PRINCIPAL, admin); env.put(javax.naming.Context.SECURITY_CREDENTIALS, 123); jndi = new InitialContext(env); kbkHome=(KBKTestHome)PortableRemoteObject.narrow( jndi.lookup(ejb/test),KBKTestHome.class); kbkTest = kbkHome.create(); String timeIs = kbkTest.getTime(); % I have modified my orion-application.xml file for the remote ejb to allow read and write namespace access to group RMI. I have also modified my principals.xml file for the remote ejb to give the group RMI rmi:login permissions. I beleive I am finding the home interface to the remote ejb successfully, but can't seem to cast it appropriately. I searched the mailing list archives and found a recent reference to what appears to be a similar problem (http://www.mail-archive.com/orion- [EMAIL PROTECTED]/msg17468.html) However, I did not find a resolution to the problem. Any help is appreciated. Kent Kvarfordt
Re: Problem to deploy a application in a war file.
[EMAIL PROTECTED] wrote: P.D. do you know any comercial or free tools to admin Orion server? Whilst not a full administration suite, we provide tools that make working with Orion easier. http://www.atlassian.com/software/tools/ Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World
Re: ClassCastException while doing REMOTE ejb lookup from a web module
Most often this is caused by having a two different compiled versions of your class. Ensure that you have only one copy of the class available to your web-application. If you are using web ejb in the same container, then you can access the classes from the ejb layer in your web app. This document may help you understand where to put your classes: http://kb.atlassian.com/content/atlassian/howto/classloaders.jsp Cheers, Scott [EMAIL PROTECTED] wrote: Hi, I am getting a ClassCastException when I try to narrow a lookup on a remote stateless session bean from a jsp page. My configuration is orion 1.5.4 with an application for the remote stateless session bean and an application for the web module. For testing purposes, I am running under the same instance of orion. Below is a snippet of code from the jsp page accessing the remote ejb. % KBKTestHome kbkHome = null; KBKTest kbkTest = null; Hashtable env = new Hashtable(); Context jndi = null; env.put(Context.INITIAL_CONTEXT_FACTORY, com.evermind.server.rmi.RMIInitialContextFactory); env.put(Context.PROVIDER_URL, ormi://localhost:23809/kbk-test-application); env.put(javax.naming.Context.SECURITY_PRINCIPAL, admin); env.put(javax.naming.Context.SECURITY_CREDENTIALS, 123); jndi = new InitialContext(env); kbkHome=(KBKTestHome)PortableRemoteObject.narrow( jndi.lookup(ejb/test),KBKTestHome.class); kbkTest = kbkHome.create(); String timeIs = kbkTest.getTime(); % I have modified my orion-application.xml file for the remote ejb to allow read and write namespace access to group RMI. I have also modified my principals.xml file for the remote ejb to give the group RMI rmi:login permissions. I beleive I am finding the home interface to the remote ejb successfully, but can't seem to cast it appropriately. I searched the mailing list archives and found a recent reference to what appears to be a similar problem (http://www.mail-archive.com/orion- [EMAIL PROTECTED]/msg17468.html) However, I did not find a resolution to the problem. Any help is appreciated. Kent Kvarfordt -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World
RE: ClassCastException while doing REMOTE ejb lookup from a web module
Hi, I had a similar problem, and found the post you mentioned. I followed up with Ashok but apparently he is an OC4J developer and i dont think it has been fixed in Orion :( Regards Ryan -Original Message- From: [EMAIL PROTECTED] To: Orion-Interest Sent: 9/04/2002 7:35 AM Subject: ClassCastException while doing REMOTE ejb lookup from a web module Hi, I am getting a ClassCastException when I try to narrow a lookup on a remote stateless session bean from a jsp page. My configuration is orion 1.5.4 with an application for the remote stateless session bean and an application for the web module. For testing purposes, I am running under the same instance of orion. Below is a snippet of code from the jsp page accessing the remote ejb. % KBKTestHome kbkHome = null; KBKTest kbkTest = null; Hashtable env = new Hashtable(); Context jndi = null; env.put(Context.INITIAL_CONTEXT_FACTORY, com.evermind.server.rmi.RMIInitialContextFactory); env.put(Context.PROVIDER_URL, ormi://localhost:23809/kbk-test-application); env.put(javax.naming.Context.SECURITY_PRINCIPAL, admin); env.put(javax.naming.Context.SECURITY_CREDENTIALS, 123); jndi = new InitialContext(env); kbkHome=(KBKTestHome)PortableRemoteObject.narrow( jndi.lookup(ejb/test),KBKTestHome.class); kbkTest = kbkHome.create(); String timeIs = kbkTest.getTime(); % I have modified my orion-application.xml file for the remote ejb to allow read and write namespace access to group RMI. I have also modified my principals.xml file for the remote ejb to give the group RMI rmi:login permissions. I beleive I am finding the home interface to the remote ejb successfully, but can't seem to cast it appropriately. I searched the mailing list archives and found a recent reference to what appears to be a similar problem (http://www.mail-archive.com/orion- [EMAIL PROTECTED]/msg17468.html) However, I did not find a resolution to the problem. Any help is appreciated. Kent Kvarfordt