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 >