Re: 1.5.3 is out, but what is so new?
Where is 1.5.3? Thanks, Khaled --- Ray Harrison [EMAIL PROTECTED] wrote: I think (though I may be mistaken) that they had to do a bit of re-write in anticipation of moving forward with the spec and in addition to that re-write they also took care of some bugs. The suggestion was that future releases would be a little more frequent. Hopefully so! --- Russell White [EMAIL PROTECTED] wrote: I am somewhat disapointed in the new release. My EJB 2.0 local interfaces are still not supported. Bummer. Still at least there are some bug fixes. __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com
RE: Orion Server with external webserver
Try the following context factory: h.put( Context.INITIAL_CONTEXT_FACTORY,com.evermind.server.rmi.RMIInitialContextFactory ); I have some sample clients that work OK with this. Good Luck, Khaled --- Fredrik Gusting (PAC) [EMAIL PROTECTED] wrote: Hi Thanks It still seems to be problems. java.lang.NoClassDefFoundError: javax/security/auth/login/LoginException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:199) at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:49) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:660) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250) at javax.naming.InitialContext.init(InitialContext.java:226) at javax.naming.InitialContext.(InitialContext.java:202) at se.ejb.Dispatcher.doGet(Dispatcher.java:53) at javax.servlet.http.HttpServlet.service(HttpServlet.java:244) at javax.servlet.http.HttpServlet.service(HttpServlet.java:336) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java:479) Do I have to configure orion or Tomcat for this kind of external webserver connections ?? Like security restrictions in Orion or something?? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 04, 2001 11:28 AM To: Orion-Interest Subject: AW: Orion Server with external webserver Hi, h.put(Context.PROVIDER_URL,ormi://localhost:80/time); Make sure that the RMI port is correct. The default is not 80, but 23791. Check your orion dir/config/rmi.xml file for the port setting. If nothing is specified, use 23791 (or nothing) instead of 80, like ormi://localhost:23791/time. (port 80 for http requests, while you're trying to make an ormi access on Orion). HTH, Tibor Hegyi webmiles AG Ridlerstr. 31b 80339 München Tel. 089/ 12469-461 Fax 089/ 12469 - 222 e-mail: [EMAIL PROTECTED] -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von Fredrik Gusting (PAC) Gesendet: Donnerstag, 4. Oktober 2001 09:38 An: Orion-Interest Betreff: Orion Server with external webserver Hi all I've trouble with my connection from my Tomcat webserver to Orion server. In tomcat have set upp a servlet which takes a request from a browser and then do a lookup for my orionserver that contains a small example of an entitybean that simple returns the current time. I've setup everything onmy local machine. Tomcat port 8080, and Orion port 8000. When I try to create my Initialcontext I get LoginException or something. Her is a part of my code public class Dispatcher extends HttpServlet { /**Initialize global variables*/ private static final String CONTENT_TYPE text/html; private Context context = null; public void init(ServletConfig config) throws ServletException { super.init(config); } /**Process the HTTP Get request*/ public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { Properties h = new Properties(); h.put(Context.INITIAL_CONTEXT_FACTORY,com.evermind.server.App licationClientInitialContextFactory); h.put(Context.PROVIDER_URL,ormi://localhost:80/time); h.put(Context.SECURITY_PRINCIPAL, admin); h.put(Context.SECURITY_CREDENTIALS, 123); Context context = new InitialContext(h); // HERE IT CRASHES Object ref (PerfectTimeHome)context.lookup(PerfectTimeHome); Do I have to configure orion for login, how??? Has anybody got an external webserver to work with orion. Sample of that please! Regards Fredrik Fredrik Gusting(mailto: [EMAIL PROTECTED]) System Designer Ericsson Process Application Consulting Kistagången 4 Phone: +46 8 568 63 189 SE-125 82 Kista Mobile: +46 70 52 63 189 __ Do You Yahoo!? NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1
RE: Which JAR do I need to run an external client app
All you need is the orion.jar. Here is an example client: package com.test; import java.rmi.RemoteException; import java.util.*; import javax.naming.InitialContext; import javax.naming.NamingException; import javax.ejb.EJBException; import javax.ejb.FinderException; import javax.rmi.PortableRemoteObject; import javax.naming.*; public class HelloWorldEJBClient { public HelloWorldEJBClient() { try { Properties env = new Properties(); env.put( Context.INITIAL_CONTEXT_FACTORY,com.evermind.server.rmi.RMIInitialContextFactory ); env.put( Context.PROVIDER_URL, ormi://localhost/HelloApp ); env.put( Context.SECURITY_PRINCIPAL, admin ); env.put(Context.SECURITY_CREDENTIALS, password ); InitialContext ic = new InitialContext( env ); HelloWorldHome home = (HelloWorldHome)ic.lookup( HelloWorld ); HelloWorld remote = home.create(); String str = remote.printHelloWorld(); System.out.println(str); } catch (Exception except) { except.printStackTrace(); } } public static void main(String[] argv) { HelloWorldEJBClient client = new HelloWorldEJBClient(); } } Good Luck, Khaled --- David Libke [EMAIL PROTECTED] wrote: Peter, The problem you are experiencing is because the JNDI locations need to be changed when the location of the client jar is changed -- namely change 'java:comp/env/' to 'java:hello/client/' or some other path that is appropriate. 'java:comp/env' is reserved for the application server's environment resources; thus, a different JNDI entry must be created for your application client when it is outside of the server. Good luck on synchronizing all the xml entry names. Dave -Original Message- From: Cugier (extern) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 18, 2001 11:18 AM To: Orion-Interest Subject: Which JAR do I need to run an external client app Hello, I have the following problem. I created a Java Client application that accesses an EJB. I start the client with the following batch file. set CLASSPATH=H:\oc4j\j2ee\home\ejb.jar;.;H:\oc4j\j2ee\home\orion.jar;H:\oc4j\j2 ee\home\jndi.jar java HelloClient where H:\oc4j\j2ee\home ist the directory where I installed the OC4J/Orion Server on my computer. When I start the client with this batch file everything works fine. As I don't want to install OC4J/Orion on each PC where the client should run I copied the three JAR file that ar listed in the CLASSPATH from H:\oc4j\j2ee\home to D:\ExtraJARs. I changed the batch file to set CLASSPATH=D:\ExtraJARs\ejb.jar;.;D:\ExtraJARs\orion.jar;D:\ExtraJARs\jndi.ja r java HelloClient After the change I get the following error javax.naming.NamingException: java:comp/env namespace is only available from within a J2EE component at com.sun.enterprise.naming.java.javaURLContext.getComponentContext(../../src/ share/com/sun/enterprise/naming/java/javaURLContext.java:392) at com.sun.enterprise.naming.java.javaURLContext.lookup(../../src/share/com/sun /enterprise/naming/java/javaURLContext.java:51) at javax.naming.InitialContext.lookup(Unknown Source) at HelloClient.main(HelloClient.java:9) Can anyone explain why it works when I use the three JARs from the H:\oc4j\j2ee\home directory but doesn't work when I try to use the copied JAR files. Thanks Peter __ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/
RE: ORacle db string over 4000 chars
I remember seeing some thing like this with Oracle8.1.6 that got fixed in 8.1.7. Khaled --- Nusairat, Joseph F. [EMAIL PROTECTED] wrote: I do realise oracle has 4000 varchar limits ... but i have seen other systems get around this by using LONG or LONG RAW data types instead however when i use those i still have it bug out at 4000 chars Joseph Faisal Nusairat, Sr. Project Manager WorldCom tel: 614-723-4232 pager: 888-452-0399 textmsg: [EMAIL PROTECTED] -Original Message- From: Nusairat, Joseph F. [mailto:[EMAIL PROTECTED]] Sent: Friday, September 07, 2001 11:39 AM To: Orion-Interest Subject: ORacle db string over 4000 chars Does anyone know how to handle this oracle 8.x u can have a varchar set to 4k ... sooo to do more than that i tried using a long and a long raw and inserting it that way ... however whenver i go over 4000 chars it bombs any one come across this problem? Joseph Faisal Nusairat, Sr. Project Manager WorldCom tel: 614-723-4232 pager: 888-452-0399 textmsg: [EMAIL PROTECTED] __ Do You Yahoo!? Get email alerts NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com