Just to be curious.
Why do you want to connect from a (some time ago) 6 times slower jsp/servlet
engine to orion instead of using orion directly?

Jens

| -----Original Message-----
| From: [EMAIL PROTECTED]
| [mailto:[EMAIL PROTECTED]]On Behalf Of Fredrik
| Gusting (PAC)
| Sent: Thursday, October 04, 2001 5:12 PM
| To: Orion-Interest
| Subject: RE: Orion Server with external webserver
|
|
|
|
| Hi
|
| The generated principes.xml (in
| <orion>/application-deployments/time)is empty though but that
| should be empty i think. Ther is nothing I can do about it.
|
| My principles.xml in <orion>/config.
| looks like this. This should be correct or ?
|
| <?xml version="1.0"?>
| <!DOCTYPE principals PUBLIC "//Evermind - Orion Principals//"
| "http://www.orionserver.com/dtds/principals.dtd";>
|
| <principals>
|       <groups>
|               <group name="administrators">
|                       <description>administrators</description>
|                       <permission name="administration" />
|                       <permission
| name="com.evermind.server.AdministrationPermission" />
|               </group>
|               <group name="guests">
|                       <description>guests</description>
|               </group>
|               <group name="users">
|                       <description>users</description>
|                       <permission name="rmi:login" />
|                       <permission
| name="com.evermind.server.rmi.RMIPermission" />
|               </group>
|       </groups>
|       <users>
|               <user username="admin" password="123">
|                       <description>The default administrator</description>
|                       <group-membership group="administrators" />
|                       <group-membership group="guests" />
|                       <group-membership group="users" />
|               </user>
|               <user username="user" password="456" deactivated="true">
|                       <description>The default user</description>
|                       <group-membership group="guests" />
|                       <group-membership group="users" />
|               </user>
|               <user username="anonymous" password="">
|                       <description>The default guest/anonyomous
| user</description>
|                       <group-membership group="guests" />
|               </user>
|       </users>
| </principals>
| -----Original Message-----
| From: Hanlan, Dominic - Senior Developer [mailto:[EMAIL PROTECTED]]
| Sent: Thursday, October 04, 2001 1:46 PM
| To: Orion-Interest
| Subject: RE: Orion Server with external webserver
|
|
| Is Admin enabled in principles.xml
|
| -----Original Message-----
| From: Fredrik Gusting (PAC) [mailto:[EMAIL PROTECTED]]
| Sent: 04 October 2001 08:38
| To: Orion-Interest
| Subject: 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.Applica
| tionClient
| InitialContextFactory");
|       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
|


Reply via email to