Re: Credit-Card Processing
but where to make this change? santosh -Original Message- From: denis despinoy [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Date: Tuesday, April 10, 2001 11:48 PM Subject: Re: Credit-Card Processing We ran into to the same prb and corrected as follow The certificate cn must match the url u are calling i.e cn=www.mysite.com That's it --- Santosh Kumar [EMAIL PROTECTED] wrote: Does anybody use Verisigns's Payflow Pro for credit card processing? If yes, when i am trying to connect to the verisign server it gives me -32 error code saying "The certificate chain did not validate, common name did not match URL" Help Santosh -Original Message- From: Jens Stutte [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Date: Tuesday, April 10, 2001 1:02 PM Subject: AW: Callbacks on session beans... are they legal? Yes, it's legal (and we're doing similar things successfully, with a mix of session and entity beans). As far as I understood, with entity beans the reentrantTrue/reentrant flag must be set in ejb-jar.xml (at least we set it and it works, never tried without). With session beans, no special settings are needed. Of course, this easily may lead to endless recursions, so be careful... -Ursprngliche Nachricht- Von: Alex Paransky [mailto:[EMAIL PROTECTED]] Gesendet am: Dienstag, 10. April 2001 01:42 An: Orion-Interest Betreff: Callbacks on session beans... are they legal? Is it legal for session bean A to create session bean B, and pass it to session bean C so that C can call on B? For example, if A is acting as a controller, B is acting as a factory, and C is acting as an algorithm. So a controller needs to execute an algorithm which requires a factory as one of it's parameters. As the algorithm runs, it calls on the factory to create the resources it needs. Thanks. -AP_ __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
Re: Building an application
Olivier, I have the same setup as you have and it works for me. What are the error messages that you get in the error log? Just an internal server error? It sounds like orion is not able to "load" you application because of a configuration issue and that's why even the index.html doesn't work. Good luck with it, Dan olivier wrote: Dan, The error I have is 500 (http internal server error), when I type http://localhost/taskforce If I type http://localhost, I have the orion home page. This the tree of the applications directory, once expanded by orion. D:\JAVA\ORION\APPLICATIONS taskforce.ear \---taskforce taskforce.war userEJB.jar +---META-INF application.xml \---taskforce index.html +---images +---META-INF \---WEB-INF +---classes | +---net | | \---tnt | | +---user | | | \---model | | +---util | | \---web | | +---control | | \---taglib | \---org | \---apache | \---struts | \---resources +---lib \---tlds The server.xml and default-web-site.xml have been modified as mentionned at the bottom of this mail. I have tried to modify the context root to "/" but it did not change. I have just noticed that you can set the root="/taskforce" in default-web-site.xml web-app application="taskforce" name="taskforce-web" root="/taskforce"/ and also in the /META-INF/application.xml of you ear(context-root/taskforce/context) I suppose they must be the same (which is the case for me). What is the role of each ? I guess there are 2 possible source of error 1) the way I have update the server.xml and default-web-site.xml (default-web-site.xml) web-app application="taskforce" name="taskforceWebApp" root="/taskforce"/ (server.xml) application name="taskforce" path="../applications/taskforce.ear" / 2) the directory structure (see above) Thanks, Olivier -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Lopez Sent: 10 April 2001 07:05 To: Orion-Interest Subject: Re: Building an application Hi Oliver, Last week I was plating with the same thing and I was successful with pretty much the same configuration that you have, except that in application.xml I set the context root to / (context-root//context-root). Which error are you getting ? 404? Can you see your .ear file unpackaged? regards, Dan olivier wrote: Hi, I am new to Orion, and I have recently been trying to build an application (ear) with not much success. Basically, Orion seems to deploys all the components, but I can't get the first page to open on the browser. I am using struts as a framework, with the fix I have seen on this site (remove the dtd from the jar and put them under classes), and struts does not seem to be the problem now (especially since my first page is an index.html) The ear is in orion\applications userEjb.jar taskforce.war \META-INF application.xml source of application.xml for the ear application display-nametaskforce/display-name descriptionApplication description/description module web web-uritaskforce.war/web-uri context-root/taskforce/context-root /web /module module ejbuserEjb.jar/ejb /module /application I put this in default-web-site web-app application="taskforce" name="taskforceWebApp" root="/taskforce"/ this in server.xml application name="taskforce" path="../applications/taskforce.ear" / I have tried with the news.ear coming with orion, but same problem. Any clue? Thanks, olivier
Re: During development, how to allow only a couple of ips,includingmylocal system, to view the site?
Hey Kev, It seems that after that long discussion on the JSP list, each one ended up building his own MVC framework, remember that? ;) At the beginning, I also integrated this feature inside my framework but then I realised that this way I wouldn't be able to re-use it for other applications, or even for static content. That's the reason why I ended up creating a filter. But there are some things I don't like about filters: They have to be configured in the web.xml and they are not easily integrated with other parts of the framework, unless you share objetcs through the context or something simliar. What I would love to have is a "feedback" mechanism to provide the containers with some extra information/configuration that is not included in the web.xml. This way I could just configure everything in my own framework configuration file and then I would give the feedback to the container. Otherwise, if you use filters for logging, authentication, IP filtering... your web.xml ends up being extra-large and having the application configured in two places is error-prone. But well, such a feedback API is not in place so... ;) Talking about the IP filter, if you are interested, I can show you my DTD and even some code as it is nothing extra-complex. Regards, Dan Kevin Duffey wrote: Hey Daniel, That is a great idea..DUH! ;) I am using my own simple MVC framework, and I should just put in a feature in the web.xml that gets read in as an init parameter that designates ips that are allowed/now allowed to access the application. Its simple enough to do. Thanks. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Lopez Sent: Monday, April 09, 2001 3:28 AM To: Orion-Interest Subject: Re: During development, how to allow only a couple of ips,including my local system, to view the site? Hi Kev, I had a similar problem but for my production applications. I wanted my solution to be flexible and server independent so what I did was create a servlet filter, as someone else has already suggested. I've had it for production for almost a month and so far so good. I have to admit that I went a little further down the road and I allowed to specify the IP/hostnames to be allowed denied through an xml file that can be read from a file, a URL or a database. That way I got maximum flexibility. These are the links that I used to create my filter: http://developer.java.sun.com/developer/technicalArticles/Servlets/servletap i2.3\ http://www.orionserver.com/tutorials/filters/ I hope this helps, Dan Kevin Duffey wrote: Hi all, I would like to block out ALL ips from viewing my site (using my static ip) except for a few ips, which are from co-workers over the internet. Is this possible? If so, how? I read in the orion-web.xml.html file about ip-access tag, and when I tried it, it did block off all ips. But when I added when to allow it, such as "localhost" or my direct IP, sometimes it wouldn't allow it, and other times the browser sat and spun for about 5 minutes, then reported a time out. Thanks. -- --- Daniel Lopez Janariz ([EMAIL PROTECTED]) Web Services Computer Center Balearic Islands University --- -- --- Daniel Lopez Janariz ([EMAIL PROTECTED]) Web Services Computer Center Balearic Islands University ---
javax.crypto
Hi, Does anyone cantell me wherethe packagejavax.crypto is? Thanks in advance, Van Duong
RE: Building an application
Thanks everyone, Switching off the "friendly" message, help me figuring out. It is now working. I had to modify 3 config files (instead of 2...see at the bottom of this mail): application.xml: web-module id="taskforce" path="../applications/taskforce.ear" / default-web-site.xml web-app application="taskforce" name="taskforce" root="/taskforce"/ server.xml application name="taskforce" path="../applications/taskforce.ear"/ Does it look allright or redondant ??? Is there a way to access a log class in Orion (is is standard to all EJB servers ?) Thanks again, Olivier -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of SCOTT FARQUHAR Sent: 11 April 2001 00:29 To: Orion-Interest Subject: RE: Building an application Two things that might be of interest: !-- The default web-app for this site, bound to the root -- default-web-app application="default" name="defaultWebApp" / in default-web-site.xml . I assume that you can map an application to root by changing that? Turn off "friendly error messages" in Internet Explorer (tools-options-advanced-show friendly http error messages). A 500 could mean anything. Once you get the stack trace you might be able to determine what the problem is. Scott [EMAIL PROTECTED] 04/11/01 04:21am Dan, The error I have is 500 (http internal server error), when I type http://localhost/taskforce If I type http://localhost, I have the orion home page. This the tree of the applications directory, once expanded by orion. D:\JAVA\ORION\APPLICATIONS taskforce.ear \---taskforce taskforce.war userEJB.jar +---META-INF application.xml \---taskforce index.html +---images +---META-INF \---WEB-INF +---classes | +---net | | \---tnt | | +---user | | | \---model | | +---util | | \---web | | +---control | | \---taglib | \---org | \---apache | \---struts | \---resources +---lib \---tlds The server.xml and default-web-site.xml have been modified as mentionned at the bottom of this mail. I have tried to modify the context root to "/" but it did not change. I have just noticed that you can set the root="/taskforce" in default-web-site.xml web-app application="taskforce" name="taskforce-web" root="/taskforce"/ and also in the /META-INF/application.xml of you ear(context-root/taskforce/context) I suppose they must be the same (which is the case for me). What is the role of each ? I guess there are 2 possible source of error 1) the way I have update the server.xml and default-web-site.xml (default-web-site.xml) web-app application="taskforce" name="taskforceWebApp" root="/taskforce"/ (server.xml) application name="taskforce" path="../applications/taskforce.ear" / 2) the directory structure (see above) Thanks, Olivier -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Lopez Sent: 10 April 2001 07:05 To: Orion-Interest Subject: Re: Building an application Hi Oliver, Last week I was plating with the same thing and I was successful with pretty much the same configuration that you have, except that in application.xml I set the context root to / (context-root//context-root). Which error are you getting ? 404? Can you see your .ear file unpackaged? regards, Dan olivier wrote: Hi, I am new to Orion, and I have recently been trying to build an application (ear) with not much success. Basically, Orion seems to deploys all the components, but I can't get the first page to open on the browser. I am using struts as a framework, with the fix I have seen on this site (remove the dtd from the jar and put them under classes), and struts does not seem to be the problem now (especially since my first page is an index.html) The ear is in orion\applications userEjb.jar taskforce.war \META-INF application.xml source of application.xml for the ear application display-nametaskforce/display-name descriptionApplication description/description module web web-uritaskforce.war/web-uri context-root/taskforce/context-root /web /module module ejbuserEjb.jar/ejb /module /application I put this in default-web-site web-app application="taskforce" name="taskforceWebApp" root="/taskforce"/ this in server.xml application name="taskforce" path="../applications/taskforce.ear" / I have tried with the news.ear coming with orion, but same problem. Any clue? Thanks, olivier
SV: Building an application
Title: SV: Building an application Why do you include taskforce.ear as an web-application in the global application ? (application.xml) ? -Ursprungligt meddelande- Från: olivier [mailto:[EMAIL PROTECTED]] Skickat: den 11 april 2001 02:09 Till: Orion-Interest Ämne: RE: Building an application Thanks everyone, Switching off the friendly message, help me figuring out. It is now working. I had to modify 3 config files (instead of 2...see at the bottom of this mail): application.xml: web-module id=taskforce path=../applications/taskforce.ear / default-web-site.xml web-app application=taskforce name=taskforce root=/taskforce/ server.xml application name=taskforce path=../applications/taskforce.ear/ Does it look allright or redondant ??? Is there a way to access a log class in Orion (is is standard to all EJB servers ?) Thanks again, Olivier -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of SCOTT FARQUHAR Sent: 11 April 2001 00:29 To: Orion-Interest Subject: RE: Building an application Two things that might be of interest: !-- The default web-app for this site, bound to the root -- default-web-app application=default name=defaultWebApp / in default-web-site.xml . I assume that you can map an application to root by changing that? Turn off friendly error messages in Internet Explorer (tools-options-advanced-show friendly http error messages). A 500 could mean anything. Once you get the stack trace you might be able to determine what the problem is. Scott [EMAIL PROTECTED] 04/11/01 04:21am Dan, The error I have is 500 (http internal server error), when I type http://localhost/taskforce If I type http://localhost, I have the orion home page. This the tree of the applications directory, once expanded by orion. D:\JAVA\ORION\APPLICATIONS taskforce.ear \---taskforce taskforce.war userEJB.jar +---META-INF application.xml \---taskforce index.html +---images +---META-INF \---WEB-INF +---classes | +---net | | \---tnt | | +---user | | | \---model | | +---util | | \---web | | +---control | | \---taglib | \---org | \---apache | \---struts | \---resources +---lib \---tlds The server.xml and default-web-site.xml have been modified as mentionned at the bottom of this mail. I have tried to modify the context root to / but it did not change. I have just noticed that you can set the root=/taskforce in default-web-site.xml web-app application=taskforce name=taskforce-web root=/taskforce/ and also in the /META-INF/application.xml of you ear(context-root/taskforce/context) I suppose they must be the same (which is the case for me). What is the role of each ? I guess there are 2 possible source of error 1) the way I have update the server.xml and default-web-site.xml (default-web-site.xml) web-app application=taskforce name=taskforceWebApp root=/taskforce/ (server.xml) application name=taskforce path=../applications/taskforce.ear / 2) the directory structure (see above) Thanks, Olivier -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Lopez Sent: 10 April 2001 07:05 To: Orion-Interest Subject: Re: Building an application Hi Oliver, Last week I was plating with the same thing and I was successful with pretty much the same configuration that you have, except that in application.xml I set the context root to / (context-root//context-root). Which error are you getting ? 404? Can you see your .ear file unpackaged? regards, Dan olivier wrote: Hi, I am new to Orion, and I have recently been trying to build an application (ear) with not much success. Basically, Orion seems to deploys all the components, but I can't get the first page to open on the browser. I am using struts as a framework, with the fix I have seen on this site (remove the dtd from the jar and put them under classes), and struts does not seem to be the problem now (especially since my first page is an index.html) The ear is in orion\applications userEjb.jar taskforce.war \META-INF application.xml source of application.xml for the ear application display-nametaskforce/display-name descriptionApplication description/description module web web-uritaskforce.war/web-uri context-root/taskforce/context-root /web /module module ejbuserEjb.jar/ejb /module /application I put this in default-web-site web-app application=taskforce name=taskforceWebApp root=/taskforce/ this in server.xml application name=taskforce path=../applications/taskforce.ear / I have tried with the news.ear coming with orion, but same problem. Any clue? Thanks, olivier
RE: Alternative Deployment
Thanks for your input Dan, The dilemma that we face is not a question of failover. We propose to have a hardware loadbalancer such as local director fronting a number of apache servers that talk to a cluster of J2EE application servers, which in turn talk to a clustered database. This gives us scaleability and reliability. Our problem is that our users rely on our site being up all of the time. If our site is down for even a day we could pottentially to lose all our users. I understand your suggestion of using orion as a backup, but if we were to find a fundamental fault in the server then no matter how many orion servers we used we would not get away from it. And at present there is nobody (officially) that we could turn to for support to help resolve the issue. This makes company directors very nervous and with a big emphasis put on uptime and availability of our site they have to buy into the solution. On a simmilar note. It seems that the orion load balancer app becomes a single point of failiure and I have read many accounts of it being buggy and slow. Do you know of any way of replacing this application transparently with an alternative and keep session integrity? I read an old posting suggesting a product called FOUNDRY. Does any one have any more info on this? Thanks, Calvin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dan North Sent: 10 April 2001 10:57 To: Orion-Interest Subject: RE: Alternative Deployment Following up the failover approach,
RE: Alternative Deployment
Randy, Thanks for the info on flashline. I have already looked there and read a number of the reviews. That is how I stumbled across orion. My original idea was to consider orion as the main server with JRun as a potential 'swap in' backup. But there are so many app servers available and there isn't the time to evaluate them all so I wanted to make sure that I had not missed any gems. Q. How do jboss/jetty, jboss/tomcat stand up against orion? Q. Randy you mentioned that Oracle 8I comes with EJB technology. What support do they provide? and with what product? It would be nice to stick with orion, but at the end of the day the final choice of server is not my decision and we may end up using the suggested backup as the main server (because of the support that comes with it) and consider orion as its backup. Thank, Calvin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kemp Randy-W18971 Sent: 09 April 2001 18:48 To: Orion-Interest Subject: RE: Alternative Deployment Calvin: There are approximately 35 servers,
Re: request.getParameter() not working under solaris?
probably you have to mention the char-set. I am not sure how you do this santosh -Original Message- From: Taavi Tiirik [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Date: Wednesday, April 11, 2001 3:40 PM Subject: request.getParameter() not working under solaris? I am experiencing strange behaviour of Orion 1.4.5 running on PC Solaris 8 with jdk1.3. I do not get expected results when calling request.getParameter() on a jsp page. If I submit certain characters like "" for example (ie auml;) then request.getParameter() returns character with a code 65533. The same jsp page works with following configurations: Orion1.4.5, Win2000, jdk 1.3 Tomcat3.2.1, the very same Solaris, jdk 1.3 Tomcat3.2.1, Win2000, jdk 1.3 Start of jsp page htmlbody text="%= request.getParameter( "text" ) %" form input type="text" name="text" input type="submit" /form /body/html End of jsp page -- Please, I could really use your help to solve this. If I cannot get orion working under Solaris I will have to change application server ASAP. Any thoughts are welcome. with best regards, Taavi
war and ear
I got the script working to build an ear file. Now I'd like to use the D:\orionjava -jar admin.jar ormi://192.168.1.123/ admin utv -deploy -file d:\orion\deployment\aller.ear -deploymentName aller deploy.txt command line to deploy the updated application but I get D:\orionmore deploy.txtjava.lang.StackOverflowError at com.evermind.server.ThreadState.getCurrentState(JAX) at com.evermind.server.ApplicationServerSystemProperties.getProperty(JAX) and an eternal loop. I'm using D:\orionjava -jar orion.jar -versionOrion/1.4.7 (build 10011) What do I do wrong? Or is it a bug in 1.4.7? Saw in the archives that it was indeed a bug in 1.3.8, but was solved with 1.4.5. Is the bug back in 1.4.7? Johan
RE: Building an application
Logging is something that has been rather overlooked in java. The proposed Java 1.4 contains a logging api, but in the meantime, the log4j project at jakarta.apache.org/log4j is an excellent framework suitable for most architectures. We use it all the time in servlets, EJBs, taglibs, etc and it works very well. The OpenSymphony open source project (www.opensymphony.com) contains a class called com.opensymphony.util.Logger in oscore.jar (you can obtain and build this through anonymous cvs) which conveniently hides all the things you don't need to know about log4j. You use it like this: import com.opensymphony.util.Logger; public class MyClass { private static final Logger logger = new Logger( MyClass.class ); ... public void myMethod() { logger.debug( "This is a debug message" ); logger.info( "This is info" ); logger.warn( "Guess what this is?" ); logger.error( "Bad news" ); logger.fatal( "REALLY bad news" ); ... It reads in a properties file which is described in the log4j docs, and is accessed by the logger.config system property, eg: java -Dlogger.config=/path/to/my/logger.properties MyClass which allows you to switch logging on and off, and record only certain priorities of logging, send debug to the console and error to syslog or the Event Logger in NT, etc. Very clean, simple and nice to use. Hope that helps, Dan/tastapod ps. I have no commercial affiliation in opensymphony, but Logger is possibly the class I use the most anywhere in java, after java.lang.String :o) At 10:09 11/04/2001 +0100, you wrote: Thanks everyone, Switching off the "friendly" message, help me figuring out. It is now working. I had to modify 3 config files (instead of 2...see at the bottom of this mail): application.xml: web-module id="taskforce" path="../applications/taskforce.ear" / default-web-site.xml web-app application="taskforce" name="taskforce" root="/taskforce"/ server.xml application name="taskforce" path="../applications/taskforce.ear"/ Does it look allright or redondant ??? Is there a way to access a log class in Orion (is is standard to all EJB servers ?) Thanks again, Olivier -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of SCOTT FARQUHAR Sent: 11 April 2001 00:29 To: Orion-Interest Subject: RE: Building an application Two things that might be of interest: !-- The default web-app for this site, bound to the root -- default-web-app application="default" name="defaultWebApp" / in default-web-site.xml . I assume that you can map an application to root by changing that? Turn off "friendly error messages" in Internet Explorer (tools-options-advanced-show friendly http error messages). A 500 could mean anything. Once you get the stack trace you might be able to determine what the problem is. Scott [EMAIL PROTECTED] 04/11/01 04:21am Dan, The error I have is 500 (http internal server error), when I type http://localhost/taskforce If I type http://localhost, I have the orion home page. This the tree of the applications directory, once expanded by orion. D:\JAVA\ORION\APPLICATIONS taskforce.ear \---taskforce taskforce.war userEJB.jar +---META-INF application.xml \---taskforce index.html +---images +---META-INF \---WEB-INF +---classes | +---net | | \---tnt | | +---user | | | \---model | | +---util | | \---web | | +---control | | \---taglib | \---org | \---apache | \---struts | \---resources +---lib \---tlds The server.xml and default-web-site.xml have been modified as mentionned at the bottom of this mail. I have tried to modify the context root to "/" but it did not change. I have just noticed that you can set the root="/taskforce" in default-web-site.xml web-app application="taskforce" name="taskforce-web" root="/taskforce"/ and also in the /META-INF/application.xml of you ear(context-root/taskforce/context) I suppose they must be the same (which is the case for me). What is the role of each ? I guess there are 2 possible source of error 1) the way I have update the server.xml and default-web-site.xml (default-web-site.xml) web-app application="taskforce" name="taskforceWebApp" root="/taskforce"/ (server.xml) application name="taskforce" path="../applications/taskforce.ear" / 2) the directory structure (see above) Thanks, Olivier -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Lopez Sent: 10 April 2001 07:05 To: Orion-Interest Subject: Re: Building an application Hi Oliver, Last week
Generating set methods
Hi, I have a jsp page with the jsp:setProperty tag. How is this linked to the remote interface of my session bean so that it automatically generates my set method calls in the generated page. I have an application which has been working happily with several such pages. I now have a new application with a simple page and it is not generating the set method calls. I have switched development on and looked at the code in the persistence directory. Is the link just in the tag i.e. class="" or is there additional information required i.e. in the ejb-jar.xml file. Here the remote interface is defined but it seems to have no effect ?? Some wise words please. /Dominic begin:vcard n:Hanlan;Dominic x-mozilla-html:TRUE org:;VG24 adr:;; version:2.1 email;internet:[EMAIL PROTECTED] note:+32 3 240 8265 x-mozilla-cpt:;-7968 fn:Dominic Hanlan end:vcard
RE: Alternative Deployment
Well, then don't use J2EE. BEA support is supposed to be the best, and sure, it's pretty nice in that if you've spent lots of money, your issue can be escalated quickly, but if it is a real bug, it'll eventually come down to 'yes, it's a bug, it'll be fixed in the next service pack', which is often not due for another few weeks (by the way, this is exactly the situation I was in). I think you'll find that there are plenty of users on this list who have deployed Orion on a high-availability site that have been running smoothly for months now, it's just that when it works, there's very little reason to be loud and vocal about it. On Wed, 11 Apr 2001, calvin matthews wrote: Thanks for your input Dan, The dilemma that we face is not a question of failover. We propose to have a hardware loadbalancer such as local director fronting a number of apache servers that talk to a cluster of J2EE application servers, which in turn talk to a clustered database. This gives us scaleability and reliability. Our problem is that our users rely on our site being up all of the time. If our site is down for even a day we could pottentially to lose all our users. I understand your suggestion of using orion as a backup, but if we were to find a fundamental fault in the server then no matter how many orion servers we used we would not get away from it. And at present there is nobody (officially) that we could turn to for support to help resolve the issue. This makes company directors very nervous and with a big emphasis put on uptime and availability of our site they have to buy into the solution. On a simmilar note. It seems that the orion load balancer app becomes a single point of failiure and I have read many accounts of it being buggy and slow. Do you know of any way of replacing this application transparently with an alternative and keep session integrity? I read an old posting suggesting a product called FOUNDRY. Does any one have any more info on this? Thanks, Calvin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dan North Sent: 10 April 2001 10:57 To: Orion-Interest Subject: RE: Alternative Deployment Following up the failover approach,
RE: request.getParameter() not working under solaris?
probably you have to mention the char-set. I am not sure how you do this Specifying char-set does not help. At least, when I add meta tag like this: head meta http-equiv="Content-Type" content="text/html; charset=utf-8" /head It does not really matter what charset I use. Whenever I ask (int)request.getParameter( "text" ).charAt( 0 ) It gives me the very same character code 65533. Please, any ideas? with best regards, Taavi I am experiencing strange behaviour of Orion 1.4.5 running on PC Solaris 8 with jdk1.3. I do not get expected results when calling request.getParameter() on a jsp page. If I submit certain characters like "" for example (ie auml;) then request.getParameter() returns character with a code 65533. The same jsp page works with following configurations: Orion1.4.5, Win2000, jdk 1.3 Tomcat3.2.1, the very same Solaris, jdk 1.3 Tomcat3.2.1, Win2000, jdk 1.3 Start of jsp page htmlbody text="%= request.getParameter( "text" ) %" form input type="text" name="text" input type="submit" /form /body/html End of jsp page -- Please, I could really use your help to solve this. If I cannot get orion working under Solaris I will have to change application server ASAP. Any thoughts are welcome. with best regards, Taavi
Using applets in orion
How do specify the path for an applet in the HTML code - when the applet is a standalone class file - when the applet is part of a jar archive Whatever approach I try I have problems with the relative paths Thankful for any hints /Fredrik Olsson _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
RE: Alternative Deployment
Do you also have at least two connections to the Web through different ISPs? If not then you have multiple single points of failure in your system besides the Load balancing app. A hardware load balancer is a single point of failure as well. Thanks, Ron White -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of calvin matthews Sent: Wednesday, April 11, 2001 6:07 AM To: Orion-Interest Subject: RE: Alternative Deployment Thanks for your input Dan, The dilemma that we face is not a question of failover. We propose to have a hardware loadbalancer such as local director fronting a number of apache servers that talk to a cluster of J2EE application servers, which in turn talk to a clustered database. This gives us scaleability and reliability. Our problem is that our users rely on our site being up all of the time. If our site is down for even a day we could pottentially to lose all our users. I understand your suggestion of using orion as a backup, but if we were to find a fundamental fault in the server then no matter how many orion servers we used we would not get away from it. And at present there is nobody (officially) that we could turn to for support to help resolve the issue. This makes company directors very nervous and with a big emphasis put on uptime and availability of our site they have to buy into the solution. On a simmilar note. It seems that the orion load balancer app becomes a single point of failiure and I have read many accounts of it being buggy and slow. Do you know of any way of replacing this application transparently with an alternative and keep session integrity? I read an old posting suggesting a product called FOUNDRY. Does any one have any more info on this? Thanks, Calvin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dan North Sent: 10 April 2001 10:57 To: Orion-Interest Subject: RE: Alternative Deployment Following up the failover approach,
RE: Alternative Deployment
Maybe going off on a tangent here, but why are you using apache as a web server? Orion works perfectly well as a web server as well as an app server (and much faster and more robust). Also, you can plug in support for things like php if you need them - see www.orionsupport.com for details. You could feasibly use jBoss or TomCat as an alternative app server, or WebLogic if you've got tons of cash, but I would be surprised if the first two are as stable and reliable as orion (your mileage may of course vary), never mind scalable. I haven't used apache for about 6 months now, and I have to say I don't really miss it :o) Cheers, Dan/tastapod ps. As for official support, I believe this is something the dev team are looking into, but I haven't heard any formal announcements yet. I find that asking around the usual channels - mailing list and irc to name a couple - often resolves my problems and even more often gives me new ideas. At 11:06 11/04/2001 +0100, you wrote: Thanks for your input Dan, The dilemma that we face is not a question of failover. We propose to have a hardware loadbalancer such as local director fronting a number of apache servers that talk to a cluster of J2EE application servers, which in turn talk to a clustered database. This gives us scaleability and reliability. Our problem is that our users rely on our site being up all of the time. If our site is down for even a day we could pottentially to lose all our users. I understand your suggestion of using orion as a backup, but if we were to find a fundamental fault in the server then no matter how many orion servers we used we would not get away from it. And at present there is nobody (officially) that we could turn to for support to help resolve the issue. This makes company directors very nervous and with a big emphasis put on uptime and availability of our site they have to buy into the solution. On a simmilar note. It seems that the orion load balancer app becomes a single point of failiure and I have read many accounts of it being buggy and slow. Do you know of any way of replacing this application transparently with an alternative and keep session integrity? I read an old posting suggesting a product called FOUNDRY. Does any one have any more info on this? Thanks, Calvin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dan North Sent: 10 April 2001 10:57 To: Orion-Interest Subject: RE: Alternative Deployment Following up the failover approach, -- Dan North VP Development - Cadrion Software Ltd - +44 (0)20 7440 9550 CONFIDENTIALITY This e-mail and any attachments are confidential and may also be privileged. If you are not the named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose, or store or copy the information in any medium
Problem ( solution) with ejbStore() and Oracle CLOBs
Hi, I have a BMP entity bean that maps to an Oracle table with a CLOB field. I can read the CLOB in OK but when trying to write to it I get an 'ORA-01002: fetch out of sequence' error. This error can be caused by a commit being called between retrieving the CLOB locator with a SELECT... FOR UPDATE and trying to write to the CLOB's output stream. I solved this for ejbCreate() by setting the create() method's transaction attribute to 'Required'. However, I can't give the ejbStore() method a transaction attribute as it can only be called by the container. I have got around this like so: By default, ejbStore() is called by the container after every call to any method in the bean instance, whether or not the bean's state is changed. Implementing the public boolean isModified() method stops ejbStore() being called every time as the container first checks that true is returned by this method. Setting a 'Required', 'Requires New' or 'Mandatory' transaction attribute for all methods that set the 'modified' boolean to true seems to ensure that ejbStore() is now only called inside a transaction. This seems to solve the problem but I'd like to be sure that my assumptions are correct and that this WILL prevent ejbStore() from ever being called outside a transaction. Also, is it possible to set a transaction attribute for ejbStore()? Thanks, Paul http://www.iii.co.uk Interactive Investor International is a leading UK Internet personal finance service that provides individuals with the capability to identify, compare, monitor and buy online a number of financial products and services. Interactive Investor Trading Limited, a subsidiary of Interactive Investor International plc, is regulated by the SFA.
Management Console...
Hi, I am new to Orion. I am using the Management Console to deploy an EJB archive and a WAR file. Quick question about the console - when I first launch the console, I get three entries in the tree - local, ormi://localhost and ormi:// Why are there three servers listed when I only have one running? localhost and local seem to be the same - why are they listed twice in the console and what does ormi imply in this context? I can't even seem to connect to the ormi:// -I get an error "Invalid username/password for default()" What does this mean?? In the same vein, there's a menu item to add a server. Does this imply adding another application server? Another Orion server? Thanks for any help. --CR. _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Application mapping - how do I know it from within the app?
I'm using virtual hosts in my development to make sure that all links are correctly set, that is I can access the same app in two ways, either via appname.localhost or localhost/appname . The problem is that I'm not sure how to figure out on a jsp page which entry point was used, and this causes problem when I'm trying to map my servlet, since relative paths to servlets does not seem to work... String parsing of request.getRequestURI() seems like a way to start, but I'm not sure what how to write it, since in the future the app might be moved again to appname.serviceprovider.localhost vs localhost/serviceprovider/appname . Is there a way to get pageContext return application context? Johan
Re: request.getParameter() not working under solaris?
The problem is that the instance running orion has to have correct tables installed. I had the same problem when loading data from the database ( swedish language ). They got messed up on the way. So the resolution in my case was to make sure that the shell running orion supported swedish chars. Hope this helps. Johan - Original Message - From: "Taavi Tiirik" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Wednesday, April 11, 2001 2:51 PM Subject: RE: request.getParameter() not working under solaris? probably you have to mention the char-set. I am not sure how you do this Specifying char-set does not help. At least, when I add meta tag like this: head meta http-equiv="Content-Type" content="text/html; charset=utf-8" /head It does not really matter what charset I use. Whenever I ask (int)request.getParameter( "text" ).charAt( 0 ) It gives me the very same character code 65533. Please, any ideas? with best regards, Taavi I am experiencing strange behaviour of Orion 1.4.5 running on PC Solaris 8 with jdk1.3. I do not get expected results when calling request.getParameter() on a jsp page. If I submit certain characters like "" for example (ie auml;) then request.getParameter() returns character with a code 65533. The same jsp page works with following configurations: Orion1.4.5, Win2000, jdk 1.3 Tomcat3.2.1, the very same Solaris, jdk 1.3 Tomcat3.2.1, Win2000, jdk 1.3 Start of jsp page htmlbody text="%= request.getParameter( "text" ) %" form input type="text" name="text" input type="submit" /form /body/html End of jsp page -- Please, I could really use your help to solve this. If I cannot get orion working under Solaris I will have to change application server ASAP. Any thoughts are welcome. with best regards, Taavi
Re: Management Console...
On Wed, 11 Apr 2001, Chaya Ramanujam wrote: Hi, I am new to Orion. I am using the Management Console to deploy an EJB archive and a WAR file. Quick question about the console - when I first launch the console, I get three entries in the tree - local, ormi://localhost and ormi:// Why are there three servers listed when I only have one running? localhost and local seem to be the same - why are they listed twice in the console and what does ormi imply in this context? I can't even seem to connect to the ormi:// -I get an error "Invalid username/password for default()" What does this mean?? Every time you add a server, the console will 'remember' it and so reconnect to it when you start up. You can simply remove the extra entries you have and just leave localhost. In the same vein, there's a menu item to add a server. Does this imply adding another application server? Another Orion server? Yes, the console can browse/manage multiple servers. Hani
Re: Application mapping - how do I know it from within the app?
pageContext.getServletContext().getContextPath() On Wed, 11 Apr 2001, Johan Fredriksson wrote: I'm using virtual hosts in my development to make sure that all links are correctly set, that is I can access the same app in two ways, either via appname.localhost or localhost/appname . The problem is that I'm not sure how to figure out on a jsp page which entry point was used, and this causes problem when I'm trying to map my servlet, since relative paths to servlets does not seem to work... String parsing of request.getRequestURI() seems like a way to start, but I'm not sure what how to write it, since in the future the app might be moved again to appname.serviceprovider.localhost vs localhost/serviceprovider/appname . Is there a way to get pageContext return application context? Johan
Slow performance with large EJB-JAR.XML file...
We have been putting all our beans in a single ejb-jar.xml. However, it's taking Orion noticably slower to deploy new changes. I am wondering what (if any) problems associated with splitting each bean into it's own ejb-jar.xml and treating it as an independent module. Any help would be appreciated. -AP_
Re: Error starting HTTP server
I bet you are trying to run Orion on a low port, reserved by root. I get that problem if I DO NOT run orion as root on port 80. My network guy was looking into it and I'll let you know if he comes up with a solution... On Tuesday, April 10, 2001, at 02:29 PM, Ashok Banerjee wrote: On NT Orion is running great but on Solaris JDK1.2.2 when I do java -jar orion.jar I get an error message flagging a problem with HTTP initialization. How do I debug/trouble shoot this. Are there any debug flags? Cheers, Ash % java -jar orion.jar Error starting HTTP-Server: Permission denied Orion/1.4.5 initialized _ Get your FREE download of MSN Explorer at http://explorer.msn.com -- Geoffrey W. MarshallDirector of Development --- t e r r a s c o p ephone (415) 951-4944 54 Mint St #110 direct (415) 625-0349 San Francisco, CA 94103 fax (415) 625-0306 ---
RE: Using applets in orion
Hi Fredrik, This is working for me I put this in a jsp. The appletArchive.jar is in the same directory as the jsp. APPLET code="com.Applet.class" archive="appletArchive.jar" height="407" width="125" param name="param1" value="value1" /APPLET Olivier -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Fredrik Olsson Sent: 11 April 2001 14:17 To: Orion-Interest Subject: Using applets in orion How do specify the path for an applet in the HTML code - when the applet is a standalone class file - when the applet is part of a jar archive Whatever approach I try I have problems with the relative paths Thankful for any hints /Fredrik Olsson _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
RE: Building an application
I had a quick look at log4J, but though it looked very complete, also bit more difficult to use that the dumb servlet.log()... I could not download the binaries from opensymphony. But I when I get some time, I will have a better look at log4j anyway. thanks. Olivier -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dan North Sent: 11 April 2001 13:02 To: Orion-Interest Subject: RE: Building an application Logging is something that has been rather overlooked in java. The proposed Java 1.4 contains a logging api, but in the meantime, the log4j project at jakarta.apache.org/log4j is an excellent framework suitable for most architectures. We use it all the time in servlets, EJBs, taglibs, etc and it works very well. The OpenSymphony open source project (www.opensymphony.com) contains a class called com.opensymphony.util.Logger in oscore.jar (you can obtain and build this through anonymous cvs) which conveniently hides all the things you don't need to know about log4j. You use it like this: import com.opensymphony.util.Logger; public class MyClass { private static final Logger logger = new Logger( MyClass.class ); ... public void myMethod() { logger.debug( "This is a debug message" ); logger.info( "This is info" ); logger.warn( "Guess what this is?" ); logger.error( "Bad news" ); logger.fatal( "REALLY bad news" ); ... It reads in a properties file which is described in the log4j docs, and is accessed by the logger.config system property, eg: java -Dlogger.config=/path/to/my/logger.properties MyClass which allows you to switch logging on and off, and record only certain priorities of logging, send debug to the console and error to syslog or the Event Logger in NT, etc. Very clean, simple and nice to use. Hope that helps, Dan/tastapod ps. I have no commercial affiliation in opensymphony, but Logger is possibly the class I use the most anywhere in java, after java.lang.String :o) At 10:09 11/04/2001 +0100, you wrote: Thanks everyone, Switching off the "friendly" message, help me figuring out. It is now working. I had to modify 3 config files (instead of 2...see at the bottom of this mail): application.xml: web-module id="taskforce" path="../applications/taskforce.ear" / default-web-site.xml web-app application="taskforce" name="taskforce" root="/taskforce"/ server.xml application name="taskforce" path="../applications/taskforce.ear"/ Does it look allright or redondant ??? Is there a way to access a log class in Orion (is is standard to all EJB servers ?) Thanks again, Olivier -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of SCOTT FARQUHAR Sent: 11 April 2001 00:29 To: Orion-Interest Subject: RE: Building an application Two things that might be of interest: !-- The default web-app for this site, bound to the root -- default-web-app application="default" name="defaultWebApp" / in default-web-site.xml . I assume that you can map an application to root by changing that? Turn off "friendly error messages" in Internet Explorer (tools-options-advanced-show friendly http error messages). A 500 could mean anything. Once you get the stack trace you might be able to determine what the problem is. Scott [EMAIL PROTECTED] 04/11/01 04:21am Dan, The error I have is 500 (http internal server error), when I type http://localhost/taskforce If I type http://localhost, I have the orion home page. This the tree of the applications directory, once expanded by orion. D:\JAVA\ORION\APPLICATIONS taskforce.ear \---taskforce taskforce.war userEJB.jar +---META-INF application.xml \---taskforce index.html +---images +---META-INF \---WEB-INF +---classes | +---net | | \---tnt | | +---user | | | \---model | | +---util | | \---web | | +---control | | \---taglib | \---org | \---apache | \---struts | \---resources +---lib \---tlds The server.xml and default-web-site.xml have been modified as mentionned at the bottom of this mail. I have tried to modify the context root to "/" but it did not change. I have just noticed that you can set the root="/taskforce" in default-web-site.xml web-app application="taskforce" name="taskforce-web" root="/taskforce"/ and also in the /META-INF/application.xml of you ear(context-root/taskforce/context) I suppose they must be the same (which is the case for me). What is the role of each ? I guess there are 2 possible source of error 1) the way I have update the server.xml and default-web-site.xml (default-web-site.xml)
JUnitEE test reload problem
I installed JUnitEE and have the test class and servlet not part of an *.war file but just class file on the directory, when I modify the test class it does not get reloaded by orion. Did anyone managed to get the test reload working? Does orion check for classes modification? Muly.
Re: Management Console...
- Original Message - From: "Chaya Ramanujam" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Wednesday, April 11, 2001 4:58 PM Subject: Management Console... Hi, I am new to Orion. I am using the Management Console to deploy an EJB archive and a WAR file. Quick question about the console - when I first launch the console, I get three entries in the tree - local, ormi://localhost and ormi:// Why are there three servers listed when I only have one running? localhost and local seem to be the same - why are they listed twice in the console and what does ormi imply in this context? I can't even seem to connect to the ormi:// -I get an error "Invalid username/password for default()" What does this mean?? Did you do a java -jar orion.jar -install prior to trying to connect? Make sure to uncheck save password from the menu and try again. In the same vein, there's a menu item to add a server. Does this imply adding another application server? Another Orion server? Yes, you can manage multiple app servers from one tool. Thanks for any help. --CR. _ Get your FREE download of MSN Explorer at http://explorer.msn.com
SV: Slow performance with large EJB-JAR.XML file...
Title: SV: Slow performance with large EJB-JAR.XML file... Splitting into multiple ejb-jar could be a good idea considering that there has to be some functionality in that one and only ejb-jar module of yours that can be factored out to independent packages. -Ursprungligt meddelande- Från: Alex Paransky [mailto:[EMAIL PROTECTED]] Skickat: den 11 april 2001 18:06 Till: Orion-Interest Ämne: Slow performance with large EJB-JAR.XML file... We have been putting all our beans in a single ejb-jar.xml. However, it's taking Orion noticably slower to deploy new changes. I am wondering what (if any) problems associated with splitting each bean into it's own ejb-jar.xml and treating it as an independent module. Any help would be appreciated. -AP_
Re: Including jar files in my web app ?
Title: SV: Including jar files in my web app ? Hi Magnus and others ofcourse, It has been a while since this issue passed by, but that is because we have been struggling with it since. I am still not able to include jar files that I put in my WEB-INF/lib dir, particular: velocity.jar. Also someone else in this newsgroup has been busy with it, on orion 1.4.7, on the same application on a different machine and has the same problem. BTW: I am able to use the jar when i put it in orion/config/application.xml with library path... it works but it contains a static class and I need one for every application. Everytime I get the error that it can't find the class (ClassDefNotFound). What I tried: - Just putting them in the WEB-INF/lib dir, but it can't find it. - putting the velocity.jar in other places, like in the root of the application. -jar file in the WEB-INF/lib and putting the following tag in the orion-web.xml: classpath path="./WEB-INF/lib/" / - and also tried classpath path="./WEB-INF/lib/velocity.jar" / - unpacking the jar and putting it in the WEB-INF/classes dir where the servlets are located in packages that I call through servlet ref's - When I put the WEB-INF/lib/velocity.jar in the CLASSPATH, yes it does find it, but then all applications find the same velocity.jar and that doesn't work.!!! - Tried to include the jar int the META-INF/application.xml: moduleejb/opt/Orion/lib/counter.jar/ejb/modulebut is than complains: --- Error auto-deploying application-client at velocity.jar: Unable to find/read assembly info for /home/development/sgs/velocity.jar (META-INF/application-client.xml) The file exists and has the necessary tags, only it is empty as I don't know what to put in it. - I find in the newsgroup archive, that solved the problem by starting orion with: com.evermind.server.ApplicationServer insted through orion.jar - I think I tried some more things but reallu nothing worked. PLEASSE tell me how I can see where Orion looks for the jar file, as this problem is really driving my comletely nuts...!! I found a lot of little things about this subject. I tried about everyting, but nothing helped. I lost the logic here, so hope that someone can help me out, here, otherwise I . Eddie :( - Original Message - From: Magnus Rydin To: Orion-Interest Sent: Thursday, April 05, 2001 11:05 AM Subject: SV: Including jar files in my web app ? This is strange.. I have no problem with having a couple of jars in /WEB-INF/lib -Ursprungligt meddelande- Från: Court Demas [mailto:[EMAIL PROTECTED]] Skickat: den 5 april 2001 00:36 Till: Orion-Interest Ämne: Re: Including jar files in my web app ? I just had a similar problem. Orion saw classes *either* in WEB-INF/classes *or* in WEB-INF/lib. My solution was to either unpack all classes into WEB-INF/classes (removing the lib directory), or create one huge JAR file in WEB-INF/lib (removing the classes directory). I hope there's a better solution! court Eddie wrote: I don't seem be able to tell Orion 1.4.7 te read my bla.jar that is located in the WEB-INF/lib ?? To me it's not really clear how to do that. The bla.jar is there but it keeps giving an ClassDefNotFound error. I also tried it with tablib (which is basically for JSP only not ???) but that neither worked: --- taglib taglib-uribla/taglib-uri taglib-location/WEB-INF/lib/bla.jar/taglib-location /taglib --- What am I doing wrong ? and how can I see more in detail where is looking ?? A, Eddie bash-2.04$ pwd /home/development/sgs/web/WEB-INF/lib bash-2.04$ ll total 428 -rwxr--r-- 1 program users 369846 Apr 4 17:01 bla.jar bash-2.04$ -
Re: Application mapping - how do I know it from within the app?
okey, I fígured it out... With a little help. I hope this function will appear in servlet 2.3 version ( and why isn't orion running 2.3?? ) anyways, if anyone else runs into this copy paste this line : String servletPath = request.getRequestURI().substring(0, request.getRequestURI().indexOf(request.getServletPath())); Which will return the mapping to the root of your application. Johan - Original Message - From: Johan Fredriksson To: Orion-Interest Sent: Wednesday, April 11, 2001 4:59 PM Subject: Application mapping - how do I know it from within the app? I'm using virtual hosts in my development to make sure that all links are correctly set, that is I can access the same app in two ways, either via appname.localhost or localhost/appname . The problem is that I'm not sure how to figure out on a jsp page which entry point was used, and this causes problem when I'm trying to map my servlet, since relative paths to servlets does not seem to work... String parsing of request.getRequestURI() seems like a way to start, but I'm not sure what how to write it, since in the future the app might be moved again to appname.serviceprovider.localhost vs localhost/serviceprovider/appname . Is there a way to get pageContext return application context? Johan
Re: Problem ( solution) with ejbStore() and Oracle CLOBs
This is more likely to be to do with isolation level than transactionality (although the two are closely related). You might try setting: entity-deployment name="YourBean" isolation="repeatable_read" ... /entity-deployment in your orion-ejb-jar.xml. Disclaimer: I could well be wrong, I often am! Regards, Dan/tastapod At 15:48 11/04/2001 +0100, you wrote: Hi, I have a BMP entity bean that maps to an Oracle table with a CLOB field. I can read the CLOB in OK but when trying to write to it I get an 'ORA-01002: fetch out of sequence' error. This error can be caused by a commit being called between retrieving the CLOB locator with a SELECT... FOR UPDATE and trying to write to the CLOB's output stream. I solved this for ejbCreate() by setting the create() method's transaction attribute to 'Required'. However, I can't give the ejbStore() method a transaction attribute as it can only be called by the container. I have got around this like so: By default, ejbStore() is called by the container after every call to any method in the bean instance, whether or not the bean's state is changed. Implementing the public boolean isModified() method stops ejbStore() being called every time as the container first checks that true is returned by this method. Setting a 'Required', 'Requires New' or 'Mandatory' transaction attribute for all methods that set the 'modified' boolean to true seems to ensure that ejbStore() is now only called inside a transaction. This seems to solve the problem but I'd like to be sure that my assumptions are correct and that this WILL prevent ejbStore() from ever being called outside a transaction. Also, is it possible to set a transaction attribute for ejbStore()? Thanks, Paul http://www.iii.co.uk Interactive Investor International is a leading UK Internet personal finance service that provides individuals with the capability to identify, compare, monitor and buy online a number of financial products and services. Interactive Investor Trading Limited, a subsidiary of Interactive Investor International plc, is regulated by the SFA. -- Dan North VP Development - Cadrion Software Ltd - +44 (0)20 7440 9550 CONFIDENTIALITY This e-mail and any attachments are confidential and may also be privileged. If you are not the named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose, or store or copy the information in any medium
RE: javax.crypto
That consists of 4 jars known collectively as JCE(Java Cryptography Extension). The current version is 1.2.1. jce1_2_1.jar local_policy.jar sunjce_provider.jar US_export_policy.jar jce1_2_1.jar is the actual API. sunjce_provider.jar is Suns' implementation of their API. It contains the actual algorithms and code that does all the work. Offhand, I don't know of any other 3rd parties that have implemented the API. These files must be downloaded from Sun's website at this URL.. http://www.java.sun.com/products/jce/index.html DP -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Van DuongSent: Wednesday, April 11, 2001 3:40 AMTo: Orion-InterestSubject: javax.crypto Hi, Does anyone cantell me wherethe packagejavax.crypto is? Thanks in advance, Van Duong
RE: Application mapping - how do I know it from within the app?
I believe that the original servlet spec allowed direct access to root of the web site, but these methods were deprecated for security reasons. I have been having this problem myself, what a wonderful solution! Regards, The Elephantwalker -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Johan FredrikssonSent: Wednesday, April 11, 2001 9:50 AMTo: Orion-InterestSubject: Re: Application mapping - how do I know it from within the app? okey, I fígured it out... With a little help. I hope this function will appear in servlet 2.3 version ( and why isn't orion running 2.3?? ) anyways, if anyone else runs into this copy paste this line : String servletPath = request.getRequestURI().substring(0, request.getRequestURI().indexOf(request.getServletPath())); Which will return the mapping to the root of your application. Johan - Original Message - From: Johan Fredriksson To: Orion-Interest Sent: Wednesday, April 11, 2001 4:59 PM Subject: Application mapping - how do I know it from within the app? I'm using virtual hosts in my development to make sure that all links are correctly set, that is I can access the same app in two ways, either via appname.localhost or localhost/appname . The problem is that I'm not sure how to figure out on a jsp page which entry point was used, and this causes problem when I'm trying to map my servlet, since relative paths to servlets does not seem to work... String parsing of request.getRequestURI() seems like a way to start, but I'm not sure what how to write it, since in the future the app might be moved again to appname.serviceprovider.localhost vs localhost/serviceprovider/appname . Is there a way to get pageContext return application context? Johan
RE: javax.crypto
Dean Parker ([EMAIL PROTECTED]) wrote: SV: servlet-TagThat consists of 4 jars known collectively as JCE (Java Cryptography Extension). The current version is 1.2.1. jce1_2_1.jar local_policy.jar sunjce_provider.jar US_export_policy.jar jce1_2_1.jar is the actual API. sunjce_provider.jar is Suns' implementation of their API. It contains the actual algorithms and code that does all the work. Offhand, I don't know of any other 3rd parties that have implemented the API. Cryptix (www.cryptix.org)? They've done some of it I think, but I am not really up on the JCE. Gary These files must be downloaded from Sun's website at this URL.. http://www.java.sun.com/products/jce/index.html DP -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Van Duong Sent: Wednesday, April 11, 2001 3:40 AM To: Orion-Interest Subject: javax.crypto Hi, Does anyone can tell me where the package javax.crypto is? Thanks in advance, Van Duong
Logging
Hi, (That mail could be for Dan who seems to work with log4j.) I am trying to use log4j to debug my application. (I could not download opensymphony...the download link is disabled) This is how I set it up: static Category LOG4J = Category.getRoot(); BasicConfigurator.configure(); Layout layout = new PatternLayout("%d{HH:mm:ss} %-5p %c %x - %m%n"); //not sure about the output. I have tried Syste.out as well LOG4J.addAppender(new FileAppender(layout, System.err)); //no debugging if not set if((debugPriority = System.getProperty("debugLevel")) == null) LOG4J.setPriority(Priority.toPriority("FATAL")); if(LOG4J.isInfoEnabled()) LOG4J.info("Application started..."); I have 2 problems: 1) The statements are printed twice, but in different format: The first one is the default one, the second one is the one I specify 0 [ApplicationServerThread] INFO root - Application started... 20:12:37 INFO root - Application started... 2)As is it the log are printed on the console. Is is possible to redired them to the application.log ??? Thanks, Olivier
Kawa 5.0 Ent and Orion 1.4.7
Hi all, has anyone succesfully been able to configure Kawa 5.0 Enterprise with Orion 1.4.7 ? What I'm looking for is all the parameters needed for the EJB serve dialog box like EJB Server parameters, Packager, Deployer, Unddeployer and so forth. I've tried Allaire but no answer so far besides read on the FAQ. But there is nothing there. Thanks, Brynolf _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: Management Console...
In the same vein, there's a menu item to add a server. Does this imply adding another application server? Another Orion server? Yes, e.g, I have the console running on an NT workstation, but I can connect to an Orion server on another Linux box. Derek
RE: request.getParameter() not working under solaris?
I had the same problem when loading data from the database ( swedish language ). They got messed up on the way. So the resolution in my case was to make sure that the shell running orion supported swedish chars. Got it working. The solution was to specify environment variable LANG: export LANG=en_US.UTF-8 And it seems that specifying content type and charset with a meta tag is not enough. It has to be set using a %@ page % directive as well. Now I have to find out how to define et_EE.UTF-8 for my system. thanks, Taavi :-) Hope this helps. Johan it sure did
RE: javax.crypto
thanks a lot. I got it. -Original Message-From: Dean Parker [mailto:[EMAIL PROTECTED]]Sent: Wednesday, April 11, 2001 12:34 PMTo: Orion-InterestSubject: RE: javax.crypto That consists of 4 jars known collectively as JCE(Java Cryptography Extension). The current version is 1.2.1. jce1_2_1.jar local_policy.jar sunjce_provider.jar US_export_policy.jar jce1_2_1.jar is the actual API. sunjce_provider.jar is Suns' implementation of their API. It contains the actual algorithms and code that does all the work. Offhand, I don't know of any other 3rd parties that have implemented the API. These files must be downloaded from Sun's website at this URL.. http://www.java.sun.com/products/jce/index.html DP -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Van DuongSent: Wednesday, April 11, 2001 3:40 AMTo: Orion-InterestSubject: javax.crypto Hi, Does anyone cantell me wherethe packagejavax.crypto is? Thanks in advance, Van Duong
SaxParseException-Help out
Hi all, Can anyone help me out.I have a jsp that sends Userid and password to another jsp that checks the values with an XML file.If xml parsing is sucessful, the values should be put into a JavaBean that has a session scope.So the ensuing jsp pages can make use of it.But while parsing I get the following message on the Orion console.I don't even have any tag called meta in the XML to be parsed.It is rather bewildering. Thanks. C:\orionjava -jar orion.jar Orion/1.4.7 initialized org.xml.sax.SAXParseException: Expected "/meta" to terminate element starting on line 1. Regards, P.S.Sudhaghar __ 123India.com - India's Premier Portal Get your Free Email Account at http://www.123india.com