graphical console remotely
I have a linux box running orion, but i dont have x on it. I do my work on the linux machine via telnet from a windows box. is there a way tor un the graphical console locally and connect to the actual server remotely? Thanks Brady Moritz
Re: EJB CLIENT
Hi David, I suppose you have given your application (on the server side) a name in application.xml. For instance : application display-nameYour_Name/display-name module ... etc /application So then in your jndi.properties file it has to say java.naming.factory.initial=com.evermind.server.ApplicationClientInitialCont extFactory java.naming.provider.url=ormi://localhost/Your_Name {--- The name of your application} java.naming.security.principal=admin Hope this helps, Wim Veninga [EMAIL PROTECTED] -Original Message- From: David Sierra Fernandez [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Date: Friday, July 28, 2000 9:22 PM Subject: EJB CLIENT Hi all, I'm very worried 'cause i'm not able to make a EJB client to work. I've deployed my app without problems but I can't execute the client. I've created the client-application.xml: ?xml version="1.0"? !DOCTYPE application-client PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application Client 1.2//EN" "http://java.sun.com/j2ee/dtds/application-client_1_2.dtd" application-client display-nameCliente AGENDA ORION/display-name ejb-ref ejb-ref-nameMyAgendaS/ejb-ref-name ejb-ref-typeSession/ejb-ref-type homeAgendaSHome/home remoteAgendaS/remote /ejb-ref /application-client Then I tried to include a jndi.properties file in my app as i read in FAQ: java.naming.factory.initial=com.evermind.server. ApplicationClientInitialContextFactory java.naming.provider.url=ormi://localhost java.naming.security.principal=admin but it still does not work. When I tried to execute the client this the error I get: C:\orion\APPLIC~1\Agenda\Agenda-ejbjava -classpath .;C:\orion\orion.jar;C:\orio n\ejb.jar;C:\orion\jndi.jar; AgendaSClient Lanzada una excepcion. javax.naming.NamingException: Error reading application-client descriptor: No lo cation specified and no suitable instance of the type 'AgendaS' found for the ej b-ref MyAgendaS at com.evermind.server.ApplicationClientInitialContextFactory.getInitial Context(JAX, Compiled Code) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6 72) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250 ) at javax.naming.InitialContext.init(InitialContext.java:226) at javax.naming.InitialContext.init(InitialContext.java:182) at AgendaSClient.main(AgendaSClient.java:16) I WILL APPRECIATE ALL OF YOUR HELP OR CLUES ! - David Sierra Fern ndez Ingeniero Tecnico de Telecomunicaci¢n AULA RETECAL (CEDETEL) Universidad de Valladolid Campus Miguel Delibes E-Mail: [EMAIL PROTECTED] 47011 Valladolid (SPAIN) -- -- Sierr@ --
CONFIDENTIAL
Hi all! The USER-DATA-CONSTRAINT doesn't seem to work with orion. I tried to set up registration in PetStore Demo to work over SSL by putting CONFIDENTIAL in the given tag. Now when I access ../signin IE5.0 prompts me to download 0-length file "signin". SSL is working ok on my different web-site. Any ideas? web.xml looks like: .. security-constraintweb-resource-collectionweb-resource-nameAuthentication zone/web-resource-namedescriptionno description/descriptionurl-pattern/control/signin/url-patternhttp-methodGET/http-methodhttp-methodPOST/http-method/web-resource-collectionauth-constraintdescriptionno description/descriptionrole-namecustomer/role-namerole-namesubscriber/role-name/auth-constraintuser-data-constraintdescriptionno description/descriptiontransport-guaranteeCONFIDENTIAL/transport-guarantee/user-data-constraint/security-constraint..
Re: Mapping
Thanks, The one that did the trick was: servlet-mapping servlet-nameMyServlet/servlet-name url-pattern/ShopHere/url-pattern /servlet-mapping Dale - Original Message - From: Kevin Duffey [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Friday, July 28, 2000 4:35 PM Subject: RE: Mapping You would want something like: servlet-mapping servlet-nameMyServlet/servlet-name url-pattern/ShopHere//url-pattern /servlet-mapping If that doesn't work..try: servlet-mapping servlet-nameMyServlet/servlet-name url-pattern/ShopHere/*/url-pattern /servlet-mapping I don't recall which one works. Then, anytime a /ShopHere is in the request URI, it goes to that servlet. Keep in mind, if you access a page like: http://xxx.xxx.xxx.xxx/ShopHere/somepage.jsp The sompage.jsp is NOT invoked, its passed to the MyServlet servlet as part of the request. So ANY URL you type in that has /ShopHere in it will go to that servlet. It will be up to that servlet to forward or redirect to the right page after that point. I place the following in my web.xml: servlet-mapping servlet-nameMyServlet/servlet-name url-pattern*.shop/url-pattern /servlet-mapping Browsing to my.host.com/whatever.shop works fine (MyServlet is invoked). This is really what I want, but it does not work (I get a 404): servlet-mapping servlet-nameMyServlet/servlet-name url-patternShopHere/url-pattern /servlet-mapping This does not work either: servlet-mapping servlet-nameMyServlet/servlet-name url-patternShopHere.shop/url-pattern /servlet-mapping I want to be able to browse to my.host.com/ShopHere and have that invoke MyServlet. I can except my.host.com/ShopHere.shop, but do not want everything with *.shop to go to this servlet. I know I can make the servlet root directory from /servlet/ to / and it should work fine with out the mappings, but I want to keep the default /servlet/. Can this be done? Dale
Did someone get roles working ?
Chris: I did see a message on orion-interest that explained how orion handles roles. Not that I completely understood it but enough to get the Java Pet Store Demo running. Kirk S. Kalvar
Error using CMP in orion 1.1.36
Hi all, I'm always getting the following exception when using CMP (ejb 1.1 and ejb 2.0) in orion 1.1.36 and earlier versions: on the client side : java.lang.InternalError: Object was null but still part of the cache at com.evermind.server.rmi.bb.invokeMethod(JAX) at com.evermind.server.rmi.a2.invoke(JAX) at com.evermind.server.rmi.a3.invoke(JAX) at __Proxy1.create(Unknown Source) at om.fnv.kozijncalc.entities.klanten.KlantTest.initKlantTest.java:41) at com.fnv.kozijncalc.entities.klanten.KlantTest.mainKlantTest.java:100) Below is all the code and the deployment descriptors. I think it has something todo with orion's memory (bean caching ) managment. Has someone else have equal problems ? Or is it a bug ? Where can I find the bug list? Thank in advance. Wim Veninga. [EMAIL PROTECTED] the client code : package com.fnv.kozijncalc.entities.klanten; import java.io.*; import java.util.*; import javax.ejb.*; import javax.rmi.*; import javax.naming.*; public class KlantTest { static final String objNaam = "java:comp/env/Klant"; static final String fileName = "C:\\testKozijnEJB\\instellingen.properties"; public KlantTest() throws Exception { FileInputStream fis = new FileInputStream(this.fileName); Properties props = new Properties(); props.load(fis); //find the serverPortalHome System.out.print("Connecting to server..."); Context context = new InitialContext(props); Object portalRef = context.lookup(objNaam); KlantHome home = (KlantHome)PortableRemoteObject.narrow(portalRef,KlantHome.class); System.out.println(" done."); System.out.println("Creating new klant..."); Klant klant = home.create(new Integer(26)); /* Error OCCURES HERE */ klant.setKlantNaam("Jamper"); klant.setKlantAdres("testadres"); klant.setKlantPostcode("9501 BN"); klant.setKlantPlaats("TestPlaats"); klant.setKlantLand("Land"); klant.setKlantTelefoon("Telefoon"); klant.setKlantContactPersoon("Contact"); System.out.println("Created klant with following data : "); printKlant(klant); } private void printKlant(Klant k) throws Exception { System.out.println("Found klant : "); System.out.println("klant nr = " + k.getKlantNr().toString()); System.out.println("naam = " + k.getKlantNaam()); System.out.println("adres = "+ k.getKlantAdres()); System.out.println("postcode = "+ k.getKlantPostcode()); System.out.println("plaats = "+ k.getKlantPlaats()); System.out.println("land = "+ k.getKlantLand()); System.out.println("contact = "+ k.getKlantContactPersoon()); } public static void main(String args[]) { try { KlantTest klantTest = new KlantTest(); } catch(Exception e) { e.printStackTrace(); } } } application-client.xml: ?xml version="1.0"? !DOCTYPE application-client PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application Client 1.2//EN" "http://java.sun.com/j2ee/dtds/application-client_1_2.dtd" application-client display-nameKlant Test/display-name ejb-ref ejb-ref-nameKlant/ejb-ref-name ejb-ref-typeEntity/ejb-ref-type homecom.fnv.kozijncalc.entities.klanten.KlantHome/home remotecom.fnv.kozijncalc.entities.klanten.Klant/remote /ejb-ref /application-client EJB 2.0 code : Home : package com.fnv.kozijncalc.entities.klanten; import javax.ejb.*; import java.rmi.RemoteException; public interface KlantHome extends EJBHome { public Klant create(Integer klantNr) throws CreateException, RemoteException; public Klant findByPrimaryKey(Integer key) throws RemoteException, FinderException; } Remote : package com.fnv.kozijncalc.entities.klanten; import java.rmi.RemoteException; import javax.ejb.*; public interface Klant extends EJBObject { public java.lang.Integer getKlantNr() throws RemoteException; public java.lang.String getKlantNaam() throws RemoteException; public void setKlantNaam(java.lang.String value) throws RemoteException; public java.lang.String getKlantAdres() throws RemoteException; public void setKlantAdres(java.lang.String value) throws RemoteException; public java.lang.String getKlantPostcode() throws RemoteException; public void setKlantPostcode(java.lang.String value) throws RemoteException; public java.lang.String getKlantPlaats() throws RemoteException; public void setKlantPlaats(java.lang.String value) throws RemoteException; public java.lang.String getKlantLand() throws RemoteException; public void setKlantLand(java.lang.String value) throws RemoteException; public java.lang.String getKlantTelefoon() throws RemoteException; public void setKlantTelefoon(java.lang.String value) throws RemoteException; public java.lang.String getKlantContactPersoon() throws RemoteException; public void setKlantContactPersoon(java.lang.String value) throws RemoteException; } Bean :
Re: Did someone get roles working ? How about Web Single Signon?
I'm working on getting "Web Single Signon" to work as specified in the J2EE bluprints, Page 3-13. It requires that the same login session represents a user to all the applications that they accessthis is important for my site(s) so that my users can change applications/sites without re-logging in. Anybody have any code examples? Boy, I would love a nice, clean HOW-TO document! David At 10:14 AM 7/29/00 -0400, you wrote: Chris: I did see a message on orion-interest that explained how orion handles roles. Not that I completely understood it but enough to get the Java Pet Store Demo running. Kirk S. Kalvar
Re: graphical console remotely
Sure, there are a number of xservers for win32, like x-win32 (http://www.starnet.com/productinfo/). The other alternative is to go with something like vnc (http://www.uk.research.att.com/vnc/), or if you have an xserver and and windows box side by side try x2vnc (http://fredrik.hubbe.net/x2vnc.html). I also strongly recommend that you replace your telnet client with ssh, there are now a number of free or open source ssh clients for win32 that work quite nicely and are secure. sach %s/windows/linux/g On Sun, 30 Jul 2000, Brady Moritz wrote: I have a linux box running orion, but i dont have x on it. I do my work on the linux machine via telnet from a windows box. is there a way tor un the graphical console locally and connect to the actual server remotely? Thanks Brady Moritz