using ejb-ref-mapping in orion-web.xml?
g'afternoon all - Has anyone ever used the ejb-ref-mapping tag in the orion-web.xml file? From reading the doc on the Orion website, it appears that you can modify the JNDI name used by an ejb-ref-mapping entry for an EJB home as described in the standard web.xml file. I've got the following in my web.xml to reference a SFSB: ejb-ref descriptionbenefit manager/description ejb-ref-nameEmployeeBenefitManager/ejb-ref-name ejb-ref-typeSession/ejb-ref-type homebenefit.ejb.manager.EmployeeBenefitManagerHome/home remotebenefit.ejb.manager.EmployeeBenefitManager/remote /ejb-ref From a servlet, I can successfully lookup the EJB using the name java:comp/env/EmployeeBenefitManager If I wanted to modify the JNDI name of the EmployeeBenefitManager without messing with the web.xml, it looks like I can use the orion-web.xml file and supply an alternate ejb-ref-mapping such as : ejb-ref-mapping location=XXX name=EmployeeBenefitManager / At deployment time, I can see that this entry is added to the generated orion-web.xml in the application-deployments directory. However when I try to do a lookup for this object in the servlet, using the java:comp/env/XXX or even just XXX, I get a NameNotFoundException. Am I doing something wrong? What name should I be using to locate the remapped object? Has anyone else ever used this? Grateful for any advice. -buttso- __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
orion-web.xml
Hi all, I used the following orion-web.xml to point orion to my class files, but it does not seem to work - Orion cannot find my classes. I put the orion-web.xml under my WEB-INF directory, is that the right place? Thanks. Anh ?xml version="1.0"? !DOCTYPE orion-web-app PUBLIC "-//Evermind//DTD Orion Web Application 2.3//EN" "http://www.orionserver.com/dtds/orion-web.dtd" orion-web-appdeployment-version="1.4.5"jsp-cache-directory="./persistence"temporary-directory="./temp"classpath path="file:///D:/myprojects/paomgmt/classes"/session-tracking //orion-web-app
RE: orion-web.xml
orion -web.xml must go in the same place as web.xml - ie: in the web-inf directory As for the classpath - I don't think you need to add the file:/// bit of the path - just use the directory path ie: D:/myprojects/paomgmt/classes"/ and see what it does. Hope that helps
Re: Automatic generation of virtual directory tag in the orion-web.xml doc ?
Ok. sorry. I am using an old version of orion I am using the version 1.0.3 ... I tried with orion-web.xml in the war and it didn't work. I should obviously updatemy version of Orion That's certainly the solution. Thanks a lot for your help. Regards Jean-Guillaume - Original Message - From: Mike Cannon-Brookes To: Orion-Interest Sent: Monday, January 08, 2001 12:22 PM Subject: RE: Automatic generation of virtual directory tag in the orion-web.xml doc ? Except that it is the solution, I'm quite sure of it. If you put the orion-web.xml file inside your WAR, when Orion deploys the WAR it will copy that file to the application-deployments folder and use it as the base for deploying the WAR. Try it and see. As far as I know it will no longer overwrite the old orion-web.xml (this is an old bug in bugzilla, I think it's been solved) -mike -Original Message-From: Jean-Guillaume LALANNE [mailto:[EMAIL PROTECTED]]Sent: Monday, January 08, 2001 10:04 PMTo: Orion-InterestCc: [EMAIL PROTECTED]Subject: Re: Automatic generation of virtual directory tag in the orion-web.xml doc ? Thanks for your quick answer. But I am not sure that will work because my orion-web.xml isautomaticallygenerated by Orion in the "application-deployments" directory. As opposed to theXXX.war which is deployed in the "application" directory Ok... orion appserver certainly uses the web.xmllocated within theXXX.war to generate the orion-web.xml, but I don't think it will do a copy of the pseudo orion-web.xmlput in the XXX.war into the deployment directoy quoted previously and overwrite the generated orion-web.xml ! Anyway, thank you again for your idea. Pretty good idea in fact but I don't think that is the solution ... Regards Jean-Guillaume - Original Message - From: Mike Cannon-Brookes To: Orion-Interest Sent: Monday, January 08, 2001 10:51 AM Subject: RE: Automatic generation of virtual directory tag in the orion-web.xml doc ? You can always just include the orion-web.xml in your WAR, and Orion will copy it when deploying? (as you can for orion-application and orion-ejb-jar.xml files?) -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jean-Guillaume LALANNESent: Monday, January 08, 2001 8:07 PMTo: Orion-InterestCc: [EMAIL PROTECTED]; [EMAIL PROTECTED]Subject: Automatic generation of virtual directory tag in the orion-web.xml doc ? Hi all, I am trying to find out how the generation of the orion-web.xml document is carried out. I need indeed to use virtual directory tags to point onto my resource shared directories (image,scripts, ). I would have appreciated that the following tag, virtual-directory real-path="/usr/local/realpath" virtual-path="/the/webdir" / would have been created automatically by orion appserver from a tag located somewhere in the ear orwar deployment xml files ... Actually, it's a little bit boring to rewrite several times this tag ... above all when you have 10 virtual directories for each of your sites (I mean your war app). If any of you has a way to handle this "problem", I am very very very interested to learn his/her trick. I mean, ... if any of you know how to insert in a .ear the right info so that orion appserver generates the good orion-web.xml file with my "virtual directory" tags ... I am obviously fully interested in his/her method. Any info is greatly appreciated. Many thanks.Regards Jean-Guillaume LALANNE Jean-Guillaume COMING [EMAIL PROTECTED]
deploying orion-web.xml
Hello, i know how to deploy an "orion-ejb-jar.xml" - and it works fine. is it also possible to deploy an "orion-web.xml"? i'd like to set "development and directory-browsing" parameters at deploy-time. adding an "orion/orion-web.xml" to the .war file does not work. any hints? thanks in advantage klaus -- Klaus Thiele - Personal Informatik AG mailto:[EMAIL PROTECTED] "There's got to be more to life than compile-and-go."
Re: deploying orion-web.xml
It lives in the (web-app-root/)WEB-INF/orion-web.xml as described in the doc, not the Orion directory. Klaus Thiele wrote: Hello, i know how to deploy an "orion-ejb-jar.xml" - and it works fine. is it also possible to deploy an "orion-web.xml"? i'd like to set "development and directory-browsing" parameters at deploy-time. adding an "orion/orion-web.xml" to the .war file does not work. any hints? thanks in advantage klaus -- Klaus Thiele - Personal Informatik AG mailto:[EMAIL PROTECTED] "There's got to be more to life than compile-and-go." begin:vcard n:Smith;Dave tel;cell:+44 797 0008867 tel;work:+44 1225 445610 x-mozilla-html:TRUE url:http://www.enetgroup.co.uk org:e-net Software Ltd adr:;;26-45 Cheltenham Street;Bath;;BA2 3EX; version:2.1 email;internet:[EMAIL PROTECTED] title:Software Development Manager fn:Dave Smith end:vcard
orion-web.xml: development=true
Dear James: Thanks for the hint. I assume you mean file: "~orion/application-deployments/default/appName/orion-web.xml Also, if I set development=true, where will the transformed jsp to java files be stored? Thanks in advance: STeve Punte e-Business Software Architect Technologent Inc [EMAIL PROTECTED] - Original Message - From: [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, July 06, 2000 6:52 AM Subject: RE: HELP: Reoccurring ArrayIndexOutOfBoundsException from Orion Orion has two JSP compilers - one outputs bytecode and the other (I think) outputs source, which is then compiled.. I'm willing to wager that if you use the latter compiler, the problem will disappear. To change compilers, add the attribute development="true" to the element 'orion-web-app' in /orion/applications/your_app/your_app-web/WEB-INF/orion-web.xml Regards, James Dodd ZDNet
Re: orion-web.xml: development=true
If your JSP was under 'X/Y/mypage.jsp', then the .java file will appear in path-to-your-web-app/WEB-INF/persistence/X/Y/mypage.java. This is definitely true for Solaris 2.6, but I can't vouch for NT. Regards, James Dodd Steven Punte [EMAIL PROTECTED] on 07/06/2000 04:52:14 PM To: James Dodd/ZDNet/LON/ZDEUR@ZD Europe, Orion-Interest [EMAIL PROTECTED] cc: Subject: orion-web.xml: development="true" Dear James: Thanks for the hint. I assume you mean file: "~orion/application-deployments/default/appName/orion-web.xml Also, if I set development=true, where will the transformed jsp to java files be stored? Thanks in advance: STeve Punte e-Business Software Architect Technologent Inc [EMAIL PROTECTED] - Original Message - From: [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, July 06, 2000 6:52 AM Subject: RE: HELP: Reoccurring ArrayIndexOutOfBoundsException from Orion Orion has two JSP compilers - one outputs bytecode and the other (I think) outputs source, which is then compiled.. I'm willing to wager that if you use the latter compiler, the problem will disappear. To change compilers, add the attribute development="true" to the element 'orion-web-app' in /orion/applications/your_app/your_app-web/WEB-INF/orion-web.xml Regards, James Dodd ZDNet
Re: orion-web.xml: development=true
You should be able to find them in "~orion/application-deployments/default/appName/persistence/" . Brien Voorhees - Original Message - From: "Steven Punte" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Thursday, July 06, 2000 8:52 AM Subject: orion-web.xml: development="true" Dear James: Thanks for the hint. I assume you mean file: "~orion/application-deployments/default/appName/orion-web.xml Also, if I set development=true, where will the transformed jsp to java files be stored? Thanks in advance: STeve Punte e-Business Software Architect Technologent Inc [EMAIL PROTECTED] - Original Message - From: [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, July 06, 2000 6:52 AM Subject: RE: HELP: Reoccurring ArrayIndexOutOfBoundsException from Orion Orion has two JSP compilers - one outputs bytecode and the other (I think) outputs source, which is then compiled.. I'm willing to wager that if you use the latter compiler, the problem will disappear. To change compilers, add the attribute development="true" to the element 'orion-web-app' in /orion/applications/your_app/your_app-web/WEB-INF/orion-web.xml Regards, James Dodd ZDNet