RE: bugs in @page extends=.... in Orion implementation?
Well, can anyone confirm that JSP pages can extend your own class when using Orion??? Or has noone been able to use @page extends? I see many good reasons for implementing your own super class for your JSP pages. For instance, such a superclass could do logging of all client activities or it could do security checking. Randahl -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Robert Nicholson Sent: 25. maj 2001 21:15 To: Orion-Interest Subject: RE: bugs in @page extends= in Orion implementation? It's doing you a favour.Please elaborate on why you want to extend that class. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jiuyun Wang Sent: Friday, May 25, 2001 9:20 AM To: Orion-Interest Subject: Re: bugs in @page extends= in Orion implementation? It doesnot work, not matter which one (servlet/jspbase) I extends my jsp, orion jsp compiler just don't support extends -Jiuyun --- SCOTT FARQUHAR [EMAIL PROTECTED] wrote: It looks like your page should extend servlet and not jsppage. Just change JSPBase to extend servlet (and make the required changes). I haven't read the spec, but I imagine that extending OrionHttpJspPage is proprietary, and would not be part of the spec. Scott [EMAIL PROTECTED] 05/23/01 05:42am I create a class called JSPBase class which extends OrionHttpJspPage, and I put the @ page extends=packagename.JSPBase in my JSP file. however, orion give the following error: Superclass of the JSP page does not implement Servlet, invalid extends attribute. Does orion implement @page extends correctly? Any clarification? -Jiuyun __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ = Jiuyun Wang M.Sc. of Computer Sciences Sun Certified Programmer for Java 2 Platform IBM Certified Solution Enterprise Developer Phone: 919-696-0419(cel) Email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
RE: bugs in @page extends=.... in Orion implementation?
Well, Robert, would you elaborate on those thoughts? R. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Robert Nicholson Sent: 23. maj 2001 04:51 To: Orion-Interest Subject: RE: bugs in @page extends= in Orion implementation? Factoring code into the jsppage superclass is a bad idea. You will regret this later. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of SCOTT FARQUHAR Sent: Tuesday, May 22, 2001 5:53 PM To: Orion-Interest Subject: Re: bugs in @page extends= in Orion implementation? It looks like your page should extend servlet and not jsppage. Just change JSPBase to extend servlet (and make the required changes). I haven't read the spec, but I imagine that extending OrionHttpJspPage is proprietary, and would not be part of the spec. Scott [EMAIL PROTECTED] 05/23/01 05:42am I create a class called JSPBase class which extends OrionHttpJspPage, and I put the @ page extends=packagename.JSPBase in my JSP file. however, orion give the following error: Superclass of the JSP page does not implement Servlet, invalid extends attribute. Does orion implement @page extends correctly? Any clarification? -Jiuyun __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
RE: configuration of web tier (JNDI)
Hey Denis, its not to hard. You would package both the seperate tiers files into seperate .ear files, then in a servlet you would access a ejb by creating a properties file with your JNDI settings and setting the url to the machine hosting the ejb tier ( for now would be localhost, but could be anything ), create the InitalContext with the properties, and you can then access the bean on the ejb tier from the web tier. Its all about setting the IntialContex with the url of the right machine. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Denis Kranjcec Sent: Monday, May 28, 2001 7:14 AM To: Orion-Interest Subject: configuration of web tier (JNDI) Hi everyone! I'm new user of Orion and I have one problem. I want to separate web tier and ejb tier. Both tiers will be running in the same server for now, but later they will be on different Orion servers. How can I specify that my web tier make jndi lookup to ejb tier, where is JNDI server...? We have two applications and both have Login bean so I must be able to specify application where my web tier should make lookup. Configuration should be same as that tiers are on different servers. I have read Orion documentation, but there isn't examples, and I'm not able to figure it out how to configure it. Thanks in advance, Denis Kranjcec
logs for loadbalancer
I just noticed that the logs for default-access only reflect access from the loadbalancers' ip address (interesting, but not very useful information). 1. How do we get the logs to reflect the requesters' ip address? 2. Are there any loadbalancer logs? regards, the elephantwalker
How to contact Magnus? (was OR mapping)
I badly need to get the fix for the OR mapping... Is there a source to get the fix/patch, or do I have to contact a developer? If so, how can I contact Magnus to get the fix. Needed BADLY! Lachezar
Setting up a new web-application
I have a web application that works fine on Tomcat 4.0b5. I'm trying to run it on Orion as a proof of concept but I can't get much working! I've followed the 'atm' example in the notes and have the following structure orion\applications\addressbook orion\applications\addressbook\META-INF orion\applications\addressbook\AddressBook orion\applications\addressbook\AddressBook\WEB-INF orion\applications\addressbook\AddressBook\WEB-INF\classes orion\applications\addressbook\AddressBook\WEB-INF\lib I've updated server.xml (with this application name=AddressBook path=../applications/AddressBook/ / ) and default-web-site.xml (with this web-app application=AddressBook name=AddressBook root=/AddressBook /. I can browse to http:\\localhost:8080\AddressBook and it picks up the welcome-file. I can browse to a simple JSP (that has no beans etc.) I can't browse to any servlet, so http://localhost:8080/AddressBook/servlet/com.develop.ewebjava.lab.Browse and http://localhost:8080/AddressBook/servlet/SimpleServlet both return 404 Not Found Resource /AddressBook/servlet/SimpleServlet not found on this server but both classes are in orion\applications\addressbook\AddressBook\WEB-INF\classes I can't browse to a JSP that uses beans that are in orion\applications\addressbook\AddressBook\WEB-INF\classes And I can't get Orion to load an application listener that is also in orion\applications\addressbook\AddressBook\WEB-INF\classes Orion obviously can't find classes in orion\applications\addressbook\AddressBook\WEB-INF\classes but this should be automatically added to the classpath for this application. What am I missing? I assume it must be configuration setting but I can't find anything in the docs, Kevin Jones DevelopMentor www.develop.com
Orion license only valid for one year?
We recently heard a rumour that the specified price/cpu of $1500 for Orion is actually the price per year (even if you don't want updates and support). This is clearly not specified on the website thus we are somewhat confused about it right now. For some of our potential customers having to pays this licence fee every year would be prohibitive. Can anyone with an offical licence for Orion could clear this matter for us (asap)? Rob
RE: Setting up a new web-application
Hi, According to the 1.4.5 documentation the default web directory mapping for servlets is /servlets, mind the plural (http://www.orionserver.com/docs/orion-web.xml.html). But since none of the classes in WEB-INF/classes are found there might be yet another problem. Could you perhaps post a zip of your orion\applications\addressbook directory tree, I'll try it out and see what I can find. Marcel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Jones Sent: Tuesday, May 29, 2001 11:20 AM To: Orion-Interest Subject: Setting up a new web-application I have a web application that works fine on Tomcat 4.0b5. I'm trying to run it on Orion as a proof of concept but I can't get much working! I've followed the 'atm' example in the notes and have the following structure orion\applications\addressbook orion\applications\addressbook\META-INF orion\applications\addressbook\AddressBook orion\applications\addressbook\AddressBook\WEB-INF orion\applications\addressbook\AddressBook\WEB-INF\classes orion\applications\addressbook\AddressBook\WEB-INF\lib I've updated server.xml (with this application name=AddressBook path=../applications/AddressBook/ / ) and default-web-site.xml (with this web-app application=AddressBook name=AddressBook root=/AddressBook /. I can browse to http:\\localhost:8080\AddressBook and it picks up the welcome-file. I can browse to a simple JSP (that has no beans etc.) I can't browse to any servlet, so http://localhost:8080/AddressBook/servlet/com.develop.ewebjava .lab.Browse and http://localhost:8080/AddressBook/servlet/SimpleServlet both return 404 Not Found Resource /AddressBook/servlet/SimpleServlet not found on this server but both classes are in orion\applications\addressbook\AddressBook\WEB-INF\classes I can't browse to a JSP that uses beans that are in orion\applications\addressbook\AddressBook\WEB-INF\classes And I can't get Orion to load an application listener that is also in orion\applications\addressbook\AddressBook\WEB-INF\classes Orion obviously can't find classes in orion\applications\addressbook\AddressBook\WEB-INF\classes but this should be automatically added to the classpath for this application. What am I missing? I assume it must be configuration setting but I can't find anything in the docs, Kevin Jones DevelopMentor www.develop.com
RE: Orion license only valid for one year?
6 months ago (or so) I read the license agreement carefully and it seemed to be worded as $1500 per year, so I sent an e-mail to this group asking about it, the following is from the orion archived new group messages... ***start of archive message... From: Karl Avedal Subject: Re: Orion price Date: Fri, 21 Jul 2000 13:56:05 -0700 Hello again, As a follow-up. I think the text wasn't really right on this, so we'll change it. Sorry if it scared you... Regards, Karl Avedal Karl Avedal wrote: Hello Rob, The price is definately not per year. The license agreement says as it does because you only get free upgrades for on year. However you may continue using what you have bought forver and ever. I'll check out the agreement to see if the text is implying something else, and if it does, we'll change it, we never meant it to be per year. Regards, Karl Avedal Rob Lapensee wrote: Does everyone realize that the Orion price is per year? (or it seems so from the license agreement). Regards, Rob Lapensee Director of Technology Delfour Corporation [EMAIL PROTECTED] www.delfour.com References: Orion price From: Rob Lapensee [EMAIL PROTECTED] Re: Orion price From: Karl Avedal [EMAIL PROTECTED] -- Chronological -- -- Thread -- Reply via email to *** end of archive message... Rob Lapensee Director of Technology Delfour Corporation www.delfour.com [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Meulen, Rob van der Sent: Tuesday, May 29, 2001 6:13 AM To: Orion-Interest Subject: Orion license only valid for one year? We recently heard a rumour that the specified price/cpu of $1500 for Orion is actually the price per year (even if you don't want updates and support). This is clearly not specified on the website thus we are somewhat confused about it right now. For some of our potential customers having to pays this licence fee every year would be prohibitive. Can anyone with an offical licence for Orion could clear this matter for us (asap)? Rob
RE: Setting up a new web-application
Thanks Marcel, should I mail it privately to you? (if so what is your e-mail address?) Kevin Jones DevelopMentor www.develop.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Marcel Schutte Sent: 29 May 2001 11:47 To: Orion-Interest Subject: RE: Setting up a new web-application Hi, According to the 1.4.5 documentation the default web directory mapping for servlets is /servlets, mind the plural (http://www.orionserver.com/docs/orion-web.xml.html). But since none of the classes in WEB-INF/classes are found there might be yet another problem. Could you perhaps post a zip of your orion\applications\addressbook directory tree, I'll try it out and see what I can find. Marcel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Jones Sent: Tuesday, May 29, 2001 11:20 AM To: Orion-Interest Subject: Setting up a new web-application I have a web application that works fine on Tomcat 4.0b5. I'm trying to run it on Orion as a proof of concept but I can't get much working! I've followed the 'atm' example in the notes and have the following structure orion\applications\addressbook orion\applications\addressbook\META-INF orion\applications\addressbook\AddressBook orion\applications\addressbook\AddressBook\WEB-INF orion\applications\addressbook\AddressBook\WEB-INF\classes orion\applications\addressbook\AddressBook\WEB-INF\lib I've updated server.xml (with this application name=AddressBook path=../applications/AddressBook/ / ) and default-web-site.xml (with this web-app application=AddressBook name=AddressBook root=/AddressBook /. I can browse to http:\\localhost:8080\AddressBook and it picks up the welcome-file. I can browse to a simple JSP (that has no beans etc.) I can't browse to any servlet, so http://localhost:8080/AddressBook/servlet/com.develop.ewebjava .lab.Browse and http://localhost:8080/AddressBook/servlet/SimpleServlet both return 404 Not Found Resource /AddressBook/servlet/SimpleServlet not found on this server but both classes are in orion\applications\addressbook\AddressBook\WEB-INF\classes I can't browse to a JSP that uses beans that are in orion\applications\addressbook\AddressBook\WEB-INF\classes And I can't get Orion to load an application listener that is also in orion\applications\addressbook\AddressBook\WEB-INF\classes Orion obviously can't find classes in orion\applications\addressbook\AddressBook\WEB-INF\classes but this should be automatically added to the classpath for this application. What am I missing? I assume it must be configuration setting but I can't find anything in the docs, Kevin Jones DevelopMentor www.develop.com
Re: Re: ATM example - deployment error - PLEASE some HELP
Hellu there, I already solved it myself. How ??? I did an upgrade to 1.5.1. Spend some time, such that all my other applications worked again.and yes the tiny jms application works as well: onMessage Received new quote : Hello, World Unknown command: -1 ejbRemove called --- I only have still this Unknow command when I have jms.debug set to true when starting orion!!! Another question: how are the queue's managed and how can I monitor/influence this ??? For example: when I restart orion, my queues's are lost or not ??? how does this works ?? Eddie - Original Message - From: Eddie [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, May 28, 2001 7:48 PM Subject: Re: ATM example - deployment error - PLEASE some HELP Ok... forgot something... I did some debugging by starting orion with the options: -Djms.debug=true -Dmulticast.debug=true I then receive the following when I run the client (sends a message): Orion/1.4.7 initialized Unknown command: -1 - Anyone any idea, what this means and where this comes from :-( (I can't find this anywhere in my application nor the config dir of Orion) BTW: when I play around with atm I don't get this unknown command but mayby this is because I don't get to the logging part. When do I get to this part ?? Eddie - Original Message - From: Eddie [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, May 28, 2001 7:13 PM Subject: Re: ATM example - deployment error - PLEASE some HELP Ok, I now have my tiny jms client submitting messages, but the ejb doesn't consume them. I use the atm example as guideline and have this running. However when I have a look at the atm example, I notice that neither does atm logs !!1 That is, there doesn't appear anything in the table com_acme_atm_ejb_mainlog table, whereas other tables are filled!! What are the specific orion requirements, such that the jms-ejb consumes the message ?? ( I am running on 1.4.7) and how can I debug the problem (look at the topics's or somthing like that )?? I don't get any output from orion in any log !! (strange!!!) I will shortly explain my client and ejb hereunder as they are really short: The ejb-jar.xml: ejb-jar enterprise-beans message-driven descriptionJMS logger/description ejb-nameHello/ejb-name ejb-classHelloMSGBean.HelloBean/ejb-class transaction-typeContainer/transaction-type message-selectorJMSType='mainLogMessage'/message-selector message-driven-destination destination-typejavax.jms.Topic/destination-type /message-driven-destination /message-driven /enterprise-beans /ejb-jar The onmessage part in the ejb: public void onMessage(Message message) { System.out.println(onMessage); TextMessage textmessage = null; if (message instanceof TextMessage) { textmessage = (TextMessage)message; } else { return; } -- The client part: --- ctx=new InitialContext(p); tcf=(TopicConnectionFactory)ctx.lookup(java:comp/env/jms/theTopicConnection Factory); tcon = tcf.createTopicConnection(); tcon.start(); tsession = tcon.createTopicSession(false, Session.AUTO_ACKNOWLEDGE); topic = (Topic)ctx.lookup(java:comp/env/jms/theTopic); tpublisher = tsession.createPublisher(topic); TextMessage message = tsession.createTextMessage(); message.setJMSType(mainLogMessage); message.setText(Hello, World); tpublisher.publish(message); The part in the jms.xml file (I am not sure if this is necessary!!!??): - topic name=Demo Topic location=jms/theTopic descriptionA dummy topic/description /topic -- The application-client.xml: - application-client display-nameSomething/display-name resource-ref res-ref-namejms/theTopicConnectionFactory/res-ref-name res-typejavax.jms.TopicConnectionFactory/res-type res-authContainer/res-auth /resource-ref resource-ref res-ref-namejms/theTopic/res-ref-name res-typejavax.jms.Topic/res-type res-authContainer/res-auth /resource-ref /application-client That's it, but the ejb doesn't print anything to the STDOUT. What am I doing wrong . Eddie
CMP creation
Hi, I am new to Orion Server, while creating CMP bean in weblogic server we need to specify the Table Name and the mapping of the bean attributes to database table in an xml file. Can you please tell me in Orion where we can speicfy the table name and mapping. Regards Surendra
RE: Counter gives naming exception
Dear All, Yet when I use that thing inside the ejbCreate of another bean I get a NameNotFound Exception. Replacing the Counterutils.getnextid() with (new Date()).getTime() works without generating the errors. You will probably want to move the ejb-ref from web.xml to ejb-jar.xml (into the entity/session element for the bean in whose ejbCreate method you try to lookup CounterHome). Hmm? Ok, it makes sense. I'll try that. Markus Holmberg | Give me Unix or give me a typewriter. [EMAIL PROTECTED] | http://www.freebsd.org/ Ah, a fellow FreeBSD user. :-) Just curious, what are your experiences with Orion on FreeBSD? What JDK do you use? Kees Jan You are only young once, but you can stay immature all your life.
RE: Setting up a new web-application
BTW According to the 1.4.5 documentation the default web directory mapping for servlets is /servlets, mind the plural this can't be right. Try browsing to http://localhost/servlet/SnoopServlet and http://localhost/servlets/SnoopServlet only the first URL works, Kevin Jones DevelopMentor www.develop.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Marcel Schutte Sent: 29 May 2001 11:47 To: Orion-Interest Subject: RE: Setting up a new web-application Hi, According to the 1.4.5 documentation the default web directory mapping for servlets is /servlets, mind the plural (http://www.orionserver.com/docs/orion-web.xml.html). But since none of the classes in WEB-INF/classes are found there might be yet another problem. Could you perhaps post a zip of your orion\applications\addressbook directory tree, I'll try it out and see what I can find. Marcel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Jones Sent: Tuesday, May 29, 2001 11:20 AM To: Orion-Interest Subject: Setting up a new web-application I have a web application that works fine on Tomcat 4.0b5. I'm trying to run it on Orion as a proof of concept but I can't get much working! I've followed the 'atm' example in the notes and have the following structure orion\applications\addressbook orion\applications\addressbook\META-INF orion\applications\addressbook\AddressBook orion\applications\addressbook\AddressBook\WEB-INF orion\applications\addressbook\AddressBook\WEB-INF\classes orion\applications\addressbook\AddressBook\WEB-INF\lib I've updated server.xml (with this application name=AddressBook path=../applications/AddressBook/ / ) and default-web-site.xml (with this web-app application=AddressBook name=AddressBook root=/AddressBook /. I can browse to http:\\localhost:8080\AddressBook and it picks up the welcome-file. I can browse to a simple JSP (that has no beans etc.) I can't browse to any servlet, so http://localhost:8080/AddressBook/servlet/com.develop.ewebjava .lab.Browse and http://localhost:8080/AddressBook/servlet/SimpleServlet both return 404 Not Found Resource /AddressBook/servlet/SimpleServlet not found on this server but both classes are in orion\applications\addressbook\AddressBook\WEB-INF\classes I can't browse to a JSP that uses beans that are in orion\applications\addressbook\AddressBook\WEB-INF\classes And I can't get Orion to load an application listener that is also in orion\applications\addressbook\AddressBook\WEB-INF\classes Orion obviously can't find classes in orion\applications\addressbook\AddressBook\WEB-INF\classes but this should be automatically added to the classpath for this application. What am I missing? I assume it must be configuration setting but I can't find anything in the docs, Kevin Jones DevelopMentor www.develop.com
RE: Re: ATM example - deployment error - PLEASE some HELP
Eddie, To persist the messages to disk when Orion shuts down, add a persistence-file entry to your queue, like so: queue host=127.0.0.1 name=Eye location=jms/EyeQueue persistence-file=../persistence/jms/eyeQueue.queue descriptionEye/description /queue In my limited experience, this works fine during normal Orion shutdowns, but does not if Orion terminates abnormally (crashes, kill -9 or X the window). HTH, Ernie -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie Sent: Tuesday, May 29, 2001 7:59 AM To: Orion-Interest Subject: Re: Re: ATM example - deployment error - PLEASE some HELP Hellu there, I already solved it myself. How ??? I did an upgrade to 1.5.1. Spend some time, such that all my other applications worked again.and yes the tiny jms application works as well: onMessage Received new quote : Hello, World Unknown command: -1 ejbRemove called --- I only have still this Unknow command when I have jms.debug set to true when starting orion!!! Another question: how are the queue's managed and how can I monitor/influence this ??? For example: when I restart orion, my queues's are lost or not ??? how does this works ?? Eddie - Original Message - From: Eddie [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, May 28, 2001 7:48 PM Subject: Re: ATM example - deployment error - PLEASE some HELP Ok... forgot something... I did some debugging by starting orion with the options: -Djms.debug=true -Dmulticast.debug=true I then receive the following when I run the client (sends a message): Orion/1.4.7 initialized Unknown command: -1 - Anyone any idea, what this means and where this comes from :-( (I can't find this anywhere in my application nor the config dir of Orion) BTW: when I play around with atm I don't get this unknown command but mayby this is because I don't get to the logging part. When do I get to this part ?? Eddie - Original Message - From: Eddie [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, May 28, 2001 7:13 PM Subject: Re: ATM example - deployment error - PLEASE some HELP Ok, I now have my tiny jms client submitting messages, but the ejb doesn't consume them. I use the atm example as guideline and have this running. However when I have a look at the atm example, I notice that neither does atm logs !!1 That is, there doesn't appear anything in the table com_acme_atm_ejb_mainlog table, whereas other tables are filled!! What are the specific orion requirements, such that the jms-ejb consumes the message ?? ( I am running on 1.4.7) and how can I debug the problem (look at the topics's or somthing like that )?? I don't get any output from orion in any log !! (strange!!!) I will shortly explain my client and ejb hereunder as they are really short: The ejb-jar.xml: ejb-jar enterprise-beans message-driven descriptionJMS logger/description ejb-nameHello/ejb-name ejb-classHelloMSGBean.HelloBean/ejb-class transaction-typeContainer/transaction-type message-selectorJMSType='mainLogMessage'/message-selector message-driven-destination destination-typejavax.jms.Topic/destination-type /message-driven-destination /message-driven /enterprise-beans /ejb-jar The onmessage part in the ejb: public void onMessage(Message message) { System.out.println(onMessage); TextMessage textmessage = null; if (message instanceof TextMessage) { textmessage = (TextMessage)message; } else { return; } -- The client part: --- ctx=new InitialContext(p); tcf=(TopicConnectionFactory)ctx.lookup(java:comp/env/jms/theTopicConnection Factory); tcon = tcf.createTopicConnection(); tcon.start(); tsession = tcon.createTopicSession(false, Session.AUTO_ACKNOWLEDGE); topic = (Topic)ctx.lookup(java:comp/env/jms/theTopic); tpublisher = tsession.createPublisher(topic); TextMessage message = tsession.createTextMessage(); message.setJMSType(mainLogMessage); message.setText(Hello, World); tpublisher.publish(message); The part in the jms.xml file (I am not sure if this is necessary!!!??): - topic name=Demo Topic location=jms/theTopic descriptionA dummy topic/description /topic -- The application-client.xml: - application-client display-nameSomething/display-name resource-ref res-ref-namejms/theTopicConnectionFactory/res-ref-name res-typejavax.jms.TopicConnectionFactory/res-type res-authContainer/res-auth /resource-ref resource-ref res-ref-namejms/theTopic/res-ref-name res-typejavax.jms.Topic/res-type res-authContainer/res-auth /resource-ref
Boolean CMP properties in MySQL
Dear All, I have a boolean property on an CMP entity bean. In the MySQL database I see this type mapped to TINYINT(1), which is fine I guess. Question one: I vaguely remember that the JavaBeans spec says that boolean properties should have setFoo()/isFoo() instead of the setFOo()/getFoo() combo. What's EJB's stance on this? Question two: why does the value of the boolean stay at 0 (not NULL, so the value is actually written) for either true or false in the database. It's kind'a hard to distinguish true from false if they both map to 0. :-) Kees Jan You are only young once, but you can stay immature all your life.
RE: Setting up a new web-application
Kevin: If you have configured the /WEB-INF/web.xml file in your deployment with an appropriate servlet definition (this is also where you can use a servlet mapping to point to an alternative alias URL to access your servlet, rather than using the /servlet/servletName), the only other thing I see that might be a problem is your reference of port 8080 in the URL. Why are you using 8080 as the port number for your application URL. If the SnoopServlet is working for you on the default port 80, so should your servlet URL. 8080 would be the port on which the application server was listening to requests from the web server, right? Jason Coward Mongoose Technology, Incorporated http://www.mongoosetech.com | -Original Message- | From: [EMAIL PROTECTED] | [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Jones | Sent: Tuesday, May 29, 2001 8:17 AM | To: Orion-Interest | Subject: RE: Setting up a new web-application | | | BTW | | According to the 1.4.5 documentation the default web directory | mapping for | servlets is /servlets, mind the plural | | this can't be right. | | Try browsing to | | http://localhost/servlet/SnoopServlet | | and | | http://localhost/servlets/SnoopServlet | | only the first URL works, | | | Kevin Jones | DevelopMentor | www.develop.com | | -Original Message- | From: [EMAIL PROTECTED] | [mailto:[EMAIL PROTECTED]]On Behalf Of Marcel Schutte | Sent: 29 May 2001 11:47 | To: Orion-Interest | Subject: RE: Setting up a new web-application | | | Hi, | | According to the 1.4.5 documentation the default web directory | mapping for | servlets is /servlets, mind the plural | (http://www.orionserver.com/docs/orion-web.xml.html). But since | none of the | classes in WEB-INF/classes are found there might be yet another problem. | Could you perhaps post a zip of your orion\applications\addressbook | directory tree, I'll try it out and see what I can find. | | Marcel | | -Original Message- | From: [EMAIL PROTECTED] | [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Jones | Sent: Tuesday, May 29, 2001 11:20 AM | To: Orion-Interest | Subject: Setting up a new web-application | | | I have a web application that works fine on Tomcat 4.0b5. I'm | trying to run | it on Orion as a proof of concept but I can't get much working! I've | followed the 'atm' example in the notes and have the | following structure | | orion\applications\addressbook | orion\applications\addressbook\META-INF | orion\applications\addressbook\AddressBook | orion\applications\addressbook\AddressBook\WEB-INF | orion\applications\addressbook\AddressBook\WEB-INF\classes | orion\applications\addressbook\AddressBook\WEB-INF\lib | | I've updated server.xml (with this application name=AddressBook | path=../applications/AddressBook/ / ) | and default-web-site.xml (with this web-app | application=AddressBook | name=AddressBook root=/AddressBook /. | | I can browse to http:\\localhost:8080\AddressBook and it picks up the | welcome-file. | I can browse to a simple JSP (that has no beans etc.) | I can't browse to any servlet, so | http://localhost:8080/AddressBook/servlet/com.develop.ewebjava | .lab.Browse | and | http://localhost:8080/AddressBook/servlet/SimpleServlet | | both return 404 Not Found Resource | /AddressBook/servlet/SimpleServlet not | found on this server | | but both classes are in | orion\applications\addressbook\AddressBook\WEB-INF\classes | | I can't browse to a JSP that uses beans that are in | orion\applications\addressbook\AddressBook\WEB-INF\classes | | And I can't get Orion to load an application listener that is also in | orion\applications\addressbook\AddressBook\WEB-INF\classes | | Orion obviously can't find classes in | orion\applications\addressbook\AddressBook\WEB-INF\classes but | this should | be automatically added to the classpath for this application. | | What am I missing? I assume it must be configuration setting but I can't | find anything in the docs, | | Kevin Jones | DevelopMentor | www.develop.com | | | | | |
RE: CMP creation
A very nice aspect of orion is that it can automatically create the tables for you. Just deploy your application and you'll see it 'autocreating table...'. But ofcourse you sometimes want to use existing tables. To do that you let it deploy just like above. This will create a directory orion/application-deployments/your-app/your-ejb. This contains a file orion-ejb-jar.xml which you can modify according to the documentation on http://www.orionserver.com/docs/orion-ejb-jar.xml.html. Depending on your orion version you should copy this file to: - the your-ejb/META-INF directory containing the ejb-jar.xml for version 1.4.8 and up - a directory your-ejb/orion for older orion versions These directories are ofcourse in your source tree and not under orion/application-deployments. See http://www.orionsupport.com/articles/complex-or.html for some examples on how to modify orion-ejb-jar.xml. Marcel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Surendra Yadav Sent: Tuesday, May 29, 2001 2:48 PM To: Orion-Interest Subject: CMP creation Hi, I am new to Orion Server, while creating CMP bean in weblogic server we need to specify the Table Name and the mapping of the bean attributes to database table in an xml file. Can you please tell me in Orion where we can speicfy the table name and mapping. Regards Surendra
RE: Setting up a new web-application
You're right. In the online documentation it says /servlets but when you look at global-web-application.xml(in both 1.4.5 and 1.5.1) it says /servlet. Marcel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Jones Sent: Tuesday, May 29, 2001 3:17 PM To: Orion-Interest Subject: RE: Setting up a new web-application BTW According to the 1.4.5 documentation the default web directory mapping for servlets is /servlets, mind the plural this can't be right. Try browsing to http://localhost/servlet/SnoopServlet and http://localhost/servlets/SnoopServlet only the first URL works, Kevin Jones DevelopMentor www.develop.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Marcel Schutte Sent: 29 May 2001 11:47 To: Orion-Interest Subject: RE: Setting up a new web-application Hi, According to the 1.4.5 documentation the default web directory mapping for servlets is /servlets, mind the plural (http://www.orionserver.com/docs/orion-web.xml.html). But since none of the classes in WEB-INF/classes are found there might be yet another problem. Could you perhaps post a zip of your orion\applications\addressbook directory tree, I'll try it out and see what I can find. Marcel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Jones Sent: Tuesday, May 29, 2001 11:20 AM To: Orion-Interest Subject: Setting up a new web-application I have a web application that works fine on Tomcat 4.0b5. I'm trying to run it on Orion as a proof of concept but I can't get much working! I've followed the 'atm' example in the notes and have the following structure orion\applications\addressbook orion\applications\addressbook\META-INF orion\applications\addressbook\AddressBook orion\applications\addressbook\AddressBook\WEB-INF orion\applications\addressbook\AddressBook\WEB-INF\classes orion\applications\addressbook\AddressBook\WEB-INF\lib I've updated server.xml (with this application name=AddressBook path=../applications/AddressBook/ / ) and default-web-site.xml (with this web-app application=AddressBook name=AddressBook root=/AddressBook /. I can browse to http:\\localhost:8080\AddressBook and it picks up the welcome-file. I can browse to a simple JSP (that has no beans etc.) I can't browse to any servlet, so http://localhost:8080/AddressBook/servlet/com.develop.ewebjava .lab.Browse and http://localhost:8080/AddressBook/servlet/SimpleServlet both return 404 Not Found Resource /AddressBook/servlet/SimpleServlet not found on this server but both classes are in orion\applications\addressbook\AddressBook\WEB-INF\classes I can't browse to a JSP that uses beans that are in orion\applications\addressbook\AddressBook\WEB-INF\classes And I can't get Orion to load an application listener that is also in orion\applications\addressbook\AddressBook\WEB-INF\classes Orion obviously can't find classes in orion\applications\addressbook\AddressBook\WEB-INF\classes but this should be automatically added to the classpath for this application. What am I missing? I assume it must be configuration setting but I can't find anything in the docs, Kevin Jones DevelopMentor www.develop.com
[EJB/Servlet 1.5.1]Classpath driving me nuts...
Hi, I've a 'war' with a servlet. All needed jars and classes for the servlet resists under 'WEB-INF/lib' in the war-file, but orion doesn't find it automatically. My workaround is to build an 'ear' and in the root 'META-INF' I put an 'orion-application.xml' with an element library which explicitely includes the library path. The library path is 'the_unpacked_war/WEB-INF/lib'. But IMHO I think that all classes and jars in the WEB-INF/lib directory should by found automatically by the servlet container. Am I wrong? I've overlooked something? Regards Steffen... -- __ Steffen Stundzigmailto:[EMAIL PROTECTED] SMB GmbHhttp://www.smb-tec.com
JMS question
Some of us noticed that when you are programming JMS w/ orion, the strange NULLPointerException goes away when you take the connectionfactory lines out of the jms.xml in 1.4.7. Can anyone explain why the NPE goes away when those connectionfactory lines are taken out of the jms.xml in 1.4.7 but not in 1.5.1. thank you very much __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: CMP creation
In the orion-ejb-jar.xml file. When you first deploy your app, you can find that in the Orion/application-deployments/ dir Then copy this file in the same dir where your ejb-jar.xml reside and you change the file like the following example (see the table attribute): ?xml version=1.0? !DOCTYPE orion-ejb-jar PUBLIC -//Evermind//DTD Enterprise JavaBeans 1.1 runtime//EN http://www.orionserver.com/dtds/orion-ejb-jar.dtd; orion-ejb-jar deployment-version=1.5.1 deployment-time=e69c8a89d9 enterprise-beans entity-deployment name=nl.unwired.sgs.vwr.Usr location=nl.unwired.sgs.vwr.Usr wrapper=UsrHome_EntityHomeWrapper13 table=vwrusr data-source=jdbc/postgresEJBDS exclusive-write-access=true max-instances=10 primkey-mapping cmp-field-mapping name=id persistence-name=id / /primkey-mapping cmp-field-mapping name=grp_Id persistence-name=grp_id / .. ... ... Good luck, Eddie - Original Message - From: Surendra Yadav [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, May 29, 2001 2:48 PM Subject: CMP creation Hi, I am new to Orion Server, while creating CMP bean in weblogic server we need to specify the Table Name and the mapping of the bean attributes to database table in an xml file. Can you please tell me in Orion where we can speicfy the table name and mapping. Regards Surendra
RE: Setting up a new web-application
I've found the problem with this and its taken me the best part of a day! In my applications\AddressBook\AddressBook\web-inf\lib directory I have a copy of Xalan.jar. This also exists in the top level directory of Orion. The app uses the new(ish) TRaX APIs to do transforms so I need the latest version of Xalan. If I remove xalan.jar from the lib directory everything works OK (I can browse to a servlet) if I leave xalan.jar in there then no servlets work, in fact nothing in my web-inf\lib or web-inf\classes directory can be seen. This has to be a classloading problem! The 2.3 talks about this, my web-application's class loaders need to be separate from your application's (i.e. Orion's) class loaders - I know Magnus knows this ( :-) ). So - is this a known problem? Is there a fix available? Can I (safely) delete Xalan.jar from my orion directory? Kevin Jones DevelopMentor www.develop.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Marcel Schutte Sent: 29 May 2001 11:47 To: Orion-Interest Subject: RE: Setting up a new web-application Hi, According to the 1.4.5 documentation the default web directory mapping for servlets is /servlets, mind the plural (http://www.orionserver.com/docs/orion-web.xml.html). But since none of the classes in WEB-INF/classes are found there might be yet another problem. Could you perhaps post a zip of your orion\applications\addressbook directory tree, I'll try it out and see what I can find. Marcel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Jones Sent: Tuesday, May 29, 2001 11:20 AM To: Orion-Interest Subject: Setting up a new web-application I have a web application that works fine on Tomcat 4.0b5. I'm trying to run it on Orion as a proof of concept but I can't get much working! I've followed the 'atm' example in the notes and have the following structure orion\applications\addressbook orion\applications\addressbook\META-INF orion\applications\addressbook\AddressBook orion\applications\addressbook\AddressBook\WEB-INF orion\applications\addressbook\AddressBook\WEB-INF\classes orion\applications\addressbook\AddressBook\WEB-INF\lib I've updated server.xml (with this application name=AddressBook path=../applications/AddressBook/ / ) and default-web-site.xml (with this web-app application=AddressBook name=AddressBook root=/AddressBook /. I can browse to http:\\localhost:8080\AddressBook and it picks up the welcome-file. I can browse to a simple JSP (that has no beans etc.) I can't browse to any servlet, so http://localhost:8080/AddressBook/servlet/com.develop.ewebjava .lab.Browse and http://localhost:8080/AddressBook/servlet/SimpleServlet both return 404 Not Found Resource /AddressBook/servlet/SimpleServlet not found on this server but both classes are in orion\applications\addressbook\AddressBook\WEB-INF\classes I can't browse to a JSP that uses beans that are in orion\applications\addressbook\AddressBook\WEB-INF\classes And I can't get Orion to load an application listener that is also in orion\applications\addressbook\AddressBook\WEB-INF\classes Orion obviously can't find classes in orion\applications\addressbook\AddressBook\WEB-INF\classes but this should be automatically added to the classpath for this application. What am I missing? I assume it must be configuration setting but I can't find anything in the docs, Kevin Jones DevelopMentor www.develop.com
RE: configuration of web tier (JNDI)
Thanks for answer! But I still don't know could I put JNDI properties in web.xml? Could you give me some example? That would be great. Thanks. Denis Kranjcec -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Harley Rana Sent: Wednesday, May 30, 2001 2:05 AM To: Orion-Interest Subject: RE: configuration of web tier (JNDI) Hey Denis, its not to hard. You would package both the seperate tiers files into seperate .ear files, then in a servlet you would access a ejb by creating a properties file with your JNDI settings and setting the url to the machine hosting the ejb tier ( for now would be localhost, but could be anything ), create the InitalContext with the properties, and you can then access the bean on the ejb tier from the web tier. Its all about setting the IntialContex with the url of the right machine. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Denis Kranjcec Sent: Monday, May 28, 2001 7:14 AM To: Orion-Interest Subject: configuration of web tier (JNDI) Hi everyone! I'm new user of Orion and I have one problem. I want to separate web tier and ejb tier. Both tiers will be running in the same server for now, but later they will be on different Orion servers. How can I specify that my web tier make jndi lookup to ejb tier, where is JNDI server...? We have two applications and both have Login bean so I must be able to specify application where my web tier should make lookup. Configuration should be same as that tiers are on different servers. I have read Orion documentation, but there isn't examples, and I'm not able to figure it out how to configure it. Thanks in advance, Denis Kranjcec
Re: CMP creation
in the same xml file ejb-jar.xml - Original Message - From: Surendra Yadav [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, May 29, 2001 7:48 AM Subject: CMP creation Hi, I am new to Orion Server, while creating CMP bean in weblogic server we need to specify the Table Name and the mapping of the bean attributes to database table in an xml file. Can you please tell me in Orion where we can speicfy the table name and mapping. Regards Surendra
Re: Cocoon Error:Publishing Engine could not beinitialized:org.xml.sax.SAXNotRecognizedException
Hi James, James Fairbairn [EMAIL PROTECTED] wrote: I get the same error using IBM JDK1.3 for Win2k. Anyone know how to fix it? James - Original Message - From: Ganasen Gounden [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, May 23, 2001 8:28 AM Subject: Cocoon Error:Publishing Engine could not beinitialized:org.xml.sax.SAXNotRecognizedException This error can caused by the XML Parser. orion comes with the Sun XML Parser, where Cocoon needs Apache Xerces. You should use Xerces instead of the default orion parser. Hello I also have received an error when installing Cocoon on Orion as per the instructions from OrionSupport.com. Can anyone help? OS: Winnt, JDK: Sun 1.3.1, AppServer: Orion 1.4.5, Cocoon 1.8.2, Browser ie 5.5 Error Message: Publishing Engine could not be initialized: java.lang.RuntimeException: Error while initializing XSP engine: org.xml.sax.SAXNotRecognizedException: http://apache.org/xml/features/validation/schema at org.apache.xerces.framework.XMLParser.setFeature(XMLParser.java:1515) at org.apache.xerces.parsers.DOMParser.setFeature(DOMParser.java:659)... etc It seems that the Sun XML Parser doesn't support this schema validation feature. Regards Steffen... -- __ Steffen Stundzigmailto:[EMAIL PROTECTED] SMB GmbHhttp://www.smb-tec.com
Re: Alternate XML parser
Hi Bryant, Bryant Bunderson [EMAIL PROTECTED] wrote: Does anyone know the correct way to get Orion to use the Xerces parser? I've deleted the crimson.jar, parser.jar and jaxp.jar and put the xalan.jar and xerces.jar in the orion root directory. Works fine for me. Regards Steffen... -- __ Steffen Stundzigmailto:[EMAIL PROTECTED] SMB GmbHhttp://www.smb-tec.com
Re: Setting up a new web-application
Are the servlets defined inside your WEB-INF/web.xml ? - Original Message - From: Kevin Jones [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, May 29, 2001 5:20 PM Subject: Setting up a new web-application I have a web application that works fine on Tomcat 4.0b5. I'm trying to run it on Orion as a proof of concept but I can't get much working! I've followed the 'atm' example in the notes and have the following structure orion\applications\addressbook orion\applications\addressbook\META-INF orion\applications\addressbook\AddressBook orion\applications\addressbook\AddressBook\WEB-INF orion\applications\addressbook\AddressBook\WEB-INF\classes orion\applications\addressbook\AddressBook\WEB-INF\lib I've updated server.xml (with this application name=AddressBook path=../applications/AddressBook/ / ) and default-web-site.xml (with this web-app application=AddressBook name=AddressBook root=/AddressBook /. I can browse to http:\\localhost:8080\AddressBook and it picks up the welcome-file. I can browse to a simple JSP (that has no beans etc.) I can't browse to any servlet, so http://localhost:8080/AddressBook/servlet/com.develop.ewebjava.lab.Browse and http://localhost:8080/AddressBook/servlet/SimpleServlet both return 404 Not Found Resource /AddressBook/servlet/SimpleServlet not found on this server but both classes are in orion\applications\addressbook\AddressBook\WEB-INF\classes I can't browse to a JSP that uses beans that are in orion\applications\addressbook\AddressBook\WEB-INF\classes And I can't get Orion to load an application listener that is also in orion\applications\addressbook\AddressBook\WEB-INF\classes Orion obviously can't find classes in orion\applications\addressbook\AddressBook\WEB-INF\classes but this should be automatically added to the classpath for this application. What am I missing? I assume it must be configuration setting but I can't find anything in the docs, Kevin Jones DevelopMentor www.develop.com
Re: [EJB/Servlet 1.5.1]Classpath driving me nuts...
Just put your classpath in the /lib directory in Orions root. It works fine for directory structure in that directory and if you need to really specify something different or choose .jar files or something, edit application.xml in the config directory right after this line: !-- Path to the libraries that are installed on this server. These will accesible for the servlets, EJBs etc -- You will see how the ../lib directory is already mapped, go ahead and do the same for a jar file or another directory, or just put everything in the lib directory. Ben Steffen Stundzig wrote: Hi, I've a 'war' with a servlet. All needed jars and classes for the servlet resists under 'WEB-INF/lib' in the war-file, but orion doesn't find it automatically. My workaround is to build an 'ear' and in the root 'META-INF' I put an 'orion-application.xml' with an element library which explicitely includes the library path. The library path is 'the_unpacked_war/WEB-INF/lib'. But IMHO I think that all classes and jars in the WEB-INF/lib directory should by found automatically by the servlet container. Am I wrong? I've overlooked something? Regards Steffen... -- __ Steffen Stundzigmailto:[EMAIL PROTECTED] SMB GmbHhttp://www.smb-tec.com -- Ben Christensen Novisum Development Inc. www.novisum.com [EMAIL PROTECTED] 780-909-4707
Re: Setting up a new web-application
I hope anyone has the answer as I had the same problem... I did put an class file in the web-inf\lib web-inf\classes file that I use my servlets the servlets where not able to find them. I resolved it the same way as you did - put it in the lib of orion which seems to work.;( Eddie - Original Message - From: Kevin Jones [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, May 29, 2001 5:22 PM Subject: RE: Setting up a new web-application I've found the problem with this and its taken me the best part of a day! In my applications\AddressBook\AddressBook\web-inf\lib directory I have a copy of Xalan.jar. This also exists in the top level directory of Orion. The app uses the new(ish) TRaX APIs to do transforms so I need the latest version of Xalan. If I remove xalan.jar from the lib directory everything works OK (I can browse to a servlet) if I leave xalan.jar in there then no servlets work, in fact nothing in my web-inf\lib or web-inf\classes directory can be seen. This has to be a classloading problem! The 2.3 talks about this, my web-application's class loaders need to be separate from your application's (i.e. Orion's) class loaders - I know Magnus knows this ( :-) ). So - is this a known problem? Is there a fix available? Can I (safely) delete Xalan.jar from my orion directory? Kevin Jones DevelopMentor www.develop.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Marcel Schutte Sent: 29 May 2001 11:47 To: Orion-Interest Subject: RE: Setting up a new web-application Hi, According to the 1.4.5 documentation the default web directory mapping for servlets is /servlets, mind the plural (http://www.orionserver.com/docs/orion-web.xml.html). But since none of the classes in WEB-INF/classes are found there might be yet another problem. Could you perhaps post a zip of your orion\applications\addressbook directory tree, I'll try it out and see what I can find. Marcel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Jones Sent: Tuesday, May 29, 2001 11:20 AM To: Orion-Interest Subject: Setting up a new web-application I have a web application that works fine on Tomcat 4.0b5. I'm trying to run it on Orion as a proof of concept but I can't get much working! I've followed the 'atm' example in the notes and have the following structure orion\applications\addressbook orion\applications\addressbook\META-INF orion\applications\addressbook\AddressBook orion\applications\addressbook\AddressBook\WEB-INF orion\applications\addressbook\AddressBook\WEB-INF\classes orion\applications\addressbook\AddressBook\WEB-INF\lib I've updated server.xml (with this application name=AddressBook path=../applications/AddressBook/ / ) and default-web-site.xml (with this web-app application=AddressBook name=AddressBook root=/AddressBook /. I can browse to http:\\localhost:8080\AddressBook and it picks up the welcome-file. I can browse to a simple JSP (that has no beans etc.) I can't browse to any servlet, so http://localhost:8080/AddressBook/servlet/com.develop.ewebjava .lab.Browse and http://localhost:8080/AddressBook/servlet/SimpleServlet both return 404 Not Found Resource /AddressBook/servlet/SimpleServlet not found on this server but both classes are in orion\applications\addressbook\AddressBook\WEB-INF\classes I can't browse to a JSP that uses beans that are in orion\applications\addressbook\AddressBook\WEB-INF\classes And I can't get Orion to load an application listener that is also in orion\applications\addressbook\AddressBook\WEB-INF\classes Orion obviously can't find classes in orion\applications\addressbook\AddressBook\WEB-INF\classes but this should be automatically added to the classpath for this application. What am I missing? I assume it must be configuration setting but I can't find anything in the docs, Kevin Jones DevelopMentor www.develop.com
Is Orion free for government use (non-commercial use)?
I read orion is free for non-commerical use... would this include government agencies? Keith
Re: How do you make JDBC and EJB in same Transaction?
Further pursuing this problem... We thought our problem was fixed but it wasn't really. We changed the isolation level by setting the entity isolation property in the orion-ejb-jar.xml to 'committed'. It appeared to have solved the problem. Perhaps the jdbc driver / database combo we were using had a default isolation that was causing problems. Not sure though. We will run some more tests and will post with the conclusion.
Newbie Question-Running Cart Example
I followed the enclosed instructions, when I attempt to run: java -classpath ../../../orion.jar:../../../ejb.jar:../../../jndi.jar CartClient I get a Exception in thread main java.lang.NoClassDefFoundError: CartClient error message. Sorry for the basic question.
RE: Setting up a new web-application
and the point is that I shouldn't need to put the classes/jar in the Orion lib. I should be free to put whatever classes/jars I need in my own application. The only thing about this is that it is not an easy problem to solve (ask the Jakarta/Tomcat team), and for some reason it always seems to happen with XML/XSLT processors :-( Kevin Jones DevelopMentor www.develop.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie Sent: 29 May 2001 18:38 To: Orion-Interest Subject: Re: Setting up a new web-application I hope anyone has the answer as I had the same problem... I did put an class file in the web-inf\lib web-inf\classes file that I use my servlets the servlets where not able to find them. I resolved it the same way as you did - put it in the lib of orion which seems to work.;( Eddie - Original Message - From: Kevin Jones [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, May 29, 2001 5:22 PM Subject: RE: Setting up a new web-application I've found the problem with this and its taken me the best part of a day! In my applications\AddressBook\AddressBook\web-inf\lib directory I have a copy of Xalan.jar. This also exists in the top level directory of Orion. The app uses the new(ish) TRaX APIs to do transforms so I need the latest version of Xalan. If I remove xalan.jar from the lib directory everything works OK (I can browse to a servlet) if I leave xalan.jar in there then no servlets work, in fact nothing in my web-inf\lib or web-inf\classes directory can be seen. This has to be a classloading problem! The 2.3 talks about this, my web-application's class loaders need to be separate from your application's (i.e. Orion's) class loaders - I know Magnus knows this ( :-) ). So - is this a known problem? Is there a fix available? Can I (safely) delete Xalan.jar from my orion directory? Kevin Jones DevelopMentor www.develop.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Marcel Schutte Sent: 29 May 2001 11:47 To: Orion-Interest Subject: RE: Setting up a new web-application Hi, According to the 1.4.5 documentation the default web directory mapping for servlets is /servlets, mind the plural (http://www.orionserver.com/docs/orion-web.xml.html). But since none of the classes in WEB-INF/classes are found there might be yet another problem. Could you perhaps post a zip of your orion\applications\addressbook directory tree, I'll try it out and see what I can find. Marcel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Jones Sent: Tuesday, May 29, 2001 11:20 AM To: Orion-Interest Subject: Setting up a new web-application I have a web application that works fine on Tomcat 4.0b5. I'm trying to run it on Orion as a proof of concept but I can't get much working! I've followed the 'atm' example in the notes and have the following structure orion\applications\addressbook orion\applications\addressbook\META-INF orion\applications\addressbook\AddressBook orion\applications\addressbook\AddressBook\WEB-INF orion\applications\addressbook\AddressBook\WEB-INF\classes orion\applications\addressbook\AddressBook\WEB-INF\lib I've updated server.xml (with this application name=AddressBook path=../applications/AddressBook/ / ) and default-web-site.xml (with this web-app application=AddressBook name=AddressBook root=/AddressBook /. I can browse to http:\\localhost:8080\AddressBook and it picks up the welcome-file. I can browse to a simple JSP (that has no beans etc.) I can't browse to any servlet, so http://localhost:8080/AddressBook/servlet/com.develop.ewebjava .lab.Browse and http://localhost:8080/AddressBook/servlet/SimpleServlet both return 404 Not Found Resource /AddressBook/servlet/SimpleServlet not found on this server but both classes are in orion\applications\addressbook\AddressBook\WEB-INF\classes I can't browse to a JSP that uses beans that are in orion\applications\addressbook\AddressBook\WEB-INF\classes And I can't get Orion to load an application listener that is also in orion\applications\addressbook\AddressBook\WEB-INF\classes Orion obviously can't find classes in orion\applications\addressbook\AddressBook\WEB-INF\classes but this should be automatically added to the classpath for this application. What am I missing? I assume it must be configuration setting but I can't find anything in the docs, Kevin Jones DevelopMentor www.develop.com
Tracing SQL
Dear All, I'm having some trouble finding what Orion is doing in my databases. I get truncated data without any error messages. How can I see what SQL statements Orion executes? (MySQL, with the mm-mysql driver, if that matters). When I have a Java long datatype for a CMP property on an enity bean. It's mapped to int(11) in the database. How come the values are truncated? Who is clipping my longs? Kees Jan You are only young once, but you can stay immature all your life.
State info in EJB JMS??
Ok... I have my JMS EJB up and running now. It's a log3j wrapper to add extra functionality. However I want to store some information that has to be quickly available and I don't want to use a database for it. Any advice on how I should do this ?? For example: When an application sends a log message, I will log the message and send an SMS, if required. However if the same requests will appear again after a minute or so, because the problem hasn't been solved yet, I don't want another SMS to be send. So I need tot rember this, but how can I do this ??? That is: a JMS EJB, is stateless and will call ejbRemove() after processing the sms, so where should I store this information ?? Some advice please, before I "invent" some weird solution ;) Eddie
ATM example and Oracle
I am trying to deploy and run the ATM example using Oracle as database. Below is the data-sources.xml, I anticipate a problem in the file since orion is not finding the data source: data-source class=oracle.jdbc.driver.OracleDriver name=Oracle --- location= connection-driver=oracle.jdbc.driver.OracleDriver username=scott password=tiger url=jdbc:oracle:oci8:@ora816 inactivity-timeout=30 / What does the location should be? Any help is appreciated. Thanks, Mustafa __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
RE: JSP can't use local classes - What am I overlooking?
Sorry for the delay. I was using com.theseus instead of org.theseus in the JSP. Or, as I'll tell my boss There was a namespace collision. and launch into a description of packages. Thanks for all the help, Joe --- Marcel Schutte [EMAIL PROTECTED] wrote: I believe that you should have your package (jar) in the orion/lib directory, from your message it seems that you have it in WEB-INF/classes. That directory is usually for servlets. Eric. Just to point out that per Official Sun Servlets 2.2 / Jsp 1.1 Specifications, all jsp and servlets inside a context wiull use the WEB-INF/classes directory and all the jar (not zip) files inside the WEB-INF/lib directory in their classpath. Best Regards, Kazuma That's right and I might add that the orion/lib directory is certainly not meant for application specific jars. You use it for third party jdbc drivers like hypersonic and other supporting classes that are used by orion directly. J2EE specifies plenty of places to put your application specific jars, just like Kazuma points out. This means that Joe Fair has some other problem, could you perhaps post some extra info? Marcel __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: State info in EJB JMS?? Re: AW: EJB state question amp; Configurable EJB start-up
I am sorry, I just noticed that Pedrosuggested to store global state through a RMI object (some dayes ago... oepss... had some sand in my eye ..;) !!??? H did you ever manage to try this... and isn't there a better alternative ?? Hmmm, Eddie - Original Message - From: Eddie To: Orion-Interest Sent: Tuesday, May 29, 2001 9:15 PM Subject: State info in EJB JMS?? Ok... I have my JMS EJB up and running now. It's a log3j wrapper to add extra functionality. However I want to store some information that has to be quickly available and I don't want to use a database for it. Any advice on how I should do this ?? For example: When an application sends a log message, I will log the message and send an SMS, if required. However if the same requests will appear again after a minute or so, because the problem hasn't been solved yet, I don't want another SMS to be send. So I need tot rember this, but how can I do this ??? That is: a JMS EJB, is stateless and will call ejbRemove() after processing the sms, so where should I store this information ?? Some advice please, before I "invent" some weird solution ;) Eddie
Re: Counter gives naming exception
On Tue, May 29, 2001 at 03:15:07PM +0100, Koster, K.J. wrote: Ah, a fellow FreeBSD user. :-) Just curious, what are your experiences with Orion on FreeBSD? What JDK do you use? Yes :). My experiences (out of developing J2EE applications on FreeBSD + Orion, for quite some time now) are that FreeBSD is a satisfactory platform for running Orion. I mainly use linux-sun-jdk-1.3.0 (classic vm), but have also used freebsd-sun-jdk-1.2.2 (beta) and linux-sun-jdk-1.2.2, without any trouble. Used Tya for JIT on freebsd-sun-jdk-1.2.2. Markus -- Markus Holmberg | Give me Unix or give me a typewriter. [EMAIL PROTECTED] | http://www.freebsd.org/
Re: [EJB/Servlet 1.5.1]Classpath driving me nuts...
Steffen, That's how I read the spec, with one exception: place only *.jar files in web-inf/lib; place *.class files in web-inf/classes. I don't do either, however. I build an ear and place all the jar files in meta-inf/lib. Regards, Gordon. - Original Message - From: Steffen Stundzig [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, May 29, 2001 7:55 AM Subject: [EJB/Servlet 1.5.1]Classpath driving me nuts... Hi, I've a 'war' with a servlet. All needed jars and classes for the servlet resists under 'WEB-INF/lib' in the war-file, but orion doesn't find it automatically. My workaround is to build an 'ear' and in the root 'META-INF' I put an 'orion-application.xml' with an element library which explicitely includes the library path. The library path is 'the_unpacked_war/WEB-INF/lib'. But IMHO I think that all classes and jars in the WEB-INF/lib directory should by found automatically by the servlet container. Am I wrong? I've overlooked something? Regards Steffen... -- __ Steffen Stundzigmailto:[EMAIL PROTECTED] SMB GmbHhttp://www.smb-tec.com
RE: Tracing SQL
I don't believe there is any way to force Orion to spit out that information. However, when running against Hypersonic in server mode, you see all the SQL on the database console. I find this to be an excellent arrangement for development. If you wanted to, you could fairly easily write a JDBC wrapper that prints the SQL. I wouldn't be surprised if someone has already written such a creature. Jeff -Original Message- From: Koster, K.J. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 29, 2001 1:03 PM To: Orion-Interest Subject: Tracing SQL Dear All, I'm having some trouble finding what Orion is doing in my databases. I get truncated data without any error messages. How can I see what SQL statements Orion executes? (MySQL, with the mm-mysql driver, if that matters). When I have a Java long datatype for a CMP property on an enity bean. It's mapped to int(11) in the database. How come the values are truncated? Who is clipping my longs? Kees Jan You are only young once, but you can stay immature all your life.
RE: bugs in @page extends=.... in Orion implementation?
I believe this could be better modeled differently, because it leaves no room for the web server to implement its callbacks and java doesn't support multiple inheritance. -Original Message- From: Randahl Fink Isaksen [mailto:[EMAIL PROTECTED]] Sent: Martes, 29 de Mayo de 2001 3:01 To: Orion-Interest Subject: RE: bugs in @page extends= in Orion implementation? Well, can anyone confirm that JSP pages can extend your own class when using Orion??? Or has noone been able to use @page extends? I see many good reasons for implementing your own super class for your JSP pages. For instance, such a superclass could do logging of all client activities or it could do security checking. Randahl -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Robert Nicholson Sent: 25. maj 2001 21:15 To: Orion-Interest Subject: RE: bugs in @page extends= in Orion implementation? It's doing you a favour.Please elaborate on why you want to extend that class. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jiuyun Wang Sent: Friday, May 25, 2001 9:20 AM To: Orion-Interest Subject: Re: bugs in @page extends= in Orion implementation? It doesnot work, not matter which one (servlet/jspbase) I extends my jsp, orion jsp compiler just don't support extends -Jiuyun --- SCOTT FARQUHAR [EMAIL PROTECTED] wrote: It looks like your page should extend servlet and not jsppage. Just change JSPBase to extend servlet (and make the required changes). I haven't read the spec, but I imagine that extending OrionHttpJspPage is proprietary, and would not be part of the spec. Scott [EMAIL PROTECTED] 05/23/01 05:42am I create a class called JSPBase class which extends OrionHttpJspPage, and I put the @ page extends=packagename.JSPBase in my JSP file. however, orion give the following error: Superclass of the JSP page does not implement Servlet, invalid extends attribute. Does orion implement @page extends correctly? Any clarification? -Jiuyun __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ = Jiuyun Wang M.Sc. of Computer Sciences Sun Certified Programmer for Java 2 Platform IBM Certified Solution Enterprise Developer Phone: 919-696-0419(cel) Email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: Tracing SQL
Here is the JDBC debugging calls for Orion... just put them in your orion start statement using -D... for example "java -Ddatasource.verbose -Djdbc.debug -jar orion.jar" Property name Description datasource.verbose Setting this to true gives you verbose info on datasource-creation. When a new datasource is created (at startup) it will print something like this to the console: "jdbc:HypersonicSQL:defaultdb: Started" or "Orion Pooled jdbc:oracle:thin:@test.foo.com:1521:oracle8i: Started". You will also be notified when connections are opened, when connections are released to the pool, etc. jdbc.debug Setting this to true gives you some very verbose information when jdbc calls are made. This information is not as useful as the one for datasource.verbose. jdbc.nontx.autocommit Can be used to set whether autocommit should be on for non-transaction connections. Specify false to turn it off, normally it is on. jdbc.connection.debug If you are having trouble with leaking jdbc connections, set this to true to find out where the leaked connection was created. debug.jdbc.check Set this to true to perform additional tests when using jdbc.debug="true". "Koster, K.J." [EMAIL PROTECTED] wrote: Dear All,I'm having some trouble finding what Orion is doing in my databases. I gettruncated data without any error messages.How can I see what SQL statements Orion executes? (MySQL, with the mm-mysqldriver, if that matters).When I have a Java long datatype for a CMP property on an enity bean. It'smapped to int(11) in the database. How come the values are truncated? Who isclipping my longs?Kees JanYou are only young once,but you can stay immature all your life.Do You Yahoo!? Yahoo! Auctions $2 Million Sweepstakes - Got something to sell?
RE: proxying orion with IIS or iPlanet Web Server
I was afraid of that -- ISA is a minimum of $1,500. An expense for the free webserver. I'll look into, iWS, but since iPlanet sells a proxy server, too, I bet their webserver won't do it be default, either. Ah, well. Does this mean folks using Orion on NT/Win2k put Orion in their DMZ? -- Andrew -Original Message- From: Juan Lorandi (Chile) [mailto:[EMAIL PROTECTED]] Sent: Monday, May 28, 2001 13:40 To: Orion-Interest Subject: RE: proxying orion with IIS or iPlanet Web Server Dig into ISA server, It's the M$ reversed proxy solution. Or else, go into the ISAPI filter world (best of luck) JP
Re: ATM example and Oracle
Hello Mustafa, You need to put the JNDI location of the Datasource. Check out data-sources.xml.html in the docs. This locations does NOT support connection pooling and transactions. Tuesday, May 29, 2001, 3:22:36 PM, you wrote: MC I am trying to deploy and run the ATM example using MC Oracle as database. Below is the data-sources.xml, I MC anticipate a problem in the file since orion is not MC finding the data source: MC data-source MC class=oracle.jdbc.driver.OracleDriver MC name=Oracle MC --- location= MC connection-driver=oracle.jdbc.driver.OracleDriver MC username=scott MC password=tiger MC url=jdbc:oracle:oci8:@ora816 MC inactivity-timeout=30 MC / MC What does the location should be? MC Any help is appreciated. MC Thanks, MC Mustafa MC __ MC Do You Yahoo!? MC Yahoo! Auctions - buy the things you want at great prices MC http://auctions.yahoo.com/ -- Best regards, Rafaelmailto:[EMAIL PROTECTED]
Re: bugs in @page extends=.... in Orion implementation?
That's right, the two examples Randahl gives can be easily solved using the servlet2.3 filter mechanism, giving a very loose coupling of these features with your actual application. Marcel - Original Message - From: Juan Lorandi (Chile) [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, May 29, 2001 10:45 PM Subject: RE: bugs in @page extends= in Orion implementation? I believe this could be better modeled differently, because it leaves no room for the web server to implement its callbacks and java doesn't support multiple inheritance. -Original Message- From: Randahl Fink Isaksen [mailto:[EMAIL PROTECTED]] Sent: Martes, 29 de Mayo de 2001 3:01 To: Orion-Interest Subject: RE: bugs in @page extends= in Orion implementation? Well, can anyone confirm that JSP pages can extend your own class when using Orion??? Or has noone been able to use @page extends? I see many good reasons for implementing your own super class for your JSP pages. For instance, such a superclass could do logging of all client activities or it could do security checking. Randahl -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Robert Nicholson Sent: 25. maj 2001 21:15 To: Orion-Interest Subject: RE: bugs in @page extends= in Orion implementation? It's doing you a favour.Please elaborate on why you want to extend that class. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jiuyun Wang Sent: Friday, May 25, 2001 9:20 AM To: Orion-Interest Subject: Re: bugs in @page extends= in Orion implementation? It doesnot work, not matter which one (servlet/jspbase) I extends my jsp, orion jsp compiler just don't support extends -Jiuyun --- SCOTT FARQUHAR [EMAIL PROTECTED] wrote: It looks like your page should extend servlet and not jsppage. Just change JSPBase to extend servlet (and make the required changes). I haven't read the spec, but I imagine that extending OrionHttpJspPage is proprietary, and would not be part of the spec. Scott [EMAIL PROTECTED] 05/23/01 05:42am I create a class called JSPBase class which extends OrionHttpJspPage, and I put the @ page extends=packagename.JSPBase in my JSP file. however, orion give the following error: Superclass of the JSP page does not implement Servlet, invalid extends attribute. Does orion implement @page extends correctly? Any clarification? -Jiuyun __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ = Jiuyun Wang M.Sc. of Computer Sciences Sun Certified Programmer for Java 2 Platform IBM Certified Solution Enterprise Developer Phone: 919-696-0419(cel) Email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: Tracing SQL
That's right, I've got it at my daytime (work) PC. Look into it tomorrow morning (GMT+1). Right now I'm enjoying some winamp plugins and wine. Marcel - Original Message - From: Jeff Schnitzer [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, May 29, 2001 10:31 PM Subject: RE: Tracing SQL I don't believe there is any way to force Orion to spit out that information. However, when running against Hypersonic in server mode, you see all the SQL on the database console. I find this to be an excellent arrangement for development. If you wanted to, you could fairly easily write a JDBC wrapper that prints the SQL. I wouldn't be surprised if someone has already written such a creature. Jeff -Original Message- From: Koster, K.J. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 29, 2001 1:03 PM To: Orion-Interest Subject: Tracing SQL Dear All, I'm having some trouble finding what Orion is doing in my databases. I get truncated data without any error messages. How can I see what SQL statements Orion executes? (MySQL, with the mm-mysql driver, if that matters). When I have a Java long datatype for a CMP property on an enity bean. It's mapped to int(11) in the database. How come the values are truncated? Who is clipping my longs? Kees Jan You are only young once, but you can stay immature all your life.
RE: ATM example and Oracle
Mustafa, Here is one that I am using. Make sure your jdbc drivers are in the Orion's library directory. data-source class=com.evermind.sql.DriverManagerDataSource name=Oracle schema=database-schemas/oracle.xml location=jdbc/OracleCoreDS xa-location=jdbc/xa/OracleXADS ejb-location=jdbc/OracleDS connection-driver=oracle.jdbc.driver.OracleDriver username=myName password=myPasswd url=jdbc:oracle:thin:@myhost:1521:mydb inactivity-timeout=30 / I hope this will help you. Good Luck Doug Pham -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Mustafa Cayci Sent: Tuesday, May 29, 2001 2:23 PM To: Orion-Interest Subject: ATM example and Oracle I am trying to deploy and run the ATM example using Oracle as database. Below is the data-sources.xml, I anticipate a problem in the file since orion is not finding the data source: data-source class=oracle.jdbc.driver.OracleDriver name=Oracle --- location= connection-driver=oracle.jdbc.driver.OracleDriver username=scott password=tiger url=jdbc:oracle:oci8:@ora816 inactivity-timeout=30 / What does the location should be? Any help is appreciated. Thanks, Mustafa __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
RE: State info in EJB JMS?? Re: AW: EJB state question amp; Configurable EJB start-up
You might try a stateful session bean. -Original Message-From: Eddie [mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 29, 2001 12:21 PMTo: Orion-InterestSubject: Re: State info in EJB JMS?? Re: AW: EJB state question amp; Configurable EJB start-up I am sorry, I just noticed that Pedrosuggested to store global state through a RMI object (some dayes ago... oepss... had some sand in my eye ..;) !!??? H did you ever manage to try this... and isn't there a better alternative ?? Hmmm, Eddie - Original Message - From: Eddie To: Orion-Interest Sent: Tuesday, May 29, 2001 9:15 PM Subject: State info in EJB JMS?? Ok... I have my JMS EJB up and running now. It's a log3j wrapper to add extra functionality. However I want to store some information that has to be quickly available and I don't want to use a database for it. Any advice on how I should do this ?? For example: When an application sends a log message, I will log the message and send an SMS, if required. However if the same requests will appear again after a minute or so, because the problem hasn't been solved yet, I don't want another SMS to be send. So I need tot rember this, but how can I do this ??? That is: a JMS EJB, is stateless and will call ejbRemove() after processing the sms, so where should I store this information ?? Some advice please, before I "invent" some weird solution ;) Eddie
Re: ATM example and Oracle
Mustafa, I was able to get the ATM demo running. My sure you put the SID between host:SID:PORT Brandy From: Mustafa Cayci <[EMAIL PROTECTED]> Reply-To: Orion-Interest <[EMAIL PROTECTED]> To: Orion-Interest <[EMAIL PROTECTED]> Subject: ATM example and Oracle Date: Tue, 29 May 2001 12:22:36 -0700 (PDT) I am trying to deploy and run the ATM example using Oracle as database. Below is the data-sources.xml, I anticipate a problem in the file since orion is not finding the data source: class="oracle.jdbc.driver.OracleDriver" name="Oracle" --- location="" connection-driver="oracle.jdbc.driver.OracleDriver" username="scott" password="tiger" url="jdbc:oracle:oci8:@ora816" inactivity-timeout="30" / What does the location should be? Any help is appreciated. Thanks, Mustafa __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ Get your FREE download of MSN Explorer at http://explorer.msn.com
Webwork
Hi All, I was looking at Webwork and would like to know if anyone has used it with Orion and how to add it to Orion? I read the information for it but somehow did not see any instructions or any information about it at www.orionsupport.com Thank You Doug Pham
Writing System Properties - java.protocol.handler.pkgs
I'm having a serious problem that will keep us from shipping our application on Orion if I can't figure it out. I need to be able to set the system property java.protocol.handler.pkgs in an EJB to com.sun.net.ssl.internal.www.protocol. The EJB is C:\orion\applications\SystemAccess\SystemEJB.java I can read the property, it's null. But I can't write it without the following error: java.rmi.RemoteException: ; nested exception is: java.security.AccessControlException: access denied (java.util.PropertyPermission java.protocol.handler.pkgs write) java.security.AccessControlException: access denied (java.util.PropertyPermission java.protocol.handler.pkgs write) In my policy file I have the following: grant codeBase file:/orion/- { permission java.util.PropertyPermission *, read,write; permission java.util.PropertyPermission java.protocol.handler.pkgs, write; permission java.security.AllPermission; }; grant codeBase file:/orion/applications/SystemAccess/- { permission java.util.PropertyPermission *, read,write; permission java.util.PropertyPermission java.protocol.handler.pkgs, write; permission java.security.AllPermission; }; // default permissions granted to all domains grant { permission java.security.AllPermission; permission java.util.PropertyPermission *, write; permission java.util.PropertyPermission java.protocol.handler.pkgs, write; }; Please help! I need a solution, or a workaround, or a definite you can't do this in Orion. Thank you, Sarah Farrell [EMAIL PROTECTED]
RE: ATM example and Oracle
Doug, Thanks that worked. Mustafa --- Doug Pham [EMAIL PROTECTED] wrote: Mustafa, Here is one that I am using. Make sure your jdbc drivers are in the Orion's library directory. data-source class=com.evermind.sql.DriverManagerDataSource name=Oracle schema=database-schemas/oracle.xml location=jdbc/OracleCoreDS xa-location=jdbc/xa/OracleXADS ejb-location=jdbc/OracleDS connection-driver=oracle.jdbc.driver.OracleDriver username=myName password=myPasswd url=jdbc:oracle:thin:@myhost:1521:mydb inactivity-timeout=30 / I hope this will help you. Good Luck Doug Pham -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Mustafa Cayci Sent: Tuesday, May 29, 2001 2:23 PM To: Orion-Interest Subject: ATM example and Oracle I am trying to deploy and run the ATM example using Oracle as database. Below is the data-sources.xml, I anticipate a problem in the file since orion is not finding the data source: data-source class=oracle.jdbc.driver.OracleDriver name=Oracle --- location= connection-driver=oracle.jdbc.driver.OracleDriver username=scott password=tiger url=jdbc:oracle:oci8:@ora816 inactivity-timeout=30 / What does the location should be? Any help is appreciated. Thanks, Mustafa __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/